From dbca86b3f3578f792677f7b9c4e9515abf38bb2b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 13 Oct 2021 17:34:20 +0200 Subject: [PATCH 001/225] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.1.0 (#349) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.0.3` -> `1.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.1.0/compatibility-slim/1.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.1.0/confidence-slim/1.0.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.1.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​110-httpswwwgithubcomgoogleapisjava-shared-configcomparev103v110-2021-10-12) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.0.3...v1.1.0) ##### Features - introduce Maven configuration for GraalVM testing ([#​314](https://www.togithub.com/googleapis/java-shared-config/issues/314)) ([28fbeb8](https://www.github.com/googleapis/java-shared-config/commit/28fbeb86c4466a58a05d6933584564dbf3352e79)) ##### Bug Fixes - update doclet version ([#​332](https://www.togithub.com/googleapis/java-shared-config/issues/332)) ([3fd0350](https://www.github.com/googleapis/java-shared-config/commit/3fd035030e4f0954dd1f62f7b8ea62583685880c)) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v9.0.1 ([#​327](https://www.togithub.com/googleapis/java-shared-config/issues/327)) ([b6c9b65](https://www.github.com/googleapis/java-shared-config/commit/b6c9b657550db2dee6b36edbb9a6084baee125e2)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.6 ([#​330](https://www.togithub.com/googleapis/java-shared-config/issues/330)) ([271ed7d](https://www.github.com/googleapis/java-shared-config/commit/271ed7dba35623e22fc8a7f7d477e6043e772014)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.6 ([#​331](https://www.togithub.com/googleapis/java-shared-config/issues/331)) ([4f9ba15](https://www.github.com/googleapis/java-shared-config/commit/4f9ba1551df0a2d4fc8c9acca8a951afbe8cb78a)) - update dependency org.junit.vintage:junit-vintage-engine to v5.8.1 ([#​329](https://www.togithub.com/googleapis/java-shared-config/issues/329)) ([4a8789e](https://www.github.com/googleapis/java-shared-config/commit/4a8789ee814ba8a3480beecc76c16fd1cb4e5f12)) ##### [1.0.3](https://www.github.com/googleapis/java-shared-config/compare/v1.0.2...v1.0.3) (2021-09-21) ##### Bug Fixes - update java-docfx-doclet version ([#​315](https://www.togithub.com/googleapis/java-shared-config/issues/315)) ([07af07c](https://www.github.com/googleapis/java-shared-config/commit/07af07c188447ea5728ecd2700121ff477d1c58a)) ##### [1.0.2](https://www.github.com/googleapis/java-shared-config/compare/v1.0.1...v1.0.2) (2021-09-13) ##### Bug Fixes - specify animal-sniffer-maven-plugin version ([#​308](https://www.togithub.com/googleapis/java-shared-config/issues/308)) ([378bf43](https://www.github.com/googleapis/java-shared-config/commit/378bf431383306c1cdd0a4f922956c87edf321b5)) - update java docfx doclet version ([#​312](https://www.togithub.com/googleapis/java-shared-config/issues/312)) ([dd7f6e0](https://www.github.com/googleapis/java-shared-config/commit/dd7f6e0c1a7cc73831b74b4475457611a8c097d3)) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v9 ([#​303](https://www.togithub.com/googleapis/java-shared-config/issues/303)) ([71faea3](https://www.github.com/googleapis/java-shared-config/commit/71faea38d4132407598550e2bb4c77f9d4a4d83d)) ##### [1.0.1](https://www.github.com/googleapis/java-shared-config/compare/v1.0.0...v1.0.1) (2021-08-18) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v8.45.1 ([#​292](https://www.togithub.com/googleapis/java-shared-config/issues/292)) ([66bf6e6](https://www.github.com/googleapis/java-shared-config/commit/66bf6e6fb95997b9eb4b34268b8d20c2fbe9ed5a))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- google-analytics-data-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 659cf7b9..207aed76 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.0.3 + 1.1.0 Google Analytics Data BOM diff --git a/pom.xml b/pom.xml index c9195eec..2366df24 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.0.3 + 1.1.0 From 02ac3e4f18456d1e8fe77047cae6b7bff698a185 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 18 Oct 2021 16:52:27 +0000 Subject: [PATCH 002/225] build(java): Introduce Native Image testing build script changes (#352) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/build.sh | 5 +++++ .kokoro/presubmit/graalvm-native.cfg | 33 ++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 .kokoro/presubmit/graalvm-native.cfg diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 5ff6c87c..dc53bbb5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:13b7387edb404234610d30473ac48210ae7fe42a136335ee2b2f8a07c4c7f6a5 + digest: sha256:d4b2141d65566523dfd523f63c6e6899ab1281463bce182a9f600e74b0511875 diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 8f7ba5d7..a5fa6e1c 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -69,6 +69,11 @@ integration) verify RETURN_CODE=$? ;; +graalvm) + # Run Unit and Integration Tests with Native Image + mvn test -Pnative -Penable-integration-tests + RETURN_CODE=$? + ;; samples) SAMPLES_DIR=samples # only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise. diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg new file mode 100644 index 00000000..4c7225ec --- /dev/null +++ b/.kokoro/presubmit/graalvm-native.cfg @@ -0,0 +1,33 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/graalvm" +} + +env_vars: { + key: "JOB_TYPE" + value: "graalvm" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} From 45294d9183e0cd646d3ab7de68049fd1f0f1d4a6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 Oct 2021 04:42:34 +0200 Subject: [PATCH 003/225] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.4.0 (#353) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.3.0` -> `2.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.4.0/compatibility-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.4.0/confidence-slim/2.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.4.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​240-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare230v240-2021-10-18) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.3.0...v2.4.0) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.13.0 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.api-client:google-api-client-bom to v1.32.2 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.api:api-common to v2.0.5 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.auth:google-auth-library-bom to v1.2.1 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.guava:guava-bom to v31 ([#​498](https://www.togithub.com/googleapis/java-shared-dependencies/issues/498)) ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.http-client:google-http-client-bom to v1.40.1 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update dependency com.google.protobuf:protobuf-bom to v3.18.1 ([#​494](https://www.togithub.com/googleapis/java-shared-dependencies/issues/494)) ([a30e376](https://www.github.com/googleapis/java-shared-dependencies/commit/a30e3762b5fb0e2d31304d211c12eb2c1320f0c1)) - update dependency io.grpc:grpc-bom to v1.41.0 ([#​482](https://www.togithub.com/googleapis/java-shared-dependencies/issues/482)) ([8a7d227](https://www.github.com/googleapis/java-shared-dependencies/commit/8a7d227f2a1dab9ff23d247a4e6131c817804c36)) - update gax.version to v2.6.1 ([dba11b5](https://www.github.com/googleapis/java-shared-dependencies/commit/dba11b5fe14d39cdd62357e7bb1b82831c481150)) - update iam.version to v1.1.6 ([#​485](https://www.togithub.com/googleapis/java-shared-dependencies/issues/485)) ([cef7e09](https://www.github.com/googleapis/java-shared-dependencies/commit/cef7e090bbc2e3ae775fa83505f98df286ba7d42))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2366df24..ac9ab94f 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.3.0 + 2.4.0 pom import From 70c816058cf37db490845260d01de130fad94433 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 19 Oct 2021 02:50:23 +0000 Subject: [PATCH 004/225] chore: release 0.10.2 (#354) :robot: I have created a release \*beep\* \*boop\* --- ### [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)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cd7a391b..80e93bd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # 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) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 207aed76..1b0010ef 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.10.2-SNAPSHOT + 0.10.2 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.10.2-SNAPSHOT + 0.10.2 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.10.2-SNAPSHOT + 0.10.2 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.10.2-SNAPSHOT + 0.10.2 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.10.2-SNAPSHOT + 0.10.2 com.google.api.grpc proto-google-analytics-data-v1beta - 0.10.2-SNAPSHOT + 0.10.2 diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 2d8ae5a4..2daab784 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.10.2-SNAPSHOT + 0.10.2 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.10.2-SNAPSHOT + 0.10.2 google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 26eb96cb..5005ddf3 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.10.2-SNAPSHOT + 0.10.2 grpc-google-analytics-data-v1alpha GRPC library for grpc-google-analytics-data-v1alpha com.google.analytics google-analytics-data-parent - 0.10.2-SNAPSHOT + 0.10.2 diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 73e45fdc..926cad20 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.10.2-SNAPSHOT + 0.10.2 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.10.2-SNAPSHOT + 0.10.2 diff --git a/pom.xml b/pom.xml index ac9ab94f..4e7ad02a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.10.2-SNAPSHOT + 0.10.2 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.10.2-SNAPSHOT + 0.10.2 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.10.2-SNAPSHOT + 0.10.2 com.google.api.grpc proto-google-analytics-data-v1beta - 0.10.2-SNAPSHOT + 0.10.2 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.10.2-SNAPSHOT + 0.10.2 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.10.2-SNAPSHOT + 0.10.2 diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index 674eb3d9..a79559f9 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.10.2-SNAPSHOT + 0.10.2 proto-google-analytics-data-v1alpha PROTO library for proto-google-analytics-data-v1alpha com.google.analytics google-analytics-data-parent - 0.10.2-SNAPSHOT + 0.10.2 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 4d4941cf..8e90cad1 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.10.2-SNAPSHOT + 0.10.2 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.10.2-SNAPSHOT + 0.10.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index db550c4c..9d5b2d9c 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.10.2-SNAPSHOT + 0.10.2 diff --git a/versions.txt b/versions.txt index ced8289e..9baed419 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.10.1:0.10.2-SNAPSHOT -grpc-google-analytics-data-v1alpha:0.10.1:0.10.2-SNAPSHOT -grpc-google-analytics-data-v1beta:0.10.1:0.10.2-SNAPSHOT -proto-google-analytics-data-v1alpha:0.10.1:0.10.2-SNAPSHOT -proto-google-analytics-data-v1beta:0.10.1:0.10.2-SNAPSHOT +google-analytics-data:0.10.2:0.10.2 +grpc-google-analytics-data-v1alpha:0.10.2:0.10.2 +grpc-google-analytics-data-v1beta:0.10.2:0.10.2 +proto-google-analytics-data-v1alpha:0.10.2:0.10.2 +proto-google-analytics-data-v1beta:0.10.2:0.10.2 From 04155d7869197b6bde7faedf3e12bc13c10e0b7b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 19 Oct 2021 02:56:14 +0000 Subject: [PATCH 005/225] chore: release 0.10.3-SNAPSHOT (#355) :robot: I have created a release \*beep\* \*boop\* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 1b0010ef..861501b6 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.10.2 + 0.10.3-SNAPSHOT pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.10.2 + 0.10.3-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.10.2 + 0.10.3-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.10.2 + 0.10.3-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.10.2 + 0.10.3-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.10.2 + 0.10.3-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 2daab784..9b53260a 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.10.2 + 0.10.3-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.10.2 + 0.10.3-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 5005ddf3..ec48a80f 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.10.2 + 0.10.3-SNAPSHOT grpc-google-analytics-data-v1alpha GRPC library for grpc-google-analytics-data-v1alpha com.google.analytics google-analytics-data-parent - 0.10.2 + 0.10.3-SNAPSHOT diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 926cad20..769367e7 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.10.2 + 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.2 + 0.10.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 4e7ad02a..23a84b34 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.10.2 + 0.10.3-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.10.2 + 0.10.3-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.10.2 + 0.10.3-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.10.2 + 0.10.3-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.10.2 + 0.10.3-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.10.2 + 0.10.3-SNAPSHOT diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index a79559f9..a43c5acd 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.10.2 + 0.10.3-SNAPSHOT proto-google-analytics-data-v1alpha PROTO library for proto-google-analytics-data-v1alpha com.google.analytics google-analytics-data-parent - 0.10.2 + 0.10.3-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 8e90cad1..f0ebd69e 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.10.2 + 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.2 + 0.10.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9d5b2d9c..17dbaf2a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.10.2 + 0.10.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 9baed419..a3e2b483 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.10.2:0.10.2 -grpc-google-analytics-data-v1alpha:0.10.2:0.10.2 -grpc-google-analytics-data-v1beta:0.10.2:0.10.2 -proto-google-analytics-data-v1alpha:0.10.2:0.10.2 -proto-google-analytics-data-v1beta:0.10.2:0.10.2 +google-analytics-data:0.10.2:0.10.3-SNAPSHOT +grpc-google-analytics-data-v1alpha:0.10.2:0.10.3-SNAPSHOT +grpc-google-analytics-data-v1beta:0.10.2:0.10.3-SNAPSHOT +proto-google-analytics-data-v1alpha:0.10.2:0.10.3-SNAPSHOT +proto-google-analytics-data-v1beta:0.10.2:0.10.3-SNAPSHOT From f5b12327c9638819de2579551fb4e98275326723 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 22 Oct 2021 00:22:31 +0200 Subject: [PATCH 006/225] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.0 (#358) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.1.0` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.0/compatibility-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.0/confidence-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​120-httpswwwgithubcomgoogleapisjava-shared-configcomparev110v120-2021-10-21) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.1.0...v1.2.0) ##### Features - Introduce Native Image testing build script changes ([#​1240](https://www.togithub.com/googleapis/java-shared-config/issues/1240)) ([#​334](https://www.togithub.com/googleapis/java-shared-config/issues/334)) ([4643cf1](https://www.github.com/googleapis/java-shared-config/commit/4643cf15be0b37fa8fa905d544d438cda7ef2ecd)) ##### Bug Fixes - **java:** downgrade native maven plugin version ([#​335](https://www.togithub.com/googleapis/java-shared-config/issues/335)) ([5834284](https://www.github.com/googleapis/java-shared-config/commit/5834284176fb34713d10082ce04f3b6abba85ad8))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- README.md | 6 +++--- google-analytics-data-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index f16255ac..613c82c0 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.10.1 + 0.10.2 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.10.1' +implementation 'com.google.analytics:google-analytics-data:0.10.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.10.1" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.10.2" ``` ## Authentication diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 861501b6..850d404c 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.1.0 + 1.2.0 Google Analytics Data BOM diff --git a/pom.xml b/pom.xml index 23a84b34..d0b5d7d3 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.1.0 + 1.2.0 From 96f478dd732fa3967b095e28dfaa641ddb458c0f Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 25 Oct 2021 16:16:12 +0000 Subject: [PATCH 007/225] fix(java): java 17 dependency arguments (#1266) (#359) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/dependencies.sh | 10 ++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index dc53bbb5..0df65ebe 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:d4b2141d65566523dfd523f63c6e6899ab1281463bce182a9f600e74b0511875 + digest: sha256:a3ac08d167454718ff057b97a1950d3cb5e16fc39fb3f355d90276285a6cac75 diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 9a5105d7..d7476cfe 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -38,15 +38,13 @@ function determineMavenOpts() { | sed -E 's/^(1\.[0-9]\.0).*$/\1/g' ) - case $javaVersion in - "17") + if [[ $javaVersion == 17* ]] + then # MaxPermSize is no longer supported as of jdk 17 echo -n "-Xmx1024m" - ;; - *) + else echo -n "-Xmx1024m -XX:MaxPermSize=128m" - ;; - esac + fi } export MAVEN_OPTS=$(determineMavenOpts) From be36b82e69e4d685aee26c12dda51937a83697b7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 26 Oct 2021 19:44:15 +0200 Subject: [PATCH 008/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.10.2 (#357) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.10.1` -> `0.10.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.10.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.10.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.10.2/compatibility-slim/0.10.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.10.2/confidence-slim/0.10.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-analytics-data ### [`v0.10.2`](https://togithub.com/googleapis/java-analytics-data/blob/master/CHANGELOG.md#​0102-httpswwwgithubcomgoogleapisjava-analytics-datacomparev0101v0102-2021-10-19) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.10.1...v0.10.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index a9935188..1f7479dc 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.10.1 + 0.10.2 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 1e7dd1a2..07b1bcf6 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.10.1 + 0.10.2 From d323fb980cb25be22eb9988e4587c4abaff06681 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 1 Nov 2021 16:04:13 +0000 Subject: [PATCH 009/225] fix: remove classes for all v1alpha methods (#345) - [x] Regenerate this pull request now. PiperOrigin-RevId: 399249336 Source-Link: https://github.com/googleapis/googleapis/commit/fcf719d038204306ab40cbc14c4be3c4a3155420 Source-Link: https://github.com/googleapis/googleapis-gen/commit/e293c6d2d0ccf13f057c531270bc799cce4e8065 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTI5M2M2ZDJkMGNjZjEzZjA1N2M1MzEyNzBiYzc5OWNjZTRlODA2NSJ9 --- google-analytics-data-bom/pom.xml | 10 - .../clirr-ignored-differences.xml | 8 + google-analytics-data/pom.xml | 9 - .../v1alpha/AlphaAnalyticsDataClient.java | 633 -- .../v1alpha/AlphaAnalyticsDataSettings.java | 240 - .../data/v1alpha/gapic_metadata.json | 36 - .../analytics/data/v1alpha/package-info.java | 52 - .../v1alpha/stub/AlphaAnalyticsDataStub.java | 74 - .../stub/AlphaAnalyticsDataStubSettings.java | 426 -- ...GrpcAlphaAnalyticsDataCallableFactory.java | 115 - .../stub/GrpcAlphaAnalyticsDataStub.java | 311 - .../data/v1beta/BetaAnalyticsDataClient.java | 75 + .../v1beta/BetaAnalyticsDataSettings.java | 12 + .../analytics/data/v1beta/gapic_metadata.json | 3 + .../v1beta/stub/BetaAnalyticsDataStub.java | 7 + .../stub/BetaAnalyticsDataStubSettings.java | 36 +- .../stub/GrpcBetaAnalyticsDataStub.java | 38 + .../v1alpha/AlphaAnalyticsDataClientTest.java | 501 -- .../data/v1alpha/MockAlphaAnalyticsData.java | 59 - .../v1alpha/MockAlphaAnalyticsDataImpl.java | 187 - .../v1beta/BetaAnalyticsDataClientTest.java | 60 + .../v1beta/MockBetaAnalyticsDataImpl.java | 22 + grpc-google-analytics-data-v1alpha/pom.xml | 65 - .../data/v1alpha/AlphaAnalyticsDataGrpc.java | 1059 --- .../data/v1beta/BetaAnalyticsDataGrpc.java | 151 + pom.xml | 12 - .../clirr-ignored-differences.xml | 19 - proto-google-analytics-data-v1alpha/pom.xml | 42 - .../data/v1alpha/AnalyticsDataApiProto.java | 408 -- .../v1alpha/BatchRunPivotReportsRequest.java | 1296 ---- .../BatchRunPivotReportsRequestOrBuilder.java | 123 - .../v1alpha/BatchRunPivotReportsResponse.java | 995 --- ...BatchRunPivotReportsResponseOrBuilder.java | 78 - .../data/v1alpha/BatchRunReportsRequest.java | 1285 ---- .../BatchRunReportsRequestOrBuilder.java | 123 - .../data/v1alpha/BatchRunReportsResponse.java | 961 --- .../BatchRunReportsResponseOrBuilder.java | 77 - .../google/analytics/data/v1alpha/Cohort.java | 1271 ---- .../data/v1alpha/CohortOrBuilder.java | 155 - .../data/v1alpha/CohortReportSettings.java | 551 -- .../CohortReportSettingsOrBuilder.java | 39 - .../analytics/data/v1alpha/CohortSpec.java | 1589 ---- .../data/v1alpha/CohortSpecOrBuilder.java | 161 - .../analytics/data/v1alpha/CohortsRange.java | 1059 --- .../data/v1alpha/CohortsRangeOrBuilder.java | 95 - .../analytics/data/v1alpha/DateRange.java | 1057 --- .../data/v1alpha/DateRangeOrBuilder.java | 118 - .../analytics/data/v1alpha/Dimension.java | 985 --- .../data/v1alpha/DimensionExpression.java | 3346 --------- .../v1alpha/DimensionExpressionOrBuilder.java | 142 - .../data/v1alpha/DimensionHeader.java | 642 -- .../v1alpha/DimensionHeaderOrBuilder.java | 50 - .../data/v1alpha/DimensionMetadata.java | 1417 ---- .../v1alpha/DimensionMetadataOrBuilder.java | 180 - .../data/v1alpha/DimensionOrBuilder.java | 102 - .../data/v1alpha/DimensionValue.java | 765 -- .../data/v1alpha/DimensionValueOrBuilder.java | 64 - .../google/analytics/data/v1alpha/Entity.java | 647 -- .../data/v1alpha/EntityOrBuilder.java | 54 - .../google/analytics/data/v1alpha/Filter.java | 6453 ----------------- .../data/v1alpha/FilterExpression.java | 1790 ----- .../data/v1alpha/FilterExpressionList.java | 962 --- .../FilterExpressionListOrBuilder.java | 77 - .../v1alpha/FilterExpressionOrBuilder.java | 173 - .../data/v1alpha/FilterOrBuilder.java | 225 - .../data/v1alpha/GetMetadataRequest.java | 706 -- .../v1alpha/GetMetadataRequestOrBuilder.java | 70 - .../analytics/data/v1alpha/Metadata.java | 1630 ----- .../analytics/data/v1alpha/MetadataName.java | 168 - .../data/v1alpha/MetadataOrBuilder.java | 154 - .../google/analytics/data/v1alpha/Metric.java | 970 --- .../analytics/data/v1alpha/MetricHeader.java | 790 -- .../data/v1alpha/MetricHeaderOrBuilder.java | 75 - .../data/v1alpha/MetricMetadata.java | 1759 ----- .../data/v1alpha/MetricMetadataOrBuilder.java | 234 - .../data/v1alpha/MetricOrBuilder.java | 106 - .../analytics/data/v1alpha/MetricType.java | 398 - .../analytics/data/v1alpha/MetricValue.java | 764 -- .../data/v1alpha/MetricValueOrBuilder.java | 64 - .../analytics/data/v1alpha/NumericValue.java | 803 -- .../data/v1alpha/NumericValueOrBuilder.java | 77 - .../analytics/data/v1alpha/OrderBy.java | 5551 -------------- .../data/v1alpha/OrderByOrBuilder.java | 145 - .../google/analytics/data/v1alpha/Pivot.java | 1963 ----- .../data/v1alpha/PivotDimensionHeader.java | 965 --- .../PivotDimensionHeaderOrBuilder.java | 77 - .../analytics/data/v1alpha/PivotHeader.java | 1135 --- .../data/v1alpha/PivotHeaderOrBuilder.java | 104 - .../data/v1alpha/PivotOrBuilder.java | 255 - .../analytics/data/v1alpha/PropertyQuota.java | 1687 ----- .../data/v1alpha/PropertyQuotaOrBuilder.java | 190 - .../analytics/data/v1alpha/QuotaStatus.java | 634 -- .../data/v1alpha/QuotaStatusOrBuilder.java | 51 - .../data/v1alpha/ReportingApiProto.java | 656 -- .../data/v1alpha/ResponseMetaData.java | 550 -- .../v1alpha/ResponseMetaDataOrBuilder.java | 39 - .../google/analytics/data/v1alpha/Row.java | 1541 ---- .../analytics/data/v1alpha/RowOrBuilder.java | 134 - .../data/v1alpha/RunPivotReportRequest.java | 4198 ----------- .../RunPivotReportRequestOrBuilder.java | 494 -- .../data/v1alpha/RunPivotReportResponse.java | 4339 ----------- .../RunPivotReportResponseOrBuilder.java | 540 -- .../v1alpha/RunRealtimeReportRequest.java | 3343 --------- .../RunRealtimeReportRequestOrBuilder.java | 389 - .../v1alpha/RunRealtimeReportResponse.java | 3836 ---------- .../RunRealtimeReportResponseOrBuilder.java | 397 - .../data/v1alpha/RunReportRequest.java | 4686 ------------ .../v1alpha/RunReportRequestOrBuilder.java | 563 -- .../data/v1alpha/RunReportResponse.java | 4123 ----------- .../v1alpha/RunReportResponseOrBuilder.java | 434 -- .../data/v1alpha/analytics_data_api.proto | 477 -- .../google/analytics/data/v1alpha/data.proto | 793 -- .../data/v1beta/AnalyticsDataApiProto.java | 337 +- .../v1beta/CheckCompatibilityRequest.java | 2467 +++++++ .../CheckCompatibilityRequestOrBuilder.java | 283 + .../v1beta/CheckCompatibilityResponse.java | 1561 ++++ .../CheckCompatibilityResponseOrBuilder.java | 148 + .../analytics/data/v1beta/Compatibility.java | 134 +- .../data/v1beta/DimensionCompatibility.java | 978 +++ .../DimensionCompatibilityOrBuilder.java | 106 + .../data/v1beta/DimensionMetadata.java | 186 + .../v1beta/DimensionMetadataOrBuilder.java | 27 + .../data/v1beta/MetricCompatibility.java | 972 +++ .../v1beta/MetricCompatibilityOrBuilder.java | 106 + .../analytics/data/v1beta/MetricMetadata.java | 186 + .../data/v1beta/MetricMetadataOrBuilder.java | 27 + .../data/v1beta/ReportingApiProto.java | 86 +- .../data/v1beta/RunReportRequest.java | 108 +- .../v1beta/RunReportRequestOrBuilder.java | 27 +- .../data/v1beta/analytics_data_api.proto | 74 +- .../google/analytics/data/v1beta/data.proto | 46 + versions.txt | 2 - 132 files changed, 7950 insertions(+), 86745 deletions(-) create mode 100644 google-analytics-data/clirr-ignored-differences.xml delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataCallableFactory.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java delete mode 100644 google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java delete mode 100644 google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsData.java delete mode 100644 google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java delete mode 100644 grpc-google-analytics-data-v1alpha/pom.xml delete mode 100644 grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java delete mode 100644 proto-google-analytics-data-v1alpha/clirr-ignored-differences.xml delete mode 100644 proto-google-analytics-data-v1alpha/pom.xml delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsRequest.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsRequestOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsResponse.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsResponseOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsRequest.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsRequestOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsResponse.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsResponseOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Cohort.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortReportSettings.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortReportSettingsOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortSpec.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortSpecOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortsRange.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortsRangeOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRangeOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpressionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeaderOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadata.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadataOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValueOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Entity.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EntityOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionList.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionListOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequest.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequestOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metadata.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataName.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metric.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeaderOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadata.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadataOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValueOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValueOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/OrderBy.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/OrderByOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Pivot.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeader.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeaderOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeader.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeaderOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotaOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatus.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatusOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaData.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaDataOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RowOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequest.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequestOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportResponse.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportResponseOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportRequest.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportRequestOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportResponse.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportResponseOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequest.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequestOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponse.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponseOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto delete mode 100644 proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto create mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequest.java create mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequestOrBuilder.java create mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityResponse.java create mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityResponseOrBuilder.java rename proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricAggregation.java => proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Compatibility.java (53%) create mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionCompatibility.java create mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionCompatibilityOrBuilder.java create mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricCompatibility.java create mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricCompatibilityOrBuilder.java diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 850d404c..ff5d01af 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -58,21 +58,11 @@ google-analytics-data 0.10.3-SNAPSHOT - - com.google.api.grpc - grpc-google-analytics-data-v1alpha - 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-v1alpha - 0.10.3-SNAPSHOT - com.google.api.grpc proto-google-analytics-data-v1beta diff --git a/google-analytics-data/clirr-ignored-differences.xml b/google-analytics-data/clirr-ignored-differences.xml new file mode 100644 index 00000000..163361e7 --- /dev/null +++ b/google-analytics-data/clirr-ignored-differences.xml @@ -0,0 +1,8 @@ + + + + + 8001 + com/google/analytics/data/v1alpha/** + + diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 9b53260a..4608a5ba 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -42,10 +42,6 @@ proto-google-common-protos - - com.google.api.grpc - proto-google-analytics-data-v1alpha - com.google.api.grpc proto-google-analytics-data-v1beta @@ -75,11 +71,6 @@ 4.13.2 - - com.google.api.grpc - grpc-google-analytics-data-v1alpha - test - com.google.api.grpc grpc-google-analytics-data-v1beta diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java deleted file mode 100644 index 412978f3..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java +++ /dev/null @@ -1,633 +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.v1alpha; - -import com.google.analytics.data.v1alpha.stub.AlphaAnalyticsDataStub; -import com.google.analytics.data.v1alpha.stub.AlphaAnalyticsDataStubSettings; -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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
- *   RunReportRequest request =
- *       RunReportRequest.newBuilder()
- *           .setEntity(Entity.newBuilder().build())
- *           .addAllDimensions(new ArrayList())
- *           .addAllMetrics(new ArrayList())
- *           .addAllDateRanges(new ArrayList())
- *           .setOffset(-1019779949)
- *           .setLimit(102976443)
- *           .addAllMetricAggregations(new ArrayList())
- *           .setDimensionFilter(FilterExpression.newBuilder().build())
- *           .setMetricFilter(FilterExpression.newBuilder().build())
- *           .addAllOrderBys(new ArrayList())
- *           .setCurrencyCode("currencyCode1004773790")
- *           .setCohortSpec(CohortSpec.newBuilder().build())
- *           .setKeepEmptyRows(true)
- *           .setReturnPropertyQuota(true)
- *           .build();
- *   RunReportResponse response = alphaAnalyticsDataClient.runReport(request);
- * }
- * }
- * - *

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

To customize credentials: - * - *

{@code
- * AlphaAnalyticsDataSettings alphaAnalyticsDataSettings =
- *     AlphaAnalyticsDataSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * AlphaAnalyticsDataClient alphaAnalyticsDataClient =
- *     AlphaAnalyticsDataClient.create(alphaAnalyticsDataSettings);
- * }
- * - *

To customize the endpoint: - * - *

{@code
- * AlphaAnalyticsDataSettings alphaAnalyticsDataSettings =
- *     AlphaAnalyticsDataSettings.newBuilder().setEndpoint(myEndpoint).build();
- * AlphaAnalyticsDataClient alphaAnalyticsDataClient =
- *     AlphaAnalyticsDataClient.create(alphaAnalyticsDataSettings);
- * }
- * - *

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class AlphaAnalyticsDataClient implements BackgroundResource { - private final AlphaAnalyticsDataSettings settings; - private final AlphaAnalyticsDataStub stub; - - /** Constructs an instance of AlphaAnalyticsDataClient with default settings. */ - public static final AlphaAnalyticsDataClient create() throws IOException { - return create(AlphaAnalyticsDataSettings.newBuilder().build()); - } - - /** - * Constructs an instance of AlphaAnalyticsDataClient, 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 AlphaAnalyticsDataClient create(AlphaAnalyticsDataSettings settings) - throws IOException { - return new AlphaAnalyticsDataClient(settings); - } - - /** - * Constructs an instance of AlphaAnalyticsDataClient, using the given stub for making calls. This - * is for advanced usage - prefer using create(AlphaAnalyticsDataSettings). - */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public static final AlphaAnalyticsDataClient create(AlphaAnalyticsDataStub stub) { - return new AlphaAnalyticsDataClient(stub); - } - - /** - * Constructs an instance of AlphaAnalyticsDataClient, 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 AlphaAnalyticsDataClient(AlphaAnalyticsDataSettings settings) throws IOException { - this.settings = settings; - this.stub = ((AlphaAnalyticsDataStubSettings) settings.getStubSettings()).createStub(); - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - protected AlphaAnalyticsDataClient(AlphaAnalyticsDataStub stub) { - this.settings = null; - this.stub = stub; - } - - public final AlphaAnalyticsDataSettings getSettings() { - return settings; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public AlphaAnalyticsDataStub 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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   RunReportRequest request =
-   *       RunReportRequest.newBuilder()
-   *           .setEntity(Entity.newBuilder().build())
-   *           .addAllDimensions(new ArrayList())
-   *           .addAllMetrics(new ArrayList())
-   *           .addAllDateRanges(new ArrayList())
-   *           .setOffset(-1019779949)
-   *           .setLimit(102976443)
-   *           .addAllMetricAggregations(new ArrayList())
-   *           .setDimensionFilter(FilterExpression.newBuilder().build())
-   *           .setMetricFilter(FilterExpression.newBuilder().build())
-   *           .addAllOrderBys(new ArrayList())
-   *           .setCurrencyCode("currencyCode1004773790")
-   *           .setCohortSpec(CohortSpec.newBuilder().build())
-   *           .setKeepEmptyRows(true)
-   *           .setReturnPropertyQuota(true)
-   *           .build();
-   *   RunReportResponse response = alphaAnalyticsDataClient.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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   RunReportRequest request =
-   *       RunReportRequest.newBuilder()
-   *           .setEntity(Entity.newBuilder().build())
-   *           .addAllDimensions(new ArrayList())
-   *           .addAllMetrics(new ArrayList())
-   *           .addAllDateRanges(new ArrayList())
-   *           .setOffset(-1019779949)
-   *           .setLimit(102976443)
-   *           .addAllMetricAggregations(new ArrayList())
-   *           .setDimensionFilter(FilterExpression.newBuilder().build())
-   *           .setMetricFilter(FilterExpression.newBuilder().build())
-   *           .addAllOrderBys(new ArrayList())
-   *           .setCurrencyCode("currencyCode1004773790")
-   *           .setCohortSpec(CohortSpec.newBuilder().build())
-   *           .setKeepEmptyRows(true)
-   *           .setReturnPropertyQuota(true)
-   *           .build();
-   *   ApiFuture future =
-   *       alphaAnalyticsDataClient.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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   RunPivotReportRequest request =
-   *       RunPivotReportRequest.newBuilder()
-   *           .setEntity(Entity.newBuilder().build())
-   *           .addAllDimensions(new ArrayList())
-   *           .addAllMetrics(new ArrayList())
-   *           .setDimensionFilter(FilterExpression.newBuilder().build())
-   *           .setMetricFilter(FilterExpression.newBuilder().build())
-   *           .addAllPivots(new ArrayList())
-   *           .addAllDateRanges(new ArrayList())
-   *           .setCurrencyCode("currencyCode1004773790")
-   *           .setCohortSpec(CohortSpec.newBuilder().build())
-   *           .setKeepEmptyRows(true)
-   *           .setReturnPropertyQuota(true)
-   *           .build();
-   *   RunPivotReportResponse response = alphaAnalyticsDataClient.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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   RunPivotReportRequest request =
-   *       RunPivotReportRequest.newBuilder()
-   *           .setEntity(Entity.newBuilder().build())
-   *           .addAllDimensions(new ArrayList())
-   *           .addAllMetrics(new ArrayList())
-   *           .setDimensionFilter(FilterExpression.newBuilder().build())
-   *           .setMetricFilter(FilterExpression.newBuilder().build())
-   *           .addAllPivots(new ArrayList())
-   *           .addAllDateRanges(new ArrayList())
-   *           .setCurrencyCode("currencyCode1004773790")
-   *           .setCohortSpec(CohortSpec.newBuilder().build())
-   *           .setKeepEmptyRows(true)
-   *           .setReturnPropertyQuota(true)
-   *           .build();
-   *   ApiFuture future =
-   *       alphaAnalyticsDataClient.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 Entity. - * - *

Sample code: - * - *

{@code
-   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   BatchRunReportsRequest request =
-   *       BatchRunReportsRequest.newBuilder()
-   *           .setEntity(Entity.newBuilder().build())
-   *           .addAllRequests(new ArrayList())
-   *           .build();
-   *   BatchRunReportsResponse response = alphaAnalyticsDataClient.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 Entity. - * - *

Sample code: - * - *

{@code
-   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   BatchRunReportsRequest request =
-   *       BatchRunReportsRequest.newBuilder()
-   *           .setEntity(Entity.newBuilder().build())
-   *           .addAllRequests(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       alphaAnalyticsDataClient.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 Entity. - * - *

Sample code: - * - *

{@code
-   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   BatchRunPivotReportsRequest request =
-   *       BatchRunPivotReportsRequest.newBuilder()
-   *           .setEntity(Entity.newBuilder().build())
-   *           .addAllRequests(new ArrayList())
-   *           .build();
-   *   BatchRunPivotReportsResponse response =
-   *       alphaAnalyticsDataClient.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 Entity. - * - *

Sample code: - * - *

{@code
-   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   BatchRunPivotReportsRequest request =
-   *       BatchRunPivotReportsRequest.newBuilder()
-   *           .setEntity(Entity.newBuilder().build())
-   *           .addAllRequests(new ArrayList())
-   *           .build();
-   *   ApiFuture future =
-   *       alphaAnalyticsDataClient.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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   MetadataName name = MetadataName.of("[PROPERTY]");
-   *   Metadata response = alphaAnalyticsDataClient.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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   String name = MetadataName.of("[PROPERTY]").toString();
-   *   Metadata response = alphaAnalyticsDataClient.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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   GetMetadataRequest request =
-   *       GetMetadataRequest.newBuilder().setName(MetadataName.of("[PROPERTY]").toString()).build();
-   *   Metadata response = alphaAnalyticsDataClient.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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   GetMetadataRequest request =
-   *       GetMetadataRequest.newBuilder().setName(MetadataName.of("[PROPERTY]").toString()).build();
-   *   ApiFuture future =
-   *       alphaAnalyticsDataClient.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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   RunRealtimeReportRequest request =
-   *       RunRealtimeReportRequest.newBuilder()
-   *           .setProperty("property-993141291")
-   *           .addAllDimensions(new ArrayList())
-   *           .addAllMetrics(new ArrayList())
-   *           .setLimit(102976443)
-   *           .setDimensionFilter(FilterExpression.newBuilder().build())
-   *           .setMetricFilter(FilterExpression.newBuilder().build())
-   *           .addAllMetricAggregations(new ArrayList())
-   *           .addAllOrderBys(new ArrayList())
-   *           .setReturnPropertyQuota(true)
-   *           .build();
-   *   RunRealtimeReportResponse response = alphaAnalyticsDataClient.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 (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   RunRealtimeReportRequest request =
-   *       RunRealtimeReportRequest.newBuilder()
-   *           .setProperty("property-993141291")
-   *           .addAllDimensions(new ArrayList())
-   *           .addAllMetrics(new ArrayList())
-   *           .setLimit(102976443)
-   *           .setDimensionFilter(FilterExpression.newBuilder().build())
-   *           .setMetricFilter(FilterExpression.newBuilder().build())
-   *           .addAllMetricAggregations(new ArrayList())
-   *           .addAllOrderBys(new ArrayList())
-   *           .setReturnPropertyQuota(true)
-   *           .build();
-   *   ApiFuture future =
-   *       alphaAnalyticsDataClient.runRealtimeReportCallable().futureCall(request);
-   *   // Do something.
-   *   RunRealtimeReportResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - runRealtimeReportCallable() { - return stub.runRealtimeReportCallable(); - } - - @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/v1alpha/AlphaAnalyticsDataSettings.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java deleted file mode 100644 index 11bb9826..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java +++ /dev/null @@ -1,240 +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.v1alpha; - -import com.google.analytics.data.v1alpha.stub.AlphaAnalyticsDataStubSettings; -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 AlphaAnalyticsDataClient}. - * - *

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
- * AlphaAnalyticsDataSettings.Builder alphaAnalyticsDataSettingsBuilder =
- *     AlphaAnalyticsDataSettings.newBuilder();
- * alphaAnalyticsDataSettingsBuilder
- *     .runReportSettings()
- *     .setRetrySettings(
- *         alphaAnalyticsDataSettingsBuilder
- *             .runReportSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * AlphaAnalyticsDataSettings alphaAnalyticsDataSettings =
- *     alphaAnalyticsDataSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class AlphaAnalyticsDataSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to runReport. */ - public UnaryCallSettings runReportSettings() { - return ((AlphaAnalyticsDataStubSettings) getStubSettings()).runReportSettings(); - } - - /** Returns the object with the settings used for calls to runPivotReport. */ - public UnaryCallSettings runPivotReportSettings() { - return ((AlphaAnalyticsDataStubSettings) getStubSettings()).runPivotReportSettings(); - } - - /** Returns the object with the settings used for calls to batchRunReports. */ - public UnaryCallSettings - batchRunReportsSettings() { - return ((AlphaAnalyticsDataStubSettings) getStubSettings()).batchRunReportsSettings(); - } - - /** Returns the object with the settings used for calls to batchRunPivotReports. */ - public UnaryCallSettings - batchRunPivotReportsSettings() { - return ((AlphaAnalyticsDataStubSettings) getStubSettings()).batchRunPivotReportsSettings(); - } - - /** Returns the object with the settings used for calls to getMetadata. */ - public UnaryCallSettings getMetadataSettings() { - return ((AlphaAnalyticsDataStubSettings) getStubSettings()).getMetadataSettings(); - } - - /** Returns the object with the settings used for calls to runRealtimeReport. */ - public UnaryCallSettings - runRealtimeReportSettings() { - return ((AlphaAnalyticsDataStubSettings) getStubSettings()).runRealtimeReportSettings(); - } - - public static final AlphaAnalyticsDataSettings create(AlphaAnalyticsDataStubSettings stub) - throws IOException { - return new AlphaAnalyticsDataSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return AlphaAnalyticsDataStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return AlphaAnalyticsDataStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return AlphaAnalyticsDataStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return AlphaAnalyticsDataStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return AlphaAnalyticsDataStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return AlphaAnalyticsDataStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return AlphaAnalyticsDataStubSettings.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 AlphaAnalyticsDataSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for AlphaAnalyticsDataSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(AlphaAnalyticsDataStubSettings.newBuilder(clientContext)); - } - - protected Builder(AlphaAnalyticsDataSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(AlphaAnalyticsDataStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(AlphaAnalyticsDataStubSettings.newBuilder()); - } - - public AlphaAnalyticsDataStubSettings.Builder getStubSettingsBuilder() { - return ((AlphaAnalyticsDataStubSettings.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(); - } - - @Override - public AlphaAnalyticsDataSettings build() throws IOException { - return new AlphaAnalyticsDataSettings(this); - } - } -} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json deleted file mode 100644 index 39ab2589..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.analytics.data.v1alpha", - "libraryPackage": "com.google.analytics.data.v1alpha", - "services": { - "AlphaAnalyticsData": { - "clients": { - "grpc": { - "libraryClient": "AlphaAnalyticsDataClient", - "rpcs": { - "BatchRunPivotReports": { - "methods": ["batchRunPivotReports", "batchRunPivotReportsCallable"] - }, - "BatchRunReports": { - "methods": ["batchRunReports", "batchRunReportsCallable"] - }, - "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/v1alpha/package-info.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java deleted file mode 100644 index b5509079..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/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. - * - *

======================= AlphaAnalyticsDataClient ======================= - * - *

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

Sample for AlphaAnalyticsDataClient: - * - *

{@code
- * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
- *   RunReportRequest request =
- *       RunReportRequest.newBuilder()
- *           .setEntity(Entity.newBuilder().build())
- *           .addAllDimensions(new ArrayList())
- *           .addAllMetrics(new ArrayList())
- *           .addAllDateRanges(new ArrayList())
- *           .setOffset(-1019779949)
- *           .setLimit(102976443)
- *           .addAllMetricAggregations(new ArrayList())
- *           .setDimensionFilter(FilterExpression.newBuilder().build())
- *           .setMetricFilter(FilterExpression.newBuilder().build())
- *           .addAllOrderBys(new ArrayList())
- *           .setCurrencyCode("currencyCode1004773790")
- *           .setCohortSpec(CohortSpec.newBuilder().build())
- *           .setKeepEmptyRows(true)
- *           .setReturnPropertyQuota(true)
- *           .build();
- *   RunReportResponse response = alphaAnalyticsDataClient.runReport(request);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.analytics.data.v1alpha; - -import javax.annotation.Generated; diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java deleted file mode 100644 index 050b946a..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java +++ /dev/null @@ -1,74 +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.v1alpha.stub; - -import com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest; -import com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse; -import com.google.analytics.data.v1alpha.BatchRunReportsRequest; -import com.google.analytics.data.v1alpha.BatchRunReportsResponse; -import com.google.analytics.data.v1alpha.GetMetadataRequest; -import com.google.analytics.data.v1alpha.Metadata; -import com.google.analytics.data.v1alpha.RunPivotReportRequest; -import com.google.analytics.data.v1alpha.RunPivotReportResponse; -import com.google.analytics.data.v1alpha.RunRealtimeReportRequest; -import com.google.analytics.data.v1alpha.RunRealtimeReportResponse; -import com.google.analytics.data.v1alpha.RunReportRequest; -import com.google.analytics.data.v1alpha.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 AlphaAnalyticsData service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class AlphaAnalyticsDataStub 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()"); - } - - @Override - public abstract void close(); -} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java deleted file mode 100644 index 51d7bc92..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java +++ /dev/null @@ -1,426 +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.v1alpha.stub; - -import com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest; -import com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse; -import com.google.analytics.data.v1alpha.BatchRunReportsRequest; -import com.google.analytics.data.v1alpha.BatchRunReportsResponse; -import com.google.analytics.data.v1alpha.GetMetadataRequest; -import com.google.analytics.data.v1alpha.Metadata; -import com.google.analytics.data.v1alpha.RunPivotReportRequest; -import com.google.analytics.data.v1alpha.RunPivotReportResponse; -import com.google.analytics.data.v1alpha.RunRealtimeReportRequest; -import com.google.analytics.data.v1alpha.RunRealtimeReportResponse; -import com.google.analytics.data.v1alpha.RunReportRequest; -import com.google.analytics.data.v1alpha.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 AlphaAnalyticsDataStub}. - * - *

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
- * AlphaAnalyticsDataStubSettings.Builder alphaAnalyticsDataSettingsBuilder =
- *     AlphaAnalyticsDataStubSettings.newBuilder();
- * alphaAnalyticsDataSettingsBuilder
- *     .runReportSettings()
- *     .setRetrySettings(
- *         alphaAnalyticsDataSettingsBuilder
- *             .runReportSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * AlphaAnalyticsDataStubSettings alphaAnalyticsDataSettings =
- *     alphaAnalyticsDataSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class AlphaAnalyticsDataStubSettings 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; - - /** 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; - } - - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") - public AlphaAnalyticsDataStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcAlphaAnalyticsDataStub.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); - } - - /** 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(AlphaAnalyticsDataStubSettings.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 AlphaAnalyticsDataStubSettings(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(); - } - - /** Builder for AlphaAnalyticsDataStubSettings. */ - 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 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(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - runReportSettings, - runPivotReportSettings, - batchRunReportsSettings, - batchRunPivotReportsSettings, - getMetadataSettings, - runRealtimeReportSettings); - initDefaults(this); - } - - protected Builder(AlphaAnalyticsDataStubSettings 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(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - runReportSettings, - runPivotReportSettings, - batchRunReportsSettings, - batchRunPivotReportsSettings, - getMetadataSettings, - runRealtimeReportSettings); - } - - 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("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; - } - - @Override - public AlphaAnalyticsDataStubSettings build() throws IOException { - return new AlphaAnalyticsDataStubSettings(this); - } - } -} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataCallableFactory.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataCallableFactory.java deleted file mode 100644 index e5555dac..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataCallableFactory.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.v1alpha.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 AlphaAnalyticsData service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcAlphaAnalyticsDataCallableFactory 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/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java deleted file mode 100644 index 1ddd88dc..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java +++ /dev/null @@ -1,311 +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.v1alpha.stub; - -import com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest; -import com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse; -import com.google.analytics.data.v1alpha.BatchRunReportsRequest; -import com.google.analytics.data.v1alpha.BatchRunReportsResponse; -import com.google.analytics.data.v1alpha.GetMetadataRequest; -import com.google.analytics.data.v1alpha.Metadata; -import com.google.analytics.data.v1alpha.RunPivotReportRequest; -import com.google.analytics.data.v1alpha.RunPivotReportResponse; -import com.google.analytics.data.v1alpha.RunRealtimeReportRequest; -import com.google.analytics.data.v1alpha.RunRealtimeReportResponse; -import com.google.analytics.data.v1alpha.RunReportRequest; -import com.google.analytics.data.v1alpha.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 AlphaAnalyticsData service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { - private static final MethodDescriptor - runReportMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.data.v1alpha.AlphaAnalyticsData/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.v1alpha.AlphaAnalyticsData/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.v1alpha.AlphaAnalyticsData/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.v1alpha.AlphaAnalyticsData/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.v1alpha.AlphaAnalyticsData/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.v1alpha.AlphaAnalyticsData/RunRealtimeReport") - .setRequestMarshaller( - ProtoUtils.marshaller(RunRealtimeReportRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(RunRealtimeReportResponse.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 BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcAlphaAnalyticsDataStub create(AlphaAnalyticsDataStubSettings settings) - throws IOException { - return new GrpcAlphaAnalyticsDataStub(settings, ClientContext.create(settings)); - } - - public static final GrpcAlphaAnalyticsDataStub create(ClientContext clientContext) - throws IOException { - return new GrpcAlphaAnalyticsDataStub( - AlphaAnalyticsDataStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcAlphaAnalyticsDataStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcAlphaAnalyticsDataStub( - AlphaAnalyticsDataStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcAlphaAnalyticsDataStub, 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 GrpcAlphaAnalyticsDataStub( - AlphaAnalyticsDataStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcAlphaAnalyticsDataCallableFactory()); - } - - /** - * Constructs an instance of GrpcAlphaAnalyticsDataStub, 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 GrpcAlphaAnalyticsDataStub( - AlphaAnalyticsDataStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings runReportTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(runReportMethodDescriptor) - .build(); - GrpcCallSettings - runPivotReportTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(runPivotReportMethodDescriptor) - .build(); - GrpcCallSettings - batchRunReportsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchRunReportsMethodDescriptor) - .build(); - GrpcCallSettings - batchRunPivotReportsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(batchRunPivotReportsMethodDescriptor) - .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(); - - 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.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 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/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java index c0ab6913..6bc3ea3f 100644 --- 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 @@ -602,6 +602,81 @@ public final RunRealtimeReportResponse runRealtimeReport(RunRealtimeReportReques 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(); 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 index 63ef319d..1b53659a 100644 --- 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 @@ -100,6 +100,12 @@ public UnaryCallSettings getMetadataSettings() { 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(); @@ -231,6 +237,12 @@ public UnaryCallSettings.Builder getMetadataSettin 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 index 59503e06..2ef60309 100644 --- 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 @@ -16,6 +16,9 @@ "BatchRunReports": { "methods": ["batchRunReports", "batchRunReportsCallable"] }, + "CheckCompatibility": { + "methods": ["checkCompatibility", "checkCompatibilityCallable"] + }, "GetMetadata": { "methods": ["getMetadata", "getMetadata", "getMetadata", "getMetadataCallable"] }, 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 index 24b2ff66..96b8e57b 100644 --- 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 @@ -20,6 +20,8 @@ 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; @@ -69,6 +71,11 @@ public UnaryCallable getMetadataCallable() { 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 index 0122fea4..4606ba3a 100644 --- 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 @@ -20,6 +20,8 @@ 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; @@ -105,6 +107,8 @@ public class BetaAnalyticsDataStubSettings extends StubSettings getMetadataSettings; private final UnaryCallSettings runRealtimeReportSettings; + private final UnaryCallSettings + checkCompatibilitySettings; /** Returns the object with the settings used for calls to runReport. */ public UnaryCallSettings runReportSettings() { @@ -139,6 +143,12 @@ public UnaryCallSettings getMetadataSettings() { 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() @@ -173,7 +183,9 @@ public static List getDefaultServiceScopes() { /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder().setScopesToApply(DEFAULT_SERVICE_SCOPES); + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); } /** Returns a builder for the default ChannelProvider for this service. */ @@ -219,6 +231,7 @@ protected BetaAnalyticsDataStubSettings(Builder settingsBuilder) throws IOExcept batchRunPivotReportsSettings = settingsBuilder.batchRunPivotReportsSettings().build(); getMetadataSettings = settingsBuilder.getMetadataSettings().build(); runRealtimeReportSettings = settingsBuilder.runRealtimeReportSettings().build(); + checkCompatibilitySettings = settingsBuilder.checkCompatibilitySettings().build(); } /** Builder for BetaAnalyticsDataStubSettings. */ @@ -235,6 +248,8 @@ public static class Builder extends StubSettings.Builder getMetadataSettings; private final UnaryCallSettings.Builder runRealtimeReportSettings; + private final UnaryCallSettings.Builder + checkCompatibilitySettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -289,6 +304,7 @@ protected Builder(ClientContext clientContext) { batchRunPivotReportsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getMetadataSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); runRealtimeReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + checkCompatibilitySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -297,7 +313,8 @@ protected Builder(ClientContext clientContext) { batchRunReportsSettings, batchRunPivotReportsSettings, getMetadataSettings, - runRealtimeReportSettings); + runRealtimeReportSettings, + checkCompatibilitySettings); initDefaults(this); } @@ -310,6 +327,7 @@ protected Builder(BetaAnalyticsDataStubSettings settings) { batchRunPivotReportsSettings = settings.batchRunPivotReportsSettings.toBuilder(); getMetadataSettings = settings.getMetadataSettings.toBuilder(); runRealtimeReportSettings = settings.runRealtimeReportSettings.toBuilder(); + checkCompatibilitySettings = settings.checkCompatibilitySettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -318,7 +336,8 @@ protected Builder(BetaAnalyticsDataStubSettings settings) { batchRunReportsSettings, batchRunPivotReportsSettings, getMetadataSettings, - runRealtimeReportSettings); + runRealtimeReportSettings, + checkCompatibilitySettings); } private static Builder createDefault() { @@ -365,6 +384,11 @@ private static Builder initDefaults(Builder builder) { .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; } @@ -417,6 +441,12 @@ public UnaryCallSettings.Builder getMetadataSettin 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/GrpcBetaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/GrpcBetaAnalyticsDataStub.java index fedf5cbc..5994aba8 100644 --- 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 @@ -20,6 +20,8 @@ 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; @@ -114,6 +116,18 @@ public class GrpcBetaAnalyticsDataStub extends BetaAnalyticsDataStub { 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 @@ -123,6 +137,8 @@ public class GrpcBetaAnalyticsDataStub extends BetaAnalyticsDataStub { private final UnaryCallable getMetadataCallable; private final UnaryCallable runRealtimeReportCallable; + private final UnaryCallable + checkCompatibilityCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -232,6 +248,17 @@ protected GrpcBetaAnalyticsDataStub( 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( @@ -255,6 +282,11 @@ protected GrpcBetaAnalyticsDataStub( runRealtimeReportTransportSettings, settings.runRealtimeReportSettings(), clientContext); + this.checkCompatibilityCallable = + callableFactory.createUnaryCallable( + checkCompatibilityTransportSettings, + settings.checkCompatibilitySettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -296,6 +328,12 @@ public UnaryCallable getMetadataCallable() { return runRealtimeReportCallable; } + @Override + public UnaryCallable + checkCompatibilityCallable() { + return checkCompatibilityCallable; + } + @Override public final void close() { try { diff --git a/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java deleted file mode 100644 index c325f14f..00000000 --- a/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java +++ /dev/null @@ -1,501 +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.v1alpha; - -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 AlphaAnalyticsDataClientTest { - private static MockAlphaAnalyticsData mockAlphaAnalyticsData; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private AlphaAnalyticsDataClient client; - - @BeforeClass - public static void startStaticServer() { - mockAlphaAnalyticsData = new MockAlphaAnalyticsData(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockAlphaAnalyticsData)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - AlphaAnalyticsDataSettings settings = - AlphaAnalyticsDataSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = AlphaAnalyticsDataClient.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()) - .build(); - mockAlphaAnalyticsData.addResponse(expectedResponse); - - RunReportRequest request = - RunReportRequest.newBuilder() - .setEntity(Entity.newBuilder().build()) - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .addAllDateRanges(new ArrayList()) - .setOffset(-1019779949) - .setLimit(102976443) - .addAllMetricAggregations(new ArrayList()) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setMetricFilter(FilterExpression.newBuilder().build()) - .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 = mockAlphaAnalyticsData.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RunReportRequest actualRequest = ((RunReportRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getEntity(), actualRequest.getEntity()); - Assert.assertEquals(request.getDimensionsList(), actualRequest.getDimensionsList()); - Assert.assertEquals(request.getMetricsList(), actualRequest.getMetricsList()); - Assert.assertEquals(request.getDateRangesList(), actualRequest.getDateRangesList()); - Assert.assertEquals(request.getOffset(), actualRequest.getOffset()); - Assert.assertEquals(request.getLimit(), actualRequest.getLimit()); - Assert.assertEquals( - request.getMetricAggregationsList(), actualRequest.getMetricAggregationsList()); - Assert.assertEquals(request.getDimensionFilter(), actualRequest.getDimensionFilter()); - Assert.assertEquals(request.getMetricFilter(), actualRequest.getMetricFilter()); - 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); - mockAlphaAnalyticsData.addException(exception); - - try { - RunReportRequest request = - RunReportRequest.newBuilder() - .setEntity(Entity.newBuilder().build()) - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .addAllDateRanges(new ArrayList()) - .setOffset(-1019779949) - .setLimit(102976443) - .addAllMetricAggregations(new ArrayList()) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setMetricFilter(FilterExpression.newBuilder().build()) - .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()) - .build(); - mockAlphaAnalyticsData.addResponse(expectedResponse); - - RunPivotReportRequest request = - RunPivotReportRequest.newBuilder() - .setEntity(Entity.newBuilder().build()) - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setMetricFilter(FilterExpression.newBuilder().build()) - .addAllPivots(new ArrayList()) - .addAllDateRanges(new ArrayList()) - .setCurrencyCode("currencyCode1004773790") - .setCohortSpec(CohortSpec.newBuilder().build()) - .setKeepEmptyRows(true) - .setReturnPropertyQuota(true) - .build(); - - RunPivotReportResponse actualResponse = client.runPivotReport(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAlphaAnalyticsData.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RunPivotReportRequest actualRequest = ((RunPivotReportRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getEntity(), actualRequest.getEntity()); - 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.getPivotsList(), actualRequest.getPivotsList()); - Assert.assertEquals(request.getDateRangesList(), actualRequest.getDateRangesList()); - 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); - mockAlphaAnalyticsData.addException(exception); - - try { - RunPivotReportRequest request = - RunPivotReportRequest.newBuilder() - .setEntity(Entity.newBuilder().build()) - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setMetricFilter(FilterExpression.newBuilder().build()) - .addAllPivots(new ArrayList()) - .addAllDateRanges(new ArrayList()) - .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()) - .build(); - mockAlphaAnalyticsData.addResponse(expectedResponse); - - BatchRunReportsRequest request = - BatchRunReportsRequest.newBuilder() - .setEntity(Entity.newBuilder().build()) - .addAllRequests(new ArrayList()) - .build(); - - BatchRunReportsResponse actualResponse = client.batchRunReports(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAlphaAnalyticsData.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchRunReportsRequest actualRequest = ((BatchRunReportsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getEntity(), actualRequest.getEntity()); - 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); - mockAlphaAnalyticsData.addException(exception); - - try { - BatchRunReportsRequest request = - BatchRunReportsRequest.newBuilder() - .setEntity(Entity.newBuilder().build()) - .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()) - .build(); - mockAlphaAnalyticsData.addResponse(expectedResponse); - - BatchRunPivotReportsRequest request = - BatchRunPivotReportsRequest.newBuilder() - .setEntity(Entity.newBuilder().build()) - .addAllRequests(new ArrayList()) - .build(); - - BatchRunPivotReportsResponse actualResponse = client.batchRunPivotReports(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAlphaAnalyticsData.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - BatchRunPivotReportsRequest actualRequest = - ((BatchRunPivotReportsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getEntity(), actualRequest.getEntity()); - 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); - mockAlphaAnalyticsData.addException(exception); - - try { - BatchRunPivotReportsRequest request = - BatchRunPivotReportsRequest.newBuilder() - .setEntity(Entity.newBuilder().build()) - .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(); - mockAlphaAnalyticsData.addResponse(expectedResponse); - - MetadataName name = MetadataName.of("[PROPERTY]"); - - Metadata actualResponse = client.getMetadata(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAlphaAnalyticsData.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); - mockAlphaAnalyticsData.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(); - mockAlphaAnalyticsData.addResponse(expectedResponse); - - String name = "name3373707"; - - Metadata actualResponse = client.getMetadata(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAlphaAnalyticsData.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); - mockAlphaAnalyticsData.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()) - .build(); - mockAlphaAnalyticsData.addResponse(expectedResponse); - - RunRealtimeReportRequest request = - RunRealtimeReportRequest.newBuilder() - .setProperty("property-993141291") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .setLimit(102976443) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setMetricFilter(FilterExpression.newBuilder().build()) - .addAllMetricAggregations(new ArrayList()) - .addAllOrderBys(new ArrayList()) - .setReturnPropertyQuota(true) - .build(); - - RunRealtimeReportResponse actualResponse = client.runRealtimeReport(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAlphaAnalyticsData.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.getLimit(), actualRequest.getLimit()); - Assert.assertEquals(request.getDimensionFilter(), actualRequest.getDimensionFilter()); - Assert.assertEquals(request.getMetricFilter(), actualRequest.getMetricFilter()); - Assert.assertEquals( - request.getMetricAggregationsList(), actualRequest.getMetricAggregationsList()); - Assert.assertEquals(request.getOrderBysList(), actualRequest.getOrderBysList()); - Assert.assertEquals(request.getReturnPropertyQuota(), actualRequest.getReturnPropertyQuota()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void runRealtimeReportExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAlphaAnalyticsData.addException(exception); - - try { - RunRealtimeReportRequest request = - RunRealtimeReportRequest.newBuilder() - .setProperty("property-993141291") - .addAllDimensions(new ArrayList()) - .addAllMetrics(new ArrayList()) - .setLimit(102976443) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setMetricFilter(FilterExpression.newBuilder().build()) - .addAllMetricAggregations(new ArrayList()) - .addAllOrderBys(new ArrayList()) - .setReturnPropertyQuota(true) - .build(); - client.runRealtimeReport(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsData.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsData.java deleted file mode 100644 index 44452183..00000000 --- a/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsData.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.v1alpha; - -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 MockAlphaAnalyticsData implements MockGrpcService { - private final MockAlphaAnalyticsDataImpl serviceImpl; - - public MockAlphaAnalyticsData() { - serviceImpl = new MockAlphaAnalyticsDataImpl(); - } - - @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/v1alpha/MockAlphaAnalyticsDataImpl.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java deleted file mode 100644 index 444ed830..00000000 --- a/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java +++ /dev/null @@ -1,187 +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.v1alpha; - -import com.google.analytics.data.v1alpha.AlphaAnalyticsDataGrpc.AlphaAnalyticsDataImplBase; -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 MockAlphaAnalyticsDataImpl extends AlphaAnalyticsDataImplBase { - private List requests; - private Queue responses; - - public MockAlphaAnalyticsDataImpl() { - 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()))); - } - } -} 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 index 9606ddb4..5a705d40 100644 --- 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 @@ -506,4 +506,64 @@ public void runRealtimeReportExceptionTest() throws Exception { // 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/MockBetaAnalyticsDataImpl.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/MockBetaAnalyticsDataImpl.java index bb6e3dc3..618d05c2 100644 --- 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 @@ -184,4 +184,26 @@ public void runRealtimeReport( 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-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml deleted file mode 100644 index ec48a80f..00000000 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ /dev/null @@ -1,65 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-analytics-data-v1alpha - 0.10.3-SNAPSHOT - grpc-google-analytics-data-v1alpha - GRPC library for grpc-google-analytics-data-v1alpha - - 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-v1alpha - - - 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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java b/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java deleted file mode 100644 index e830e901..00000000 --- a/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java +++ /dev/null @@ -1,1059 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Google Analytics reporting data service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/analytics/data/v1alpha/analytics_data_api.proto") -public final class AlphaAnalyticsDataGrpc { - - private AlphaAnalyticsDataGrpc() {} - - public static final String SERVICE_NAME = "google.analytics.data.v1alpha.AlphaAnalyticsData"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.RunReportRequest, - com.google.analytics.data.v1alpha.RunReportResponse> - getRunReportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunReport", - requestType = com.google.analytics.data.v1alpha.RunReportRequest.class, - responseType = com.google.analytics.data.v1alpha.RunReportResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.RunReportRequest, - com.google.analytics.data.v1alpha.RunReportResponse> - getRunReportMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.RunReportRequest, - com.google.analytics.data.v1alpha.RunReportResponse> - getRunReportMethod; - if ((getRunReportMethod = AlphaAnalyticsDataGrpc.getRunReportMethod) == null) { - synchronized (AlphaAnalyticsDataGrpc.class) { - if ((getRunReportMethod = AlphaAnalyticsDataGrpc.getRunReportMethod) == null) { - AlphaAnalyticsDataGrpc.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.v1alpha.RunReportRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1alpha.RunReportResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AlphaAnalyticsDataMethodDescriptorSupplier("RunReport")) - .build(); - } - } - } - return getRunReportMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.RunPivotReportRequest, - com.google.analytics.data.v1alpha.RunPivotReportResponse> - getRunPivotReportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunPivotReport", - requestType = com.google.analytics.data.v1alpha.RunPivotReportRequest.class, - responseType = com.google.analytics.data.v1alpha.RunPivotReportResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.RunPivotReportRequest, - com.google.analytics.data.v1alpha.RunPivotReportResponse> - getRunPivotReportMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.RunPivotReportRequest, - com.google.analytics.data.v1alpha.RunPivotReportResponse> - getRunPivotReportMethod; - if ((getRunPivotReportMethod = AlphaAnalyticsDataGrpc.getRunPivotReportMethod) == null) { - synchronized (AlphaAnalyticsDataGrpc.class) { - if ((getRunPivotReportMethod = AlphaAnalyticsDataGrpc.getRunPivotReportMethod) == null) { - AlphaAnalyticsDataGrpc.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.v1alpha.RunPivotReportRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1alpha.RunPivotReportResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AlphaAnalyticsDataMethodDescriptorSupplier("RunPivotReport")) - .build(); - } - } - } - return getRunPivotReportMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.BatchRunReportsRequest, - com.google.analytics.data.v1alpha.BatchRunReportsResponse> - getBatchRunReportsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchRunReports", - requestType = com.google.analytics.data.v1alpha.BatchRunReportsRequest.class, - responseType = com.google.analytics.data.v1alpha.BatchRunReportsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.BatchRunReportsRequest, - com.google.analytics.data.v1alpha.BatchRunReportsResponse> - getBatchRunReportsMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.BatchRunReportsRequest, - com.google.analytics.data.v1alpha.BatchRunReportsResponse> - getBatchRunReportsMethod; - if ((getBatchRunReportsMethod = AlphaAnalyticsDataGrpc.getBatchRunReportsMethod) == null) { - synchronized (AlphaAnalyticsDataGrpc.class) { - if ((getBatchRunReportsMethod = AlphaAnalyticsDataGrpc.getBatchRunReportsMethod) == null) { - AlphaAnalyticsDataGrpc.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.v1alpha.BatchRunReportsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1alpha.BatchRunReportsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AlphaAnalyticsDataMethodDescriptorSupplier("BatchRunReports")) - .build(); - } - } - } - return getBatchRunReportsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest, - com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse> - getBatchRunPivotReportsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "BatchRunPivotReports", - requestType = com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest.class, - responseType = com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest, - com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse> - getBatchRunPivotReportsMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest, - com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse> - getBatchRunPivotReportsMethod; - if ((getBatchRunPivotReportsMethod = AlphaAnalyticsDataGrpc.getBatchRunPivotReportsMethod) - == null) { - synchronized (AlphaAnalyticsDataGrpc.class) { - if ((getBatchRunPivotReportsMethod = AlphaAnalyticsDataGrpc.getBatchRunPivotReportsMethod) - == null) { - AlphaAnalyticsDataGrpc.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.v1alpha.BatchRunPivotReportsRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AlphaAnalyticsDataMethodDescriptorSupplier("BatchRunPivotReports")) - .build(); - } - } - } - return getBatchRunPivotReportsMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.GetMetadataRequest, - com.google.analytics.data.v1alpha.Metadata> - getGetMetadataMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetMetadata", - requestType = com.google.analytics.data.v1alpha.GetMetadataRequest.class, - responseType = com.google.analytics.data.v1alpha.Metadata.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.GetMetadataRequest, - com.google.analytics.data.v1alpha.Metadata> - getGetMetadataMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.GetMetadataRequest, - com.google.analytics.data.v1alpha.Metadata> - getGetMetadataMethod; - if ((getGetMetadataMethod = AlphaAnalyticsDataGrpc.getGetMetadataMethod) == null) { - synchronized (AlphaAnalyticsDataGrpc.class) { - if ((getGetMetadataMethod = AlphaAnalyticsDataGrpc.getGetMetadataMethod) == null) { - AlphaAnalyticsDataGrpc.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.v1alpha.GetMetadataRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1alpha.Metadata.getDefaultInstance())) - .setSchemaDescriptor( - new AlphaAnalyticsDataMethodDescriptorSupplier("GetMetadata")) - .build(); - } - } - } - return getGetMetadataMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.RunRealtimeReportRequest, - com.google.analytics.data.v1alpha.RunRealtimeReportResponse> - getRunRealtimeReportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunRealtimeReport", - requestType = com.google.analytics.data.v1alpha.RunRealtimeReportRequest.class, - responseType = com.google.analytics.data.v1alpha.RunRealtimeReportResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.RunRealtimeReportRequest, - com.google.analytics.data.v1alpha.RunRealtimeReportResponse> - getRunRealtimeReportMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.RunRealtimeReportRequest, - com.google.analytics.data.v1alpha.RunRealtimeReportResponse> - getRunRealtimeReportMethod; - if ((getRunRealtimeReportMethod = AlphaAnalyticsDataGrpc.getRunRealtimeReportMethod) == null) { - synchronized (AlphaAnalyticsDataGrpc.class) { - if ((getRunRealtimeReportMethod = AlphaAnalyticsDataGrpc.getRunRealtimeReportMethod) - == null) { - AlphaAnalyticsDataGrpc.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.v1alpha.RunRealtimeReportRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1alpha.RunRealtimeReportResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AlphaAnalyticsDataMethodDescriptorSupplier("RunRealtimeReport")) - .build(); - } - } - } - return getRunRealtimeReportMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AlphaAnalyticsDataStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AlphaAnalyticsDataStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AlphaAnalyticsDataStub(channel, callOptions); - } - }; - return AlphaAnalyticsDataStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AlphaAnalyticsDataBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AlphaAnalyticsDataBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AlphaAnalyticsDataBlockingStub(channel, callOptions); - } - }; - return AlphaAnalyticsDataBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AlphaAnalyticsDataFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AlphaAnalyticsDataFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AlphaAnalyticsDataFutureStub(channel, callOptions); - } - }; - return AlphaAnalyticsDataFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Google Analytics reporting data service.
-   * 
- */ - public abstract static class AlphaAnalyticsDataImplBase 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.v1alpha.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.v1alpha.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
-     * Entity.
-     * 
- */ - public void batchRunReports( - com.google.analytics.data.v1alpha.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
-     * Entity.
-     * 
- */ - public void batchRunPivotReports( - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.RunRealtimeReportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRunRealtimeReportMethod(), 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.v1alpha.RunReportRequest, - com.google.analytics.data.v1alpha.RunReportResponse>( - this, METHODID_RUN_REPORT))) - .addMethod( - getRunPivotReportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.data.v1alpha.RunPivotReportRequest, - com.google.analytics.data.v1alpha.RunPivotReportResponse>( - this, METHODID_RUN_PIVOT_REPORT))) - .addMethod( - getBatchRunReportsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.data.v1alpha.BatchRunReportsRequest, - com.google.analytics.data.v1alpha.BatchRunReportsResponse>( - this, METHODID_BATCH_RUN_REPORTS))) - .addMethod( - getBatchRunPivotReportsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest, - com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse>( - this, METHODID_BATCH_RUN_PIVOT_REPORTS))) - .addMethod( - getGetMetadataMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.data.v1alpha.GetMetadataRequest, - com.google.analytics.data.v1alpha.Metadata>(this, METHODID_GET_METADATA))) - .addMethod( - getRunRealtimeReportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.data.v1alpha.RunRealtimeReportRequest, - com.google.analytics.data.v1alpha.RunRealtimeReportResponse>( - this, METHODID_RUN_REALTIME_REPORT))) - .build(); - } - } - - /** - * - * - *
-   * Google Analytics reporting data service.
-   * 
- */ - public static final class AlphaAnalyticsDataStub - extends io.grpc.stub.AbstractAsyncStub { - private AlphaAnalyticsDataStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AlphaAnalyticsDataStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AlphaAnalyticsDataStub(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.v1alpha.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.v1alpha.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
-     * Entity.
-     * 
- */ - public void batchRunReports( - com.google.analytics.data.v1alpha.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
-     * Entity.
-     * 
- */ - public void batchRunPivotReports( - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.RunRealtimeReportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunRealtimeReportMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Google Analytics reporting data service.
-   * 
- */ - public static final class AlphaAnalyticsDataBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AlphaAnalyticsDataBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AlphaAnalyticsDataBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AlphaAnalyticsDataBlockingStub(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.v1alpha.RunReportResponse runReport( - com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportResponse runPivotReport( - com.google.analytics.data.v1alpha.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
-     * Entity.
-     * 
- */ - public com.google.analytics.data.v1alpha.BatchRunReportsResponse batchRunReports( - com.google.analytics.data.v1alpha.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
-     * Entity.
-     * 
- */ - public com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse batchRunPivotReports( - com.google.analytics.data.v1alpha.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.v1alpha.Metadata getMetadata( - com.google.analytics.data.v1alpha.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.v1alpha.RunRealtimeReportResponse runRealtimeReport( - com.google.analytics.data.v1alpha.RunRealtimeReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunRealtimeReportMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Google Analytics reporting data service.
-   * 
- */ - public static final class AlphaAnalyticsDataFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AlphaAnalyticsDataFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AlphaAnalyticsDataFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AlphaAnalyticsDataFutureStub(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.v1alpha.RunReportResponse> - runReport(com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportResponse> - runPivotReport(com.google.analytics.data.v1alpha.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
-     * Entity.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.data.v1alpha.BatchRunReportsResponse> - batchRunReports(com.google.analytics.data.v1alpha.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
-     * Entity.
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse> - batchRunPivotReports( - com.google.analytics.data.v1alpha.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.v1alpha.Metadata> - getMetadata(com.google.analytics.data.v1alpha.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.v1alpha.RunRealtimeReportResponse> - runRealtimeReport(com.google.analytics.data.v1alpha.RunRealtimeReportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunRealtimeReportMethod(), 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 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 AlphaAnalyticsDataImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AlphaAnalyticsDataImplBase 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.v1alpha.RunReportRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RUN_PIVOT_REPORT: - serviceImpl.runPivotReport( - (com.google.analytics.data.v1alpha.RunPivotReportRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.data.v1alpha.RunPivotReportResponse>) - responseObserver); - break; - case METHODID_BATCH_RUN_REPORTS: - serviceImpl.batchRunReports( - (com.google.analytics.data.v1alpha.BatchRunReportsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.data.v1alpha.BatchRunReportsResponse>) - responseObserver); - break; - case METHODID_BATCH_RUN_PIVOT_REPORTS: - serviceImpl.batchRunPivotReports( - (com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse>) - responseObserver); - break; - case METHODID_GET_METADATA: - serviceImpl.getMetadata( - (com.google.analytics.data.v1alpha.GetMetadataRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; - case METHODID_RUN_REALTIME_REPORT: - serviceImpl.runRealtimeReport( - (com.google.analytics.data.v1alpha.RunRealtimeReportRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.data.v1alpha.RunRealtimeReportResponse>) - 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 AlphaAnalyticsDataBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AlphaAnalyticsDataBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AlphaAnalyticsData"); - } - } - - private static final class AlphaAnalyticsDataFileDescriptorSupplier - extends AlphaAnalyticsDataBaseDescriptorSupplier { - AlphaAnalyticsDataFileDescriptorSupplier() {} - } - - private static final class AlphaAnalyticsDataMethodDescriptorSupplier - extends AlphaAnalyticsDataBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AlphaAnalyticsDataMethodDescriptorSupplier(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 (AlphaAnalyticsDataGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AlphaAnalyticsDataFileDescriptorSupplier()) - .addMethod(getRunReportMethod()) - .addMethod(getRunPivotReportMethod()) - .addMethod(getBatchRunReportsMethod()) - .addMethod(getBatchRunPivotReportsMethod()) - .addMethod(getGetMetadataMethod()) - .addMethod(getRunRealtimeReportMethod()) - .build(); - } - } - } - return result; - } -} 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 index d986ee45..96a73f49 100644 --- 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 @@ -319,6 +319,54 @@ private BetaAnalyticsDataGrpc() {} 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 = @@ -479,6 +527,28 @@ public void runRealtimeReport( 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()) @@ -523,6 +593,13 @@ public final io.grpc.ServerServiceDefinition bindService() { 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(); } } @@ -666,6 +743,30 @@ public void runRealtimeReport( 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); + } } /** @@ -787,6 +888,26 @@ public com.google.analytics.data.v1beta.RunRealtimeReportResponse runRealtimeRep 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); + } } /** @@ -913,6 +1034,27 @@ protected BetaAnalyticsDataFutureStub build( 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; @@ -921,6 +1063,7 @@ protected BetaAnalyticsDataFutureStub build( 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, @@ -978,6 +1121,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv 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(); } @@ -1048,6 +1198,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getBatchRunPivotReportsMethod()) .addMethod(getGetMetadataMethod()) .addMethod(getRunRealtimeReportMethod()) + .addMethod(getCheckCompatibilityMethod()) .build(); } } diff --git a/pom.xml b/pom.xml index d0b5d7d3..f8d4b03d 100644 --- a/pom.xml +++ b/pom.xml @@ -63,21 +63,11 @@ google-analytics-data 0.10.3-SNAPSHOT - - com.google.api.grpc - proto-google-analytics-data-v1alpha - 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-v1alpha - 0.10.3-SNAPSHOT - com.google.api.grpc grpc-google-analytics-data-v1beta @@ -113,9 +103,7 @@ google-analytics-data - grpc-google-analytics-data-v1alpha grpc-google-analytics-data-v1beta - proto-google-analytics-data-v1alpha proto-google-analytics-data-v1beta google-analytics-data-bom diff --git a/proto-google-analytics-data-v1alpha/clirr-ignored-differences.xml b/proto-google-analytics-data-v1alpha/clirr-ignored-differences.xml deleted file mode 100644 index 00405bc0..00000000 --- a/proto-google-analytics-data-v1alpha/clirr-ignored-differences.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - 7012 - com/google/analytics/data/v1alpha/*OrBuilder - * get*(*) - - - 7012 - com/google/analytics/data/v1alpha/*OrBuilder - boolean contains*(*) - - - 7012 - com/google/analytics/data/v1alpha/*OrBuilder - boolean has*(*) - - diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml deleted file mode 100644 index a43c5acd..00000000 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ /dev/null @@ -1,42 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-analytics-data-v1alpha - 0.10.3-SNAPSHOT - proto-google-analytics-data-v1alpha - PROTO library for proto-google-analytics-data-v1alpha - - 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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java deleted file mode 100644 index d8fbbec7..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java +++ /dev/null @@ -1,408 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -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_v1alpha_Metadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Metadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_RunReportRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_RunReportRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_RunReportResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_RunReportResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_RunPivotReportRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_RunPivotReportRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_RunPivotReportResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_RunPivotReportResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_BatchRunReportsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_BatchRunReportsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_BatchRunReportsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_BatchRunReportsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_GetMetadataRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_RunRealtimeReportRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_RunRealtimeReportRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_RunRealtimeReportResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_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 = { - "\n6google/analytics/data/v1alpha/analytic" - + "s_data_api.proto\022\035google.analytics.data." - + "v1alpha\032(google/analytics/data/v1alpha/d" - + "ata.proto\032\034google/api/annotations.proto\032" - + "\027google/api/client.proto\032\037google/api/fie" - + "ld_behavior.proto\032\031google/api/resource.p" - + "roto\"\352\001\n\010Metadata\022\014\n\004name\030\003 \001(\t\022D\n\ndimen" - + "sions\030\001 \003(\01320.google.analytics.data.v1al" - + "pha.DimensionMetadata\022>\n\007metrics\030\002 \003(\0132-" - + ".google.analytics.data.v1alpha.MetricMet" - + "adata:J\352AG\n%analyticsdata.googleapis.com" - + "/Metadata\022\036properties/{property}/metadat" - + "a\"\311\005\n\020RunReportRequest\0225\n\006entity\030\001 \001(\0132%" - + ".google.analytics.data.v1alpha.Entity\022<\n" - + "\ndimensions\030\002 \003(\0132(.google.analytics.dat" - + "a.v1alpha.Dimension\0226\n\007metrics\030\003 \003(\0132%.g" - + "oogle.analytics.data.v1alpha.Metric\022=\n\013d" - + "ate_ranges\030\004 \003(\0132(.google.analytics.data" - + ".v1alpha.DateRange\022\016\n\006offset\030\005 \001(\003\022\r\n\005li" - + "mit\030\006 \001(\003\022M\n\023metric_aggregations\030\007 \003(\01620" - + ".google.analytics.data.v1alpha.MetricAgg" - + "regation\022I\n\020dimension_filter\030\010 \001(\0132/.goo" - + "gle.analytics.data.v1alpha.FilterExpress" - + "ion\022F\n\rmetric_filter\030\t \001(\0132/.google.anal" - + "ytics.data.v1alpha.FilterExpression\0229\n\to" - + "rder_bys\030\n \003(\0132&.google.analytics.data.v" - + "1alpha.OrderBy\022\025\n\rcurrency_code\030\013 \001(\t\022>\n" - + "\013cohort_spec\030\014 \001(\0132).google.analytics.da" - + "ta.v1alpha.CohortSpec\022\027\n\017keep_empty_rows" - + "\030\r \001(\010\022\035\n\025return_property_quota\030\016 \001(\010\"\221\004" - + "\n\021RunReportResponse\022I\n\021dimension_headers" - + "\030\013 \003(\0132..google.analytics.data.v1alpha.D" - + "imensionHeader\022C\n\016metric_headers\030\001 \003(\0132+" - + ".google.analytics.data.v1alpha.MetricHea" - + "der\0220\n\004rows\030\002 \003(\0132\".google.analytics.dat" - + "a.v1alpha.Row\0222\n\006totals\030\010 \003(\0132\".google.a" - + "nalytics.data.v1alpha.Row\0224\n\010maximums\030\t " - + "\003(\0132\".google.analytics.data.v1alpha.Row\022" - + "4\n\010minimums\030\n \003(\0132\".google.analytics.dat" - + "a.v1alpha.Row\022\021\n\trow_count\030\014 \001(\005\022A\n\010meta" - + "data\030\006 \001(\0132/.google.analytics.data.v1alp" - + "ha.ResponseMetaData\022D\n\016property_quota\030\007 " - + "\001(\0132,.google.analytics.data.v1alpha.Prop" - + "ertyQuota\"\333\004\n\025RunPivotReportRequest\0225\n\006e" - + "ntity\030\001 \001(\0132%.google.analytics.data.v1al" - + "pha.Entity\022<\n\ndimensions\030\002 \003(\0132(.google." - + "analytics.data.v1alpha.Dimension\0226\n\007metr" - + "ics\030\003 \003(\0132%.google.analytics.data.v1alph" - + "a.Metric\022I\n\020dimension_filter\030\004 \001(\0132/.goo" - + "gle.analytics.data.v1alpha.FilterExpress" - + "ion\022F\n\rmetric_filter\030\005 \001(\0132/.google.anal" - + "ytics.data.v1alpha.FilterExpression\0224\n\006p" - + "ivots\030\006 \003(\0132$.google.analytics.data.v1al" - + "pha.Pivot\022=\n\013date_ranges\030\007 \003(\0132(.google." - + "analytics.data.v1alpha.DateRange\022\025\n\rcurr" - + "ency_code\030\010 \001(\t\022>\n\013cohort_spec\030\t \001(\0132).g" - + "oogle.analytics.data.v1alpha.CohortSpec\022" - + "\027\n\017keep_empty_rows\030\n \001(\010\022\035\n\025return_prope" - + "rty_quota\030\013 \001(\010\"\336\003\n\026RunPivotReportRespon" - + "se\022A\n\rpivot_headers\030\001 \003(\0132*.google.analy" - + "tics.data.v1alpha.PivotHeader\022I\n\021dimensi" - + "on_headers\030\007 \003(\0132..google.analytics.data" - + ".v1alpha.DimensionHeader\022C\n\016metric_heade" - + "rs\030\002 \003(\0132+.google.analytics.data.v1alpha" - + ".MetricHeader\0220\n\004rows\030\003 \003(\0132\".google.ana" - + "lytics.data.v1alpha.Row\0226\n\naggregates\030\004 " - + "\003(\0132\".google.analytics.data.v1alpha.Row\022" - + "A\n\010metadata\030\005 \001(\0132/.google.analytics.dat" - + "a.v1alpha.ResponseMetaData\022D\n\016property_q" - + "uota\030\006 \001(\0132,.google.analytics.data.v1alp" - + "ha.PropertyQuota\"\222\001\n\026BatchRunReportsRequ" - + "est\0225\n\006entity\030\001 \001(\0132%.google.analytics.d" - + "ata.v1alpha.Entity\022A\n\010requests\030\002 \003(\0132/.g" - + "oogle.analytics.data.v1alpha.RunReportRe" - + "quest\"\\\n\027BatchRunReportsResponse\022A\n\007repo" - + "rts\030\001 \003(\01320.google.analytics.data.v1alph" - + "a.RunReportResponse\"\234\001\n\033BatchRunPivotRep" - + "ortsRequest\0225\n\006entity\030\001 \001(\0132%.google.ana" - + "lytics.data.v1alpha.Entity\022F\n\010requests\030\002" - + " \003(\01324.google.analytics.data.v1alpha.Run" - + "PivotReportRequest\"l\n\034BatchRunPivotRepor" - + "tsResponse\022L\n\rpivot_reports\030\001 \003(\01325.goog" - + "le.analytics.data.v1alpha.RunPivotReport" - + "Response\"Q\n\022GetMetadataRequest\022;\n\004name\030\001" - + " \001(\tB-\340A\002\372A\'\n%analyticsdata.googleapis.c" - + "om/Metadata\"\355\003\n\030RunRealtimeReportRequest" - + "\022\020\n\010property\030\001 \001(\t\022<\n\ndimensions\030\002 \003(\0132(" - + ".google.analytics.data.v1alpha.Dimension" - + "\0226\n\007metrics\030\003 \003(\0132%.google.analytics.dat" - + "a.v1alpha.Metric\022\r\n\005limit\030\004 \001(\003\022I\n\020dimen" - + "sion_filter\030\005 \001(\0132/.google.analytics.dat" - + "a.v1alpha.FilterExpression\022F\n\rmetric_fil" - + "ter\030\006 \001(\0132/.google.analytics.data.v1alph" - + "a.FilterExpression\022M\n\023metric_aggregation" - + "s\030\007 \003(\01620.google.analytics.data.v1alpha." - + "MetricAggregation\0229\n\torder_bys\030\010 \003(\0132&.g" - + "oogle.analytics.data.v1alpha.OrderBy\022\035\n\025" - + "return_property_quota\030\t \001(\010\"\326\003\n\031RunRealt" - + "imeReportResponse\022I\n\021dimension_headers\030\001" - + " \003(\0132..google.analytics.data.v1alpha.Dim" - + "ensionHeader\022C\n\016metric_headers\030\002 \003(\0132+.g" - + "oogle.analytics.data.v1alpha.MetricHeade" - + "r\0220\n\004rows\030\003 \003(\0132\".google.analytics.data." - + "v1alpha.Row\0222\n\006totals\030\004 \003(\0132\".google.ana" - + "lytics.data.v1alpha.Row\0224\n\010maximums\030\005 \003(" - + "\0132\".google.analytics.data.v1alpha.Row\0224\n" - + "\010minimums\030\006 \003(\0132\".google.analytics.data." - + "v1alpha.Row\022\021\n\trow_count\030\007 \001(\005\022D\n\016proper" - + "ty_quota\030\010 \001(\0132,.google.analytics.data.v" - + "1alpha.PropertyQuota2\226\t\n\022AlphaAnalyticsD" - + "ata\022\215\001\n\tRunReport\022/.google.analytics.dat" - + "a.v1alpha.RunReportRequest\0320.google.anal" - + "ytics.data.v1alpha.RunReportResponse\"\035\202\323" - + "\344\223\002\027\"\022/v1alpha:runReport:\001*\022\241\001\n\016RunPivot" - + "Report\0224.google.analytics.data.v1alpha.R" - + "unPivotReportRequest\0325.google.analytics." - + "data.v1alpha.RunPivotReportResponse\"\"\202\323\344" - + "\223\002\034\"\027/v1alpha:runPivotReport:\001*\022\245\001\n\017Batc" - + "hRunReports\0225.google.analytics.data.v1al" - + "pha.BatchRunReportsRequest\0326.google.anal" - + "ytics.data.v1alpha.BatchRunReportsRespon" - + "se\"#\202\323\344\223\002\035\"\030/v1alpha:batchRunReports:\001*\022" - + "\271\001\n\024BatchRunPivotReports\022:.google.analyt" - + "ics.data.v1alpha.BatchRunPivotReportsReq" - + "uest\032;.google.analytics.data.v1alpha.Bat" - + "chRunPivotReportsResponse\"(\202\323\344\223\002\"\"\035/v1al" - + "pha:batchRunPivotReports:\001*\022\237\001\n\013GetMetad" - + "ata\0221.google.analytics.data.v1alpha.GetM" - + "etadataRequest\032\'.google.analytics.data.v" - + "1alpha.Metadata\"4\202\323\344\223\002\'\022%/v1alpha/{name=" - + "properties/*/metadata}\332A\004name\022\305\001\n\021RunRea" - + "ltimeReport\0227.google.analytics.data.v1al" - + "pha.RunRealtimeReportRequest\0328.google.an" - + "alytics.data.v1alpha.RunRealtimeReportRe" - + "sponse\"=\202\323\344\223\0027\"2/v1alpha/{property=prope" - + "rties/*}:runRealtimeReport:\001*\032~\312A\034analyt" - + "icsdata.googleapis.com\322A\\https://www.goo" - + "gleapis.com/auth/analytics,https://www.g" - + "oogleapis.com/auth/analytics.readonlyB\177\n" - + "!com.google.analytics.data.v1alphaB\025Anal" - + "yticsDataApiProtoP\001ZAgoogle.golang.org/g" - + "enproto/googleapis/analytics/data/v1alph" - + "a;datab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.analytics.data.v1alpha.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_v1alpha_Metadata_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_data_v1alpha_Metadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Metadata_descriptor, - new java.lang.String[] { - "Name", "Dimensions", "Metrics", - }); - internal_static_google_analytics_data_v1alpha_RunReportRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_data_v1alpha_RunReportRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_RunReportRequest_descriptor, - new java.lang.String[] { - "Entity", - "Dimensions", - "Metrics", - "DateRanges", - "Offset", - "Limit", - "MetricAggregations", - "DimensionFilter", - "MetricFilter", - "OrderBys", - "CurrencyCode", - "CohortSpec", - "KeepEmptyRows", - "ReturnPropertyQuota", - }); - internal_static_google_analytics_data_v1alpha_RunReportResponse_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_data_v1alpha_RunReportResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_RunReportResponse_descriptor, - new java.lang.String[] { - "DimensionHeaders", - "MetricHeaders", - "Rows", - "Totals", - "Maximums", - "Minimums", - "RowCount", - "Metadata", - "PropertyQuota", - }); - internal_static_google_analytics_data_v1alpha_RunPivotReportRequest_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_data_v1alpha_RunPivotReportRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_RunPivotReportRequest_descriptor, - new java.lang.String[] { - "Entity", - "Dimensions", - "Metrics", - "DimensionFilter", - "MetricFilter", - "Pivots", - "DateRanges", - "CurrencyCode", - "CohortSpec", - "KeepEmptyRows", - "ReturnPropertyQuota", - }); - internal_static_google_analytics_data_v1alpha_RunPivotReportResponse_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_data_v1alpha_RunPivotReportResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_RunPivotReportResponse_descriptor, - new java.lang.String[] { - "PivotHeaders", - "DimensionHeaders", - "MetricHeaders", - "Rows", - "Aggregates", - "Metadata", - "PropertyQuota", - }); - internal_static_google_analytics_data_v1alpha_BatchRunReportsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_analytics_data_v1alpha_BatchRunReportsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_BatchRunReportsRequest_descriptor, - new java.lang.String[] { - "Entity", "Requests", - }); - internal_static_google_analytics_data_v1alpha_BatchRunReportsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_analytics_data_v1alpha_BatchRunReportsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_BatchRunReportsResponse_descriptor, - new java.lang.String[] { - "Reports", - }); - internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsRequest_descriptor, - new java.lang.String[] { - "Entity", "Requests", - }); - internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsResponse_descriptor, - new java.lang.String[] { - "PivotReports", - }); - internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_analytics_data_v1alpha_GetMetadataRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_data_v1alpha_RunRealtimeReportRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_analytics_data_v1alpha_RunRealtimeReportRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_RunRealtimeReportRequest_descriptor, - new java.lang.String[] { - "Property", - "Dimensions", - "Metrics", - "Limit", - "DimensionFilter", - "MetricFilter", - "MetricAggregations", - "OrderBys", - "ReturnPropertyQuota", - }); - internal_static_google_analytics_data_v1alpha_RunRealtimeReportResponse_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_analytics_data_v1alpha_RunRealtimeReportResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_RunRealtimeReportResponse_descriptor, - new java.lang.String[] { - "DimensionHeaders", - "MetricHeaders", - "Rows", - "Totals", - "Maximums", - "Minimums", - "RowCount", - "PropertyQuota", - }); - 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.v1alpha.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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsRequest.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsRequest.java deleted file mode 100644 index 3463f853..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsRequest.java +++ /dev/null @@ -1,1296 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The batch request containing multiple pivot report requests.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.BatchRunPivotReportsRequest} - */ -public final class BatchRunPivotReportsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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() { - 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: - { - com.google.analytics.data.v1alpha.Entity.Builder subBuilder = null; - if (entity_ != null) { - subBuilder = entity_.toBuilder(); - } - entity_ = - input.readMessage( - com.google.analytics.data.v1alpha.Entity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entity_); - entity_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList< - com.google.analytics.data.v1alpha.RunPivotReportRequest>(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage( - com.google.analytics.data.v1alpha.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.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest.class, - com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest.Builder.class); - } - - public static final int ENTITY_FIELD_NUMBER = 1; - private com.google.analytics.data.v1alpha.Entity entity_; - /** - * - * - *
-   * A property whose events are tracked. This entity must be specified for the
-   * batch. The entity within RunPivotReportRequest may either be unspecified or
-   * consistent with this entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return Whether the entity field is set. - */ - @java.lang.Override - public boolean hasEntity() { - return entity_ != null; - } - /** - * - * - *
-   * A property whose events are tracked. This entity must be specified for the
-   * batch. The entity within RunPivotReportRequest may either be unspecified or
-   * consistent with this entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return The entity. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Entity getEntity() { - return entity_ == null - ? com.google.analytics.data.v1alpha.Entity.getDefaultInstance() - : entity_; - } - /** - * - * - *
-   * A property whose events are tracked. This entity must be specified for the
-   * batch. The entity within RunPivotReportRequest may either be unspecified or
-   * consistent with this entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EntityOrBuilder getEntityOrBuilder() { - return getEntity(); - } - - 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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunPivotReportRequest requests = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest requests = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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 (entity_ != null) { - output.writeMessage(1, getEntity()); - } - 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 (entity_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntity()); - } - 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.v1alpha.BatchRunPivotReportsRequest)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest other = - (com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest) obj; - - if (hasEntity() != other.hasEntity()) return false; - if (hasEntity()) { - if (!getEntity().equals(other.getEntity())) 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(); - if (hasEntity()) { - hash = (37 * hash) + ENTITY_FIELD_NUMBER; - hash = (53 * hash) + getEntity().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.v1alpha.BatchRunPivotReportsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunPivotReportsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunPivotReportsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunPivotReportsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunPivotReportsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.BatchRunPivotReportsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.BatchRunPivotReportsRequest) - com.google.analytics.data.v1alpha.BatchRunPivotReportsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest.class, - com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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(); - if (entityBuilder_ == null) { - entity_ = null; - } else { - entity_ = null; - entityBuilder_ = null; - } - 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.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest build() { - com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest buildPartial() { - com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest result = - new com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest(this); - int from_bitField0_ = bitField0_; - if (entityBuilder_ == null) { - result.entity_ = entity_; - } else { - result.entity_ = entityBuilder_.build(); - } - 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.v1alpha.BatchRunPivotReportsRequest) { - return mergeFrom((com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest other) { - if (other - == com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest.getDefaultInstance()) - return this; - if (other.hasEntity()) { - mergeEntity(other.getEntity()); - } - 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.v1alpha.BatchRunPivotReportsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.analytics.data.v1alpha.Entity entity_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Entity, - com.google.analytics.data.v1alpha.Entity.Builder, - com.google.analytics.data.v1alpha.EntityOrBuilder> - entityBuilder_; - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunPivotReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return Whether the entity field is set. - */ - public boolean hasEntity() { - return entityBuilder_ != null || entity_ != null; - } - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunPivotReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return The entity. - */ - public com.google.analytics.data.v1alpha.Entity getEntity() { - if (entityBuilder_ == null) { - return entity_ == null - ? com.google.analytics.data.v1alpha.Entity.getDefaultInstance() - : entity_; - } else { - return entityBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunPivotReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public Builder setEntity(com.google.analytics.data.v1alpha.Entity value) { - if (entityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entity_ = value; - onChanged(); - } else { - entityBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunPivotReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public Builder setEntity(com.google.analytics.data.v1alpha.Entity.Builder builderForValue) { - if (entityBuilder_ == null) { - entity_ = builderForValue.build(); - onChanged(); - } else { - entityBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunPivotReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public Builder mergeEntity(com.google.analytics.data.v1alpha.Entity value) { - if (entityBuilder_ == null) { - if (entity_ != null) { - entity_ = - com.google.analytics.data.v1alpha.Entity.newBuilder(entity_) - .mergeFrom(value) - .buildPartial(); - } else { - entity_ = value; - } - onChanged(); - } else { - entityBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunPivotReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public Builder clearEntity() { - if (entityBuilder_ == null) { - entity_ = null; - onChanged(); - } else { - entity_ = null; - entityBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunPivotReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public com.google.analytics.data.v1alpha.Entity.Builder getEntityBuilder() { - - onChanged(); - return getEntityFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunPivotReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public com.google.analytics.data.v1alpha.EntityOrBuilder getEntityOrBuilder() { - if (entityBuilder_ != null) { - return entityBuilder_.getMessageOrBuilder(); - } else { - return entity_ == null - ? com.google.analytics.data.v1alpha.Entity.getDefaultInstance() - : entity_; - } - } - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunPivotReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Entity, - com.google.analytics.data.v1alpha.Entity.Builder, - com.google.analytics.data.v1alpha.EntityOrBuilder> - getEntityFieldBuilder() { - if (entityBuilder_ == null) { - entityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Entity, - com.google.analytics.data.v1alpha.Entity.Builder, - com.google.analytics.data.v1alpha.EntityOrBuilder>( - getEntity(), getParentForChildren(), isClean()); - entity_ = null; - } - return entityBuilder_; - } - - 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.v1alpha.RunPivotReportRequest, - com.google.analytics.data.v1alpha.RunPivotReportRequest.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunPivotReportRequest requests = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest requests = 2; - */ - public Builder setRequests( - int index, com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest requests = 2; - */ - public Builder setRequests( - int index, - com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest requests = 2; - */ - public Builder addRequests(com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest requests = 2; - */ - public Builder addRequests( - int index, com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest requests = 2; - */ - public Builder addRequests( - com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest requests = 2; - */ - public Builder addRequests( - int index, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunPivotReportRequest requests = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest requests = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest requests = 2; - */ - public java.util.List< - ? extends com.google.analytics.data.v1alpha.RunPivotReportRequestOrBuilder> - 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.v1alpha.RunPivotReportRequest requests = 2; - */ - public com.google.analytics.data.v1alpha.RunPivotReportRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest requests = 2; - */ - public com.google.analytics.data.v1alpha.RunPivotReportRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest requests = 2; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.RunPivotReportRequest, - com.google.analytics.data.v1alpha.RunPivotReportRequest.Builder, - com.google.analytics.data.v1alpha.RunPivotReportRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.RunPivotReportRequest, - com.google.analytics.data.v1alpha.RunPivotReportRequest.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.BatchRunPivotReportsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.BatchRunPivotReportsRequest) - private static final com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.BatchRunPivotReportsRequest(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunPivotReportsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsRequestOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsRequestOrBuilder.java deleted file mode 100644 index 70a12a7b..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsRequestOrBuilder.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -public interface BatchRunPivotReportsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.BatchRunPivotReportsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A property whose events are tracked. This entity must be specified for the
-   * batch. The entity within RunPivotReportRequest may either be unspecified or
-   * consistent with this entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return Whether the entity field is set. - */ - boolean hasEntity(); - /** - * - * - *
-   * A property whose events are tracked. This entity must be specified for the
-   * batch. The entity within RunPivotReportRequest may either be unspecified or
-   * consistent with this entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return The entity. - */ - com.google.analytics.data.v1alpha.Entity getEntity(); - /** - * - * - *
-   * A property whose events are tracked. This entity must be specified for the
-   * batch. The entity within RunPivotReportRequest may either be unspecified or
-   * consistent with this entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - com.google.analytics.data.v1alpha.EntityOrBuilder getEntityOrBuilder(); - - /** - * - * - *
-   * Individual requests. Each request has a separate pivot report response.
-   * Each batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest requests = 2; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunPivotReportRequest requests = 2; - */ - com.google.analytics.data.v1alpha.RunPivotReportRequestOrBuilder getRequestsOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsResponse.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsResponse.java deleted file mode 100644 index 5757ea7f..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsResponse.java +++ /dev/null @@ -1,995 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The batch response containing multiple pivot reports.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.BatchRunPivotReportsResponse} - */ -public final class BatchRunPivotReportsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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(); - } - - @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.v1alpha.RunPivotReportResponse>(); - mutable_bitField0_ |= 0x00000001; - } - pivotReports_.add( - input.readMessage( - com.google.analytics.data.v1alpha.RunPivotReportResponse.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)) { - 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.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse.class, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunPivotReportResponse pivot_reports = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.RunPivotReportResponse getPivotReports(int index) { - return pivotReports_.get(index); - } - /** - * - * - *
-   * Individual responses. Each response has a separate pivot report request.
-   * 
- * - * repeated .google.analytics.data.v1alpha.RunPivotReportResponse pivot_reports = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.RunPivotReportResponseOrBuilder getPivotReportsOrBuilder( - int index) { - return pivotReports_.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 < pivotReports_.size(); i++) { - output.writeMessage(1, pivotReports_.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 < pivotReports_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pivotReports_.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.v1alpha.BatchRunPivotReportsResponse)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse other = - (com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse) obj; - - if (!getPivotReportsList().equals(other.getPivotReportsList())) return false; - if (!unknownFields.equals(other.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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunPivotReportsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunPivotReportsResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunPivotReportsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunPivotReportsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.BatchRunPivotReportsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.BatchRunPivotReportsResponse) - com.google.analytics.data.v1alpha.BatchRunPivotReportsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse.class, - com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunPivotReportsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse build() { - com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse buildPartial() { - com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse result = - new com.google.analytics.data.v1alpha.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(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.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.v1alpha.BatchRunPivotReportsResponse) { - return mergeFrom((com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse other) { - if (other - == com.google.analytics.data.v1alpha.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_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - 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.v1alpha.BatchRunPivotReportsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportResponse, - com.google.analytics.data.v1alpha.RunPivotReportResponse.Builder, - com.google.analytics.data.v1alpha.RunPivotReportResponseOrBuilder> - pivotReportsBuilder_; - - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.RunPivotReportResponse pivot_reports = 1; - * - */ - public com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportResponse pivot_reports = 1; - * - */ - public Builder setPivotReports( - int index, com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportResponse pivot_reports = 1; - * - */ - public Builder setPivotReports( - int index, - com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportResponse pivot_reports = 1; - * - */ - public Builder addPivotReports(com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportResponse pivot_reports = 1; - * - */ - public Builder addPivotReports( - int index, com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportResponse pivot_reports = 1; - * - */ - public Builder addPivotReports( - com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportResponse pivot_reports = 1; - * - */ - public Builder addPivotReports( - int index, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunPivotReportResponse pivot_reports = 1; - * - */ - public com.google.analytics.data.v1alpha.RunPivotReportResponse.Builder getPivotReportsBuilder( - int index) { - return getPivotReportsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1alpha.RunPivotReportResponse pivot_reports = 1; - * - */ - public com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportResponse pivot_reports = 1; - * - */ - public java.util.List< - ? extends com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportResponse pivot_reports = 1; - * - */ - public com.google.analytics.data.v1alpha.RunPivotReportResponse.Builder - addPivotReportsBuilder() { - return getPivotReportsFieldBuilder() - .addBuilder( - com.google.analytics.data.v1alpha.RunPivotReportResponse.getDefaultInstance()); - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1alpha.RunPivotReportResponse pivot_reports = 1; - * - */ - public com.google.analytics.data.v1alpha.RunPivotReportResponse.Builder addPivotReportsBuilder( - int index) { - return getPivotReportsFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1alpha.RunPivotReportResponse.getDefaultInstance()); - } - /** - * - * - *
-     * Individual responses. Each response has a separate pivot report request.
-     * 
- * - * repeated .google.analytics.data.v1alpha.RunPivotReportResponse pivot_reports = 1; - * - */ - public java.util.List - getPivotReportsBuilderList() { - return getPivotReportsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.RunPivotReportResponse, - com.google.analytics.data.v1alpha.RunPivotReportResponse.Builder, - com.google.analytics.data.v1alpha.RunPivotReportResponseOrBuilder> - getPivotReportsFieldBuilder() { - if (pivotReportsBuilder_ == null) { - pivotReportsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.RunPivotReportResponse, - com.google.analytics.data.v1alpha.RunPivotReportResponse.Builder, - com.google.analytics.data.v1alpha.RunPivotReportResponseOrBuilder>( - pivotReports_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - pivotReports_ = null; - } - return pivotReportsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.BatchRunPivotReportsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.BatchRunPivotReportsResponse) - private static final com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.BatchRunPivotReportsResponse(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunPivotReportsResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsResponseOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsResponseOrBuilder.java deleted file mode 100644 index 3d89e960..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunPivotReportsResponseOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -public interface BatchRunPivotReportsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.BatchRunPivotReportsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Individual responses. Each response has a separate pivot report request.
-   * 
- * - * repeated .google.analytics.data.v1alpha.RunPivotReportResponse pivot_reports = 1; - */ - java.util.List getPivotReportsList(); - /** - * - * - *
-   * Individual responses. Each response has a separate pivot report request.
-   * 
- * - * repeated .google.analytics.data.v1alpha.RunPivotReportResponse pivot_reports = 1; - */ - com.google.analytics.data.v1alpha.RunPivotReportResponse getPivotReports(int index); - /** - * - * - *
-   * Individual responses. Each response has a separate pivot report request.
-   * 
- * - * repeated .google.analytics.data.v1alpha.RunPivotReportResponse pivot_reports = 1; - */ - int getPivotReportsCount(); - /** - * - * - *
-   * Individual responses. Each response has a separate pivot report request.
-   * 
- * - * repeated .google.analytics.data.v1alpha.RunPivotReportResponse pivot_reports = 1; - */ - java.util.List - getPivotReportsOrBuilderList(); - /** - * - * - *
-   * Individual responses. Each response has a separate pivot report request.
-   * 
- * - * repeated .google.analytics.data.v1alpha.RunPivotReportResponse pivot_reports = 1; - */ - com.google.analytics.data.v1alpha.RunPivotReportResponseOrBuilder getPivotReportsOrBuilder( - int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsRequest.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsRequest.java deleted file mode 100644 index 568f24b1..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsRequest.java +++ /dev/null @@ -1,1285 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The batch request containing multiple report requests.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.BatchRunReportsRequest} - */ -public final class BatchRunReportsRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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() { - 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: - { - com.google.analytics.data.v1alpha.Entity.Builder subBuilder = null; - if (entity_ != null) { - subBuilder = entity_.toBuilder(); - } - entity_ = - input.readMessage( - com.google.analytics.data.v1alpha.Entity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entity_); - entity_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - requests_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - requests_.add( - input.readMessage( - com.google.analytics.data.v1alpha.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.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunReportsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunReportsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.BatchRunReportsRequest.class, - com.google.analytics.data.v1alpha.BatchRunReportsRequest.Builder.class); - } - - public static final int ENTITY_FIELD_NUMBER = 1; - private com.google.analytics.data.v1alpha.Entity entity_; - /** - * - * - *
-   * A property whose events are tracked. This entity must be specified for the
-   * batch. The entity within RunReportRequest may either be unspecified or
-   * consistent with this entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return Whether the entity field is set. - */ - @java.lang.Override - public boolean hasEntity() { - return entity_ != null; - } - /** - * - * - *
-   * A property whose events are tracked. This entity must be specified for the
-   * batch. The entity within RunReportRequest may either be unspecified or
-   * consistent with this entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return The entity. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Entity getEntity() { - return entity_ == null - ? com.google.analytics.data.v1alpha.Entity.getDefaultInstance() - : entity_; - } - /** - * - * - *
-   * A property whose events are tracked. This entity must be specified for the
-   * batch. The entity within RunReportRequest may either be unspecified or
-   * consistent with this entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EntityOrBuilder getEntityOrBuilder() { - return getEntity(); - } - - 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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunReportRequest requests = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.RunReportRequest requests = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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 (entity_ != null) { - output.writeMessage(1, getEntity()); - } - 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 (entity_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntity()); - } - 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.v1alpha.BatchRunReportsRequest)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.BatchRunReportsRequest other = - (com.google.analytics.data.v1alpha.BatchRunReportsRequest) obj; - - if (hasEntity() != other.hasEntity()) return false; - if (hasEntity()) { - if (!getEntity().equals(other.getEntity())) 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(); - if (hasEntity()) { - hash = (37 * hash) + ENTITY_FIELD_NUMBER; - hash = (53 * hash) + getEntity().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.v1alpha.BatchRunReportsRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunReportsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunReportsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunReportsRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunReportsRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.BatchRunReportsRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.BatchRunReportsRequest) - com.google.analytics.data.v1alpha.BatchRunReportsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunReportsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunReportsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.BatchRunReportsRequest.class, - com.google.analytics.data.v1alpha.BatchRunReportsRequest.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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(); - if (entityBuilder_ == null) { - entity_ = null; - } else { - entity_ = null; - entityBuilder_ = null; - } - 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.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunReportsRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.BatchRunReportsRequest getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.BatchRunReportsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.BatchRunReportsRequest build() { - com.google.analytics.data.v1alpha.BatchRunReportsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.BatchRunReportsRequest buildPartial() { - com.google.analytics.data.v1alpha.BatchRunReportsRequest result = - new com.google.analytics.data.v1alpha.BatchRunReportsRequest(this); - int from_bitField0_ = bitField0_; - if (entityBuilder_ == null) { - result.entity_ = entity_; - } else { - result.entity_ = entityBuilder_.build(); - } - 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.v1alpha.BatchRunReportsRequest) { - return mergeFrom((com.google.analytics.data.v1alpha.BatchRunReportsRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.BatchRunReportsRequest other) { - if (other == com.google.analytics.data.v1alpha.BatchRunReportsRequest.getDefaultInstance()) - return this; - if (other.hasEntity()) { - mergeEntity(other.getEntity()); - } - 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.v1alpha.BatchRunReportsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.BatchRunReportsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.analytics.data.v1alpha.Entity entity_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Entity, - com.google.analytics.data.v1alpha.Entity.Builder, - com.google.analytics.data.v1alpha.EntityOrBuilder> - entityBuilder_; - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return Whether the entity field is set. - */ - public boolean hasEntity() { - return entityBuilder_ != null || entity_ != null; - } - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return The entity. - */ - public com.google.analytics.data.v1alpha.Entity getEntity() { - if (entityBuilder_ == null) { - return entity_ == null - ? com.google.analytics.data.v1alpha.Entity.getDefaultInstance() - : entity_; - } else { - return entityBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public Builder setEntity(com.google.analytics.data.v1alpha.Entity value) { - if (entityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entity_ = value; - onChanged(); - } else { - entityBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public Builder setEntity(com.google.analytics.data.v1alpha.Entity.Builder builderForValue) { - if (entityBuilder_ == null) { - entity_ = builderForValue.build(); - onChanged(); - } else { - entityBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public Builder mergeEntity(com.google.analytics.data.v1alpha.Entity value) { - if (entityBuilder_ == null) { - if (entity_ != null) { - entity_ = - com.google.analytics.data.v1alpha.Entity.newBuilder(entity_) - .mergeFrom(value) - .buildPartial(); - } else { - entity_ = value; - } - onChanged(); - } else { - entityBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public Builder clearEntity() { - if (entityBuilder_ == null) { - entity_ = null; - onChanged(); - } else { - entity_ = null; - entityBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public com.google.analytics.data.v1alpha.Entity.Builder getEntityBuilder() { - - onChanged(); - return getEntityFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public com.google.analytics.data.v1alpha.EntityOrBuilder getEntityOrBuilder() { - if (entityBuilder_ != null) { - return entityBuilder_.getMessageOrBuilder(); - } else { - return entity_ == null - ? com.google.analytics.data.v1alpha.Entity.getDefaultInstance() - : entity_; - } - } - /** - * - * - *
-     * A property whose events are tracked. This entity must be specified for the
-     * batch. The entity within RunReportRequest may either be unspecified or
-     * consistent with this entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Entity, - com.google.analytics.data.v1alpha.Entity.Builder, - com.google.analytics.data.v1alpha.EntityOrBuilder> - getEntityFieldBuilder() { - if (entityBuilder_ == null) { - entityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Entity, - com.google.analytics.data.v1alpha.Entity.Builder, - com.google.analytics.data.v1alpha.EntityOrBuilder>( - getEntity(), getParentForChildren(), isClean()); - entity_ = null; - } - return entityBuilder_; - } - - 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.v1alpha.RunReportRequest, - com.google.analytics.data.v1alpha.RunReportRequest.Builder, - com.google.analytics.data.v1alpha.RunReportRequestOrBuilder> - requestsBuilder_; - - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.RunReportRequest requests = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.RunReportRequest requests = 2; - */ - public Builder setRequests( - int index, com.google.analytics.data.v1alpha.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.v1alpha.RunReportRequest requests = 2; - */ - public Builder setRequests( - int index, com.google.analytics.data.v1alpha.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.v1alpha.RunReportRequest requests = 2; - */ - public Builder addRequests(com.google.analytics.data.v1alpha.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.v1alpha.RunReportRequest requests = 2; - */ - public Builder addRequests( - int index, com.google.analytics.data.v1alpha.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.v1alpha.RunReportRequest requests = 2; - */ - public Builder addRequests( - com.google.analytics.data.v1alpha.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.v1alpha.RunReportRequest requests = 2; - */ - public Builder addRequests( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunReportRequest requests = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.RunReportRequest requests = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.RunReportRequest requests = 2; - */ - public com.google.analytics.data.v1alpha.RunReportRequest.Builder addRequestsBuilder() { - return getRequestsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.RunReportRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1alpha.RunReportRequest requests = 2; - */ - public com.google.analytics.data.v1alpha.RunReportRequest.Builder addRequestsBuilder( - int index) { - return getRequestsFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1alpha.RunReportRequest.getDefaultInstance()); - } - /** - * - * - *
-     * Individual requests. Each request has a separate report response. Each
-     * batch request is allowed up to 5 requests.
-     * 
- * - * repeated .google.analytics.data.v1alpha.RunReportRequest requests = 2; - */ - public java.util.List - getRequestsBuilderList() { - return getRequestsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.RunReportRequest, - com.google.analytics.data.v1alpha.RunReportRequest.Builder, - com.google.analytics.data.v1alpha.RunReportRequestOrBuilder> - getRequestsFieldBuilder() { - if (requestsBuilder_ == null) { - requestsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.RunReportRequest, - com.google.analytics.data.v1alpha.RunReportRequest.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.BatchRunReportsRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.BatchRunReportsRequest) - private static final com.google.analytics.data.v1alpha.BatchRunReportsRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.BatchRunReportsRequest(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunReportsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsRequestOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsRequestOrBuilder.java deleted file mode 100644 index d977386c..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsRequestOrBuilder.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -public interface BatchRunReportsRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.BatchRunReportsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A property whose events are tracked. This entity must be specified for the
-   * batch. The entity within RunReportRequest may either be unspecified or
-   * consistent with this entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return Whether the entity field is set. - */ - boolean hasEntity(); - /** - * - * - *
-   * A property whose events are tracked. This entity must be specified for the
-   * batch. The entity within RunReportRequest may either be unspecified or
-   * consistent with this entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return The entity. - */ - com.google.analytics.data.v1alpha.Entity getEntity(); - /** - * - * - *
-   * A property whose events are tracked. This entity must be specified for the
-   * batch. The entity within RunReportRequest may either be unspecified or
-   * consistent with this entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - com.google.analytics.data.v1alpha.EntityOrBuilder getEntityOrBuilder(); - - /** - * - * - *
-   * Individual requests. Each request has a separate report response. Each
-   * batch request is allowed up to 5 requests.
-   * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.RunReportRequest requests = 2; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunReportRequest requests = 2; - */ - com.google.analytics.data.v1alpha.RunReportRequestOrBuilder getRequestsOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsResponse.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsResponse.java deleted file mode 100644 index ba7edcde..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsResponse.java +++ /dev/null @@ -1,961 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The batch response containing multiple reports.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.BatchRunReportsResponse} - */ -public final class BatchRunReportsResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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(); - } - - @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.v1alpha.RunReportResponse.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)) { - 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.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunReportsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunReportsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.BatchRunReportsResponse.class, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunReportResponse reports = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.RunReportResponse getReports(int index) { - return reports_.get(index); - } - /** - * - * - *
-   * Individual responses. Each response has a separate report request.
-   * 
- * - * repeated .google.analytics.data.v1alpha.RunReportResponse reports = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.RunReportResponseOrBuilder getReportsOrBuilder( - int index) { - return reports_.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 < reports_.size(); i++) { - output.writeMessage(1, reports_.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 < reports_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, reports_.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.v1alpha.BatchRunReportsResponse)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.BatchRunReportsResponse other = - (com.google.analytics.data.v1alpha.BatchRunReportsResponse) obj; - - if (!getReportsList().equals(other.getReportsList())) return false; - if (!unknownFields.equals(other.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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.BatchRunReportsResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunReportsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunReportsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunReportsResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunReportsResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.BatchRunReportsResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.BatchRunReportsResponse) - com.google.analytics.data.v1alpha.BatchRunReportsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunReportsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunReportsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.BatchRunReportsResponse.class, - com.google.analytics.data.v1alpha.BatchRunReportsResponse.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_BatchRunReportsResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.BatchRunReportsResponse getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.BatchRunReportsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.BatchRunReportsResponse build() { - com.google.analytics.data.v1alpha.BatchRunReportsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.BatchRunReportsResponse buildPartial() { - com.google.analytics.data.v1alpha.BatchRunReportsResponse result = - new com.google.analytics.data.v1alpha.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(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.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.v1alpha.BatchRunReportsResponse) { - return mergeFrom((com.google.analytics.data.v1alpha.BatchRunReportsResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.BatchRunReportsResponse other) { - if (other == com.google.analytics.data.v1alpha.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_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - 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.v1alpha.BatchRunReportsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.RunReportResponse, - com.google.analytics.data.v1alpha.RunReportResponse.Builder, - com.google.analytics.data.v1alpha.RunReportResponseOrBuilder> - reportsBuilder_; - - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.RunReportResponse reports = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.RunReportResponse reports = 1; - */ - public Builder setReports( - int index, com.google.analytics.data.v1alpha.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.v1alpha.RunReportResponse reports = 1; - */ - public Builder setReports( - int index, com.google.analytics.data.v1alpha.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.v1alpha.RunReportResponse reports = 1; - */ - public Builder addReports(com.google.analytics.data.v1alpha.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.v1alpha.RunReportResponse reports = 1; - */ - public Builder addReports( - int index, com.google.analytics.data.v1alpha.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.v1alpha.RunReportResponse reports = 1; - */ - public Builder addReports( - com.google.analytics.data.v1alpha.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.v1alpha.RunReportResponse reports = 1; - */ - public Builder addReports( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunReportResponse reports = 1; - */ - public com.google.analytics.data.v1alpha.RunReportResponse.Builder getReportsBuilder( - int index) { - return getReportsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1alpha.RunReportResponse reports = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.RunReportResponse reports = 1; - */ - public com.google.analytics.data.v1alpha.RunReportResponse.Builder addReportsBuilder() { - return getReportsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.RunReportResponse.getDefaultInstance()); - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1alpha.RunReportResponse reports = 1; - */ - public com.google.analytics.data.v1alpha.RunReportResponse.Builder addReportsBuilder( - int index) { - return getReportsFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1alpha.RunReportResponse.getDefaultInstance()); - } - /** - * - * - *
-     * Individual responses. Each response has a separate report request.
-     * 
- * - * repeated .google.analytics.data.v1alpha.RunReportResponse reports = 1; - */ - public java.util.List - getReportsBuilderList() { - return getReportsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.RunReportResponse, - com.google.analytics.data.v1alpha.RunReportResponse.Builder, - com.google.analytics.data.v1alpha.RunReportResponseOrBuilder> - getReportsFieldBuilder() { - if (reportsBuilder_ == null) { - reportsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.RunReportResponse, - com.google.analytics.data.v1alpha.RunReportResponse.Builder, - com.google.analytics.data.v1alpha.RunReportResponseOrBuilder>( - reports_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - reports_ = null; - } - return reportsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.BatchRunReportsResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.BatchRunReportsResponse) - private static final com.google.analytics.data.v1alpha.BatchRunReportsResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.BatchRunReportsResponse(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BatchRunReportsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsResponseOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsResponseOrBuilder.java deleted file mode 100644 index ac56a83e..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BatchRunReportsResponseOrBuilder.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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -public interface BatchRunReportsResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.BatchRunReportsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Individual responses. Each response has a separate report request.
-   * 
- * - * repeated .google.analytics.data.v1alpha.RunReportResponse reports = 1; - */ - java.util.List getReportsList(); - /** - * - * - *
-   * Individual responses. Each response has a separate report request.
-   * 
- * - * repeated .google.analytics.data.v1alpha.RunReportResponse reports = 1; - */ - com.google.analytics.data.v1alpha.RunReportResponse getReports(int index); - /** - * - * - *
-   * Individual responses. Each response has a separate report request.
-   * 
- * - * repeated .google.analytics.data.v1alpha.RunReportResponse reports = 1; - */ - int getReportsCount(); - /** - * - * - *
-   * Individual responses. Each response has a separate report request.
-   * 
- * - * repeated .google.analytics.data.v1alpha.RunReportResponse reports = 1; - */ - java.util.List - getReportsOrBuilderList(); - /** - * - * - *
-   * Individual responses. Each response has a separate report request.
-   * 
- * - * repeated .google.analytics.data.v1alpha.RunReportResponse reports = 1; - */ - com.google.analytics.data.v1alpha.RunReportResponseOrBuilder getReportsOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Cohort.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Cohort.java deleted file mode 100644 index 57b27504..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Cohort.java +++ /dev/null @@ -1,1271 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Defines a cohort selection criteria. A cohort is a group of users who share
- * a common characteristic. For example, users with the same `firstTouchDate`
- * belong to the same cohort.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Cohort} - */ -public final class Cohort extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.DateRange.Builder subBuilder = null; - if (dateRange_ != null) { - subBuilder = dateRange_.toBuilder(); - } - dateRange_ = - input.readMessage( - com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Cohort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Cohort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Cohort.class, - com.google.analytics.data.v1alpha.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 `firstTouchDate`.
-   * 
- * - * 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 `firstTouchDate`.
-   * 
- * - * 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.v1alpha.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.v1alpha.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.v1alpha.DateRange date_range = 3; - * - * @return The dateRange. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DateRange getDateRange() { - return dateRange_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_range = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getDimensionBytes().isEmpty()) { - 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 (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getDimensionBytes().isEmpty()) { - 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.v1alpha.Cohort)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Cohort other = (com.google.analytics.data.v1alpha.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.v1alpha.Cohort parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Cohort parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Cohort parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Cohort parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Cohort parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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 `firstTouchDate`
-   * belong to the same cohort.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Cohort} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Cohort) - com.google.analytics.data.v1alpha.CohortOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Cohort_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Cohort_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Cohort.class, - com.google.analytics.data.v1alpha.Cohort.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Cohort_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Cohort getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Cohort.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Cohort build() { - com.google.analytics.data.v1alpha.Cohort result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Cohort buildPartial() { - com.google.analytics.data.v1alpha.Cohort result = - new com.google.analytics.data.v1alpha.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.v1alpha.Cohort) { - return mergeFrom((com.google.analytics.data.v1alpha.Cohort) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Cohort other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.Cohort parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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 `firstTouchDate`.
-     * 
- * - * 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 `firstTouchDate`.
-     * 
- * - * 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 `firstTouchDate`.
-     * 
- * - * 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 `firstTouchDate`.
-     * 
- * - * 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 `firstTouchDate`.
-     * 
- * - * 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.v1alpha.DateRange dateRange_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DateRange, - com.google.analytics.data.v1alpha.DateRange.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DateRange date_range = 3; - * - * @return The dateRange. - */ - public com.google.analytics.data.v1alpha.DateRange getDateRange() { - if (dateRangeBuilder_ == null) { - return dateRange_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_range = 3; - */ - public Builder setDateRange(com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_range = 3; - */ - public Builder setDateRange( - com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_range = 3; - */ - public Builder mergeDateRange(com.google.analytics.data.v1alpha.DateRange value) { - if (dateRangeBuilder_ == null) { - if (dateRange_ != null) { - dateRange_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DateRange date_range = 3; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_range = 3; - */ - public com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangeOrBuilder() { - if (dateRangeBuilder_ != null) { - return dateRangeBuilder_.getMessageOrBuilder(); - } else { - return dateRange_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_range = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DateRange, - com.google.analytics.data.v1alpha.DateRange.Builder, - com.google.analytics.data.v1alpha.DateRangeOrBuilder> - getDateRangeFieldBuilder() { - if (dateRangeBuilder_ == null) { - dateRangeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DateRange, - com.google.analytics.data.v1alpha.DateRange.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Cohort) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Cohort) - private static final com.google.analytics.data.v1alpha.Cohort DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Cohort(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Cohort getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortOrBuilder.java deleted file mode 100644 index 611b0108..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortOrBuilder.java +++ /dev/null @@ -1,155 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface CohortOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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 `firstTouchDate`.
-   * 
- * - * string dimension = 2; - * - * @return The dimension. - */ - java.lang.String getDimension(); - /** - * - * - *
-   * Dimension used by the cohort. Required and only supports `firstTouchDate`.
-   * 
- * - * 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.v1alpha.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.v1alpha.DateRange date_range = 3; - * - * @return The dateRange. - */ - com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_range = 3; - */ - com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangeOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortReportSettings.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortReportSettings.java deleted file mode 100644 index 0b069a74..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Optional settings of a cohort report.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.CohortReportSettings} - */ -public final class CohortReportSettings extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_CohortReportSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_CohortReportSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.CohortReportSettings.class, - com.google.analytics.data.v1alpha.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.v1alpha.CohortReportSettings)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.CohortReportSettings other = - (com.google.analytics.data.v1alpha.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.v1alpha.CohortReportSettings parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.CohortReportSettings parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.CohortReportSettings parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.CohortReportSettings parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.CohortReportSettings parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.CohortReportSettings} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.CohortReportSettings) - com.google.analytics.data.v1alpha.CohortReportSettingsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_CohortReportSettings_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_CohortReportSettings_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.CohortReportSettings.class, - com.google.analytics.data.v1alpha.CohortReportSettings.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_CohortReportSettings_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortReportSettings getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.CohortReportSettings.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortReportSettings build() { - com.google.analytics.data.v1alpha.CohortReportSettings result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortReportSettings buildPartial() { - com.google.analytics.data.v1alpha.CohortReportSettings result = - new com.google.analytics.data.v1alpha.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.v1alpha.CohortReportSettings) { - return mergeFrom((com.google.analytics.data.v1alpha.CohortReportSettings) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.CohortReportSettings other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.CohortReportSettings parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.CohortReportSettings) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.CohortReportSettings) - private static final com.google.analytics.data.v1alpha.CohortReportSettings DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.CohortReportSettings(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.CohortReportSettings getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortReportSettingsOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortReportSettingsOrBuilder.java deleted file mode 100644 index 62fec71a..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface CohortReportSettingsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortSpec.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortSpec.java deleted file mode 100644 index 61ab08a1..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortSpec.java +++ /dev/null @@ -1,1589 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Specification of cohorts for a cohort report.
- * Cohort reports can be used for example to 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.
- * 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.v1alpha.CohortSpec} - */ -public final class CohortSpec extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.Cohort.parser(), extensionRegistry)); - break; - } - case 18: - { - com.google.analytics.data.v1alpha.CohortsRange.Builder subBuilder = null; - if (cohortsRange_ != null) { - subBuilder = cohortsRange_.toBuilder(); - } - cohortsRange_ = - input.readMessage( - com.google.analytics.data.v1alpha.CohortsRange.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(cohortsRange_); - cohortsRange_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.analytics.data.v1alpha.CohortReportSettings.Builder subBuilder = null; - if (cohortReportSettings_ != null) { - subBuilder = cohortReportSettings_.toBuilder(); - } - cohortReportSettings_ = - input.readMessage( - com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_CohortSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_CohortSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.CohortSpec.class, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Cohort cohorts = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.Cohort cohorts = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortOrBuilder getCohortsOrBuilder(int index) { - return cohorts_.get(index); - } - - public static final int COHORTS_RANGE_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.CohortsRange cohorts_range = 2; - * - * @return The cohortsRange. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortsRange getCohortsRange() { - return cohortsRange_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.CohortsRange cohorts_range = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortsRangeOrBuilder getCohortsRangeOrBuilder() { - return getCohortsRange(); - } - - public static final int COHORT_REPORT_SETTINGS_FIELD_NUMBER = 3; - private com.google.analytics.data.v1alpha.CohortReportSettings cohortReportSettings_; - /** - * - * - *
-   * Optional settings for a cohort report.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.CohortReportSettings cohort_report_settings = 3; - * - * @return The cohortReportSettings. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortReportSettings getCohortReportSettings() { - return cohortReportSettings_ == null - ? com.google.analytics.data.v1alpha.CohortReportSettings.getDefaultInstance() - : cohortReportSettings_; - } - /** - * - * - *
-   * Optional settings for a cohort report.
-   * 
- * - * .google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.CohortSpec other = - (com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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; - } - /** - * - * - *
-   * Specification of cohorts for a cohort report.
-   * Cohort reports can be used for example to 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.
-   * 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.v1alpha.CohortSpec} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.CohortSpec) - com.google.analytics.data.v1alpha.CohortSpecOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_CohortSpec_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_CohortSpec_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.CohortSpec.class, - com.google.analytics.data.v1alpha.CohortSpec.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_CohortSpec_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortSpec getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.CohortSpec.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortSpec build() { - com.google.analytics.data.v1alpha.CohortSpec result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortSpec buildPartial() { - com.google.analytics.data.v1alpha.CohortSpec result = - new com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec) { - return mergeFrom((com.google.analytics.data.v1alpha.CohortSpec) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.CohortSpec other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.Cohort, - com.google.analytics.data.v1alpha.Cohort.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Cohort cohorts = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Cohort cohorts = 1; - */ - public Builder setCohorts(int index, com.google.analytics.data.v1alpha.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.v1alpha.Cohort cohorts = 1; - */ - public Builder setCohorts( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Cohort cohorts = 1; - */ - public Builder addCohorts(com.google.analytics.data.v1alpha.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.v1alpha.Cohort cohorts = 1; - */ - public Builder addCohorts(int index, com.google.analytics.data.v1alpha.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.v1alpha.Cohort cohorts = 1; - */ - public Builder addCohorts(com.google.analytics.data.v1alpha.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.v1alpha.Cohort cohorts = 1; - */ - public Builder addCohorts( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Cohort cohorts = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Cohort cohorts = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Cohort cohorts = 1; - */ - public com.google.analytics.data.v1alpha.Cohort.Builder addCohortsBuilder() { - return getCohortsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.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.v1alpha.Cohort cohorts = 1; - */ - public com.google.analytics.data.v1alpha.Cohort.Builder addCohortsBuilder(int index) { - return getCohortsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.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.v1alpha.Cohort cohorts = 1; - */ - public java.util.List - getCohortsBuilderList() { - return getCohortsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Cohort, - com.google.analytics.data.v1alpha.Cohort.Builder, - com.google.analytics.data.v1alpha.CohortOrBuilder> - getCohortsFieldBuilder() { - if (cohortsBuilder_ == null) { - cohortsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Cohort, - com.google.analytics.data.v1alpha.Cohort.Builder, - com.google.analytics.data.v1alpha.CohortOrBuilder>( - cohorts_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - cohorts_ = null; - } - return cohortsBuilder_; - } - - private com.google.analytics.data.v1alpha.CohortsRange cohortsRange_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.CohortsRange, - com.google.analytics.data.v1alpha.CohortsRange.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.CohortsRange cohorts_range = 2; - * - * @return The cohortsRange. - */ - public com.google.analytics.data.v1alpha.CohortsRange getCohortsRange() { - if (cohortsRangeBuilder_ == null) { - return cohortsRange_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.CohortsRange cohorts_range = 2; - */ - public Builder setCohortsRange(com.google.analytics.data.v1alpha.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.v1alpha.CohortsRange cohorts_range = 2; - */ - public Builder setCohortsRange( - com.google.analytics.data.v1alpha.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.v1alpha.CohortsRange cohorts_range = 2; - */ - public Builder mergeCohortsRange(com.google.analytics.data.v1alpha.CohortsRange value) { - if (cohortsRangeBuilder_ == null) { - if (cohortsRange_ != null) { - cohortsRange_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.CohortsRange cohorts_range = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.CohortsRange cohorts_range = 2; - */ - public com.google.analytics.data.v1alpha.CohortsRangeOrBuilder getCohortsRangeOrBuilder() { - if (cohortsRangeBuilder_ != null) { - return cohortsRangeBuilder_.getMessageOrBuilder(); - } else { - return cohortsRange_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.CohortsRange cohorts_range = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.CohortsRange, - com.google.analytics.data.v1alpha.CohortsRange.Builder, - com.google.analytics.data.v1alpha.CohortsRangeOrBuilder> - getCohortsRangeFieldBuilder() { - if (cohortsRangeBuilder_ == null) { - cohortsRangeBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.CohortsRange, - com.google.analytics.data.v1alpha.CohortsRange.Builder, - com.google.analytics.data.v1alpha.CohortsRangeOrBuilder>( - getCohortsRange(), getParentForChildren(), isClean()); - cohortsRange_ = null; - } - return cohortsRangeBuilder_; - } - - private com.google.analytics.data.v1alpha.CohortReportSettings cohortReportSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.CohortReportSettings, - com.google.analytics.data.v1alpha.CohortReportSettings.Builder, - com.google.analytics.data.v1alpha.CohortReportSettingsOrBuilder> - cohortReportSettingsBuilder_; - /** - * - * - *
-     * Optional settings for a cohort report.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.CohortReportSettings cohort_report_settings = 3; - * - * @return The cohortReportSettings. - */ - public com.google.analytics.data.v1alpha.CohortReportSettings getCohortReportSettings() { - if (cohortReportSettingsBuilder_ == null) { - return cohortReportSettings_ == null - ? com.google.analytics.data.v1alpha.CohortReportSettings.getDefaultInstance() - : cohortReportSettings_; - } else { - return cohortReportSettingsBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Optional settings for a cohort report.
-     * 
- * - * .google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3; - */ - public Builder setCohortReportSettings( - com.google.analytics.data.v1alpha.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.v1alpha.CohortReportSettings cohort_report_settings = 3; - */ - public Builder setCohortReportSettings( - com.google.analytics.data.v1alpha.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.v1alpha.CohortReportSettings cohort_report_settings = 3; - */ - public Builder mergeCohortReportSettings( - com.google.analytics.data.v1alpha.CohortReportSettings value) { - if (cohortReportSettingsBuilder_ == null) { - if (cohortReportSettings_ != null) { - cohortReportSettings_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.CohortReportSettings cohort_report_settings = 3; - */ - public com.google.analytics.data.v1alpha.CohortReportSettings.Builder - getCohortReportSettingsBuilder() { - - onChanged(); - return getCohortReportSettingsFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Optional settings for a cohort report.
-     * 
- * - * .google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3; - */ - public com.google.analytics.data.v1alpha.CohortReportSettingsOrBuilder - getCohortReportSettingsOrBuilder() { - if (cohortReportSettingsBuilder_ != null) { - return cohortReportSettingsBuilder_.getMessageOrBuilder(); - } else { - return cohortReportSettings_ == null - ? com.google.analytics.data.v1alpha.CohortReportSettings.getDefaultInstance() - : cohortReportSettings_; - } - } - /** - * - * - *
-     * Optional settings for a cohort report.
-     * 
- * - * .google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.CohortReportSettings, - com.google.analytics.data.v1alpha.CohortReportSettings.Builder, - com.google.analytics.data.v1alpha.CohortReportSettingsOrBuilder> - getCohortReportSettingsFieldBuilder() { - if (cohortReportSettingsBuilder_ == null) { - cohortReportSettingsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.CohortReportSettings, - com.google.analytics.data.v1alpha.CohortReportSettings.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.CohortSpec) - private static final com.google.analytics.data.v1alpha.CohortSpec DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.CohortSpec(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortSpecOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortSpecOrBuilder.java deleted file mode 100644 index 7742bd5b..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortSpecOrBuilder.java +++ /dev/null @@ -1,161 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface CohortSpecOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Cohort cohorts = 1; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Cohort cohorts = 1; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.CohortsRange cohorts_range = 2; - * - * @return The cohortsRange. - */ - com.google.analytics.data.v1alpha.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.v1alpha.CohortsRange cohorts_range = 2; - */ - com.google.analytics.data.v1alpha.CohortsRangeOrBuilder getCohortsRangeOrBuilder(); - - /** - * - * - *
-   * Optional settings for a cohort report.
-   * 
- * - * .google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3; - * - * @return Whether the cohortReportSettings field is set. - */ - boolean hasCohortReportSettings(); - /** - * - * - *
-   * Optional settings for a cohort report.
-   * 
- * - * .google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3; - * - * @return The cohortReportSettings. - */ - com.google.analytics.data.v1alpha.CohortReportSettings getCohortReportSettings(); - /** - * - * - *
-   * Optional settings for a cohort report.
-   * 
- * - * .google.analytics.data.v1alpha.CohortReportSettings cohort_report_settings = 3; - */ - com.google.analytics.data.v1alpha.CohortReportSettingsOrBuilder - getCohortReportSettingsOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortsRange.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortsRange.java deleted file mode 100644 index 3aed2bb0..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortsRange.java +++ /dev/null @@ -1,1059 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * 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.v1alpha.CohortsRange} - */ -public final class CohortsRange extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_CohortsRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_CohortsRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.CohortsRange.class, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.CohortsRange.Granularity) - } - - public static final int GRANULARITY_FIELD_NUMBER = 1; - private int granularity_; - /** - * - * - *
-   * The granularity used to interpret the `startOffset` and `endOffset` for the
-   * extended reporting date range for a cohort report.
-   * 
- * - * .google.analytics.data.v1alpha.CohortsRange.Granularity granularity = 1; - * - * @return The enum numeric value on the wire for granularity. - */ - @java.lang.Override - public int getGranularityValue() { - return granularity_; - } - /** - * - * - *
-   * The granularity used to interpret the `startOffset` and `endOffset` for the
-   * extended reporting date range for a cohort report.
-   * 
- * - * .google.analytics.data.v1alpha.CohortsRange.Granularity granularity = 1; - * - * @return The granularity. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortsRange.Granularity getGranularity() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.CohortsRange.Granularity result = - com.google.analytics.data.v1alpha.CohortsRange.Granularity.valueOf(granularity_); - return result == null - ? com.google.analytics.data.v1alpha.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_; - /** - * - * - *
-   * `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.v1alpha.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.v1alpha.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.v1alpha.CohortsRange)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.CohortsRange other = - (com.google.analytics.data.v1alpha.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.v1alpha.CohortsRange parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.CohortsRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.CohortsRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.CohortsRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.CohortsRange parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.CohortsRange} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.CohortsRange) - com.google.analytics.data.v1alpha.CohortsRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_CohortsRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_CohortsRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.CohortsRange.class, - com.google.analytics.data.v1alpha.CohortsRange.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_CohortsRange_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortsRange getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.CohortsRange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortsRange build() { - com.google.analytics.data.v1alpha.CohortsRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortsRange buildPartial() { - com.google.analytics.data.v1alpha.CohortsRange result = - new com.google.analytics.data.v1alpha.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.v1alpha.CohortsRange) { - return mergeFrom((com.google.analytics.data.v1alpha.CohortsRange) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.CohortsRange other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.CohortsRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.CohortsRange) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int granularity_ = 0; - /** - * - * - *
-     * The granularity used to interpret the `startOffset` and `endOffset` for the
-     * extended reporting date range for a cohort report.
-     * 
- * - * .google.analytics.data.v1alpha.CohortsRange.Granularity granularity = 1; - * - * @return The enum numeric value on the wire for granularity. - */ - @java.lang.Override - public int getGranularityValue() { - return granularity_; - } - /** - * - * - *
-     * The granularity used to interpret the `startOffset` and `endOffset` for the
-     * extended reporting date range for a cohort report.
-     * 
- * - * .google.analytics.data.v1alpha.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; - } - /** - * - * - *
-     * The granularity used to interpret the `startOffset` and `endOffset` for the
-     * extended reporting date range for a cohort report.
-     * 
- * - * .google.analytics.data.v1alpha.CohortsRange.Granularity granularity = 1; - * - * @return The granularity. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortsRange.Granularity getGranularity() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.CohortsRange.Granularity result = - com.google.analytics.data.v1alpha.CohortsRange.Granularity.valueOf(granularity_); - return result == null - ? com.google.analytics.data.v1alpha.CohortsRange.Granularity.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The granularity used to interpret the `startOffset` and `endOffset` for the
-     * extended reporting date range for a cohort report.
-     * 
- * - * .google.analytics.data.v1alpha.CohortsRange.Granularity granularity = 1; - * - * @param value The granularity to set. - * @return This builder for chaining. - */ - public Builder setGranularity( - com.google.analytics.data.v1alpha.CohortsRange.Granularity value) { - if (value == null) { - throw new NullPointerException(); - } - - granularity_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The granularity used to interpret the `startOffset` and `endOffset` for the
-     * extended reporting date range for a cohort report.
-     * 
- * - * .google.analytics.data.v1alpha.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_; - /** - * - * - *
-     * `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_; - } - /** - * - * - *
-     * `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; - } - /** - * - * - *
-     * `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.v1alpha.CohortsRange) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.CohortsRange) - private static final com.google.analytics.data.v1alpha.CohortsRange DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.CohortsRange(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.CohortsRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortsRangeOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/CohortsRangeOrBuilder.java deleted file mode 100644 index 30282710..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface CohortsRangeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.CohortsRange) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The granularity used to interpret the `startOffset` and `endOffset` for the
-   * extended reporting date range for a cohort report.
-   * 
- * - * .google.analytics.data.v1alpha.CohortsRange.Granularity granularity = 1; - * - * @return The enum numeric value on the wire for granularity. - */ - int getGranularityValue(); - /** - * - * - *
-   * The granularity used to interpret the `startOffset` and `endOffset` for the
-   * extended reporting date range for a cohort report.
-   * 
- * - * .google.analytics.data.v1alpha.CohortsRange.Granularity granularity = 1; - * - * @return The granularity. - */ - com.google.analytics.data.v1alpha.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(); - - /** - * - * - *
-   * `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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java deleted file mode 100644 index 74f1809e..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests
- * are allowed up to 4 date ranges.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.DateRange} - */ -public final class DateRange extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DateRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DateRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DateRange.class, - com.google.analytics.data.v1alpha.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 (!getStartDateBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startDate_); - } - if (!getEndDateBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endDate_); - } - if (!getNameBytes().isEmpty()) { - 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 (!getStartDateBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, startDate_); - } - if (!getEndDateBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endDate_); - } - if (!getNameBytes().isEmpty()) { - 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.v1alpha.DateRange)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.DateRange other = - (com.google.analytics.data.v1alpha.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.v1alpha.DateRange parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DateRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DateRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DateRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DateRange parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DateRange} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DateRange) - com.google.analytics.data.v1alpha.DateRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DateRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DateRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DateRange.class, - com.google.analytics.data.v1alpha.DateRange.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DateRange_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DateRange getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.DateRange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DateRange build() { - com.google.analytics.data.v1alpha.DateRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DateRange buildPartial() { - com.google.analytics.data.v1alpha.DateRange result = - new com.google.analytics.data.v1alpha.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.v1alpha.DateRange) { - return mergeFrom((com.google.analytics.data.v1alpha.DateRange) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.DateRange other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.DateRange parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.DateRange) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DateRange) - private static final com.google.analytics.data.v1alpha.DateRange DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DateRange(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DateRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRangeOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRangeOrBuilder.java deleted file mode 100644 index f111e6c0..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface DateRangeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java deleted file mode 100644 index 5f4a7af9..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java +++ /dev/null @@ -1,985 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * 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 8 dimensions.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Dimension} - */ -public final class Dimension extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.Builder subBuilder = null; - if (dimensionExpression_ != null) { - subBuilder = dimensionExpression_.toBuilder(); - } - dimensionExpression_ = - input.readMessage( - com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Dimension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Dimension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Dimension.class, - com.google.analytics.data.v1alpha.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. For example if a `dimensionExpression` concatenates `country`
-   * and `city`, you could call that dimension `countryAndCity`.
-   * 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. For example if a `dimensionExpression` concatenates `country`
-   * and `city`, you could call that dimension `countryAndCity`.
-   * 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.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - * - * @return The dimensionExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression getDimensionExpression() { - return dimensionExpression_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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 (!getNameBytes().isEmpty()) { - 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 (!getNameBytes().isEmpty()) { - 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.v1alpha.Dimension)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Dimension other = - (com.google.analytics.data.v1alpha.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.v1alpha.Dimension parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Dimension parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Dimension parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Dimension parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Dimension parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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 8 dimensions.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Dimension} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Dimension) - com.google.analytics.data.v1alpha.DimensionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Dimension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Dimension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Dimension.class, - com.google.analytics.data.v1alpha.Dimension.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Dimension_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Dimension getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Dimension.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Dimension build() { - com.google.analytics.data.v1alpha.Dimension result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Dimension buildPartial() { - com.google.analytics.data.v1alpha.Dimension result = - new com.google.analytics.data.v1alpha.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.v1alpha.Dimension) { - return mergeFrom((com.google.analytics.data.v1alpha.Dimension) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Dimension other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.Dimension parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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. For example if a `dimensionExpression` concatenates `country`
-     * and `city`, you could call that dimension `countryAndCity`.
-     * 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. For example if a `dimensionExpression` concatenates `country`
-     * and `city`, you could call that dimension `countryAndCity`.
-     * 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. For example if a `dimensionExpression` concatenates `country`
-     * and `city`, you could call that dimension `countryAndCity`.
-     * 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. For example if a `dimensionExpression` concatenates `country`
-     * and `city`, you could call that dimension `countryAndCity`.
-     * 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. For example if a `dimensionExpression` concatenates `country`
-     * and `city`, you could call that dimension `countryAndCity`.
-     * 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.v1alpha.DimensionExpression dimensionExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression, - com.google.analytics.data.v1alpha.DimensionExpression.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - * - * @return The dimensionExpression. - */ - public com.google.analytics.data.v1alpha.DimensionExpression getDimensionExpression() { - if (dimensionExpressionBuilder_ == null) { - return dimensionExpression_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - */ - public Builder setDimensionExpression( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - */ - public Builder setDimensionExpression( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - */ - public Builder mergeDimensionExpression( - com.google.analytics.data.v1alpha.DimensionExpression value) { - if (dimensionExpressionBuilder_ == null) { - if (dimensionExpression_ != null) { - dimensionExpression_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - */ - public com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder - getDimensionExpressionOrBuilder() { - if (dimensionExpressionBuilder_ != null) { - return dimensionExpressionBuilder_.getMessageOrBuilder(); - } else { - return dimensionExpression_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression, - com.google.analytics.data.v1alpha.DimensionExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder> - getDimensionExpressionFieldBuilder() { - if (dimensionExpressionBuilder_ == null) { - dimensionExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression, - com.google.analytics.data.v1alpha.DimensionExpression.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Dimension) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Dimension) - private static final com.google.analytics.data.v1alpha.Dimension DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Dimension(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Dimension getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java deleted file mode 100644 index 75f82454..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java +++ /dev/null @@ -1,3346 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * 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.v1alpha.DimensionExpression} - */ -public final class DimensionExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression.Builder - subBuilder = null; - if (oneExpressionCase_ == 4) { - subBuilder = - ((com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_) - .toBuilder(); - } - oneExpression_ = - input.readMessage( - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_); - oneExpression_ = subBuilder.buildPartial(); - } - oneExpressionCase_ = 4; - break; - } - case 42: - { - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder - subBuilder = null; - if (oneExpressionCase_ == 5) { - subBuilder = - ((com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_) - .toBuilder(); - } - oneExpression_ = - input.readMessage( - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_); - oneExpression_ = subBuilder.buildPartial(); - } - oneExpressionCase_ = 5; - break; - } - case 50: - { - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder - subBuilder = null; - if (oneExpressionCase_ == 6) { - subBuilder = - ((com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - oneExpression_) - .toBuilder(); - } - oneExpression_ = - input.readMessage( - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionExpression.class, - com.google.analytics.data.v1alpha.DimensionExpression.Builder.class); - } - - public interface CaseExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression} - */ - public static final class CaseExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.class, - com.google.analytics.data.v1alpha.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 (!getDimensionNameBytes().isEmpty()) { - 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 (!getDimensionNameBytes().isEmpty()) { - 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.v1alpha.DimensionExpression.CaseExpression)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression other = - (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression.CaseExpression} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.class, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder.class); - } - - // Construct using - // com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression build() { - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression buildPartial() { - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression result = - new com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression) { - return mergeFrom( - (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression other) { - if (other - == com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - private static final com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface ConcatenateExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression} - */ - public static final class ConcatenateExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.class, - com.google.analytics.data.v1alpha.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 (!getDelimiterBytes().isEmpty()) { - 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 (!getDelimiterBytes().isEmpty()) { - 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.v1alpha.DimensionExpression.ConcatenateExpression)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression other = - (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.class, - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder - .class); - } - - // Construct using - // com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression build() { - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - buildPartial() { - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression result = - new com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression) { - return mergeFrom( - (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression other) { - if (other - == com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - private static final com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - * @return The lowerCase. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getLowerCase() { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - /** - * - * - *
-   * Used to convert a dimension value to lower case.
-   * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder - getLowerCaseOrBuilder() { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - - public static final int UPPER_CASE_FIELD_NUMBER = 5; - /** - * - * - *
-   * Used to convert a dimension value to upper case.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - * @return The upperCase. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getUpperCase() { - if (oneExpressionCase_ == 5) { - return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - /** - * - * - *
-   * Used to convert a dimension value to upper case.
-   * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder - getUpperCaseOrBuilder() { - if (oneExpressionCase_ == 5) { - return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_; - } - return com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - * - * @return The concatenate. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - getConcatenate() { - if (oneExpressionCase_ == 6) { - return (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } - /** - * - * - *
-   * Used to combine dimension values to a single dimension.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder - getConcatenateOrBuilder() { - if (oneExpressionCase_ == 6) { - return (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - oneExpression_; - } - return com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression) oneExpression_); - } - if (oneExpressionCase_ == 5) { - output.writeMessage( - 5, (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_); - } - if (oneExpressionCase_ == 6) { - output.writeMessage( - 6, - (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression) - oneExpression_); - } - if (oneExpressionCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, - (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_); - } - if (oneExpressionCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, - (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.DimensionExpression other = - (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionExpression) - com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionExpression.class, - com.google.analytics.data.v1alpha.DimensionExpression.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.DimensionExpression.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression build() { - com.google.analytics.data.v1alpha.DimensionExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression buildPartial() { - com.google.analytics.data.v1alpha.DimensionExpression result = - new com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression) { - return mergeFrom((com.google.analytics.data.v1alpha.DimensionExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.DimensionExpression other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder> - lowerCaseBuilder_; - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - * - * @return The lowerCase. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getLowerCase() { - if (lowerCaseBuilder_ == null) { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } else { - if (oneExpressionCase_ == 4) { - return lowerCaseBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - */ - public Builder setLowerCase( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - */ - public Builder setLowerCase( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - */ - public Builder mergeLowerCase( - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression value) { - if (lowerCaseBuilder_ == null) { - if (oneExpressionCase_ == 4 - && oneExpression_ - != com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance()) { - oneExpression_ = - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.newBuilder( - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - */ - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder - getLowerCaseBuilder() { - return getLowerCaseFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder - getLowerCaseOrBuilder() { - if ((oneExpressionCase_ == 4) && (lowerCaseBuilder_ != null)) { - return lowerCaseBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder> - getLowerCaseFieldBuilder() { - if (lowerCaseBuilder_ == null) { - if (!(oneExpressionCase_ == 4)) { - oneExpression_ = - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - lowerCaseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder>( - (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_, - getParentForChildren(), - isClean()); - oneExpression_ = null; - } - oneExpressionCase_ = 4; - onChanged(); - ; - return lowerCaseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder> - upperCaseBuilder_; - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - * - * @return The upperCase. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getUpperCase() { - if (upperCaseBuilder_ == null) { - if (oneExpressionCase_ == 5) { - return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } else { - if (oneExpressionCase_ == 5) { - return upperCaseBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - */ - public Builder setUpperCase( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - */ - public Builder setUpperCase( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - */ - public Builder mergeUpperCase( - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression value) { - if (upperCaseBuilder_ == null) { - if (oneExpressionCase_ == 5 - && oneExpression_ - != com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance()) { - oneExpression_ = - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.newBuilder( - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - */ - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder - getUpperCaseBuilder() { - return getUpperCaseFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder - getUpperCaseOrBuilder() { - if ((oneExpressionCase_ == 5) && (upperCaseBuilder_ != null)) { - return upperCaseBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 5) { - return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder> - getUpperCaseFieldBuilder() { - if (upperCaseBuilder_ == null) { - if (!(oneExpressionCase_ == 5)) { - oneExpression_ = - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - upperCaseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder>( - (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_, - getParentForChildren(), - isClean()); - oneExpression_ = null; - } - oneExpressionCase_ = 5; - onChanged(); - ; - return upperCaseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression, - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder> - concatenateBuilder_; - /** - * - * - *
-     * Used to combine dimension values to a single dimension.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * - * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - * - * @return The concatenate. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - getConcatenate() { - if (concatenateBuilder_ == null) { - if (oneExpressionCase_ == 6) { - return (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } else { - if (oneExpressionCase_ == 6) { - return concatenateBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to combine dimension values to a single dimension.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * - * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - public Builder setConcatenate( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - public Builder setConcatenate( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - public Builder mergeConcatenate( - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression value) { - if (concatenateBuilder_ == null) { - if (oneExpressionCase_ == 6 - && oneExpression_ - != com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .getDefaultInstance()) { - oneExpression_ = - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .newBuilder( - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder - getConcatenateOrBuilder() { - if ((oneExpressionCase_ == 6) && (concatenateBuilder_ != null)) { - return concatenateBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 6) { - return (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to combine dimension values to a single dimension.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * - * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression, - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder> - getConcatenateFieldBuilder() { - if (concatenateBuilder_ == null) { - if (!(oneExpressionCase_ == 6)) { - oneExpression_ = - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } - concatenateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression, - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression - .ConcatenateExpressionOrBuilder>( - (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionExpression) - private static final com.google.analytics.data.v1alpha.DimensionExpression DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionExpression(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpressionOrBuilder.java deleted file mode 100644 index 78304cc0..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface DimensionExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.DimensionExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Used to convert a dimension value to lower case.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - * @return The lowerCase. - */ - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getLowerCase(); - /** - * - * - *
-   * Used to convert a dimension value to lower case.
-   * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - */ - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder - getLowerCaseOrBuilder(); - - /** - * - * - *
-   * Used to convert a dimension value to upper case.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - * @return The upperCase. - */ - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getUpperCase(); - /** - * - * - *
-   * Used to convert a dimension value to upper case.
-   * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - */ - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder - getUpperCaseOrBuilder(); - - /** - * - * - *
-   * Used to combine dimension values to a single dimension.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - * - * @return The concatenate. - */ - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression getConcatenate(); - /** - * - * - *
-   * Used to combine dimension values to a single dimension.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder - getConcatenateOrBuilder(); - - public com.google.analytics.data.v1alpha.DimensionExpression.OneExpressionCase - getOneExpressionCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java deleted file mode 100644 index 92100cd5..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java +++ /dev/null @@ -1,642 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * 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.v1alpha.DimensionHeader} - */ -public final class DimensionHeader extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionHeader.class, - com.google.analytics.data.v1alpha.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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.DimensionHeader)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.DimensionHeader other = - (com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionHeader} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionHeader) - com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionHeader.class, - com.google.analytics.data.v1alpha.DimensionHeader.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionHeader getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionHeader build() { - com.google.analytics.data.v1alpha.DimensionHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionHeader buildPartial() { - com.google.analytics.data.v1alpha.DimensionHeader result = - new com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader) { - return mergeFrom((com.google.analytics.data.v1alpha.DimensionHeader) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.DimensionHeader other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionHeader) - private static final com.google.analytics.data.v1alpha.DimensionHeader DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionHeader(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeaderOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeaderOrBuilder.java deleted file mode 100644 index e514389a..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface DimensionHeaderOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadata.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadata.java deleted file mode 100644 index 5a351094..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadata.java +++ /dev/null @@ -1,1417 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Explains a dimension.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.DimensionMetadata} - */ -public final class DimensionMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - @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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionMetadata.class, - com.google.analytics.data.v1alpha.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_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getApiNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiName_); - } - if (!getUiNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uiName_); - } - if (!getDescriptionBytes().isEmpty()) { - 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_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getApiNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiName_); - } - if (!getUiNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uiName_); - } - if (!getDescriptionBytes().isEmpty()) { - 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_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = 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.v1alpha.DimensionMetadata)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.DimensionMetadata other = - (com.google.analytics.data.v1alpha.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 (!unknownFields.equals(other.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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.DimensionMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionMetadata) - com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionMetadata.class, - com.google.analytics.data.v1alpha.DimensionMetadata.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionMetadata getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.DimensionMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionMetadata build() { - com.google.analytics.data.v1alpha.DimensionMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionMetadata buildPartial() { - com.google.analytics.data.v1alpha.DimensionMetadata result = - new com.google.analytics.data.v1alpha.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_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.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.v1alpha.DimensionMetadata) { - return mergeFrom((com.google.analytics.data.v1alpha.DimensionMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.DimensionMetadata other) { - if (other == com.google.analytics.data.v1alpha.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()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - 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.v1alpha.DimensionMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.DimensionMetadata) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionMetadata) - private static final com.google.analytics.data.v1alpha.DimensionMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionMetadata(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadataOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadataOrBuilder.java deleted file mode 100644 index eb97302b..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionMetadataOrBuilder.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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface DimensionMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionOrBuilder.java deleted file mode 100644 index 00b91969..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionOrBuilder.java +++ /dev/null @@ -1,102 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface DimensionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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. For example if a `dimensionExpression` concatenates `country`
-   * and `city`, you could call that dimension `countryAndCity`.
-   * 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. For example if a `dimensionExpression` concatenates `country`
-   * and `city`, you could call that dimension `countryAndCity`.
-   * 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.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - * - * @return The dimensionExpression. - */ - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - */ - com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder getDimensionExpressionOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java deleted file mode 100644 index 6d3411e4..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The value of a dimension.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.DimensionValue} - */ -public final class DimensionValue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionValue.class, - com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.DimensionValue other = - (com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionValue) - com.google.analytics.data.v1alpha.DimensionValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionValue.class, - com.google.analytics.data.v1alpha.DimensionValue.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionValue getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.DimensionValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionValue build() { - com.google.analytics.data.v1alpha.DimensionValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionValue buildPartial() { - com.google.analytics.data.v1alpha.DimensionValue result = - new com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue) { - return mergeFrom((com.google.analytics.data.v1alpha.DimensionValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.DimensionValue other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionValue) - private static final com.google.analytics.data.v1alpha.DimensionValue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionValue(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValueOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValueOrBuilder.java deleted file mode 100644 index 2813f66c..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface DimensionValueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.DimensionValue.OneValueCase getOneValueCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Entity.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Entity.java deleted file mode 100644 index 140111da..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Entity.java +++ /dev/null @@ -1,647 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The unique identifier of the property whose events are tracked.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Entity} - */ -public final class Entity extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.Entity) - EntityOrBuilder { - private static final long serialVersionUID = 0L; - // Use Entity.newBuilder() to construct. - private Entity(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Entity() { - propertyId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Entity(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private Entity( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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(); - - propertyId_ = 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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Entity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Entity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Entity.class, - com.google.analytics.data.v1alpha.Entity.Builder.class); - } - - public static final int PROPERTY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object propertyId_; - /** - * - * - *
-   * A Google Analytics GA4 property id. To learn more, see [where to find your
-   * Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * 
- * - * string property_id = 1; - * - * @return The propertyId. - */ - @java.lang.Override - public java.lang.String getPropertyId() { - java.lang.Object ref = propertyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - propertyId_ = s; - return s; - } - } - /** - * - * - *
-   * A Google Analytics GA4 property id. To learn more, see [where to find your
-   * Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * 
- * - * string property_id = 1; - * - * @return The bytes for propertyId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPropertyIdBytes() { - java.lang.Object ref = propertyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - propertyId_ = 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 (!getPropertyIdBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, propertyId_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPropertyIdBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, propertyId_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = 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.v1alpha.Entity)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Entity other = (com.google.analytics.data.v1alpha.Entity) obj; - - if (!getPropertyId().equals(other.getPropertyId())) return false; - if (!unknownFields.equals(other.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_ID_FIELD_NUMBER; - hash = (53 * hash) + getPropertyId().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.Entity parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.Entity 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.v1alpha.Entity parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.Entity parseFrom( - 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.v1alpha.Entity parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.Entity parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.Entity parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.Entity parseFrom( - java.io.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.v1alpha.Entity parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.Entity parseDelimitedFrom( - java.io.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.v1alpha.Entity parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.Entity parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.Entity prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 unique identifier of the property whose events are tracked.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Entity} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Entity) - com.google.analytics.data.v1alpha.EntityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Entity_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Entity_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Entity.class, - com.google.analytics.data.v1alpha.Entity.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.Entity.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(); - propertyId_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Entity_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Entity getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Entity.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Entity build() { - com.google.analytics.data.v1alpha.Entity result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Entity buildPartial() { - com.google.analytics.data.v1alpha.Entity result = - new com.google.analytics.data.v1alpha.Entity(this); - result.propertyId_ = propertyId_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.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.v1alpha.Entity) { - return mergeFrom((com.google.analytics.data.v1alpha.Entity) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Entity other) { - if (other == com.google.analytics.data.v1alpha.Entity.getDefaultInstance()) return this; - if (!other.getPropertyId().isEmpty()) { - propertyId_ = other.propertyId_; - 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.v1alpha.Entity parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.Entity) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object propertyId_ = ""; - /** - * - * - *
-     * A Google Analytics GA4 property id. To learn more, see [where to find your
-     * Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * 
- * - * string property_id = 1; - * - * @return The propertyId. - */ - public java.lang.String getPropertyId() { - java.lang.Object ref = propertyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - propertyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * A Google Analytics GA4 property id. To learn more, see [where to find your
-     * Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * 
- * - * string property_id = 1; - * - * @return The bytes for propertyId. - */ - public com.google.protobuf.ByteString getPropertyIdBytes() { - java.lang.Object ref = propertyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - propertyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * A Google Analytics GA4 property id. To learn more, see [where to find your
-     * Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * 
- * - * string property_id = 1; - * - * @param value The propertyId to set. - * @return This builder for chaining. - */ - public Builder setPropertyId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - propertyId_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A Google Analytics GA4 property id. To learn more, see [where to find your
-     * Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * 
- * - * string property_id = 1; - * - * @return This builder for chaining. - */ - public Builder clearPropertyId() { - - propertyId_ = getDefaultInstance().getPropertyId(); - onChanged(); - return this; - } - /** - * - * - *
-     * A Google Analytics GA4 property id. To learn more, see [where to find your
-     * Property
-     * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-     * 
- * - * string property_id = 1; - * - * @param value The bytes for propertyId to set. - * @return This builder for chaining. - */ - public Builder setPropertyIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - propertyId_ = value; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.Entity) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Entity) - private static final com.google.analytics.data.v1alpha.Entity DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Entity(); - } - - public static com.google.analytics.data.v1alpha.Entity getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Entity parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Entity(input, extensionRegistry); - } - }; - - public static 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.v1alpha.Entity getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EntityOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EntityOrBuilder.java deleted file mode 100644 index 4ac9335c..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EntityOrBuilder.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface EntityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.Entity) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A Google Analytics GA4 property id. To learn more, see [where to find your
-   * Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * 
- * - * string property_id = 1; - * - * @return The propertyId. - */ - java.lang.String getPropertyId(); - /** - * - * - *
-   * A Google Analytics GA4 property id. To learn more, see [where to find your
-   * Property
-   * ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id).
-   * 
- * - * string property_id = 1; - * - * @return The bytes for propertyId. - */ - com.google.protobuf.ByteString getPropertyIdBytes(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java deleted file mode 100644 index 208617e3..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java +++ /dev/null @@ -1,6453 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * An expression to filter dimension or metric values.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Filter} - */ -public final class Filter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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 16: - { - oneFilterCase_ = 2; - oneFilter_ = input.readBool(); - break; - } - case 26: - { - com.google.analytics.data.v1alpha.Filter.StringFilter.Builder subBuilder = null; - if (oneFilterCase_ == 3) { - subBuilder = - ((com.google.analytics.data.v1alpha.Filter.StringFilter) oneFilter_) - .toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.Filter.StringFilter.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.Filter.StringFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 3; - break; - } - case 34: - { - com.google.analytics.data.v1alpha.Filter.InListFilter.Builder subBuilder = null; - if (oneFilterCase_ == 4) { - subBuilder = - ((com.google.analytics.data.v1alpha.Filter.InListFilter) oneFilter_) - .toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.Filter.InListFilter.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.Filter.InListFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 4; - break; - } - case 42: - { - com.google.analytics.data.v1alpha.Filter.NumericFilter.Builder subBuilder = null; - if (oneFilterCase_ == 5) { - subBuilder = - ((com.google.analytics.data.v1alpha.Filter.NumericFilter) oneFilter_) - .toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.Filter.NumericFilter.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.Filter.NumericFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 5; - break; - } - case 50: - { - com.google.analytics.data.v1alpha.Filter.BetweenFilter.Builder subBuilder = null; - if (oneFilterCase_ == 6) { - subBuilder = - ((com.google.analytics.data.v1alpha.Filter.BetweenFilter) oneFilter_) - .toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.Filter.BetweenFilter.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Filter.class, - com.google.analytics.data.v1alpha.Filter.Builder.class); - } - - public interface StringFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.Filter.StringFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.Filter.StringFilter.MatchType match_type = 1; - * - * @return The matchType. - */ - com.google.analytics.data.v1alpha.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.v1alpha.Filter.StringFilter} - */ - public static final class StringFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_StringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_StringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Filter.StringFilter.class, - com.google.analytics.data.v1alpha.Filter.StringFilter.Builder.class); - } - - /** - * - * - *
-     * The match type of a string filter
-     * 
- * - * Protobuf enum {@code google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Filter.StringFilter.MatchType) - } - - public static final int MATCH_TYPE_FIELD_NUMBER = 1; - private int matchType_; - /** - * - * - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.Filter.StringFilter.MatchType match_type = 1; - * - * @return The matchType. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.StringFilter.MatchType getMatchType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.Filter.StringFilter.MatchType result = - com.google.analytics.data.v1alpha.Filter.StringFilter.MatchType.valueOf(matchType_); - return result == null - ? com.google.analytics.data.v1alpha.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.v1alpha.Filter.StringFilter.MatchType.MATCH_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, matchType_); - } - if (!getValueBytes().isEmpty()) { - 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.v1alpha.Filter.StringFilter.MatchType.MATCH_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, matchType_); - } - if (!getValueBytes().isEmpty()) { - 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.v1alpha.Filter.StringFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Filter.StringFilter other = - (com.google.analytics.data.v1alpha.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.v1alpha.Filter.StringFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter.StringFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter.StringFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Filter.StringFilter} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Filter.StringFilter) - com.google.analytics.data.v1alpha.Filter.StringFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_StringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_StringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Filter.StringFilter.class, - com.google.analytics.data.v1alpha.Filter.StringFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_StringFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.StringFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Filter.StringFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.StringFilter build() { - com.google.analytics.data.v1alpha.Filter.StringFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.StringFilter buildPartial() { - com.google.analytics.data.v1alpha.Filter.StringFilter result = - new com.google.analytics.data.v1alpha.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.v1alpha.Filter.StringFilter) { - return mergeFrom((com.google.analytics.data.v1alpha.Filter.StringFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Filter.StringFilter other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.Filter.StringFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Filter.StringFilter.MatchType match_type = 1; - * - * @return The matchType. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.StringFilter.MatchType getMatchType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.Filter.StringFilter.MatchType result = - com.google.analytics.data.v1alpha.Filter.StringFilter.MatchType.valueOf(matchType_); - return result == null - ? com.google.analytics.data.v1alpha.Filter.StringFilter.MatchType.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The match type for this filter.
-       * 
- * - * .google.analytics.data.v1alpha.Filter.StringFilter.MatchType match_type = 1; - * - * @param value The matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchType( - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Filter.StringFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Filter.StringFilter) - private static final com.google.analytics.data.v1alpha.Filter.StringFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Filter.StringFilter(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter.StringFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface InListFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.Filter.InListFilter} - */ - public static final class InListFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_InListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_InListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Filter.InListFilter.class, - com.google.analytics.data.v1alpha.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.v1alpha.Filter.InListFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Filter.InListFilter other = - (com.google.analytics.data.v1alpha.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.v1alpha.Filter.InListFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter.InListFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter.InListFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Filter.InListFilter} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Filter.InListFilter) - com.google.analytics.data.v1alpha.Filter.InListFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_InListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_InListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Filter.InListFilter.class, - com.google.analytics.data.v1alpha.Filter.InListFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_InListFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.InListFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Filter.InListFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.InListFilter build() { - com.google.analytics.data.v1alpha.Filter.InListFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.InListFilter buildPartial() { - com.google.analytics.data.v1alpha.Filter.InListFilter result = - new com.google.analytics.data.v1alpha.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.v1alpha.Filter.InListFilter) { - return mergeFrom((com.google.analytics.data.v1alpha.Filter.InListFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Filter.InListFilter other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.Filter.InListFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.Filter.InListFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Filter.InListFilter) - private static final com.google.analytics.data.v1alpha.Filter.InListFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Filter.InListFilter(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter.InListFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface NumericFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.Filter.NumericFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.Filter.NumericFilter.Operation operation = 1; - * - * @return The operation. - */ - com.google.analytics.data.v1alpha.Filter.NumericFilter.Operation getOperation(); - - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue value = 2; - * - * @return Whether the value field is set. - */ - boolean hasValue(); - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue value = 2; - * - * @return The value. - */ - com.google.analytics.data.v1alpha.NumericValue getValue(); - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue value = 2; - */ - com.google.analytics.data.v1alpha.NumericValueOrBuilder getValueOrBuilder(); - } - /** - * - * - *
-   * Filters for numeric or date values.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Filter.NumericFilter} - */ - public static final class NumericFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.NumericValue.Builder subBuilder = null; - if (value_ != null) { - subBuilder = value_.toBuilder(); - } - value_ = - input.readMessage( - com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_NumericFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_NumericFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Filter.NumericFilter.class, - com.google.analytics.data.v1alpha.Filter.NumericFilter.Builder.class); - } - - /** - * - * - *
-     * The operation applied to a numeric filter
-     * 
- * - * Protobuf enum {@code google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Filter.NumericFilter.Operation) - } - - public static final int OPERATION_FIELD_NUMBER = 1; - private int operation_; - /** - * - * - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.Filter.NumericFilter.Operation operation = 1; - * - * @return The operation. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.NumericFilter.Operation getOperation() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.Filter.NumericFilter.Operation result = - com.google.analytics.data.v1alpha.Filter.NumericFilter.Operation.valueOf(operation_); - return result == null - ? com.google.analytics.data.v1alpha.Filter.NumericFilter.Operation.UNRECOGNIZED - : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.NumericValue value_; - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericValue value = 2; - * - * @return The value. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericValue getValue() { - return value_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : value_; - } - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue value = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Filter.NumericFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Filter.NumericFilter other = - (com.google.analytics.data.v1alpha.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.v1alpha.Filter.NumericFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter.NumericFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter.NumericFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Filter.NumericFilter} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Filter.NumericFilter) - com.google.analytics.data.v1alpha.Filter.NumericFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_NumericFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_NumericFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Filter.NumericFilter.class, - com.google.analytics.data.v1alpha.Filter.NumericFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_NumericFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.NumericFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Filter.NumericFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.NumericFilter build() { - com.google.analytics.data.v1alpha.Filter.NumericFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.NumericFilter buildPartial() { - com.google.analytics.data.v1alpha.Filter.NumericFilter result = - new com.google.analytics.data.v1alpha.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.v1alpha.Filter.NumericFilter) { - return mergeFrom((com.google.analytics.data.v1alpha.Filter.NumericFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Filter.NumericFilter other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.Filter.NumericFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Filter.NumericFilter.Operation operation = 1; - * - * @return The operation. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.NumericFilter.Operation getOperation() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.Filter.NumericFilter.Operation result = - com.google.analytics.data.v1alpha.Filter.NumericFilter.Operation.valueOf(operation_); - return result == null - ? com.google.analytics.data.v1alpha.Filter.NumericFilter.Operation.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * The operation type for this filter.
-       * 
- * - * .google.analytics.data.v1alpha.Filter.NumericFilter.Operation operation = 1; - * - * @param value The operation to set. - * @return This builder for chaining. - */ - public Builder setOperation( - com.google.analytics.data.v1alpha.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.v1alpha.Filter.NumericFilter.Operation operation = 1; - * - * @return This builder for chaining. - */ - public Builder clearOperation() { - - operation_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.data.v1alpha.NumericValue value_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.NumericValueOrBuilder> - valueBuilder_; - /** - * - * - *
-       * A numeric value or a date value.
-       * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericValue value = 2; - * - * @return The value. - */ - public com.google.analytics.data.v1alpha.NumericValue getValue() { - if (valueBuilder_ == null) { - return value_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - * - * - *
-       * A numeric value or a date value.
-       * 
- * - * .google.analytics.data.v1alpha.NumericValue value = 2; - */ - public Builder setValue(com.google.analytics.data.v1alpha.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.v1alpha.NumericValue value = 2; - */ - public Builder setValue( - com.google.analytics.data.v1alpha.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.v1alpha.NumericValue value = 2; - */ - public Builder mergeValue(com.google.analytics.data.v1alpha.NumericValue value) { - if (valueBuilder_ == null) { - if (value_ != null) { - value_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.NumericValue value = 2; - */ - public com.google.analytics.data.v1alpha.NumericValue.Builder getValueBuilder() { - - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * A numeric value or a date value.
-       * 
- * - * .google.analytics.data.v1alpha.NumericValue value = 2; - */ - public com.google.analytics.data.v1alpha.NumericValueOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : value_; - } - } - /** - * - * - *
-       * A numeric value or a date value.
-       * 
- * - * .google.analytics.data.v1alpha.NumericValue value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.NumericValueOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Filter.NumericFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Filter.NumericFilter) - private static final com.google.analytics.data.v1alpha.Filter.NumericFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Filter.NumericFilter(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter.NumericFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface BetweenFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.Filter.BetweenFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue from_value = 1; - * - * @return Whether the fromValue field is set. - */ - boolean hasFromValue(); - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue from_value = 1; - * - * @return The fromValue. - */ - com.google.analytics.data.v1alpha.NumericValue getFromValue(); - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue from_value = 1; - */ - com.google.analytics.data.v1alpha.NumericValueOrBuilder getFromValueOrBuilder(); - - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue to_value = 2; - * - * @return Whether the toValue field is set. - */ - boolean hasToValue(); - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue to_value = 2; - * - * @return The toValue. - */ - com.google.analytics.data.v1alpha.NumericValue getToValue(); - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue to_value = 2; - */ - com.google.analytics.data.v1alpha.NumericValueOrBuilder getToValueOrBuilder(); - } - /** - * - * - *
-   * To express that the result needs to be between two numbers (inclusive).
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Filter.BetweenFilter} - */ - public static final class BetweenFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.NumericValue.Builder subBuilder = null; - if (fromValue_ != null) { - subBuilder = fromValue_.toBuilder(); - } - fromValue_ = - input.readMessage( - com.google.analytics.data.v1alpha.NumericValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fromValue_); - fromValue_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.analytics.data.v1alpha.NumericValue.Builder subBuilder = null; - if (toValue_ != null) { - subBuilder = toValue_.toBuilder(); - } - toValue_ = - input.readMessage( - com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_BetweenFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_BetweenFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Filter.BetweenFilter.class, - com.google.analytics.data.v1alpha.Filter.BetweenFilter.Builder.class); - } - - public static final int FROM_VALUE_FIELD_NUMBER = 1; - private com.google.analytics.data.v1alpha.NumericValue fromValue_; - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericValue from_value = 1; - * - * @return The fromValue. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericValue getFromValue() { - return fromValue_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : fromValue_; - } - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue from_value = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericValueOrBuilder getFromValueOrBuilder() { - return getFromValue(); - } - - public static final int TO_VALUE_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.NumericValue toValue_; - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericValue to_value = 2; - * - * @return The toValue. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericValue getToValue() { - return toValue_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : toValue_; - } - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue to_value = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.Filter.BetweenFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Filter.BetweenFilter other = - (com.google.analytics.data.v1alpha.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.v1alpha.Filter.BetweenFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter.BetweenFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter.BetweenFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Filter.BetweenFilter} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Filter.BetweenFilter) - com.google.analytics.data.v1alpha.Filter.BetweenFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_BetweenFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_BetweenFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Filter.BetweenFilter.class, - com.google.analytics.data.v1alpha.Filter.BetweenFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_BetweenFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.BetweenFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Filter.BetweenFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.BetweenFilter build() { - com.google.analytics.data.v1alpha.Filter.BetweenFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.BetweenFilter buildPartial() { - com.google.analytics.data.v1alpha.Filter.BetweenFilter result = - new com.google.analytics.data.v1alpha.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.v1alpha.Filter.BetweenFilter) { - return mergeFrom((com.google.analytics.data.v1alpha.Filter.BetweenFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Filter.BetweenFilter other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.Filter.BetweenFilter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.Filter.BetweenFilter) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.analytics.data.v1alpha.NumericValue fromValue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.NumericValueOrBuilder> - fromValueBuilder_; - /** - * - * - *
-       * Begins with this number.
-       * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericValue from_value = 1; - * - * @return The fromValue. - */ - public com.google.analytics.data.v1alpha.NumericValue getFromValue() { - if (fromValueBuilder_ == null) { - return fromValue_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : fromValue_; - } else { - return fromValueBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Begins with this number.
-       * 
- * - * .google.analytics.data.v1alpha.NumericValue from_value = 1; - */ - public Builder setFromValue(com.google.analytics.data.v1alpha.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.v1alpha.NumericValue from_value = 1; - */ - public Builder setFromValue( - com.google.analytics.data.v1alpha.NumericValue.Builder builderForValue) { - if (fromValueBuilder_ == null) { - fromValue_ = builderForValue.build(); - onChanged(); - } else { - fromValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-       * Begins with this number.
-       * 
- * - * .google.analytics.data.v1alpha.NumericValue from_value = 1; - */ - public Builder mergeFromValue(com.google.analytics.data.v1alpha.NumericValue value) { - if (fromValueBuilder_ == null) { - if (fromValue_ != null) { - fromValue_ = - com.google.analytics.data.v1alpha.NumericValue.newBuilder(fromValue_) - .mergeFrom(value) - .buildPartial(); - } else { - fromValue_ = value; - } - onChanged(); - } else { - fromValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-       * Begins with this number.
-       * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericValue from_value = 1; - */ - public com.google.analytics.data.v1alpha.NumericValue.Builder getFromValueBuilder() { - - onChanged(); - return getFromValueFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Begins with this number.
-       * 
- * - * .google.analytics.data.v1alpha.NumericValue from_value = 1; - */ - public com.google.analytics.data.v1alpha.NumericValueOrBuilder getFromValueOrBuilder() { - if (fromValueBuilder_ != null) { - return fromValueBuilder_.getMessageOrBuilder(); - } else { - return fromValue_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : fromValue_; - } - } - /** - * - * - *
-       * Begins with this number.
-       * 
- * - * .google.analytics.data.v1alpha.NumericValue from_value = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.NumericValueOrBuilder> - getFromValueFieldBuilder() { - if (fromValueBuilder_ == null) { - fromValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.NumericValueOrBuilder>( - getFromValue(), getParentForChildren(), isClean()); - fromValue_ = null; - } - return fromValueBuilder_; - } - - private com.google.analytics.data.v1alpha.NumericValue toValue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.NumericValueOrBuilder> - toValueBuilder_; - /** - * - * - *
-       * Ends with this number.
-       * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericValue to_value = 2; - * - * @return The toValue. - */ - public com.google.analytics.data.v1alpha.NumericValue getToValue() { - if (toValueBuilder_ == null) { - return toValue_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : toValue_; - } else { - return toValueBuilder_.getMessage(); - } - } - /** - * - * - *
-       * Ends with this number.
-       * 
- * - * .google.analytics.data.v1alpha.NumericValue to_value = 2; - */ - public Builder setToValue(com.google.analytics.data.v1alpha.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.v1alpha.NumericValue to_value = 2; - */ - public Builder setToValue( - com.google.analytics.data.v1alpha.NumericValue.Builder builderForValue) { - if (toValueBuilder_ == null) { - toValue_ = builderForValue.build(); - onChanged(); - } else { - toValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-       * Ends with this number.
-       * 
- * - * .google.analytics.data.v1alpha.NumericValue to_value = 2; - */ - public Builder mergeToValue(com.google.analytics.data.v1alpha.NumericValue value) { - if (toValueBuilder_ == null) { - if (toValue_ != null) { - toValue_ = - com.google.analytics.data.v1alpha.NumericValue.newBuilder(toValue_) - .mergeFrom(value) - .buildPartial(); - } else { - toValue_ = value; - } - onChanged(); - } else { - toValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-       * Ends with this number.
-       * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericValue to_value = 2; - */ - public com.google.analytics.data.v1alpha.NumericValue.Builder getToValueBuilder() { - - onChanged(); - return getToValueFieldBuilder().getBuilder(); - } - /** - * - * - *
-       * Ends with this number.
-       * 
- * - * .google.analytics.data.v1alpha.NumericValue to_value = 2; - */ - public com.google.analytics.data.v1alpha.NumericValueOrBuilder getToValueOrBuilder() { - if (toValueBuilder_ != null) { - return toValueBuilder_.getMessageOrBuilder(); - } else { - return toValue_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : toValue_; - } - } - /** - * - * - *
-       * Ends with this number.
-       * 
- * - * .google.analytics.data.v1alpha.NumericValue to_value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.NumericValueOrBuilder> - getToValueFieldBuilder() { - if (toValueBuilder_ == null) { - toValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Filter.BetweenFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Filter.BetweenFilter) - private static final com.google.analytics.data.v1alpha.Filter.BetweenFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Filter.BetweenFilter(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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 { - NULL_FILTER(2), - 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 2: - return NULL_FILTER; - 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 NULL_FILTER_FIELD_NUMBER = 2; - /** - * - * - *
-   * A filter for null values. If True, a null dimension value is matched by
-   * this filter. Null filter is commonly used inside a NOT filter
-   * expression. For example, a NOT expression of a null filter removes rows
-   * when a dimension is null.
-   * 
- * - * bool null_filter = 2; - * - * @return Whether the nullFilter field is set. - */ - @java.lang.Override - public boolean hasNullFilter() { - return oneFilterCase_ == 2; - } - /** - * - * - *
-   * A filter for null values. If True, a null dimension value is matched by
-   * this filter. Null filter is commonly used inside a NOT filter
-   * expression. For example, a NOT expression of a null filter removes rows
-   * when a dimension is null.
-   * 
- * - * bool null_filter = 2; - * - * @return The nullFilter. - */ - @java.lang.Override - public boolean getNullFilter() { - if (oneFilterCase_ == 2) { - return (java.lang.Boolean) oneFilter_; - } - return false; - } - - public static final int STRING_FILTER_FIELD_NUMBER = 3; - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.Filter.StringFilter string_filter = 3; - * - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.StringFilter getStringFilter() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.data.v1alpha.Filter.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.Filter.StringFilter.getDefaultInstance(); - } - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.Filter.StringFilter string_filter = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.StringFilterOrBuilder getStringFilterOrBuilder() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.data.v1alpha.Filter.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.Filter.StringFilter.getDefaultInstance(); - } - - public static final int IN_LIST_FILTER_FIELD_NUMBER = 4; - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.Filter.InListFilter in_list_filter = 4; - * - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.InListFilter getInListFilter() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.Filter.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.Filter.InListFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.Filter.InListFilter in_list_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.InListFilterOrBuilder getInListFilterOrBuilder() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.Filter.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.Filter.InListFilter.getDefaultInstance(); - } - - public static final int NUMERIC_FILTER_FIELD_NUMBER = 5; - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.Filter.NumericFilter numeric_filter = 5; - * - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.NumericFilter getNumericFilter() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.Filter.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.Filter.NumericFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.Filter.NumericFilter numeric_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.NumericFilterOrBuilder - getNumericFilterOrBuilder() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.Filter.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.Filter.NumericFilter.getDefaultInstance(); - } - - public static final int BETWEEN_FILTER_FIELD_NUMBER = 6; - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.Filter.BetweenFilter between_filter = 6; - * - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.BetweenFilter getBetweenFilter() { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.Filter.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.Filter.BetweenFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.data.v1alpha.Filter.BetweenFilter between_filter = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.BetweenFilterOrBuilder - getBetweenFilterOrBuilder() { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.Filter.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.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 (!getFieldNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); - } - if (oneFilterCase_ == 2) { - output.writeBool(2, (boolean) ((java.lang.Boolean) oneFilter_)); - } - if (oneFilterCase_ == 3) { - output.writeMessage(3, (com.google.analytics.data.v1alpha.Filter.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 4) { - output.writeMessage(4, (com.google.analytics.data.v1alpha.Filter.InListFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - output.writeMessage(5, (com.google.analytics.data.v1alpha.Filter.NumericFilter) oneFilter_); - } - if (oneFilterCase_ == 6) { - output.writeMessage(6, (com.google.analytics.data.v1alpha.Filter.BetweenFilter) oneFilter_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getFieldNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); - } - if (oneFilterCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 2, (boolean) ((java.lang.Boolean) oneFilter_)); - } - if (oneFilterCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.analytics.data.v1alpha.Filter.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.data.v1alpha.Filter.InListFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.analytics.data.v1alpha.Filter.NumericFilter) oneFilter_); - } - if (oneFilterCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.analytics.data.v1alpha.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.v1alpha.Filter)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Filter other = (com.google.analytics.data.v1alpha.Filter) obj; - - if (!getFieldName().equals(other.getFieldName())) return false; - if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; - switch (oneFilterCase_) { - case 2: - if (getNullFilter() != other.getNullFilter()) return false; - break; - 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 2: - hash = (37 * hash) + NULL_FILTER_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getNullFilter()); - break; - 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.v1alpha.Filter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Filter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Filter) - com.google.analytics.data.v1alpha.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Filter.class, - com.google.analytics.data.v1alpha.Filter.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter build() { - com.google.analytics.data.v1alpha.Filter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter buildPartial() { - com.google.analytics.data.v1alpha.Filter result = - new com.google.analytics.data.v1alpha.Filter(this); - result.fieldName_ = fieldName_; - if (oneFilterCase_ == 2) { - result.oneFilter_ = oneFilter_; - } - 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.v1alpha.Filter) { - return mergeFrom((com.google.analytics.data.v1alpha.Filter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Filter other) { - if (other == com.google.analytics.data.v1alpha.Filter.getDefaultInstance()) return this; - if (!other.getFieldName().isEmpty()) { - fieldName_ = other.fieldName_; - onChanged(); - } - switch (other.getOneFilterCase()) { - case NULL_FILTER: - { - setNullFilter(other.getNullFilter()); - break; - } - 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.v1alpha.Filter parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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; - } - - /** - * - * - *
-     * A filter for null values. If True, a null dimension value is matched by
-     * this filter. Null filter is commonly used inside a NOT filter
-     * expression. For example, a NOT expression of a null filter removes rows
-     * when a dimension is null.
-     * 
- * - * bool null_filter = 2; - * - * @return Whether the nullFilter field is set. - */ - public boolean hasNullFilter() { - return oneFilterCase_ == 2; - } - /** - * - * - *
-     * A filter for null values. If True, a null dimension value is matched by
-     * this filter. Null filter is commonly used inside a NOT filter
-     * expression. For example, a NOT expression of a null filter removes rows
-     * when a dimension is null.
-     * 
- * - * bool null_filter = 2; - * - * @return The nullFilter. - */ - public boolean getNullFilter() { - if (oneFilterCase_ == 2) { - return (java.lang.Boolean) oneFilter_; - } - return false; - } - /** - * - * - *
-     * A filter for null values. If True, a null dimension value is matched by
-     * this filter. Null filter is commonly used inside a NOT filter
-     * expression. For example, a NOT expression of a null filter removes rows
-     * when a dimension is null.
-     * 
- * - * bool null_filter = 2; - * - * @param value The nullFilter to set. - * @return This builder for chaining. - */ - public Builder setNullFilter(boolean value) { - oneFilterCase_ = 2; - oneFilter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * A filter for null values. If True, a null dimension value is matched by
-     * this filter. Null filter is commonly used inside a NOT filter
-     * expression. For example, a NOT expression of a null filter removes rows
-     * when a dimension is null.
-     * 
- * - * bool null_filter = 2; - * - * @return This builder for chaining. - */ - public Builder clearNullFilter() { - if (oneFilterCase_ == 2) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter.StringFilter, - com.google.analytics.data.v1alpha.Filter.StringFilter.Builder, - com.google.analytics.data.v1alpha.Filter.StringFilterOrBuilder> - stringFilterBuilder_; - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.Filter.StringFilter string_filter = 3; - * - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.StringFilter getStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - return (com.google.analytics.data.v1alpha.Filter.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.Filter.StringFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 3) { - return stringFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.Filter.StringFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.Filter.StringFilter string_filter = 3; - */ - public Builder setStringFilter(com.google.analytics.data.v1alpha.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.v1alpha.Filter.StringFilter string_filter = 3; - */ - public Builder setStringFilter( - com.google.analytics.data.v1alpha.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.v1alpha.Filter.StringFilter string_filter = 3; - */ - public Builder mergeStringFilter(com.google.analytics.data.v1alpha.Filter.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 3 - && oneFilter_ - != com.google.analytics.data.v1alpha.Filter.StringFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.Filter.StringFilter.newBuilder( - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Filter.StringFilter string_filter = 3; - */ - public com.google.analytics.data.v1alpha.Filter.StringFilter.Builder getStringFilterBuilder() { - return getStringFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.Filter.StringFilter string_filter = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.StringFilterOrBuilder - getStringFilterOrBuilder() { - if ((oneFilterCase_ == 3) && (stringFilterBuilder_ != null)) { - return stringFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 3) { - return (com.google.analytics.data.v1alpha.Filter.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.Filter.StringFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.Filter.StringFilter string_filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter.StringFilter, - com.google.analytics.data.v1alpha.Filter.StringFilter.Builder, - com.google.analytics.data.v1alpha.Filter.StringFilterOrBuilder> - getStringFilterFieldBuilder() { - if (stringFilterBuilder_ == null) { - if (!(oneFilterCase_ == 3)) { - oneFilter_ = com.google.analytics.data.v1alpha.Filter.StringFilter.getDefaultInstance(); - } - stringFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter.StringFilter, - com.google.analytics.data.v1alpha.Filter.StringFilter.Builder, - com.google.analytics.data.v1alpha.Filter.StringFilterOrBuilder>( - (com.google.analytics.data.v1alpha.Filter.StringFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 3; - onChanged(); - ; - return stringFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter.InListFilter, - com.google.analytics.data.v1alpha.Filter.InListFilter.Builder, - com.google.analytics.data.v1alpha.Filter.InListFilterOrBuilder> - inListFilterBuilder_; - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.Filter.InListFilter in_list_filter = 4; - * - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.InListFilter getInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.Filter.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.Filter.InListFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 4) { - return inListFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.Filter.InListFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.Filter.InListFilter in_list_filter = 4; - */ - public Builder setInListFilter(com.google.analytics.data.v1alpha.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.v1alpha.Filter.InListFilter in_list_filter = 4; - */ - public Builder setInListFilter( - com.google.analytics.data.v1alpha.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.v1alpha.Filter.InListFilter in_list_filter = 4; - */ - public Builder mergeInListFilter(com.google.analytics.data.v1alpha.Filter.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 4 - && oneFilter_ - != com.google.analytics.data.v1alpha.Filter.InListFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.Filter.InListFilter.newBuilder( - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Filter.InListFilter in_list_filter = 4; - */ - public com.google.analytics.data.v1alpha.Filter.InListFilter.Builder getInListFilterBuilder() { - return getInListFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.Filter.InListFilter in_list_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.InListFilterOrBuilder - getInListFilterOrBuilder() { - if ((oneFilterCase_ == 4) && (inListFilterBuilder_ != null)) { - return inListFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.Filter.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.Filter.InListFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.Filter.InListFilter in_list_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter.InListFilter, - com.google.analytics.data.v1alpha.Filter.InListFilter.Builder, - com.google.analytics.data.v1alpha.Filter.InListFilterOrBuilder> - getInListFilterFieldBuilder() { - if (inListFilterBuilder_ == null) { - if (!(oneFilterCase_ == 4)) { - oneFilter_ = com.google.analytics.data.v1alpha.Filter.InListFilter.getDefaultInstance(); - } - inListFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter.InListFilter, - com.google.analytics.data.v1alpha.Filter.InListFilter.Builder, - com.google.analytics.data.v1alpha.Filter.InListFilterOrBuilder>( - (com.google.analytics.data.v1alpha.Filter.InListFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 4; - onChanged(); - ; - return inListFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter.NumericFilter, - com.google.analytics.data.v1alpha.Filter.NumericFilter.Builder, - com.google.analytics.data.v1alpha.Filter.NumericFilterOrBuilder> - numericFilterBuilder_; - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.Filter.NumericFilter numeric_filter = 5; - * - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.NumericFilter getNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.Filter.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.Filter.NumericFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 5) { - return numericFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.Filter.NumericFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.Filter.NumericFilter numeric_filter = 5; - */ - public Builder setNumericFilter(com.google.analytics.data.v1alpha.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.v1alpha.Filter.NumericFilter numeric_filter = 5; - */ - public Builder setNumericFilter( - com.google.analytics.data.v1alpha.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.v1alpha.Filter.NumericFilter numeric_filter = 5; - */ - public Builder mergeNumericFilter( - com.google.analytics.data.v1alpha.Filter.NumericFilter value) { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 5 - && oneFilter_ - != com.google.analytics.data.v1alpha.Filter.NumericFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.Filter.NumericFilter.newBuilder( - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Filter.NumericFilter numeric_filter = 5; - */ - public com.google.analytics.data.v1alpha.Filter.NumericFilter.Builder - getNumericFilterBuilder() { - return getNumericFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.Filter.NumericFilter numeric_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.NumericFilterOrBuilder - getNumericFilterOrBuilder() { - if ((oneFilterCase_ == 5) && (numericFilterBuilder_ != null)) { - return numericFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.Filter.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.Filter.NumericFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.Filter.NumericFilter numeric_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter.NumericFilter, - com.google.analytics.data.v1alpha.Filter.NumericFilter.Builder, - com.google.analytics.data.v1alpha.Filter.NumericFilterOrBuilder> - getNumericFilterFieldBuilder() { - if (numericFilterBuilder_ == null) { - if (!(oneFilterCase_ == 5)) { - oneFilter_ = com.google.analytics.data.v1alpha.Filter.NumericFilter.getDefaultInstance(); - } - numericFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter.NumericFilter, - com.google.analytics.data.v1alpha.Filter.NumericFilter.Builder, - com.google.analytics.data.v1alpha.Filter.NumericFilterOrBuilder>( - (com.google.analytics.data.v1alpha.Filter.NumericFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 5; - onChanged(); - ; - return numericFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter.BetweenFilter, - com.google.analytics.data.v1alpha.Filter.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.Filter.BetweenFilterOrBuilder> - betweenFilterBuilder_; - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.Filter.BetweenFilter between_filter = 6; - * - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.BetweenFilter getBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.Filter.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.Filter.BetweenFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 6) { - return betweenFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.Filter.BetweenFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.data.v1alpha.Filter.BetweenFilter between_filter = 6; - */ - public Builder setBetweenFilter(com.google.analytics.data.v1alpha.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.v1alpha.Filter.BetweenFilter between_filter = 6; - */ - public Builder setBetweenFilter( - com.google.analytics.data.v1alpha.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.v1alpha.Filter.BetweenFilter between_filter = 6; - */ - public Builder mergeBetweenFilter( - com.google.analytics.data.v1alpha.Filter.BetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 6 - && oneFilter_ - != com.google.analytics.data.v1alpha.Filter.BetweenFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.Filter.BetweenFilter.newBuilder( - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Filter.BetweenFilter between_filter = 6; - */ - public com.google.analytics.data.v1alpha.Filter.BetweenFilter.Builder - getBetweenFilterBuilder() { - return getBetweenFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.data.v1alpha.Filter.BetweenFilter between_filter = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter.BetweenFilterOrBuilder - getBetweenFilterOrBuilder() { - if ((oneFilterCase_ == 6) && (betweenFilterBuilder_ != null)) { - return betweenFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.Filter.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.Filter.BetweenFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for two values.
-     * 
- * - * .google.analytics.data.v1alpha.Filter.BetweenFilter between_filter = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter.BetweenFilter, - com.google.analytics.data.v1alpha.Filter.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.Filter.BetweenFilterOrBuilder> - getBetweenFilterFieldBuilder() { - if (betweenFilterBuilder_ == null) { - if (!(oneFilterCase_ == 6)) { - oneFilter_ = com.google.analytics.data.v1alpha.Filter.BetweenFilter.getDefaultInstance(); - } - betweenFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter.BetweenFilter, - com.google.analytics.data.v1alpha.Filter.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.Filter.BetweenFilterOrBuilder>( - (com.google.analytics.data.v1alpha.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.v1alpha.Filter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Filter) - private static final com.google.analytics.data.v1alpha.Filter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Filter(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java deleted file mode 100644 index 66ee959f..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java +++ /dev/null @@ -1,1790 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * 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.v1alpha.FilterExpression} - */ -public final class FilterExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList.Builder subBuilder = null; - if (exprCase_ == 1) { - subBuilder = - ((com.google.analytics.data.v1alpha.FilterExpressionList) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.FilterExpressionList.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.FilterExpressionList) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 1; - break; - } - case 18: - { - com.google.analytics.data.v1alpha.FilterExpressionList.Builder subBuilder = null; - if (exprCase_ == 2) { - subBuilder = - ((com.google.analytics.data.v1alpha.FilterExpressionList) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.FilterExpressionList.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.FilterExpressionList) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 2; - break; - } - case 26: - { - com.google.analytics.data.v1alpha.FilterExpression.Builder subBuilder = null; - if (exprCase_ == 3) { - subBuilder = - ((com.google.analytics.data.v1alpha.FilterExpression) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.FilterExpression) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 3; - break; - } - case 34: - { - com.google.analytics.data.v1alpha.Filter.Builder subBuilder = null; - if (exprCase_ == 4) { - subBuilder = ((com.google.analytics.data.v1alpha.Filter) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.Filter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FilterExpression.class, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionList getAndGroup() { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - /** - * - * - *
-   * The FilterExpressions in and_group have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getAndGroupOrBuilder() { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - - public static final int OR_GROUP_FIELD_NUMBER = 2; - /** - * - * - *
-   * The FilterExpressions in or_group have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionList getOrGroup() { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - /** - * - * - *
-   * The FilterExpressions in or_group have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getOrGroupOrBuilder() { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - - public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpression not_expression = 3; - * - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression getNotExpression() { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.FilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); - } - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getNotExpressionOrBuilder() { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.FilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Filter filter = 4; - * - * @return The filter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter getFilter() { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.Filter) expr_; - } - return com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); - } - /** - * - * - *
-   * A primitive filter.
-   * All fields in filter in same FilterExpression needs to be either all
-   * dimensions or metrics.
-   * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterOrBuilder getFilterOrBuilder() { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.Filter) expr_; - } - return com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList) expr_); - } - if (exprCase_ == 2) { - output.writeMessage(2, (com.google.analytics.data.v1alpha.FilterExpressionList) expr_); - } - if (exprCase_ == 3) { - output.writeMessage(3, (com.google.analytics.data.v1alpha.FilterExpression) expr_); - } - if (exprCase_ == 4) { - output.writeMessage(4, (com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList) expr_); - } - if (exprCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.analytics.data.v1alpha.FilterExpressionList) expr_); - } - if (exprCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.analytics.data.v1alpha.FilterExpression) expr_); - } - if (exprCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.FilterExpression other = - (com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.FilterExpression} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FilterExpression) - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FilterExpression.class, - com.google.analytics.data.v1alpha.FilterExpression.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression build() { - com.google.analytics.data.v1alpha.FilterExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression buildPartial() { - com.google.analytics.data.v1alpha.FilterExpression result = - new com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression) { - return mergeFrom((com.google.analytics.data.v1alpha.FilterExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.FilterExpression other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList, - com.google.analytics.data.v1alpha.FilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder> - andGroupBuilder_; - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionList getAndGroup() { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } else { - if (exprCase_ == 1) { - return andGroupBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; - */ - public Builder setAndGroup(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; - */ - public Builder setAndGroup( - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; - */ - public Builder mergeAndGroup(com.google.analytics.data.v1alpha.FilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1 - && expr_ - != com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.FilterExpressionList.newBuilder( - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; - */ - public com.google.analytics.data.v1alpha.FilterExpressionList.Builder getAndGroupBuilder() { - return getAndGroupFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getAndGroupOrBuilder() { - if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { - return andGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpressionList, - com.google.analytics.data.v1alpha.FilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder> - getAndGroupFieldBuilder() { - if (andGroupBuilder_ == null) { - if (!(exprCase_ == 1)) { - expr_ = com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - andGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpressionList, - com.google.analytics.data.v1alpha.FilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder>( - (com.google.analytics.data.v1alpha.FilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 1; - onChanged(); - ; - return andGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpressionList, - com.google.analytics.data.v1alpha.FilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder> - orGroupBuilder_; - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionList getOrGroup() { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } else { - if (exprCase_ == 2) { - return orGroupBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; - */ - public Builder setOrGroup(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; - */ - public Builder setOrGroup( - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; - */ - public Builder mergeOrGroup(com.google.analytics.data.v1alpha.FilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2 - && expr_ - != com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.FilterExpressionList.newBuilder( - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; - */ - public com.google.analytics.data.v1alpha.FilterExpressionList.Builder getOrGroupBuilder() { - return getOrGroupFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getOrGroupOrBuilder() { - if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { - return orGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpressionList, - com.google.analytics.data.v1alpha.FilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder> - getOrGroupFieldBuilder() { - if (orGroupBuilder_ == null) { - if (!(exprCase_ == 2)) { - expr_ = com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - orGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpressionList, - com.google.analytics.data.v1alpha.FilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder>( - (com.google.analytics.data.v1alpha.FilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 2; - onChanged(); - ; - return orGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> - notExpressionBuilder_; - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpression not_expression = 3; - * - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression getNotExpression() { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.FilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); - } else { - if (exprCase_ == 3) { - return notExpressionBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; - */ - public Builder setNotExpression(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression not_expression = 3; - */ - public Builder setNotExpression( - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression not_expression = 3; - */ - public Builder mergeNotExpression(com.google.analytics.data.v1alpha.FilterExpression value) { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3 - && expr_ != com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.FilterExpression.newBuilder( - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpression not_expression = 3; - */ - public com.google.analytics.data.v1alpha.FilterExpression.Builder getNotExpressionBuilder() { - return getNotExpressionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getNotExpressionOrBuilder() { - if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { - return notExpressionBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.FilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> - getNotExpressionFieldBuilder() { - if (notExpressionBuilder_ == null) { - if (!(exprCase_ == 3)) { - expr_ = com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); - } - notExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>( - (com.google.analytics.data.v1alpha.FilterExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 3; - onChanged(); - ; - return notExpressionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter, - com.google.analytics.data.v1alpha.Filter.Builder, - com.google.analytics.data.v1alpha.FilterOrBuilder> - filterBuilder_; - /** - * - * - *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.Filter filter = 4; - * - * @return The filter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter getFilter() { - if (filterBuilder_ == null) { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.Filter) expr_; - } - return com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); - } else { - if (exprCase_ == 4) { - return filterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
-     * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - */ - public Builder setFilter(com.google.analytics.data.v1alpha.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.v1alpha.Filter filter = 4; - */ - public Builder setFilter(com.google.analytics.data.v1alpha.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.v1alpha.Filter filter = 4; - */ - public Builder mergeFilter(com.google.analytics.data.v1alpha.Filter value) { - if (filterBuilder_ == null) { - if (exprCase_ == 4 - && expr_ != com.google.analytics.data.v1alpha.Filter.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.Filter.newBuilder( - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Filter filter = 4; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Filter filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterOrBuilder getFilterOrBuilder() { - if ((exprCase_ == 4) && (filterBuilder_ != null)) { - return filterBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.Filter) expr_; - } - return com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
-     * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter, - com.google.analytics.data.v1alpha.Filter.Builder, - com.google.analytics.data.v1alpha.FilterOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - if (!(exprCase_ == 4)) { - expr_ = com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); - } - filterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter, - com.google.analytics.data.v1alpha.Filter.Builder, - com.google.analytics.data.v1alpha.FilterOrBuilder>( - (com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FilterExpression) - private static final com.google.analytics.data.v1alpha.FilterExpression DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FilterExpression(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionList.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionList.java deleted file mode 100644 index 6dc1dd3e..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * A list of filter expressions.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FilterExpressionList} - */ -public final class FilterExpressionList extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FilterExpressionList.class, - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - @java.lang.Override - public java.util.List getExpressionsList() { - return expressions_; - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - @java.lang.Override - public java.util.List - getExpressionsOrBuilderList() { - return expressions_; - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - @java.lang.Override - public int getExpressionsCount() { - return expressions_.size(); - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression getExpressions(int index) { - return expressions_.get(index); - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.FilterExpressionList other = - (com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.FilterExpressionList} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FilterExpressionList) - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FilterExpressionList.class, - com.google.analytics.data.v1alpha.FilterExpressionList.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionList getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionList build() { - com.google.analytics.data.v1alpha.FilterExpressionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionList buildPartial() { - com.google.analytics.data.v1alpha.FilterExpressionList result = - new com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList) { - return mergeFrom((com.google.analytics.data.v1alpha.FilterExpressionList) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.FilterExpressionList other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> - expressionsBuilder_; - - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public Builder setExpressions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public Builder setExpressions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public Builder addExpressions(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public Builder addExpressions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public Builder addExpressions( - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public Builder addExpressions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.FilterExpression.Builder getExpressionsBuilder( - int index) { - return getExpressionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.FilterExpression.Builder addExpressionsBuilder() { - return getExpressionsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance()); - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.FilterExpression.Builder addExpressionsBuilder( - int index) { - return getExpressionsFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance()); - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - public java.util.List - getExpressionsBuilderList() { - return getExpressionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> - getExpressionsFieldBuilder() { - if (expressionsBuilder_ == null) { - expressionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FilterExpressionList) - private static final com.google.analytics.data.v1alpha.FilterExpressionList DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FilterExpressionList(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionListOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionListOrBuilder.java deleted file mode 100644 index e8c0264e..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FilterExpressionListOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FilterExpressionList) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - java.util.List getExpressionsList(); - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - com.google.analytics.data.v1alpha.FilterExpression getExpressions(int index); - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - int getExpressionsCount(); - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - java.util.List - getExpressionsOrBuilderList(); - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getExpressionsOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionOrBuilder.java deleted file mode 100644 index b9db4572..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FilterExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FilterExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The FilterExpressions in and_group have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - com.google.analytics.data.v1alpha.FilterExpressionList getAndGroup(); - /** - * - * - *
-   * The FilterExpressions in and_group have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; - */ - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getAndGroupOrBuilder(); - - /** - * - * - *
-   * The FilterExpressions in or_group have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - com.google.analytics.data.v1alpha.FilterExpressionList getOrGroup(); - /** - * - * - *
-   * The FilterExpressions in or_group have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; - */ - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getOrGroupOrBuilder(); - - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; - * - * @return Whether the notExpression field is set. - */ - boolean hasNotExpression(); - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; - * - * @return The notExpression. - */ - com.google.analytics.data.v1alpha.FilterExpression getNotExpression(); - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; - */ - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getNotExpressionOrBuilder(); - - /** - * - * - *
-   * A primitive filter.
-   * All fields in filter in same FilterExpression needs to be either all
-   * dimensions or metrics.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.Filter filter = 4; - * - * @return The filter. - */ - com.google.analytics.data.v1alpha.Filter getFilter(); - /** - * - * - *
-   * A primitive filter.
-   * All fields in filter in same FilterExpression needs to be either all
-   * dimensions or metrics.
-   * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - */ - com.google.analytics.data.v1alpha.FilterOrBuilder getFilterOrBuilder(); - - public com.google.analytics.data.v1alpha.FilterExpression.ExprCase getExprCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java deleted file mode 100644 index b076385d..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java +++ /dev/null @@ -1,225 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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(); - - /** - * - * - *
-   * A filter for null values. If True, a null dimension value is matched by
-   * this filter. Null filter is commonly used inside a NOT filter
-   * expression. For example, a NOT expression of a null filter removes rows
-   * when a dimension is null.
-   * 
- * - * bool null_filter = 2; - * - * @return Whether the nullFilter field is set. - */ - boolean hasNullFilter(); - /** - * - * - *
-   * A filter for null values. If True, a null dimension value is matched by
-   * this filter. Null filter is commonly used inside a NOT filter
-   * expression. For example, a NOT expression of a null filter removes rows
-   * when a dimension is null.
-   * 
- * - * bool null_filter = 2; - * - * @return The nullFilter. - */ - boolean getNullFilter(); - - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.Filter.StringFilter string_filter = 3; - * - * @return Whether the stringFilter field is set. - */ - boolean hasStringFilter(); - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.Filter.StringFilter string_filter = 3; - * - * @return The stringFilter. - */ - com.google.analytics.data.v1alpha.Filter.StringFilter getStringFilter(); - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.Filter.StringFilter string_filter = 3; - */ - com.google.analytics.data.v1alpha.Filter.StringFilterOrBuilder getStringFilterOrBuilder(); - - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.Filter.InListFilter in_list_filter = 4; - * - * @return Whether the inListFilter field is set. - */ - boolean hasInListFilter(); - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.Filter.InListFilter in_list_filter = 4; - * - * @return The inListFilter. - */ - com.google.analytics.data.v1alpha.Filter.InListFilter getInListFilter(); - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.Filter.InListFilter in_list_filter = 4; - */ - com.google.analytics.data.v1alpha.Filter.InListFilterOrBuilder getInListFilterOrBuilder(); - - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.Filter.NumericFilter numeric_filter = 5; - * - * @return Whether the numericFilter field is set. - */ - boolean hasNumericFilter(); - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.Filter.NumericFilter numeric_filter = 5; - * - * @return The numericFilter. - */ - com.google.analytics.data.v1alpha.Filter.NumericFilter getNumericFilter(); - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.Filter.NumericFilter numeric_filter = 5; - */ - com.google.analytics.data.v1alpha.Filter.NumericFilterOrBuilder getNumericFilterOrBuilder(); - - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.data.v1alpha.Filter.BetweenFilter between_filter = 6; - * - * @return Whether the betweenFilter field is set. - */ - boolean hasBetweenFilter(); - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.data.v1alpha.Filter.BetweenFilter between_filter = 6; - * - * @return The betweenFilter. - */ - com.google.analytics.data.v1alpha.Filter.BetweenFilter getBetweenFilter(); - /** - * - * - *
-   * A filter for two values.
-   * 
- * - * .google.analytics.data.v1alpha.Filter.BetweenFilter between_filter = 6; - */ - com.google.analytics.data.v1alpha.Filter.BetweenFilterOrBuilder getBetweenFilterOrBuilder(); - - public com.google.analytics.data.v1alpha.Filter.OneFilterCase getOneFilterCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequest.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequest.java deleted file mode 100644 index 5770e13b..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Request for a property's dimension and metric metadata.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.GetMetadataRequest} - */ -public final class GetMetadataRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_GetMetadataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.GetMetadataRequest.class, - com.google.analytics.data.v1alpha.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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.GetMetadataRequest)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.GetMetadataRequest other = - (com.google.analytics.data.v1alpha.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.v1alpha.GetMetadataRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.GetMetadataRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.GetMetadataRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.GetMetadataRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.GetMetadataRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.GetMetadataRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.GetMetadataRequest) - com.google.analytics.data.v1alpha.GetMetadataRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_GetMetadataRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.GetMetadataRequest.class, - com.google.analytics.data.v1alpha.GetMetadataRequest.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_GetMetadataRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.GetMetadataRequest getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.GetMetadataRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.GetMetadataRequest build() { - com.google.analytics.data.v1alpha.GetMetadataRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.GetMetadataRequest buildPartial() { - com.google.analytics.data.v1alpha.GetMetadataRequest result = - new com.google.analytics.data.v1alpha.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.v1alpha.GetMetadataRequest) { - return mergeFrom((com.google.analytics.data.v1alpha.GetMetadataRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.GetMetadataRequest other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.GetMetadataRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.GetMetadataRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.GetMetadataRequest) - private static final com.google.analytics.data.v1alpha.GetMetadataRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.GetMetadataRequest(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.GetMetadataRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequestOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/GetMetadataRequestOrBuilder.java deleted file mode 100644 index e2e088a3..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -public interface GetMetadataRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metadata.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metadata.java deleted file mode 100644 index fcaf371b..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metadata.java +++ /dev/null @@ -1,1630 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The dimensions and metrics currently accepted in reporting methods.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Metadata} - */ -public final class Metadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_Metadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Metadata.class, - com.google.analytics.data.v1alpha.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.v1alpha.DimensionMetadata dimensions = 1; - */ - @java.lang.Override - public java.util.List getDimensionsList() { - return dimensions_; - } - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; - */ - @java.lang.Override - public java.util.List - getDimensionsOrBuilderList() { - return dimensions_; - } - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; - */ - @java.lang.Override - public int getDimensionsCount() { - return dimensions_.size(); - } - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionMetadata getDimensions(int index) { - return dimensions_.get(index); - } - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.MetricMetadata metrics = 2; - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricMetadata getMetrics(int index) { - return metrics_.get(index); - } - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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 (!getNameBytes().isEmpty()) { - 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 (!getNameBytes().isEmpty()) { - 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.v1alpha.Metadata)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Metadata other = - (com.google.analytics.data.v1alpha.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.v1alpha.Metadata parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Metadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Metadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Metadata parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Metadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Metadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Metadata) - com.google.analytics.data.v1alpha.MetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_Metadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_Metadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Metadata.class, - com.google.analytics.data.v1alpha.Metadata.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_Metadata_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Metadata getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Metadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Metadata build() { - com.google.analytics.data.v1alpha.Metadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Metadata buildPartial() { - com.google.analytics.data.v1alpha.Metadata result = - new com.google.analytics.data.v1alpha.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.v1alpha.Metadata) { - return mergeFrom((com.google.analytics.data.v1alpha.Metadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Metadata other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.Metadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.DimensionMetadata, - com.google.analytics.data.v1alpha.DimensionMetadata.Builder, - com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder> - dimensionsBuilder_; - - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.DimensionMetadata dimensions = 1; - */ - public int getDimensionsCount() { - if (dimensionsBuilder_ == null) { - return dimensions_.size(); - } else { - return dimensionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; - */ - public com.google.analytics.data.v1alpha.DimensionMetadata getDimensions(int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); - } else { - return dimensionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; - */ - public Builder setDimensions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionMetadata dimensions = 1; - */ - public Builder setDimensions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionMetadata dimensions = 1; - */ - public Builder addDimensions(com.google.analytics.data.v1alpha.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.v1alpha.DimensionMetadata dimensions = 1; - */ - public Builder addDimensions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionMetadata dimensions = 1; - */ - public Builder addDimensions( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionMetadata dimensions = 1; - */ - public Builder addDimensions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionMetadata dimensions = 1; - */ - public com.google.analytics.data.v1alpha.DimensionMetadata.Builder getDimensionsBuilder( - int index) { - return getDimensionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; - */ - public com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder getDimensionsOrBuilder( - int index) { - if (dimensionsBuilder_ == null) { - return dimensions_.get(index); - } else { - return dimensionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.DimensionMetadata dimensions = 1; - */ - public com.google.analytics.data.v1alpha.DimensionMetadata.Builder addDimensionsBuilder() { - return getDimensionsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.DimensionMetadata.getDefaultInstance()); - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; - */ - public com.google.analytics.data.v1alpha.DimensionMetadata.Builder addDimensionsBuilder( - int index) { - return getDimensionsFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1alpha.DimensionMetadata.getDefaultInstance()); - } - /** - * - * - *
-     * The dimension descriptions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; - */ - public java.util.List - getDimensionsBuilderList() { - return getDimensionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionMetadata, - com.google.analytics.data.v1alpha.DimensionMetadata.Builder, - com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder> - getDimensionsFieldBuilder() { - if (dimensionsBuilder_ == null) { - dimensionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionMetadata, - com.google.analytics.data.v1alpha.DimensionMetadata.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.MetricMetadata, - com.google.analytics.data.v1alpha.MetricMetadata.Builder, - com.google.analytics.data.v1alpha.MetricMetadataOrBuilder> - metricsBuilder_; - - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.MetricMetadata metrics = 2; - */ - public int getMetricsCount() { - if (metricsBuilder_ == null) { - return metrics_.size(); - } else { - return metricsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; - */ - public com.google.analytics.data.v1alpha.MetricMetadata getMetrics(int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; - */ - public Builder setMetrics(int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricMetadata metrics = 2; - */ - public Builder setMetrics( - int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricMetadata metrics = 2; - */ - public Builder addMetrics(com.google.analytics.data.v1alpha.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.v1alpha.MetricMetadata metrics = 2; - */ - public Builder addMetrics(int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricMetadata metrics = 2; - */ - public Builder addMetrics( - com.google.analytics.data.v1alpha.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.v1alpha.MetricMetadata metrics = 2; - */ - public Builder addMetrics( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricMetadata metrics = 2; - */ - public com.google.analytics.data.v1alpha.MetricMetadata.Builder getMetricsBuilder(int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; - */ - public com.google.analytics.data.v1alpha.MetricMetadataOrBuilder getMetricsOrBuilder( - int index) { - if (metricsBuilder_ == null) { - return metrics_.get(index); - } else { - return metricsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.MetricMetadata metrics = 2; - */ - public com.google.analytics.data.v1alpha.MetricMetadata.Builder addMetricsBuilder() { - return getMetricsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.MetricMetadata.getDefaultInstance()); - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; - */ - public com.google.analytics.data.v1alpha.MetricMetadata.Builder addMetricsBuilder(int index) { - return getMetricsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.MetricMetadata.getDefaultInstance()); - } - /** - * - * - *
-     * The metric descriptions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; - */ - public java.util.List - getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.MetricMetadata, - com.google.analytics.data.v1alpha.MetricMetadata.Builder, - com.google.analytics.data.v1alpha.MetricMetadataOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.MetricMetadata, - com.google.analytics.data.v1alpha.MetricMetadata.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Metadata) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Metadata) - private static final com.google.analytics.data.v1alpha.Metadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Metadata(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Metadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataName.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataName.java deleted file mode 100644 index 167cd0d4..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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.v1alpha; - -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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetadataOrBuilder.java deleted file mode 100644 index 7eef362b..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -public interface MetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.DimensionMetadata dimensions = 1; - */ - java.util.List getDimensionsList(); - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; - */ - com.google.analytics.data.v1alpha.DimensionMetadata getDimensions(int index); - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; - */ - int getDimensionsCount(); - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; - */ - java.util.List - getDimensionsOrBuilderList(); - /** - * - * - *
-   * The dimension descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionMetadata dimensions = 1; - */ - com.google.analytics.data.v1alpha.DimensionMetadataOrBuilder getDimensionsOrBuilder(int index); - - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; - */ - java.util.List getMetricsList(); - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; - */ - com.google.analytics.data.v1alpha.MetricMetadata getMetrics(int index); - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; - */ - int getMetricsCount(); - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; - */ - java.util.List - getMetricsOrBuilderList(); - /** - * - * - *
-   * The metric descriptions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricMetadata metrics = 2; - */ - com.google.analytics.data.v1alpha.MetricMetadataOrBuilder getMetricsOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metric.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metric.java deleted file mode 100644 index 8a5d0f6e..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Metric.java +++ /dev/null @@ -1,970 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * 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.v1alpha.Metric} - */ -public final class Metric extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Metric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Metric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Metric.class, - com.google.analytics.data.v1alpha.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.
-   * For example if `expression` is `screenPageViews/sessions`, you could call
-   * that metric's name = `viewsPerSession`.
-   * 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.
-   * For example if `expression` is `screenPageViews/sessions`, you could call
-   * that metric's name = `viewsPerSession`.
-   * 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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!getExpressionBytes().isEmpty()) { - 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 (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!getExpressionBytes().isEmpty()) { - 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.v1alpha.Metric)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Metric other = (com.google.analytics.data.v1alpha.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.v1alpha.Metric parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Metric parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Metric parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Metric parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Metric parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Metric} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Metric) - com.google.analytics.data.v1alpha.MetricOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Metric_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Metric_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Metric.class, - com.google.analytics.data.v1alpha.Metric.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Metric_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Metric getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Metric.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Metric build() { - com.google.analytics.data.v1alpha.Metric result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Metric buildPartial() { - com.google.analytics.data.v1alpha.Metric result = - new com.google.analytics.data.v1alpha.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.v1alpha.Metric) { - return mergeFrom((com.google.analytics.data.v1alpha.Metric) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Metric other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.Metric parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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.
-     * For example if `expression` is `screenPageViews/sessions`, you could call
-     * that metric's name = `viewsPerSession`.
-     * 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.
-     * For example if `expression` is `screenPageViews/sessions`, you could call
-     * that metric's name = `viewsPerSession`.
-     * 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.
-     * For example if `expression` is `screenPageViews/sessions`, you could call
-     * that metric's name = `viewsPerSession`.
-     * 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.
-     * For example if `expression` is `screenPageViews/sessions`, you could call
-     * that metric's name = `viewsPerSession`.
-     * 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.
-     * For example if `expression` is `screenPageViews/sessions`, you could call
-     * that metric's name = `viewsPerSession`.
-     * 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.v1alpha.Metric) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Metric) - private static final com.google.analytics.data.v1alpha.Metric DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Metric(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Metric getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java deleted file mode 100644 index 9812dfc2..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * 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.v1alpha.MetricHeader} - */ -public final class MetricHeader extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.MetricHeader.class, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricType type = 2; - * - * @return The type. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricType getType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.MetricType result = - com.google.analytics.data.v1alpha.MetricType.valueOf(type_); - return result == null ? com.google.analytics.data.v1alpha.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 (!getNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (type_ != com.google.analytics.data.v1alpha.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 (!getNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (type_ != com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.MetricHeader other = - (com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricHeader} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.MetricHeader) - com.google.analytics.data.v1alpha.MetricHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.MetricHeader.class, - com.google.analytics.data.v1alpha.MetricHeader.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricHeader getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricHeader build() { - com.google.analytics.data.v1alpha.MetricHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricHeader buildPartial() { - com.google.analytics.data.v1alpha.MetricHeader result = - new com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader) { - return mergeFrom((com.google.analytics.data.v1alpha.MetricHeader) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.MetricHeader other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricType type = 2; - * - * @return The type. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricType getType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.MetricType result = - com.google.analytics.data.v1alpha.MetricType.valueOf(type_); - return result == null ? com.google.analytics.data.v1alpha.MetricType.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The metric's data type.
-     * 
- * - * .google.analytics.data.v1alpha.MetricType type = 2; - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.analytics.data.v1alpha.MetricType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The metric's data type.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.MetricHeader) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.MetricHeader) - private static final com.google.analytics.data.v1alpha.MetricHeader DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.MetricHeader(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeaderOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeaderOrBuilder.java deleted file mode 100644 index afb74089..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface MetricHeaderOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.MetricType type = 2; - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * - * - *
-   * The metric's data type.
-   * 
- * - * .google.analytics.data.v1alpha.MetricType type = 2; - * - * @return The type. - */ - com.google.analytics.data.v1alpha.MetricType getType(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadata.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadata.java deleted file mode 100644 index 439bdaae..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadata.java +++ /dev/null @@ -1,1759 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Explains a metric.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.MetricMetadata} - */ -public final class MetricMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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_ = ""; - } - - @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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.MetricMetadata.class, - com.google.analytics.data.v1alpha.MetricMetadata.Builder.class); - } - - 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.v1alpha.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.v1alpha.MetricType type = 5; - * - * @return The type. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricType getType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.MetricType result = - com.google.analytics.data.v1alpha.MetricType.valueOf(type_); - return result == null ? com.google.analytics.data.v1alpha.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_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getApiNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiName_); - } - if (!getUiNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uiName_); - } - if (!getDescriptionBytes().isEmpty()) { - 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.v1alpha.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(5, type_); - } - if (!getExpressionBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, expression_); - } - if (customDefinition_ != false) { - output.writeBool(7, customDefinition_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getApiNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiName_); - } - if (!getUiNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uiName_); - } - if (!getDescriptionBytes().isEmpty()) { - 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.v1alpha.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, type_); - } - if (!getExpressionBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, expression_); - } - if (customDefinition_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, customDefinition_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = 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.v1alpha.MetricMetadata)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.MetricMetadata other = - (com.google.analytics.data.v1alpha.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 (!unknownFields.equals(other.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()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.MetricMetadata parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.MetricMetadata) - com.google.analytics.data.v1alpha.MetricMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.MetricMetadata.class, - com.google.analytics.data.v1alpha.MetricMetadata.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricMetadata getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.MetricMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricMetadata build() { - com.google.analytics.data.v1alpha.MetricMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricMetadata buildPartial() { - com.google.analytics.data.v1alpha.MetricMetadata result = - new com.google.analytics.data.v1alpha.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_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.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.v1alpha.MetricMetadata) { - return mergeFrom((com.google.analytics.data.v1alpha.MetricMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.MetricMetadata other) { - if (other == com.google.analytics.data.v1alpha.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()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - 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.v1alpha.MetricMetadata parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricType type = 5; - * - * @return The type. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricType getType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.MetricType result = - com.google.analytics.data.v1alpha.MetricType.valueOf(type_); - return result == null ? com.google.analytics.data.v1alpha.MetricType.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The type of this metric.
-     * 
- * - * .google.analytics.data.v1alpha.MetricType type = 5; - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.analytics.data.v1alpha.MetricType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The type of this metric.
-     * 
- * - * .google.analytics.data.v1alpha.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; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.MetricMetadata) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.MetricMetadata) - private static final com.google.analytics.data.v1alpha.MetricMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.MetricMetadata(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadataOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadataOrBuilder.java deleted file mode 100644 index d1a21c7d..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricMetadataOrBuilder.java +++ /dev/null @@ -1,234 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface MetricMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.MetricType type = 5; - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * - * - *
-   * The type of this metric.
-   * 
- * - * .google.analytics.data.v1alpha.MetricType type = 5; - * - * @return The type. - */ - com.google.analytics.data.v1alpha.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(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricOrBuilder.java deleted file mode 100644 index 2d108c94..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricOrBuilder.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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface MetricOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.
-   * For example if `expression` is `screenPageViews/sessions`, you could call
-   * that metric's name = `viewsPerSession`.
-   * 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.
-   * For example if `expression` is `screenPageViews/sessions`, you could call
-   * that metric's name = `viewsPerSession`.
-   * 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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java deleted file mode 100644 index f62cfdf0..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java +++ /dev/null @@ -1,398 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * A metric's value type.
- * 
- * - * Protobuf enum {@code google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricType) -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java deleted file mode 100644 index 8552269e..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The value of a metric.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.MetricValue} - */ -public final class MetricValue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.MetricValue.class, - com.google.analytics.data.v1alpha.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.v1alpha.MetricValue)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.MetricValue other = - (com.google.analytics.data.v1alpha.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.v1alpha.MetricValue parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricValue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.MetricValue) - com.google.analytics.data.v1alpha.MetricValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.MetricValue.class, - com.google.analytics.data.v1alpha.MetricValue.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricValue getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.MetricValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricValue build() { - com.google.analytics.data.v1alpha.MetricValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricValue buildPartial() { - com.google.analytics.data.v1alpha.MetricValue result = - new com.google.analytics.data.v1alpha.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.v1alpha.MetricValue) { - return mergeFrom((com.google.analytics.data.v1alpha.MetricValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.MetricValue other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.MetricValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.MetricValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.MetricValue) - private static final com.google.analytics.data.v1alpha.MetricValue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.MetricValue(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValueOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValueOrBuilder.java deleted file mode 100644 index b5a984e9..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface MetricValueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.MetricValue.OneValueCase getOneValueCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java deleted file mode 100644 index 761d75ab..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * To represent a number.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.NumericValue} - */ -public final class NumericValue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_NumericValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_NumericValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.NumericValue.class, - com.google.analytics.data.v1alpha.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.v1alpha.NumericValue)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.NumericValue other = - (com.google.analytics.data.v1alpha.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.v1alpha.NumericValue parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.NumericValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.NumericValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.NumericValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.NumericValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.NumericValue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.NumericValue) - com.google.analytics.data.v1alpha.NumericValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_NumericValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_NumericValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.NumericValue.class, - com.google.analytics.data.v1alpha.NumericValue.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_NumericValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericValue getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericValue build() { - com.google.analytics.data.v1alpha.NumericValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericValue buildPartial() { - com.google.analytics.data.v1alpha.NumericValue result = - new com.google.analytics.data.v1alpha.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.v1alpha.NumericValue) { - return mergeFrom((com.google.analytics.data.v1alpha.NumericValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.NumericValue other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.NumericValue parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.NumericValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.NumericValue) - private static final com.google.analytics.data.v1alpha.NumericValue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.NumericValue(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.NumericValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValueOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValueOrBuilder.java deleted file mode 100644 index fa7ace8c..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface NumericValueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.NumericValue.OneValueCase getOneValueCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/OrderBy.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/OrderBy.java deleted file mode 100644 index cc682e69..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/OrderBy.java +++ /dev/null @@ -1,5551 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The sort options.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.OrderBy} - */ -public final class OrderBy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.OrderBy.MetricOrderBy.Builder subBuilder = null; - if (oneOrderByCase_ == 1) { - subBuilder = - ((com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy) oneOrderBy_) - .toBuilder(); - } - oneOrderBy_ = - input.readMessage( - com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy) oneOrderBy_); - oneOrderBy_ = subBuilder.buildPartial(); - } - oneOrderByCase_ = 1; - break; - } - case 18: - { - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.Builder subBuilder = null; - if (oneOrderByCase_ == 2) { - subBuilder = - ((com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy) oneOrderBy_) - .toBuilder(); - } - oneOrderBy_ = - input.readMessage( - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy) oneOrderBy_); - oneOrderBy_ = subBuilder.buildPartial(); - } - oneOrderByCase_ = 2; - break; - } - case 26: - { - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.Builder subBuilder = null; - if (oneOrderByCase_ == 3) { - subBuilder = - ((com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy) oneOrderBy_) - .toBuilder(); - } - oneOrderBy_ = - input.readMessage( - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.OrderBy.class, - com.google.analytics.data.v1alpha.OrderBy.Builder.class); - } - - public interface MetricOrderByOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.OrderBy.MetricOrderBy} - */ - public static final class MetricOrderBy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_MetricOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_MetricOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.class, - com.google.analytics.data.v1alpha.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 (!getMetricNameBytes().isEmpty()) { - 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 (!getMetricNameBytes().isEmpty()) { - 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.v1alpha.OrderBy.MetricOrderBy)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy other = - (com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.MetricOrderBy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.MetricOrderBy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.MetricOrderBy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy.MetricOrderBy} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.OrderBy.MetricOrderBy) - com.google.analytics.data.v1alpha.OrderBy.MetricOrderByOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_MetricOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_MetricOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.class, - com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_MetricOrderBy_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy build() { - com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy buildPartial() { - com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy result = - new com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.MetricOrderBy) { - return mergeFrom((com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.MetricOrderBy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.MetricOrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.OrderBy.MetricOrderBy) - private static final com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.MetricOrderBy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface DimensionOrderByOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @return The orderType. - */ - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.OrderType getOrderType(); - } - /** - * - * - *
-   * Sorts by dimension values.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.OrderBy.DimensionOrderBy} - */ - public static final class DimensionOrderBy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_DimensionOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_DimensionOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.class, - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.Builder.class); - } - - /** - * - * - *
-     * Rule to order the string dimension values by.
-     * 
- * - * Protobuf enum {@code google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @return The orderType. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.OrderType getOrderType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.OrderType result = - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.OrderType.valueOf(orderType_); - return result == null - ? com.google.analytics.data.v1alpha.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 (!getDimensionNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); - } - if (orderType_ - != com.google.analytics.data.v1alpha.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 (!getDimensionNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_); - } - if (orderType_ - != com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy other = - (com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.OrderBy.DimensionOrderBy) - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderByOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_DimensionOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_DimensionOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.class, - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_DimensionOrderBy_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy build() { - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy buildPartial() { - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy result = - new com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy) { - return mergeFrom((com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy other) { - if (other - == com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @return The orderType. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.OrderType getOrderType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.OrderType result = - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.OrderType.valueOf( - orderType_); - return result == null - ? com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.OrderType.UNRECOGNIZED - : result; - } - /** - * - * - *
-       * Controls the rule for dimension value ordering.
-       * 
- * - * .google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.OrderType order_type = 2; - * - * - * @param value The orderType to set. - * @return This builder for chaining. - */ - public Builder setOrderType( - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.OrderBy.DimensionOrderBy) - private static final com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface PivotOrderByOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - java.util.List< - ? extends - com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelectionOrBuilder - getPivotSelectionsOrBuilder(int index); - } - /** - * - * - *
-   * Sorts by a pivot column group.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.OrderBy.PivotOrderBy} - */ - public static final class PivotOrderBy extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection>(); - mutable_bitField0_ |= 0x00000001; - } - pivotSelections_.add( - input.readMessage( - com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.class, - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.Builder.class); - } - - public interface PivotSelectionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection} - */ - public static final class PivotSelection extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_PivotSelection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_PivotSelection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection.class, - com.google.analytics.data.v1alpha.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 (!getDimensionNameBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); - } - if (!getDimensionValueBytes().isEmpty()) { - 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 (!getDimensionNameBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_); - } - if (!getDimensionValueBytes().isEmpty()) { - 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.v1alpha.OrderBy.PivotOrderBy.PivotSelection)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection other = - (com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection) - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelectionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_PivotSelection_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_PivotSelection_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection.class, - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection.Builder - .class); - } - - // Construct using - // com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_PivotSelection_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection build() { - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection - buildPartial() { - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection result = - new com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection) { - return mergeFrom( - (com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection other) { - if (other - == com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection parsedMessage = - null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection) - private static final com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - @java.lang.Override - public java.util.List< - ? extends - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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 (!getMetricNameBytes().isEmpty()) { - 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 (!getMetricNameBytes().isEmpty()) { - 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.v1alpha.OrderBy.PivotOrderBy)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy other = - (com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy.PivotOrderBy} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.OrderBy.PivotOrderBy) - com.google.analytics.data.v1alpha.OrderBy.PivotOrderByOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.class, - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy build() { - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy buildPartial() { - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy result = - new com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy) { - return mergeFrom((com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection>( - pivotSelections_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection, - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public Builder setPivotSelections( - int index, com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public Builder setPivotSelections( - int index, - com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public Builder addPivotSelections( - com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public Builder addPivotSelections( - int index, com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public Builder addPivotSelections( - com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public Builder addPivotSelections( - int index, - com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public Builder addAllPivotSelections( - java.lang.Iterable< - ? extends com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public java.util.List< - ? extends - com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection.Builder - addPivotSelectionsBuilder() { - return getPivotSelectionsFieldBuilder() - .addBuilder( - com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection.Builder - addPivotSelectionsBuilder(int index) { - return getPivotSelectionsFieldBuilder() - .addBuilder( - index, - com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy.PivotSelection pivot_selections = 2; - * - */ - public java.util.List< - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection.Builder> - getPivotSelectionsBuilderList() { - return getPivotSelectionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection, - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection.Builder, - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelectionOrBuilder> - getPivotSelectionsFieldBuilder() { - if (pivotSelectionsBuilder_ == null) { - pivotSelectionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection, - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.PivotSelection.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.OrderBy.PivotOrderBy) - private static final com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy.MetricOrderBy metric = 1; - * - * @return The metric. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy getMetric() { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.getDefaultInstance(); - } - /** - * - * - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.data.v1alpha.OrderBy.MetricOrderBy metric = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.MetricOrderByOrBuilder getMetricOrBuilder() { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.getDefaultInstance(); - } - - public static final int DIMENSION_FIELD_NUMBER = 2; - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy dimension = 2; - * - * @return The dimension. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy getDimension() { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.getDefaultInstance(); - } - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.data.v1alpha.OrderBy.DimensionOrderBy dimension = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.DimensionOrderByOrBuilder - getDimensionOrBuilder() { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.OrderBy.PivotOrderBy pivot = 3; - * - * @return The pivot. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy getPivot() { - if (oneOrderByCase_ == 3) { - return (com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.getDefaultInstance(); - } - /** - * - * - *
-   * Sorts results by a metric's values within a pivot column group.
-   * 
- * - * .google.analytics.data.v1alpha.OrderBy.PivotOrderBy pivot = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.PivotOrderByOrBuilder getPivotOrBuilder() { - if (oneOrderByCase_ == 3) { - return (com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.MetricOrderBy) oneOrderBy_); - } - if (oneOrderByCase_ == 2) { - output.writeMessage( - 2, (com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy) oneOrderBy_); - } - if (oneOrderByCase_ == 3) { - output.writeMessage(3, (com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.MetricOrderBy) oneOrderBy_); - } - if (oneOrderByCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy) oneOrderBy_); - } - if (oneOrderByCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.analytics.data.v1alpha.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.v1alpha.OrderBy)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.OrderBy other = - (com.google.analytics.data.v1alpha.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.v1alpha.OrderBy parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.OrderBy parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.OrderBy parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.OrderBy parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.OrderBy parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.OrderBy) - com.google.analytics.data.v1alpha.OrderByOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.OrderBy.class, - com.google.analytics.data.v1alpha.OrderBy.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_OrderBy_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.OrderBy.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy build() { - com.google.analytics.data.v1alpha.OrderBy result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy buildPartial() { - com.google.analytics.data.v1alpha.OrderBy result = - new com.google.analytics.data.v1alpha.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.v1alpha.OrderBy) { - return mergeFrom((com.google.analytics.data.v1alpha.OrderBy) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.OrderBy other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.OrderBy parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.MetricOrderBy, - com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.Builder, - com.google.analytics.data.v1alpha.OrderBy.MetricOrderByOrBuilder> - metricBuilder_; - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.OrderBy.MetricOrderBy metric = 1; - * - * @return The metric. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy getMetric() { - if (metricBuilder_ == null) { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.getDefaultInstance(); - } else { - if (oneOrderByCase_ == 1) { - return metricBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.getDefaultInstance(); - } - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.data.v1alpha.OrderBy.MetricOrderBy metric = 1; - */ - public Builder setMetric(com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.MetricOrderBy metric = 1; - */ - public Builder setMetric( - com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.MetricOrderBy metric = 1; - */ - public Builder mergeMetric(com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy value) { - if (metricBuilder_ == null) { - if (oneOrderByCase_ == 1 - && oneOrderBy_ - != com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.getDefaultInstance()) { - oneOrderBy_ = - com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.newBuilder( - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.OrderBy.MetricOrderBy metric = 1; - */ - public com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.Builder getMetricBuilder() { - return getMetricFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.data.v1alpha.OrderBy.MetricOrderBy metric = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.MetricOrderByOrBuilder getMetricOrBuilder() { - if ((oneOrderByCase_ == 1) && (metricBuilder_ != null)) { - return metricBuilder_.getMessageOrBuilder(); - } else { - if (oneOrderByCase_ == 1) { - return (com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.getDefaultInstance(); - } - } - /** - * - * - *
-     * Sorts results by a metric's values.
-     * 
- * - * .google.analytics.data.v1alpha.OrderBy.MetricOrderBy metric = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy, - com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.Builder, - com.google.analytics.data.v1alpha.OrderBy.MetricOrderByOrBuilder> - getMetricFieldBuilder() { - if (metricBuilder_ == null) { - if (!(oneOrderByCase_ == 1)) { - oneOrderBy_ = - com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.getDefaultInstance(); - } - metricBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy, - com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy.Builder, - com.google.analytics.data.v1alpha.OrderBy.MetricOrderByOrBuilder>( - (com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy) oneOrderBy_, - getParentForChildren(), - isClean()); - oneOrderBy_ = null; - } - oneOrderByCase_ = 1; - onChanged(); - ; - return metricBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy, - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.Builder, - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderByOrBuilder> - dimensionBuilder_; - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy dimension = 2; - * - * @return The dimension. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy getDimension() { - if (dimensionBuilder_ == null) { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.getDefaultInstance(); - } else { - if (oneOrderByCase_ == 2) { - return dimensionBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.getDefaultInstance(); - } - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.data.v1alpha.OrderBy.DimensionOrderBy dimension = 2; - */ - public Builder setDimension(com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy dimension = 2; - */ - public Builder setDimension( - com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy dimension = 2; - */ - public Builder mergeDimension( - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy value) { - if (dimensionBuilder_ == null) { - if (oneOrderByCase_ == 2 - && oneOrderBy_ - != com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy - .getDefaultInstance()) { - oneOrderBy_ = - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.newBuilder( - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.OrderBy.DimensionOrderBy dimension = 2; - */ - public com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.Builder - getDimensionBuilder() { - return getDimensionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.data.v1alpha.OrderBy.DimensionOrderBy dimension = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.DimensionOrderByOrBuilder - getDimensionOrBuilder() { - if ((oneOrderByCase_ == 2) && (dimensionBuilder_ != null)) { - return dimensionBuilder_.getMessageOrBuilder(); - } else { - if (oneOrderByCase_ == 2) { - return (com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.getDefaultInstance(); - } - } - /** - * - * - *
-     * Sorts results by a dimension's values.
-     * 
- * - * .google.analytics.data.v1alpha.OrderBy.DimensionOrderBy dimension = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy, - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.Builder, - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderByOrBuilder> - getDimensionFieldBuilder() { - if (dimensionBuilder_ == null) { - if (!(oneOrderByCase_ == 2)) { - oneOrderBy_ = - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.getDefaultInstance(); - } - dimensionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy, - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy.Builder, - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderByOrBuilder>( - (com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy) oneOrderBy_, - getParentForChildren(), - isClean()); - oneOrderBy_ = null; - } - oneOrderByCase_ = 2; - onChanged(); - ; - return dimensionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy, - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.Builder, - com.google.analytics.data.v1alpha.OrderBy.PivotOrderByOrBuilder> - pivotBuilder_; - /** - * - * - *
-     * Sorts results by a metric's values within a pivot column group.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy pivot = 3; - * - * @return The pivot. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy getPivot() { - if (pivotBuilder_ == null) { - if (oneOrderByCase_ == 3) { - return (com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.getDefaultInstance(); - } else { - if (oneOrderByCase_ == 3) { - return pivotBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.getDefaultInstance(); - } - } - /** - * - * - *
-     * Sorts results by a metric's values within a pivot column group.
-     * 
- * - * .google.analytics.data.v1alpha.OrderBy.PivotOrderBy pivot = 3; - */ - public Builder setPivot(com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy pivot = 3; - */ - public Builder setPivot( - com.google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy pivot = 3; - */ - public Builder mergePivot(com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy value) { - if (pivotBuilder_ == null) { - if (oneOrderByCase_ == 3 - && oneOrderBy_ - != com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.getDefaultInstance()) { - oneOrderBy_ = - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.newBuilder( - (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.OrderBy.PivotOrderBy pivot = 3; - */ - public com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.Builder getPivotBuilder() { - return getPivotFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Sorts results by a metric's values within a pivot column group.
-     * 
- * - * .google.analytics.data.v1alpha.OrderBy.PivotOrderBy pivot = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy.PivotOrderByOrBuilder getPivotOrBuilder() { - if ((oneOrderByCase_ == 3) && (pivotBuilder_ != null)) { - return pivotBuilder_.getMessageOrBuilder(); - } else { - if (oneOrderByCase_ == 3) { - return (com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy) oneOrderBy_; - } - return com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.getDefaultInstance(); - } - } - /** - * - * - *
-     * Sorts results by a metric's values within a pivot column group.
-     * 
- * - * .google.analytics.data.v1alpha.OrderBy.PivotOrderBy pivot = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy, - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.Builder, - com.google.analytics.data.v1alpha.OrderBy.PivotOrderByOrBuilder> - getPivotFieldBuilder() { - if (pivotBuilder_ == null) { - if (!(oneOrderByCase_ == 3)) { - oneOrderBy_ = com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.getDefaultInstance(); - } - pivotBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy, - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy.Builder, - com.google.analytics.data.v1alpha.OrderBy.PivotOrderByOrBuilder>( - (com.google.analytics.data.v1alpha.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.v1alpha.OrderBy) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.OrderBy) - private static final com.google.analytics.data.v1alpha.OrderBy DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.OrderBy(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.OrderBy getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/OrderByOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/OrderByOrBuilder.java deleted file mode 100644 index c3d3050c..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface OrderByOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.OrderBy) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.data.v1alpha.OrderBy.MetricOrderBy metric = 1; - * - * @return Whether the metric field is set. - */ - boolean hasMetric(); - /** - * - * - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.data.v1alpha.OrderBy.MetricOrderBy metric = 1; - * - * @return The metric. - */ - com.google.analytics.data.v1alpha.OrderBy.MetricOrderBy getMetric(); - /** - * - * - *
-   * Sorts results by a metric's values.
-   * 
- * - * .google.analytics.data.v1alpha.OrderBy.MetricOrderBy metric = 1; - */ - com.google.analytics.data.v1alpha.OrderBy.MetricOrderByOrBuilder getMetricOrBuilder(); - - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.data.v1alpha.OrderBy.DimensionOrderBy dimension = 2; - * - * @return Whether the dimension field is set. - */ - boolean hasDimension(); - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.data.v1alpha.OrderBy.DimensionOrderBy dimension = 2; - * - * @return The dimension. - */ - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderBy getDimension(); - /** - * - * - *
-   * Sorts results by a dimension's values.
-   * 
- * - * .google.analytics.data.v1alpha.OrderBy.DimensionOrderBy dimension = 2; - */ - com.google.analytics.data.v1alpha.OrderBy.DimensionOrderByOrBuilder getDimensionOrBuilder(); - - /** - * - * - *
-   * Sorts results by a metric's values within a pivot column group.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.OrderBy.PivotOrderBy pivot = 3; - * - * @return The pivot. - */ - com.google.analytics.data.v1alpha.OrderBy.PivotOrderBy getPivot(); - /** - * - * - *
-   * Sorts results by a metric's values within a pivot column group.
-   * 
- * - * .google.analytics.data.v1alpha.OrderBy.PivotOrderBy pivot = 3; - */ - com.google.analytics.data.v1alpha.OrderBy.PivotOrderByOrBuilder getPivotOrBuilder(); - - /** - * - * - *
-   * If true, sorts by descending order.
-   * 
- * - * bool desc = 4; - * - * @return The desc. - */ - boolean getDesc(); - - public com.google.analytics.data.v1alpha.OrderBy.OneOrderByCase getOneOrderByCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Pivot.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Pivot.java deleted file mode 100644 index caec7ab7..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Pivot.java +++ /dev/null @@ -1,1963 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Describes the visible dimension columns and rows in the report response.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Pivot} - */ -public final class Pivot extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Pivot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Pivot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Pivot.class, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy order_bys = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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 rows to return in this pivot. If unspecified, 10 rows are
-   * returned. If -1, all rows are returned.
-   * 
- * - * 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.v1alpha.MetricAggregation> - metricAggregations_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.data.v1alpha.MetricAggregation>() { - public com.google.analytics.data.v1alpha.MetricAggregation convert( - java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.MetricAggregation result = - com.google.analytics.data.v1alpha.MetricAggregation.valueOf(from); - return result == null - ? com.google.analytics.data.v1alpha.MetricAggregation.UNRECOGNIZED - : result; - } - }; - /** - * - * - *
-   * Aggregate the metrics by dimensions in this pivot using the specified
-   * metric_aggregations.
-   * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.MetricAggregation>( - metricAggregations_, metricAggregations_converter_); - } - /** - * - * - *
-   * Aggregate the metrics by dimensions in this pivot using the specified
-   * metric_aggregations.
-   * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Pivot)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Pivot other = (com.google.analytics.data.v1alpha.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.v1alpha.Pivot parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Pivot parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Pivot parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Pivot parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Pivot parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Pivot} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Pivot) - com.google.analytics.data.v1alpha.PivotOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Pivot_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Pivot_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Pivot.class, - com.google.analytics.data.v1alpha.Pivot.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Pivot_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Pivot getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Pivot.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Pivot build() { - com.google.analytics.data.v1alpha.Pivot result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Pivot buildPartial() { - com.google.analytics.data.v1alpha.Pivot result = - new com.google.analytics.data.v1alpha.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.v1alpha.Pivot) { - return mergeFrom((com.google.analytics.data.v1alpha.Pivot) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Pivot other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.Pivot parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.OrderBy, - com.google.analytics.data.v1alpha.OrderBy.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy order_bys = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 2; - */ - public Builder setOrderBys(int index, com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 2; - */ - public Builder setOrderBys( - int index, com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 2; - */ - public Builder addOrderBys(com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 2; - */ - public Builder addOrderBys(int index, com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 2; - */ - public Builder addOrderBys(com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 2; - */ - public Builder addOrderBys( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy order_bys = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.OrderBy order_bys = 2; - */ - public com.google.analytics.data.v1alpha.OrderBy.Builder addOrderBysBuilder() { - return getOrderBysFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 2; - */ - public com.google.analytics.data.v1alpha.OrderBy.Builder addOrderBysBuilder(int index) { - return getOrderBysFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 2; - */ - public java.util.List - getOrderBysBuilderList() { - return getOrderBysFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy, - com.google.analytics.data.v1alpha.OrderBy.Builder, - com.google.analytics.data.v1alpha.OrderByOrBuilder> - getOrderBysFieldBuilder() { - if (orderBysBuilder_ == null) { - orderBysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy, - com.google.analytics.data.v1alpha.OrderBy.Builder, - com.google.analytics.data.v1alpha.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 rows to return in this pivot. If unspecified, 10 rows are
-     * returned. If -1, all rows are returned.
-     * 
- * - * int64 limit = 4; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - /** - * - * - *
-     * The number of rows to return in this pivot. If unspecified, 10 rows are
-     * returned. If -1, all rows are returned.
-     * 
- * - * 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 rows to return in this pivot. If unspecified, 10 rows are
-     * returned. If -1, all rows are returned.
-     * 
- * - * 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.v1alpha.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.v1alpha.MetricAggregation>( - metricAggregations_, metricAggregations_converter_); - } - /** - * - * - *
-     * Aggregate the metrics by dimensions in this pivot using the specified
-     * metric_aggregations.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricAggregation metric_aggregations = 5; - * - * - * @param value The metricAggregations to add. - * @return This builder for chaining. - */ - public Builder addMetricAggregations( - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Pivot) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Pivot) - private static final com.google.analytics.data.v1alpha.Pivot DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Pivot(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Pivot getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeader.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeader.java deleted file mode 100644 index ff406ded..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeader.java +++ /dev/null @@ -1,965 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Summarizes dimension values from a row for this pivot.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.PivotDimensionHeader} - */ -public final class PivotDimensionHeader extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.PivotDimensionHeader.class, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public int getDimensionValuesCount() { - return dimensionValues_.size(); - } - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionValue getDimensionValues(int index) { - return dimensionValues_.get(index); - } - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.PivotDimensionHeader other = - (com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.PivotDimensionHeader} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.PivotDimensionHeader) - com.google.analytics.data.v1alpha.PivotDimensionHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.PivotDimensionHeader.class, - com.google.analytics.data.v1alpha.PivotDimensionHeader.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.PivotDimensionHeader getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.PivotDimensionHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.PivotDimensionHeader build() { - com.google.analytics.data.v1alpha.PivotDimensionHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.PivotDimensionHeader buildPartial() { - com.google.analytics.data.v1alpha.PivotDimensionHeader result = - new com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader) { - return mergeFrom((com.google.analytics.data.v1alpha.PivotDimensionHeader) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.PivotDimensionHeader other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue, - com.google.analytics.data.v1alpha.DimensionValue.Builder, - com.google.analytics.data.v1alpha.DimensionValueOrBuilder> - dimensionValuesBuilder_; - - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder setDimensionValues( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder setDimensionValues( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues(com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1alpha.DimensionValue.Builder getDimensionValuesBuilder( - int index) { - return getDimensionValuesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1alpha.DimensionValue.Builder addDimensionValuesBuilder() { - return getDimensionValuesFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.DimensionValue.getDefaultInstance()); - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1alpha.DimensionValue.Builder addDimensionValuesBuilder( - int index) { - return getDimensionValuesFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.DimensionValue.getDefaultInstance()); - } - /** - * - * - *
-     * Values of multiple dimensions in a pivot.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1; - */ - public java.util.List - getDimensionValuesBuilderList() { - return getDimensionValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionValue, - com.google.analytics.data.v1alpha.DimensionValue.Builder, - com.google.analytics.data.v1alpha.DimensionValueOrBuilder> - getDimensionValuesFieldBuilder() { - if (dimensionValuesBuilder_ == null) { - dimensionValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionValue, - com.google.analytics.data.v1alpha.DimensionValue.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.PivotDimensionHeader) - private static final com.google.analytics.data.v1alpha.PivotDimensionHeader DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.PivotDimensionHeader(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeaderOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotDimensionHeaderOrBuilder.java deleted file mode 100644 index f838ba89..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface PivotDimensionHeaderOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.PivotDimensionHeader) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1; - */ - java.util.List getDimensionValuesList(); - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1; - */ - com.google.analytics.data.v1alpha.DimensionValue getDimensionValues(int index); - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1; - */ - int getDimensionValuesCount(); - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1; - */ - java.util.List - getDimensionValuesOrBuilderList(); - /** - * - * - *
-   * Values of multiple dimensions in a pivot.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionValue dimension_values = 1; - */ - com.google.analytics.data.v1alpha.DimensionValueOrBuilder getDimensionValuesOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeader.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeader.java deleted file mode 100644 index 536dc93a..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeader.java +++ /dev/null @@ -1,1135 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Dimensions' values in a single pivot.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.PivotHeader} - */ -public final class PivotHeader extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader>(); - mutable_bitField0_ |= 0x00000001; - } - pivotDimensionHeaders_.add( - input.readMessage( - com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PivotHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PivotHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.PivotHeader.class, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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 as if offset = 0 and limit = -1. 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.v1alpha.PivotHeader)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.PivotHeader other = - (com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.PivotHeader} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.PivotHeader) - com.google.analytics.data.v1alpha.PivotHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PivotHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PivotHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.PivotHeader.class, - com.google.analytics.data.v1alpha.PivotHeader.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PivotHeader_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.PivotHeader getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.PivotHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.PivotHeader build() { - com.google.analytics.data.v1alpha.PivotHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.PivotHeader buildPartial() { - com.google.analytics.data.v1alpha.PivotHeader result = - new com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader) { - return mergeFrom((com.google.analytics.data.v1alpha.PivotHeader) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.PivotHeader other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader, - com.google.analytics.data.v1alpha.PivotDimensionHeader.Builder, - com.google.analytics.data.v1alpha.PivotDimensionHeaderOrBuilder> - pivotDimensionHeadersBuilder_; - - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public Builder setPivotDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public Builder setPivotDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public Builder addPivotDimensionHeaders( - com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public Builder addPivotDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public Builder addPivotDimensionHeaders( - com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public Builder addPivotDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public com.google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public com.google.analytics.data.v1alpha.PivotDimensionHeader.Builder - addPivotDimensionHeadersBuilder() { - return getPivotDimensionHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.PivotDimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public com.google.analytics.data.v1alpha.PivotDimensionHeader.Builder - addPivotDimensionHeadersBuilder(int index) { - return getPivotDimensionHeadersFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1alpha.PivotDimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * The size is the same as the cardinality of the corresponding dimension
-     * combinations.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - public java.util.List - getPivotDimensionHeadersBuilderList() { - return getPivotDimensionHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.PivotDimensionHeader, - com.google.analytics.data.v1alpha.PivotDimensionHeader.Builder, - com.google.analytics.data.v1alpha.PivotDimensionHeaderOrBuilder> - getPivotDimensionHeadersFieldBuilder() { - if (pivotDimensionHeadersBuilder_ == null) { - pivotDimensionHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.PivotDimensionHeader, - com.google.analytics.data.v1alpha.PivotDimensionHeader.Builder, - com.google.analytics.data.v1alpha.PivotDimensionHeaderOrBuilder>( - pivotDimensionHeaders_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - pivotDimensionHeaders_ = null; - } - return pivotDimensionHeadersBuilder_; - } - - private int rowCount_; - /** - * - * - *
-     * The cardinality of the pivot as if offset = 0 and limit = -1. 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 as if offset = 0 and limit = -1. 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 as if offset = 0 and limit = -1. 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.v1alpha.PivotHeader) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.PivotHeader) - private static final com.google.analytics.data.v1alpha.PivotHeader DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.PivotHeader(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeaderOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotHeaderOrBuilder.java deleted file mode 100644 index a6cbb2fb..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface PivotHeaderOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.PivotHeader) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The size is the same as the cardinality of the corresponding dimension
-   * combinations.
-   * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - com.google.analytics.data.v1alpha.PivotDimensionHeader getPivotDimensionHeaders(int index); - /** - * - * - *
-   * The size is the same as the cardinality of the corresponding dimension
-   * combinations.
-   * 
- * - * repeated .google.analytics.data.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - int getPivotDimensionHeadersCount(); - /** - * - * - *
-   * The size is the same as the cardinality of the corresponding dimension
-   * combinations.
-   * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.PivotDimensionHeader pivot_dimension_headers = 1; - * - */ - com.google.analytics.data.v1alpha.PivotDimensionHeaderOrBuilder getPivotDimensionHeadersOrBuilder( - int index); - - /** - * - * - *
-   * The cardinality of the pivot as if offset = 0 and limit = -1. 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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotOrBuilder.java deleted file mode 100644 index 0bb7c1d5..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PivotOrBuilder.java +++ /dev/null @@ -1,255 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface PivotOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.OrderBy order_bys = 2; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy order_bys = 2; - */ - com.google.analytics.data.v1alpha.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 rows to return in this pivot. If unspecified, 10 rows are
-   * returned. If -1, all rows are returned.
-   * 
- * - * 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.v1alpha.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.v1alpha.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.v1alpha.MetricAggregation metric_aggregations = 5; - * - * @param index The index of the element to return. - * @return The metricAggregations at the given index. - */ - com.google.analytics.data.v1alpha.MetricAggregation getMetricAggregations(int index); - /** - * - * - *
-   * Aggregate the metrics by dimensions in this pivot using the specified
-   * metric_aggregations.
-   * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java deleted file mode 100644 index fd5f2dde..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java +++ /dev/null @@ -1,1687 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * 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.v1alpha.PropertyQuota} - */ -public final class PropertyQuota extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.QuotaStatus.Builder subBuilder = null; - if (tokensPerDay_ != null) { - subBuilder = tokensPerDay_.toBuilder(); - } - tokensPerDay_ = - input.readMessage( - com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tokensPerDay_); - tokensPerDay_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.analytics.data.v1alpha.QuotaStatus.Builder subBuilder = null; - if (tokensPerHour_ != null) { - subBuilder = tokensPerHour_.toBuilder(); - } - tokensPerHour_ = - input.readMessage( - com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tokensPerHour_); - tokensPerHour_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.analytics.data.v1alpha.QuotaStatus.Builder subBuilder = null; - if (concurrentRequests_ != null) { - subBuilder = concurrentRequests_.toBuilder(); - } - concurrentRequests_ = - input.readMessage( - com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(concurrentRequests_); - concurrentRequests_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.analytics.data.v1alpha.QuotaStatus.Builder subBuilder = null; - if (serverErrorsPerProjectPerHour_ != null) { - subBuilder = serverErrorsPerProjectPerHour_.toBuilder(); - } - serverErrorsPerProjectPerHour_ = - input.readMessage( - com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(serverErrorsPerProjectPerHour_); - serverErrorsPerProjectPerHour_ = 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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PropertyQuota_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.PropertyQuota.class, - com.google.analytics.data.v1alpha.PropertyQuota.Builder.class); - } - - public static final int TOKENS_PER_DAY_FIELD_NUMBER = 1; - private com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - * - * @return The tokensPerDay. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatus getTokensPerDay() { - return tokensPerDay_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerDayOrBuilder() { - return getTokensPerDay(); - } - - public static final int TOKENS_PER_HOUR_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.QuotaStatus tokensPerHour_; - /** - * - * - *
-   * Standard Analytics Properties can use up to 5,000 tokens per day; Analytics
-   * 360 Properties can use 50,000 tokens per day. An API request consumes a
-   * single number of tokens, and that number is deducted from both the hourly
-   * and daily quotas.
-   * 
- * - * .google.analytics.data.v1alpha.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 day; Analytics
-   * 360 Properties can use 50,000 tokens per day. An API request consumes a
-   * single number of tokens, and that number is deducted from both the hourly
-   * and daily quotas.
-   * 
- * - * .google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2; - * - * @return The tokensPerHour. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatus getTokensPerHour() { - return tokensPerHour_ == null - ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance() - : tokensPerHour_; - } - /** - * - * - *
-   * Standard Analytics Properties can use up to 5,000 tokens per day; Analytics
-   * 360 Properties can use 50,000 tokens per day. An API request consumes a
-   * single number of tokens, and that number is deducted from both the hourly
-   * and daily quotas.
-   * 
- * - * .google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerHourOrBuilder() { - return getTokensPerHour(); - } - - public static final int CONCURRENT_REQUESTS_FIELD_NUMBER = 3; - private com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - * - * @return The concurrentRequests. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatus getConcurrentRequests() { - return concurrentRequests_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getConcurrentRequestsOrBuilder() { - return getConcurrentRequests(); - } - - public static final int SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 4; - private com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - * @return The serverErrorsPerProjectPerHour. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatus getServerErrorsPerProjectPerHour() { - return serverErrorsPerProjectPerHour_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder - getServerErrorsPerProjectPerHourOrBuilder() { - return getServerErrorsPerProjectPerHour(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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()); - } - 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()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = 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.v1alpha.PropertyQuota)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.PropertyQuota other = - (com.google.analytics.data.v1alpha.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 (!unknownFields.equals(other.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(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.PropertyQuota parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.PropertyQuota} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.PropertyQuota) - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PropertyQuota_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.PropertyQuota.class, - com.google.analytics.data.v1alpha.PropertyQuota.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.PropertyQuota getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.PropertyQuota build() { - com.google.analytics.data.v1alpha.PropertyQuota result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.PropertyQuota buildPartial() { - com.google.analytics.data.v1alpha.PropertyQuota result = - new com.google.analytics.data.v1alpha.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(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.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.v1alpha.PropertyQuota) { - return mergeFrom((com.google.analytics.data.v1alpha.PropertyQuota) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.PropertyQuota other) { - if (other == com.google.analytics.data.v1alpha.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()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - 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.v1alpha.PropertyQuota parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.PropertyQuota) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.analytics.data.v1alpha.QuotaStatus tokensPerDay_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - * - * @return The tokensPerDay. - */ - public com.google.analytics.data.v1alpha.QuotaStatus getTokensPerDay() { - if (tokensPerDayBuilder_ == null) { - return tokensPerDay_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - */ - public Builder setTokensPerDay(com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - */ - public Builder setTokensPerDay( - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - */ - public Builder mergeTokensPerDay(com.google.analytics.data.v1alpha.QuotaStatus value) { - if (tokensPerDayBuilder_ == null) { - if (tokensPerDay_ != null) { - tokensPerDay_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - */ - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerDayOrBuilder() { - if (tokensPerDayBuilder_ != null) { - return tokensPerDayBuilder_.getMessageOrBuilder(); - } else { - return tokensPerDay_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder> - getTokensPerDayFieldBuilder() { - if (tokensPerDayBuilder_ == null) { - tokensPerDayBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>( - getTokensPerDay(), getParentForChildren(), isClean()); - tokensPerDay_ = null; - } - return tokensPerDayBuilder_; - } - - private com.google.analytics.data.v1alpha.QuotaStatus tokensPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder> - tokensPerHourBuilder_; - /** - * - * - *
-     * Standard Analytics Properties can use up to 5,000 tokens per day; Analytics
-     * 360 Properties can use 50,000 tokens per day. An API request consumes a
-     * single number of tokens, and that number is deducted from both the hourly
-     * and daily quotas.
-     * 
- * - * .google.analytics.data.v1alpha.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 day; Analytics
-     * 360 Properties can use 50,000 tokens per day. An API request consumes a
-     * single number of tokens, and that number is deducted from both the hourly
-     * and daily quotas.
-     * 
- * - * .google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2; - * - * @return The tokensPerHour. - */ - public com.google.analytics.data.v1alpha.QuotaStatus getTokensPerHour() { - if (tokensPerHourBuilder_ == null) { - return tokensPerHour_ == null - ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance() - : tokensPerHour_; - } else { - return tokensPerHourBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 5,000 tokens per day; Analytics
-     * 360 Properties can use 50,000 tokens per day. An API request consumes a
-     * single number of tokens, and that number is deducted from both the hourly
-     * and daily quotas.
-     * 
- * - * .google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - public Builder setTokensPerHour(com.google.analytics.data.v1alpha.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 day; Analytics
-     * 360 Properties can use 50,000 tokens per day. An API request consumes a
-     * single number of tokens, and that number is deducted from both the hourly
-     * and daily quotas.
-     * 
- * - * .google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - public Builder setTokensPerHour( - com.google.analytics.data.v1alpha.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 day; Analytics
-     * 360 Properties can use 50,000 tokens per day. An API request consumes a
-     * single number of tokens, and that number is deducted from both the hourly
-     * and daily quotas.
-     * 
- * - * .google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - public Builder mergeTokensPerHour(com.google.analytics.data.v1alpha.QuotaStatus value) { - if (tokensPerHourBuilder_ == null) { - if (tokensPerHour_ != null) { - tokensPerHour_ = - com.google.analytics.data.v1alpha.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 day; Analytics
-     * 360 Properties can use 50,000 tokens per day. An API request consumes a
-     * single number of tokens, and that number is deducted from both the hourly
-     * and daily quotas.
-     * 
- * - * .google.analytics.data.v1alpha.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 day; Analytics
-     * 360 Properties can use 50,000 tokens per day. An API request consumes a
-     * single number of tokens, and that number is deducted from both the hourly
-     * and daily quotas.
-     * 
- * - * .google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - public com.google.analytics.data.v1alpha.QuotaStatus.Builder getTokensPerHourBuilder() { - - onChanged(); - return getTokensPerHourFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 5,000 tokens per day; Analytics
-     * 360 Properties can use 50,000 tokens per day. An API request consumes a
-     * single number of tokens, and that number is deducted from both the hourly
-     * and daily quotas.
-     * 
- * - * .google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerHourOrBuilder() { - if (tokensPerHourBuilder_ != null) { - return tokensPerHourBuilder_.getMessageOrBuilder(); - } else { - return tokensPerHour_ == null - ? com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance() - : tokensPerHour_; - } - } - /** - * - * - *
-     * Standard Analytics Properties can use up to 5,000 tokens per day; Analytics
-     * 360 Properties can use 50,000 tokens per day. An API request consumes a
-     * single number of tokens, and that number is deducted from both the hourly
-     * and daily quotas.
-     * 
- * - * .google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder> - getTokensPerHourFieldBuilder() { - if (tokensPerHourBuilder_ == null) { - tokensPerHourBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>( - getTokensPerHour(), getParentForChildren(), isClean()); - tokensPerHour_ = null; - } - return tokensPerHourBuilder_; - } - - private com.google.analytics.data.v1alpha.QuotaStatus concurrentRequests_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - * - * @return The concurrentRequests. - */ - public com.google.analytics.data.v1alpha.QuotaStatus getConcurrentRequests() { - if (concurrentRequestsBuilder_ == null) { - return concurrentRequests_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - */ - public Builder setConcurrentRequests(com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - */ - public Builder setConcurrentRequests( - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - */ - public Builder mergeConcurrentRequests(com.google.analytics.data.v1alpha.QuotaStatus value) { - if (concurrentRequestsBuilder_ == null) { - if (concurrentRequests_ != null) { - concurrentRequests_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - */ - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getConcurrentRequestsOrBuilder() { - if (concurrentRequestsBuilder_ != null) { - return concurrentRequestsBuilder_.getMessageOrBuilder(); - } else { - return concurrentRequests_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder> - getConcurrentRequestsFieldBuilder() { - if (concurrentRequestsBuilder_ == null) { - concurrentRequestsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>( - getConcurrentRequests(), getParentForChildren(), isClean()); - concurrentRequests_ = null; - } - return concurrentRequestsBuilder_; - } - - private com.google.analytics.data.v1alpha.QuotaStatus serverErrorsPerProjectPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - * - * @return The serverErrorsPerProjectPerHour. - */ - public com.google.analytics.data.v1alpha.QuotaStatus getServerErrorsPerProjectPerHour() { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - return serverErrorsPerProjectPerHour_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public Builder setServerErrorsPerProjectPerHour( - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public Builder setServerErrorsPerProjectPerHour( - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public Builder mergeServerErrorsPerProjectPerHour( - com.google.analytics.data.v1alpha.QuotaStatus value) { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - if (serverErrorsPerProjectPerHour_ != null) { - serverErrorsPerProjectPerHour_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder - getServerErrorsPerProjectPerHourOrBuilder() { - if (serverErrorsPerProjectPerHourBuilder_ != null) { - return serverErrorsPerProjectPerHourBuilder_.getMessageOrBuilder(); - } else { - return serverErrorsPerProjectPerHour_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder> - getServerErrorsPerProjectPerHourFieldBuilder() { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - serverErrorsPerProjectPerHourBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>( - getServerErrorsPerProjectPerHour(), getParentForChildren(), isClean()); - serverErrorsPerProjectPerHour_ = null; - } - return serverErrorsPerProjectPerHourBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.PropertyQuota) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.PropertyQuota) - private static final com.google.analytics.data.v1alpha.PropertyQuota DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.PropertyQuota(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotaOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotaOrBuilder.java deleted file mode 100644 index 9f192040..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotaOrBuilder.java +++ /dev/null @@ -1,190 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface PropertyQuotaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - * - * @return The tokensPerDay. - */ - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - */ - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerDayOrBuilder(); - - /** - * - * - *
-   * Standard Analytics Properties can use up to 5,000 tokens per day; Analytics
-   * 360 Properties can use 50,000 tokens per day. An API request consumes a
-   * single number of tokens, and that number is deducted from both the hourly
-   * and daily quotas.
-   * 
- * - * .google.analytics.data.v1alpha.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 day; Analytics
-   * 360 Properties can use 50,000 tokens per day. An API request consumes a
-   * single number of tokens, and that number is deducted from both the hourly
-   * and daily quotas.
-   * 
- * - * .google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2; - * - * @return The tokensPerHour. - */ - com.google.analytics.data.v1alpha.QuotaStatus getTokensPerHour(); - /** - * - * - *
-   * Standard Analytics Properties can use up to 5,000 tokens per day; Analytics
-   * 360 Properties can use 50,000 tokens per day. An API request consumes a
-   * single number of tokens, and that number is deducted from both the hourly
-   * and daily quotas.
-   * 
- * - * .google.analytics.data.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - * - * @return The concurrentRequests. - */ - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - * @return The serverErrorsPerProjectPerHour. - */ - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - */ - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder - getServerErrorsPerProjectPerHourOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatus.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatus.java deleted file mode 100644 index e2de72fa..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Current state for a particular quota group.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.QuotaStatus} - */ -public final class QuotaStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_QuotaStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.QuotaStatus.class, - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.QuotaStatus other = - (com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.QuotaStatus) - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_QuotaStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.QuotaStatus.class, - com.google.analytics.data.v1alpha.QuotaStatus.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatus getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatus build() { - com.google.analytics.data.v1alpha.QuotaStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatus buildPartial() { - com.google.analytics.data.v1alpha.QuotaStatus result = - new com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus) { - return mergeFrom((com.google.analytics.data.v1alpha.QuotaStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.QuotaStatus other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.QuotaStatus) - private static final com.google.analytics.data.v1alpha.QuotaStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.QuotaStatus(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatusOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatusOrBuilder.java deleted file mode 100644 index e95d0f78..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface QuotaStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java deleted file mode 100644 index 6b11ab86..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java +++ /dev/null @@ -1,656 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -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_v1alpha_DateRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_DateRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_Entity_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Entity_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_Dimension_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Dimension_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_DimensionExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_Metric_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Metric_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FilterExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FilterExpressionList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_Filter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_Filter_StringFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Filter_StringFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_Filter_InListFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Filter_InListFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_Filter_NumericFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Filter_NumericFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_Filter_BetweenFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Filter_BetweenFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_OrderBy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_OrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_OrderBy_MetricOrderBy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_OrderBy_MetricOrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_OrderBy_DimensionOrderBy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_OrderBy_DimensionOrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_PivotSelection_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_PivotSelection_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_Pivot_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Pivot_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_CohortSpec_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_CohortSpec_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_Cohort_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Cohort_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_CohortsRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_CohortsRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_CohortReportSettings_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_CohortReportSettings_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_ResponseMetaData_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_ResponseMetaData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_MetricHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_PivotHeader_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_PivotHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_Row_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Row_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_DimensionValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_MetricValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_MetricValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_NumericValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_NumericValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_PropertyQuota_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_QuotaStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_DimensionMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_MetricMetadata_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/v1alpha/data.pro" - + "to\022\035google.analytics.data.v1alpha\"?\n\tDat" - + "eRange\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\"\035\n\006Entity\022\023\n\013property" - + "_id\030\001 \001(\t\"k\n\tDimension\022\014\n\004name\030\001 \001(\t\022P\n\024" - + "dimension_expression\030\002 \001(\01322.google.anal" - + "ytics.data.v1alpha.DimensionExpression\"\251" - + "\003\n\023DimensionExpression\022W\n\nlower_case\030\004 \001" - + "(\0132A.google.analytics.data.v1alpha.Dimen" - + "sionExpression.CaseExpressionH\000\022W\n\nupper" - + "_case\030\005 \001(\0132A.google.analytics.data.v1al" - + "pha.DimensionExpression.CaseExpressionH\000" - + "\022_\n\013concatenate\030\006 \001(\0132H.google.analytics" - + ".data.v1alpha.DimensionExpression.Concat" - + "enateExpressionH\000\032(\n\016CaseExpression\022\026\n\016d" - + "imension_name\030\001 \001(\t\032C\n\025ConcatenateExpres" - + "sion\022\027\n\017dimension_names\030\001 \003(\t\022\021\n\tdelimit" - + "er\030\002 \001(\tB\020\n\016one_expression\"=\n\006Metric\022\014\n\004" - + "name\030\001 \001(\t\022\022\n\nexpression\030\002 \001(\t\022\021\n\tinvisi" - + "ble\030\003 \001(\010\"\261\002\n\020FilterExpression\022H\n\tand_gr" - + "oup\030\001 \001(\01323.google.analytics.data.v1alph" - + "a.FilterExpressionListH\000\022G\n\010or_group\030\002 \001" - + "(\01323.google.analytics.data.v1alpha.Filte" - + "rExpressionListH\000\022I\n\016not_expression\030\003 \001(" - + "\0132/.google.analytics.data.v1alpha.Filter" - + "ExpressionH\000\0227\n\006filter\030\004 \001(\0132%.google.an" - + "alytics.data.v1alpha.FilterH\000B\006\n\004expr\"\\\n" - + "\024FilterExpressionList\022D\n\013expressions\030\001 \003" - + "(\0132/.google.analytics.data.v1alpha.Filte" - + "rExpression\"\376\010\n\006Filter\022\022\n\nfield_name\030\001 \001" - + "(\t\022\025\n\013null_filter\030\002 \001(\010H\000\022K\n\rstring_filt" - + "er\030\003 \001(\01322.google.analytics.data.v1alpha" - + ".Filter.StringFilterH\000\022L\n\016in_list_filter" - + "\030\004 \001(\01322.google.analytics.data.v1alpha.F" - + "ilter.InListFilterH\000\022M\n\016numeric_filter\030\005" - + " \001(\01323.google.analytics.data.v1alpha.Fil" - + "ter.NumericFilterH\000\022M\n\016between_filter\030\006 " - + "\001(\01323.google.analytics.data.v1alpha.Filt" - + "er.BetweenFilterH\000\032\217\002\n\014StringFilter\022P\n\nm" - + "atch_type\030\001 \001(\0162<.google.analytics.data." - + "v1alpha.Filter.StringFilter.MatchType\022\r\n" - + "\005value\030\002 \001(\t\022\026\n\016case_sensitive\030\003 \001(\010\"\205\001\n" - + "\tMatchType\022\032\n\026MATCH_TYPE_UNSPECIFIED\020\000\022\t" - + "\n\005EXACT\020\001\022\017\n\013BEGINS_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\016PART" - + "IAL_REGEXP\020\006\0326\n\014InListFilter\022\016\n\006values\030\001" - + " \003(\t\022\026\n\016case_sensitive\030\002 \001(\010\032\245\002\n\rNumeric" - + "Filter\022P\n\toperation\030\001 \001(\0162=.google.analy" - + "tics.data.v1alpha.Filter.NumericFilter.O" - + "peration\022:\n\005value\030\002 \001(\0132+.google.analyti" - + "cs.data.v1alpha.NumericValue\"\205\001\n\tOperati" - + "on\022\031\n\025OPERATION_UNSPECIFIED\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_EQU" - + "AL\020\005\032\217\001\n\rBetweenFilter\022?\n\nfrom_value\030\001 \001" - + "(\0132+.google.analytics.data.v1alpha.Numer" - + "icValue\022=\n\010to_value\030\002 \001(\0132+.google.analy" - + "tics.data.v1alpha.NumericValueB\014\n\none_fi" - + "lter\"\337\005\n\007OrderBy\022F\n\006metric\030\001 \001(\01324.googl" - + "e.analytics.data.v1alpha.OrderBy.MetricO" - + "rderByH\000\022L\n\tdimension\030\002 \001(\01327.google.ana" - + "lytics.data.v1alpha.OrderBy.DimensionOrd" - + "erByH\000\022D\n\005pivot\030\003 \001(\01323.google.analytics" - + ".data.v1alpha.OrderBy.PivotOrderByH\000\022\014\n\004" - + "desc\030\004 \001(\010\032$\n\rMetricOrderBy\022\023\n\013metric_na" - + "me\030\001 \001(\t\032\354\001\n\020DimensionOrderBy\022\026\n\016dimensi" - + "on_name\030\001 \001(\t\022U\n\norder_type\030\002 \001(\0162A.goog" - + "le.analytics.data.v1alpha.OrderBy.Dimens" - + "ionOrderBy.OrderType\"i\n\tOrderType\022\032\n\026ORD" - + "ER_TYPE_UNSPECIFIED\020\000\022\020\n\014ALPHANUMERIC\020\001\022" - + "!\n\035CASE_INSENSITIVE_ALPHANUMERIC\020\002\022\013\n\007NU" - + "MERIC\020\003\032\304\001\n\014PivotOrderBy\022\023\n\013metric_name\030" - + "\001 \001(\t\022\\\n\020pivot_selections\030\002 \003(\0132B.google" - + ".analytics.data.v1alpha.OrderBy.PivotOrd" - + "erBy.PivotSelection\032A\n\016PivotSelection\022\026\n" - + "\016dimension_name\030\001 \001(\t\022\027\n\017dimension_value" - + "\030\002 \001(\tB\016\n\014one_order_by\"\305\001\n\005Pivot\022\023\n\013fiel" - + "d_names\030\001 \003(\t\0229\n\torder_bys\030\002 \003(\0132&.googl" - + "e.analytics.data.v1alpha.OrderBy\022\016\n\006offs" - + "et\030\003 \001(\003\022\r\n\005limit\030\004 \001(\003\022M\n\023metric_aggreg" - + "ations\030\005 \003(\01620.google.analytics.data.v1a" - + "lpha.MetricAggregation\"\335\001\n\nCohortSpec\0226\n" - + "\007cohorts\030\001 \003(\0132%.google.analytics.data.v" - + "1alpha.Cohort\022B\n\rcohorts_range\030\002 \001(\0132+.g" - + "oogle.analytics.data.v1alpha.CohortsRang" - + "e\022S\n\026cohort_report_settings\030\003 \001(\01323.goog" - + "le.analytics.data.v1alpha.CohortReportSe" - + "ttings\"g\n\006Cohort\022\014\n\004name\030\001 \001(\t\022\021\n\tdimens" - + "ion\030\002 \001(\t\022<\n\ndate_range\030\003 \001(\0132(.google.a" - + "nalytics.data.v1alpha.DateRange\"\326\001\n\014Coho" - + "rtsRange\022L\n\013granularity\030\001 \001(\01627.google.a" - + "nalytics.data.v1alpha.CohortsRange.Granu" - + "larity\022\024\n\014start_offset\030\002 \001(\005\022\022\n\nend_offs" - + "et\030\003 \001(\005\"N\n\013Granularity\022\033\n\027GRANULARITY_U" - + "NSPECIFIED\020\000\022\t\n\005DAILY\020\001\022\n\n\006WEEKLY\020\002\022\013\n\007M" - + "ONTHLY\020\003\"*\n\024CohortReportSettings\022\022\n\naccu" - + "mulate\030\001 \001(\010\"4\n\020ResponseMetaData\022 \n\030data" - + "_loss_from_other_row\030\003 \001(\010\"\037\n\017DimensionH" - + "eader\022\014\n\004name\030\001 \001(\t\"U\n\014MetricHeader\022\014\n\004n" - + "ame\030\001 \001(\t\0227\n\004type\030\002 \001(\0162).google.analyti" - + "cs.data.v1alpha.MetricType\"v\n\013PivotHeade" - + "r\022T\n\027pivot_dimension_headers\030\001 \003(\01323.goo" - + "gle.analytics.data.v1alpha.PivotDimensio" - + "nHeader\022\021\n\trow_count\030\002 \001(\005\"_\n\024PivotDimen" - + "sionHeader\022G\n\020dimension_values\030\001 \003(\0132-.g" - + "oogle.analytics.data.v1alpha.DimensionVa" - + "lue\"\221\001\n\003Row\022G\n\020dimension_values\030\001 \003(\0132-." - + "google.analytics.data.v1alpha.DimensionV" - + "alue\022A\n\rmetric_values\030\002 \003(\0132*.google.ana" - + "lytics.data.v1alpha.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" - + "\"\271\002\n\rPropertyQuota\022B\n\016tokens_per_day\030\001 \001" - + "(\0132*.google.analytics.data.v1alpha.Quota" - + "Status\022C\n\017tokens_per_hour\030\002 \001(\0132*.google" - + ".analytics.data.v1alpha.QuotaStatus\022G\n\023c" - + "oncurrent_requests\030\003 \001(\0132*.google.analyt" - + "ics.data.v1alpha.QuotaStatus\022V\n\"server_e" - + "rrors_per_project_per_hour\030\004 \001(\0132*.googl" - + "e.analytics.data.v1alpha.QuotaStatus\"2\n\013" - + "QuotaStatus\022\020\n\010consumed\030\001 \001(\005\022\021\n\tremaini" - + "ng\030\002 \001(\005\"\204\001\n\021DimensionMetadata\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\022\031\n\021" - + "custom_definition\030\005 \001(\010\"\316\001\n\016MetricMetada" - + "ta\022\020\n\010api_name\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_nam" - + "es\030\004 \003(\t\0227\n\004type\030\005 \001(\0162).google.analytic" - + "s.data.v1alpha.MetricType\022\022\n\nexpression\030" - + "\006 \001(\t\022\031\n\021custom_definition\030\007 \001(\010*g\n\021Metr" - + "icAggregation\022\"\n\036METRIC_AGGREGATION_UNSP" - + "ECIFIED\020\000\022\t\n\005TOTAL\020\001\022\013\n\007MINIMUM\020\005\022\013\n\007MAX" - + "IMUM\020\006\022\t\n\005COUNT\020\004*\201\002\n\nMetricType\022\033\n\027METR" - + "IC_TYPE_UNSPECIFIED\020\000\022\020\n\014TYPE_INTEGER\020\001\022" - + "\016\n\nTYPE_FLOAT\020\002\022\020\n\014TYPE_SECONDS\020\004\022\025\n\021TYP" - + "E_MILLISECONDS\020\005\022\020\n\014TYPE_MINUTES\020\006\022\016\n\nTY" - + "PE_HOURS\020\007\022\021\n\rTYPE_STANDARD\020\010\022\021\n\rTYPE_CU" - + "RRENCY\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\017TYPE_KILOMETERS\020\rB{\n" - + "!com.google.analytics.data.v1alphaB\021Repo" - + "rtingApiProtoP\001ZAgoogle.golang.org/genpr" - + "oto/googleapis/analytics/data/v1alpha;da" - + "tab\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] {}); - internal_static_google_analytics_data_v1alpha_DateRange_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_data_v1alpha_DateRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_DateRange_descriptor, - new java.lang.String[] { - "StartDate", "EndDate", "Name", - }); - internal_static_google_analytics_data_v1alpha_Entity_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_data_v1alpha_Entity_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Entity_descriptor, - new java.lang.String[] { - "PropertyId", - }); - internal_static_google_analytics_data_v1alpha_Dimension_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_data_v1alpha_Dimension_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Dimension_descriptor, - new java.lang.String[] { - "Name", "DimensionExpression", - }); - internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_data_v1alpha_DimensionExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor, - new java.lang.String[] { - "LowerCase", "UpperCase", "Concatenate", "OneExpression", - }); - internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor = - internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor - .getNestedTypes() - .get(0); - internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor, - new java.lang.String[] { - "DimensionName", - }); - internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor = - internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor - .getNestedTypes() - .get(1); - internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor, - new java.lang.String[] { - "DimensionNames", "Delimiter", - }); - internal_static_google_analytics_data_v1alpha_Metric_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_data_v1alpha_Metric_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Metric_descriptor, - new java.lang.String[] { - "Name", "Expression", "Invisible", - }); - internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_analytics_data_v1alpha_FilterExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor, - new java.lang.String[] { - "AndGroup", "OrGroup", "NotExpression", "Filter", "Expr", - }); - internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_analytics_data_v1alpha_FilterExpressionList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor, - new java.lang.String[] { - "Expressions", - }); - internal_static_google_analytics_data_v1alpha_Filter_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_analytics_data_v1alpha_Filter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Filter_descriptor, - new java.lang.String[] { - "FieldName", - "NullFilter", - "StringFilter", - "InListFilter", - "NumericFilter", - "BetweenFilter", - "OneFilter", - }); - internal_static_google_analytics_data_v1alpha_Filter_StringFilter_descriptor = - internal_static_google_analytics_data_v1alpha_Filter_descriptor.getNestedTypes().get(0); - internal_static_google_analytics_data_v1alpha_Filter_StringFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Filter_StringFilter_descriptor, - new java.lang.String[] { - "MatchType", "Value", "CaseSensitive", - }); - internal_static_google_analytics_data_v1alpha_Filter_InListFilter_descriptor = - internal_static_google_analytics_data_v1alpha_Filter_descriptor.getNestedTypes().get(1); - internal_static_google_analytics_data_v1alpha_Filter_InListFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Filter_InListFilter_descriptor, - new java.lang.String[] { - "Values", "CaseSensitive", - }); - internal_static_google_analytics_data_v1alpha_Filter_NumericFilter_descriptor = - internal_static_google_analytics_data_v1alpha_Filter_descriptor.getNestedTypes().get(2); - internal_static_google_analytics_data_v1alpha_Filter_NumericFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Filter_NumericFilter_descriptor, - new java.lang.String[] { - "Operation", "Value", - }); - internal_static_google_analytics_data_v1alpha_Filter_BetweenFilter_descriptor = - internal_static_google_analytics_data_v1alpha_Filter_descriptor.getNestedTypes().get(3); - internal_static_google_analytics_data_v1alpha_Filter_BetweenFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Filter_BetweenFilter_descriptor, - new java.lang.String[] { - "FromValue", "ToValue", - }); - internal_static_google_analytics_data_v1alpha_OrderBy_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_analytics_data_v1alpha_OrderBy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_OrderBy_descriptor, - new java.lang.String[] { - "Metric", "Dimension", "Pivot", "Desc", "OneOrderBy", - }); - internal_static_google_analytics_data_v1alpha_OrderBy_MetricOrderBy_descriptor = - internal_static_google_analytics_data_v1alpha_OrderBy_descriptor.getNestedTypes().get(0); - internal_static_google_analytics_data_v1alpha_OrderBy_MetricOrderBy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_OrderBy_MetricOrderBy_descriptor, - new java.lang.String[] { - "MetricName", - }); - internal_static_google_analytics_data_v1alpha_OrderBy_DimensionOrderBy_descriptor = - internal_static_google_analytics_data_v1alpha_OrderBy_descriptor.getNestedTypes().get(1); - internal_static_google_analytics_data_v1alpha_OrderBy_DimensionOrderBy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_OrderBy_DimensionOrderBy_descriptor, - new java.lang.String[] { - "DimensionName", "OrderType", - }); - internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_descriptor = - internal_static_google_analytics_data_v1alpha_OrderBy_descriptor.getNestedTypes().get(2); - internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_descriptor, - new java.lang.String[] { - "MetricName", "PivotSelections", - }); - internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_PivotSelection_descriptor = - internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_descriptor - .getNestedTypes() - .get(0); - internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_PivotSelection_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_OrderBy_PivotOrderBy_PivotSelection_descriptor, - new java.lang.String[] { - "DimensionName", "DimensionValue", - }); - internal_static_google_analytics_data_v1alpha_Pivot_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_analytics_data_v1alpha_Pivot_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Pivot_descriptor, - new java.lang.String[] { - "FieldNames", "OrderBys", "Offset", "Limit", "MetricAggregations", - }); - internal_static_google_analytics_data_v1alpha_CohortSpec_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_analytics_data_v1alpha_CohortSpec_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_CohortSpec_descriptor, - new java.lang.String[] { - "Cohorts", "CohortsRange", "CohortReportSettings", - }); - internal_static_google_analytics_data_v1alpha_Cohort_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_analytics_data_v1alpha_Cohort_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Cohort_descriptor, - new java.lang.String[] { - "Name", "Dimension", "DateRange", - }); - internal_static_google_analytics_data_v1alpha_CohortsRange_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_analytics_data_v1alpha_CohortsRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_CohortsRange_descriptor, - new java.lang.String[] { - "Granularity", "StartOffset", "EndOffset", - }); - internal_static_google_analytics_data_v1alpha_CohortReportSettings_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_analytics_data_v1alpha_CohortReportSettings_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_CohortReportSettings_descriptor, - new java.lang.String[] { - "Accumulate", - }); - internal_static_google_analytics_data_v1alpha_ResponseMetaData_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_analytics_data_v1alpha_ResponseMetaData_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_ResponseMetaData_descriptor, - new java.lang.String[] { - "DataLossFromOtherRow", - }); - internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_analytics_data_v1alpha_MetricHeader_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor, - new java.lang.String[] { - "Name", "Type", - }); - internal_static_google_analytics_data_v1alpha_PivotHeader_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_analytics_data_v1alpha_PivotHeader_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_PivotHeader_descriptor, - new java.lang.String[] { - "PivotDimensionHeaders", "RowCount", - }); - internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_PivotDimensionHeader_descriptor, - new java.lang.String[] { - "DimensionValues", - }); - internal_static_google_analytics_data_v1alpha_Row_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_analytics_data_v1alpha_Row_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Row_descriptor, - new java.lang.String[] { - "DimensionValues", "MetricValues", - }); - internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_analytics_data_v1alpha_DimensionValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor, - new java.lang.String[] { - "Value", "OneValue", - }); - internal_static_google_analytics_data_v1alpha_MetricValue_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_analytics_data_v1alpha_MetricValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_MetricValue_descriptor, - new java.lang.String[] { - "Value", "OneValue", - }); - internal_static_google_analytics_data_v1alpha_NumericValue_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_analytics_data_v1alpha_NumericValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_NumericValue_descriptor, - new java.lang.String[] { - "Int64Value", "DoubleValue", "OneValue", - }); - internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_analytics_data_v1alpha_PropertyQuota_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor, - new java.lang.String[] { - "TokensPerDay", - "TokensPerHour", - "ConcurrentRequests", - "ServerErrorsPerProjectPerHour", - }); - internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_analytics_data_v1alpha_QuotaStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor, - new java.lang.String[] { - "Consumed", "Remaining", - }); - internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_analytics_data_v1alpha_DimensionMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_DimensionMetadata_descriptor, - new java.lang.String[] { - "ApiName", "UiName", "Description", "DeprecatedApiNames", "CustomDefinition", - }); - internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_analytics_data_v1alpha_MetricMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_MetricMetadata_descriptor, - new java.lang.String[] { - "ApiName", - "UiName", - "Description", - "DeprecatedApiNames", - "Type", - "Expression", - "CustomDefinition", - }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaData.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaData.java deleted file mode 100644 index 838476bb..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaData.java +++ /dev/null @@ -1,550 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Response's metadata carrying additional information about the report content.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.ResponseMetaData} - */ -public final class ResponseMetaData extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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() {} - - @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(); - } - com.google.protobuf.UnknownFieldSet.Builder 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; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_ResponseMetaData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_ResponseMetaData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.ResponseMetaData.class, - com.google.analytics.data.v1alpha.ResponseMetaData.Builder.class); - } - - 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_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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_); - } - 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_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = 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.v1alpha.ResponseMetaData)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.ResponseMetaData other = - (com.google.analytics.data.v1alpha.ResponseMetaData) obj; - - if (getDataLossFromOtherRow() != other.getDataLossFromOtherRow()) return false; - if (!unknownFields.equals(other.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()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.ResponseMetaData parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.ResponseMetaData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.ResponseMetaData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.ResponseMetaData parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.ResponseMetaData parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.ResponseMetaData} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.ResponseMetaData) - com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_ResponseMetaData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_ResponseMetaData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.ResponseMetaData.class, - com.google.analytics.data.v1alpha.ResponseMetaData.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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) {} - } - - @java.lang.Override - public Builder clear() { - super.clear(); - dataLossFromOtherRow_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_ResponseMetaData_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.ResponseMetaData getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.ResponseMetaData.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.ResponseMetaData build() { - com.google.analytics.data.v1alpha.ResponseMetaData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.ResponseMetaData buildPartial() { - com.google.analytics.data.v1alpha.ResponseMetaData result = - new com.google.analytics.data.v1alpha.ResponseMetaData(this); - result.dataLossFromOtherRow_ = dataLossFromOtherRow_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.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.v1alpha.ResponseMetaData) { - return mergeFrom((com.google.analytics.data.v1alpha.ResponseMetaData) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.ResponseMetaData other) { - if (other == com.google.analytics.data.v1alpha.ResponseMetaData.getDefaultInstance()) - return this; - if (other.getDataLossFromOtherRow() != false) { - setDataLossFromOtherRow(other.getDataLossFromOtherRow()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - 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.v1alpha.ResponseMetaData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.ResponseMetaData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - 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; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.ResponseMetaData) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.ResponseMetaData) - private static final com.google.analytics.data.v1alpha.ResponseMetaData DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.ResponseMetaData(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.ResponseMetaData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaDataOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaDataOrBuilder.java deleted file mode 100644 index 46321c13..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ResponseMetaDataOrBuilder.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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface ResponseMetaDataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java deleted file mode 100644 index 9c00ec64..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java +++ /dev/null @@ -1,1541 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * 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.v1alpha.Row} - */ -public final class Row extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Row_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Row_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Row.class, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - @java.lang.Override - public java.util.List getMetricValuesList() { - return metricValues_; - } - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - @java.lang.Override - public java.util.List - getMetricValuesOrBuilderList() { - return metricValues_; - } - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - @java.lang.Override - public int getMetricValuesCount() { - return metricValues_.size(); - } - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricValue getMetricValues(int index) { - return metricValues_.get(index); - } - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.Row)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Row other = (com.google.analytics.data.v1alpha.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.v1alpha.Row parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Row parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Row parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Row parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Row parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Row} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Row) - com.google.analytics.data.v1alpha.RowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Row_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Row_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Row.class, - com.google.analytics.data.v1alpha.Row.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Row_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Row getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Row.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Row build() { - com.google.analytics.data.v1alpha.Row result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Row buildPartial() { - com.google.analytics.data.v1alpha.Row result = - new com.google.analytics.data.v1alpha.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.v1alpha.Row) { - return mergeFrom((com.google.analytics.data.v1alpha.Row) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Row other) { - if (other == com.google.analytics.data.v1alpha.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.v1alpha.Row parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue, - com.google.analytics.data.v1alpha.DimensionValue.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder setDimensionValues( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder setDimensionValues( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues(com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1alpha.DimensionValue.Builder addDimensionValuesBuilder() { - return getDimensionValuesFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1alpha.DimensionValue.Builder addDimensionValuesBuilder( - int index) { - return getDimensionValuesFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public java.util.List - getDimensionValuesBuilderList() { - return getDimensionValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionValue, - com.google.analytics.data.v1alpha.DimensionValue.Builder, - com.google.analytics.data.v1alpha.DimensionValueOrBuilder> - getDimensionValuesFieldBuilder() { - if (dimensionValuesBuilder_ == null) { - dimensionValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionValue, - com.google.analytics.data.v1alpha.DimensionValue.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.MetricValue, - com.google.analytics.data.v1alpha.MetricValue.Builder, - com.google.analytics.data.v1alpha.MetricValueOrBuilder> - metricValuesBuilder_; - - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public Builder setMetricValues(int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public Builder setMetricValues( - int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public Builder addMetricValues(com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public Builder addMetricValues(int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public Builder addMetricValues( - com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public Builder addMetricValues( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public com.google.analytics.data.v1alpha.MetricValue.Builder getMetricValuesBuilder(int index) { - return getMetricValuesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public com.google.analytics.data.v1alpha.MetricValue.Builder addMetricValuesBuilder() { - return getMetricValuesFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.MetricValue.getDefaultInstance()); - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - public com.google.analytics.data.v1alpha.MetricValue.Builder addMetricValuesBuilder(int index) { - return getMetricValuesFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.MetricValue.getDefaultInstance()); - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - public java.util.List - getMetricValuesBuilderList() { - return getMetricValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.MetricValue, - com.google.analytics.data.v1alpha.MetricValue.Builder, - com.google.analytics.data.v1alpha.MetricValueOrBuilder> - getMetricValuesFieldBuilder() { - if (metricValuesBuilder_ == null) { - metricValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.MetricValue, - com.google.analytics.data.v1alpha.MetricValue.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Row) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Row) - private static final com.google.analytics.data.v1alpha.Row DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Row(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Row getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RowOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RowOrBuilder.java deleted file mode 100644 index 822a7fd3..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface RowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - com.google.analytics.data.v1alpha.DimensionValueOrBuilder getDimensionValuesOrBuilder(int index); - - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - java.util.List getMetricValuesList(); - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - com.google.analytics.data.v1alpha.MetricValue getMetricValues(int index); - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - int getMetricValuesCount(); - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - java.util.List - getMetricValuesOrBuilderList(); - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - com.google.analytics.data.v1alpha.MetricValueOrBuilder getMetricValuesOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequest.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequest.java deleted file mode 100644 index 9b9aab4d..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequest.java +++ /dev/null @@ -1,4198 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The request to generate a pivot report.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.RunPivotReportRequest} - */ -public final class RunPivotReportRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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() { - dimensions_ = java.util.Collections.emptyList(); - metrics_ = java.util.Collections.emptyList(); - pivots_ = java.util.Collections.emptyList(); - dateRanges_ = 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: - { - com.google.analytics.data.v1alpha.Entity.Builder subBuilder = null; - if (entity_ != null) { - subBuilder = entity_.toBuilder(); - } - entity_ = - input.readMessage( - com.google.analytics.data.v1alpha.Entity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entity_); - entity_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dimensions_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dimensions_.add( - input.readMessage( - com.google.analytics.data.v1alpha.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.v1alpha.Metric.parser(), extensionRegistry)); - break; - } - case 34: - { - com.google.analytics.data.v1alpha.FilterExpression.Builder subBuilder = null; - if (dimensionFilter_ != null) { - subBuilder = dimensionFilter_.toBuilder(); - } - dimensionFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dimensionFilter_); - dimensionFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.analytics.data.v1alpha.FilterExpression.Builder subBuilder = null; - if (metricFilter_ != null) { - subBuilder = metricFilter_.toBuilder(); - } - metricFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metricFilter_); - metricFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - pivots_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - pivots_.add( - input.readMessage( - com.google.analytics.data.v1alpha.Pivot.parser(), extensionRegistry)); - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - dateRanges_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - dateRanges_.add( - input.readMessage( - com.google.analytics.data.v1alpha.DateRange.parser(), extensionRegistry)); - break; - } - case 66: - { - java.lang.String s = input.readStringRequireUtf8(); - - currencyCode_ = s; - break; - } - case 74: - { - com.google.analytics.data.v1alpha.CohortSpec.Builder subBuilder = null; - if (cohortSpec_ != null) { - subBuilder = cohortSpec_.toBuilder(); - } - cohortSpec_ = - input.readMessage( - com.google.analytics.data.v1alpha.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)) { - pivots_ = java.util.Collections.unmodifiableList(pivots_); - } - if (((mutable_bitField0_ & 0x00000008) != 0)) { - dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunPivotReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunPivotReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.RunPivotReportRequest.class, - com.google.analytics.data.v1alpha.RunPivotReportRequest.Builder.class); - } - - public static final int ENTITY_FIELD_NUMBER = 1; - private com.google.analytics.data.v1alpha.Entity entity_; - /** - * - * - *
-   * A property whose events are tracked. Within a batch request, this entity
-   * should either be unspecified or consistent with the batch-level entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return Whether the entity field is set. - */ - @java.lang.Override - public boolean hasEntity() { - return entity_ != null; - } - /** - * - * - *
-   * A property whose events are tracked. Within a batch request, this entity
-   * should either be unspecified or consistent with the batch-level entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return The entity. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Entity getEntity() { - return entity_ == null - ? com.google.analytics.data.v1alpha.Entity.getDefaultInstance() - : entity_; - } - /** - * - * - *
-   * A property whose events are tracked. Within a batch request, this entity
-   * should either be unspecified or consistent with the batch-level entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EntityOrBuilder getEntityOrBuilder() { - return getEntity(); - } - - 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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Metric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricOrBuilder getMetricsOrBuilder(int index) { - return metrics_.get(index); - } - - public static final int DIMENSION_FILTER_FIELD_NUMBER = 4; - private com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpression dimension_filter = 4; - * - * @return The dimensionFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() { - return dimensionFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getDimensionFilterOrBuilder() { - return getDimensionFilter(); - } - - public static final int METRIC_FILTER_FIELD_NUMBER = 5; - private com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpression metric_filter = 5; - * - * @return The metricFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression getMetricFilter() { - return metricFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getMetricFilterOrBuilder() { - return getMetricFilter(); - } - - public static final int PIVOTS_FIELD_NUMBER = 6; - 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.v1alpha.Pivot pivots = 6; - */ - @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.v1alpha.Pivot pivots = 6; - */ - @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.v1alpha.Pivot pivots = 6; - */ - @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.v1alpha.Pivot pivots = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.Pivot pivots = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.PivotOrBuilder getPivotsOrBuilder(int index) { - return pivots_.get(index); - } - - public static final int DATE_RANGES_FIELD_NUMBER = 7; - 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.v1alpha.DateRange date_ranges = 7; - */ - @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.v1alpha.DateRange date_ranges = 7; - */ - @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.v1alpha.DateRange date_ranges = 7; - */ - @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.v1alpha.DateRange date_ranges = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangesOrBuilder(int index) { - return dateRanges_.get(index); - } - - 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 entity'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 entity'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.v1alpha.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.v1alpha.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.v1alpha.CohortSpec cohort_spec = 9; - * - * @return The cohortSpec. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortSpec getCohortSpec() { - return cohortSpec_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec cohort_spec = 9; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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 (entity_ != null) { - output.writeMessage(1, getEntity()); - } - 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()); - } - for (int i = 0; i < pivots_.size(); i++) { - output.writeMessage(6, pivots_.get(i)); - } - for (int i = 0; i < dateRanges_.size(); i++) { - output.writeMessage(7, dateRanges_.get(i)); - } - if (!getCurrencyCodeBytes().isEmpty()) { - 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 (entity_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntity()); - } - 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()); - } - for (int i = 0; i < pivots_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, pivots_.get(i)); - } - for (int i = 0; i < dateRanges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, dateRanges_.get(i)); - } - if (!getCurrencyCodeBytes().isEmpty()) { - 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.v1alpha.RunPivotReportRequest)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.RunPivotReportRequest other = - (com.google.analytics.data.v1alpha.RunPivotReportRequest) obj; - - if (hasEntity() != other.hasEntity()) return false; - if (hasEntity()) { - if (!getEntity().equals(other.getEntity())) 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 (!getPivotsList().equals(other.getPivotsList())) return false; - if (!getDateRangesList().equals(other.getDateRangesList())) 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(); - if (hasEntity()) { - hash = (37 * hash) + ENTITY_FIELD_NUMBER; - hash = (53 * hash) + getEntity().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(); - } - if (getPivotsCount() > 0) { - hash = (37 * hash) + PIVOTS_FIELD_NUMBER; - hash = (53 * hash) + getPivotsList().hashCode(); - } - if (getDateRangesCount() > 0) { - hash = (37 * hash) + DATE_RANGES_FIELD_NUMBER; - hash = (53 * hash) + getDateRangesList().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.v1alpha.RunPivotReportRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunPivotReportRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.RunPivotReportRequest) - com.google.analytics.data.v1alpha.RunPivotReportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunPivotReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunPivotReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.RunPivotReportRequest.class, - com.google.analytics.data.v1alpha.RunPivotReportRequest.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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(); - getPivotsFieldBuilder(); - getDateRangesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (entityBuilder_ == null) { - entity_ = null; - } else { - entity_ = null; - entityBuilder_ = null; - } - 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; - } - if (pivotsBuilder_ == null) { - pivots_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - } else { - pivotsBuilder_.clear(); - } - if (dateRangesBuilder_ == null) { - dateRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - dateRangesBuilder_.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.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunPivotReportRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunPivotReportRequest getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.RunPivotReportRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunPivotReportRequest build() { - com.google.analytics.data.v1alpha.RunPivotReportRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunPivotReportRequest buildPartial() { - com.google.analytics.data.v1alpha.RunPivotReportRequest result = - new com.google.analytics.data.v1alpha.RunPivotReportRequest(this); - int from_bitField0_ = bitField0_; - if (entityBuilder_ == null) { - result.entity_ = entity_; - } else { - result.entity_ = entityBuilder_.build(); - } - 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(); - } - if (pivotsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - pivots_ = java.util.Collections.unmodifiableList(pivots_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.pivots_ = pivots_; - } else { - result.pivots_ = pivotsBuilder_.build(); - } - if (dateRangesBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.dateRanges_ = dateRanges_; - } else { - result.dateRanges_ = dateRangesBuilder_.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.v1alpha.RunPivotReportRequest) { - return mergeFrom((com.google.analytics.data.v1alpha.RunPivotReportRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.RunPivotReportRequest other) { - if (other == com.google.analytics.data.v1alpha.RunPivotReportRequest.getDefaultInstance()) - return this; - if (other.hasEntity()) { - mergeEntity(other.getEntity()); - } - 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 (pivotsBuilder_ == null) { - if (!other.pivots_.isEmpty()) { - if (pivots_.isEmpty()) { - pivots_ = other.pivots_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensurePivotsIsMutable(); - pivots_.addAll(other.pivots_); - } - onChanged(); - } - } else { - if (!other.pivots_.isEmpty()) { - if (pivotsBuilder_.isEmpty()) { - pivotsBuilder_.dispose(); - pivotsBuilder_ = null; - pivots_ = other.pivots_; - bitField0_ = (bitField0_ & ~0x00000004); - pivotsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getPivotsFieldBuilder() - : null; - } else { - pivotsBuilder_.addAllMessages(other.pivots_); - } - } - } - if (dateRangesBuilder_ == null) { - if (!other.dateRanges_.isEmpty()) { - if (dateRanges_.isEmpty()) { - dateRanges_ = other.dateRanges_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureDateRangesIsMutable(); - dateRanges_.addAll(other.dateRanges_); - } - onChanged(); - } - } else { - if (!other.dateRanges_.isEmpty()) { - if (dateRangesBuilder_.isEmpty()) { - dateRangesBuilder_.dispose(); - dateRangesBuilder_ = null; - dateRanges_ = other.dateRanges_; - bitField0_ = (bitField0_ & ~0x00000008); - dateRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDateRangesFieldBuilder() - : null; - } else { - dateRangesBuilder_.addAllMessages(other.dateRanges_); - } - } - } - 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.v1alpha.RunPivotReportRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.RunPivotReportRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.analytics.data.v1alpha.Entity entity_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Entity, - com.google.analytics.data.v1alpha.Entity.Builder, - com.google.analytics.data.v1alpha.EntityOrBuilder> - entityBuilder_; - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return Whether the entity field is set. - */ - public boolean hasEntity() { - return entityBuilder_ != null || entity_ != null; - } - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return The entity. - */ - public com.google.analytics.data.v1alpha.Entity getEntity() { - if (entityBuilder_ == null) { - return entity_ == null - ? com.google.analytics.data.v1alpha.Entity.getDefaultInstance() - : entity_; - } else { - return entityBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public Builder setEntity(com.google.analytics.data.v1alpha.Entity value) { - if (entityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entity_ = value; - onChanged(); - } else { - entityBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public Builder setEntity(com.google.analytics.data.v1alpha.Entity.Builder builderForValue) { - if (entityBuilder_ == null) { - entity_ = builderForValue.build(); - onChanged(); - } else { - entityBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public Builder mergeEntity(com.google.analytics.data.v1alpha.Entity value) { - if (entityBuilder_ == null) { - if (entity_ != null) { - entity_ = - com.google.analytics.data.v1alpha.Entity.newBuilder(entity_) - .mergeFrom(value) - .buildPartial(); - } else { - entity_ = value; - } - onChanged(); - } else { - entityBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public Builder clearEntity() { - if (entityBuilder_ == null) { - entity_ = null; - onChanged(); - } else { - entity_ = null; - entityBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public com.google.analytics.data.v1alpha.Entity.Builder getEntityBuilder() { - - onChanged(); - return getEntityFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public com.google.analytics.data.v1alpha.EntityOrBuilder getEntityOrBuilder() { - if (entityBuilder_ != null) { - return entityBuilder_.getMessageOrBuilder(); - } else { - return entity_ == null - ? com.google.analytics.data.v1alpha.Entity.getDefaultInstance() - : entity_; - } - } - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Entity, - com.google.analytics.data.v1alpha.Entity.Builder, - com.google.analytics.data.v1alpha.EntityOrBuilder> - getEntityFieldBuilder() { - if (entityBuilder_ == null) { - entityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Entity, - com.google.analytics.data.v1alpha.Entity.Builder, - com.google.analytics.data.v1alpha.EntityOrBuilder>( - getEntity(), getParentForChildren(), isClean()); - entity_ = null; - } - return entityBuilder_; - } - - 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.v1alpha.Dimension, - com.google.analytics.data.v1alpha.Dimension.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder setDimensions(int index, com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder setDimensions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder addDimensions(com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder addDimensions(int index, com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder addDimensions( - com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder addDimensions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1alpha.Dimension.Builder addDimensionsBuilder() { - return getDimensionsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1alpha.Dimension.Builder addDimensionsBuilder(int index) { - return getDimensionsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public java.util.List - getDimensionsBuilderList() { - return getDimensionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Dimension, - com.google.analytics.data.v1alpha.Dimension.Builder, - com.google.analytics.data.v1alpha.DimensionOrBuilder> - getDimensionsFieldBuilder() { - if (dimensionsBuilder_ == null) { - dimensionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Dimension, - com.google.analytics.data.v1alpha.Dimension.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Metric, - com.google.analytics.data.v1alpha.Metric.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder setMetrics(int index, com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder addMetrics(int index, com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public com.google.analytics.data.v1alpha.Metric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public com.google.analytics.data.v1alpha.Metric.Builder addMetricsBuilder(int index) { - return getMetricsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public java.util.List - getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Metric, - com.google.analytics.data.v1alpha.Metric.Builder, - com.google.analytics.data.v1alpha.MetricOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Metric, - com.google.analytics.data.v1alpha.Metric.Builder, - com.google.analytics.data.v1alpha.MetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - private com.google.analytics.data.v1alpha.FilterExpression dimensionFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpression dimension_filter = 4; - * - * @return The dimensionFilter. - */ - public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() { - if (dimensionFilterBuilder_ == null) { - return dimensionFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 4; - */ - public Builder setDimensionFilter(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 4; - */ - public Builder setDimensionFilter( - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 4; - */ - public Builder mergeDimensionFilter(com.google.analytics.data.v1alpha.FilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (dimensionFilter_ != null) { - dimensionFilter_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpression dimension_filter = 4; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 4; - */ - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder - getDimensionFilterOrBuilder() { - if (dimensionFilterBuilder_ != null) { - return dimensionFilterBuilder_.getMessageOrBuilder(); - } else { - return dimensionFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> - getDimensionFilterFieldBuilder() { - if (dimensionFilterBuilder_ == null) { - dimensionFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>( - getDimensionFilter(), getParentForChildren(), isClean()); - dimensionFilter_ = null; - } - return dimensionFilterBuilder_; - } - - private com.google.analytics.data.v1alpha.FilterExpression metricFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpression metric_filter = 5; - * - * @return The metricFilter. - */ - public com.google.analytics.data.v1alpha.FilterExpression getMetricFilter() { - if (metricFilterBuilder_ == null) { - return metricFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 5; - */ - public Builder setMetricFilter(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 5; - */ - public Builder setMetricFilter( - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 5; - */ - public Builder mergeMetricFilter(com.google.analytics.data.v1alpha.FilterExpression value) { - if (metricFilterBuilder_ == null) { - if (metricFilter_ != null) { - metricFilter_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpression metric_filter = 5; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 5; - */ - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getMetricFilterOrBuilder() { - if (metricFilterBuilder_ != null) { - return metricFilterBuilder_.getMessageOrBuilder(); - } else { - return metricFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> - getMetricFilterFieldBuilder() { - if (metricFilterBuilder_ == null) { - metricFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>( - getMetricFilter(), getParentForChildren(), isClean()); - metricFilter_ = null; - } - return metricFilterBuilder_; - } - - private java.util.List pivots_ = - java.util.Collections.emptyList(); - - private void ensurePivotsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - pivots_ = new java.util.ArrayList(pivots_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Pivot, - com.google.analytics.data.v1alpha.Pivot.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Pivot pivots = 6; - */ - 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.v1alpha.Pivot pivots = 6; - */ - 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.v1alpha.Pivot pivots = 6; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Pivot pivots = 6; - */ - public Builder setPivots(int index, com.google.analytics.data.v1alpha.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.v1alpha.Pivot pivots = 6; - */ - public Builder setPivots( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Pivot pivots = 6; - */ - public Builder addPivots(com.google.analytics.data.v1alpha.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.v1alpha.Pivot pivots = 6; - */ - public Builder addPivots(int index, com.google.analytics.data.v1alpha.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.v1alpha.Pivot pivots = 6; - */ - public Builder addPivots(com.google.analytics.data.v1alpha.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.v1alpha.Pivot pivots = 6; - */ - public Builder addPivots( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Pivot pivots = 6; - */ - 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.v1alpha.Pivot pivots = 6; - */ - public Builder clearPivots() { - if (pivotsBuilder_ == null) { - pivots_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - 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.v1alpha.Pivot pivots = 6; - */ - 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.v1alpha.Pivot pivots = 6; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Pivot pivots = 6; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Pivot pivots = 6; - */ - 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.v1alpha.Pivot pivots = 6; - */ - public com.google.analytics.data.v1alpha.Pivot.Builder addPivotsBuilder() { - return getPivotsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.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.v1alpha.Pivot pivots = 6; - */ - public com.google.analytics.data.v1alpha.Pivot.Builder addPivotsBuilder(int index) { - return getPivotsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.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.v1alpha.Pivot pivots = 6; - */ - public java.util.List getPivotsBuilderList() { - return getPivotsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Pivot, - com.google.analytics.data.v1alpha.Pivot.Builder, - com.google.analytics.data.v1alpha.PivotOrBuilder> - getPivotsFieldBuilder() { - if (pivotsBuilder_ == null) { - pivotsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Pivot, - com.google.analytics.data.v1alpha.Pivot.Builder, - com.google.analytics.data.v1alpha.PivotOrBuilder>( - pivots_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - pivots_ = null; - } - return pivotsBuilder_; - } - - private java.util.List dateRanges_ = - java.util.Collections.emptyList(); - - private void ensureDateRangesIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - dateRanges_ = - new java.util.ArrayList(dateRanges_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DateRange, - com.google.analytics.data.v1alpha.DateRange.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 7; - */ - 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.v1alpha.DateRange date_ranges = 7; - */ - 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.v1alpha.DateRange date_ranges = 7; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 7; - */ - public Builder setDateRanges(int index, com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 7; - */ - public Builder setDateRanges( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 7; - */ - public Builder addDateRanges(com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 7; - */ - public Builder addDateRanges(int index, com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 7; - */ - public Builder addDateRanges( - com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 7; - */ - public Builder addDateRanges( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 7; - */ - 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.v1alpha.DateRange date_ranges = 7; - */ - public Builder clearDateRanges() { - if (dateRangesBuilder_ == null) { - dateRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - 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.v1alpha.DateRange date_ranges = 7; - */ - 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.v1alpha.DateRange date_ranges = 7; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 7; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 7; - */ - 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.v1alpha.DateRange date_ranges = 7; - */ - public com.google.analytics.data.v1alpha.DateRange.Builder addDateRangesBuilder() { - return getDateRangesFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 7; - */ - public com.google.analytics.data.v1alpha.DateRange.Builder addDateRangesBuilder(int index) { - return getDateRangesFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 7; - */ - public java.util.List - getDateRangesBuilderList() { - return getDateRangesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DateRange, - com.google.analytics.data.v1alpha.DateRange.Builder, - com.google.analytics.data.v1alpha.DateRangeOrBuilder> - getDateRangesFieldBuilder() { - if (dateRangesBuilder_ == null) { - dateRangesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DateRange, - com.google.analytics.data.v1alpha.DateRange.Builder, - com.google.analytics.data.v1alpha.DateRangeOrBuilder>( - dateRanges_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - dateRanges_ = null; - } - return dateRangesBuilder_; - } - - 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 entity'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 entity'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 entity'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 entity'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 entity'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.v1alpha.CohortSpec cohortSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.CohortSpec, - com.google.analytics.data.v1alpha.CohortSpec.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.CohortSpec cohort_spec = 9; - * - * @return The cohortSpec. - */ - public com.google.analytics.data.v1alpha.CohortSpec getCohortSpec() { - if (cohortSpecBuilder_ == null) { - return cohortSpec_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec cohort_spec = 9; - */ - public Builder setCohortSpec(com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec cohort_spec = 9; - */ - public Builder setCohortSpec( - com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec cohort_spec = 9; - */ - public Builder mergeCohortSpec(com.google.analytics.data.v1alpha.CohortSpec value) { - if (cohortSpecBuilder_ == null) { - if (cohortSpec_ != null) { - cohortSpec_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.CohortSpec cohort_spec = 9; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec cohort_spec = 9; - */ - public com.google.analytics.data.v1alpha.CohortSpecOrBuilder getCohortSpecOrBuilder() { - if (cohortSpecBuilder_ != null) { - return cohortSpecBuilder_.getMessageOrBuilder(); - } else { - return cohortSpec_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec cohort_spec = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.CohortSpec, - com.google.analytics.data.v1alpha.CohortSpec.Builder, - com.google.analytics.data.v1alpha.CohortSpecOrBuilder> - getCohortSpecFieldBuilder() { - if (cohortSpecBuilder_ == null) { - cohortSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.CohortSpec, - com.google.analytics.data.v1alpha.CohortSpec.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.RunPivotReportRequest) - private static final com.google.analytics.data.v1alpha.RunPivotReportRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.RunPivotReportRequest(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequestOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequestOrBuilder.java deleted file mode 100644 index 070df0cd..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportRequestOrBuilder.java +++ /dev/null @@ -1,494 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -public interface RunPivotReportRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.RunPivotReportRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A property whose events are tracked. Within a batch request, this entity
-   * should either be unspecified or consistent with the batch-level entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return Whether the entity field is set. - */ - boolean hasEntity(); - /** - * - * - *
-   * A property whose events are tracked. Within a batch request, this entity
-   * should either be unspecified or consistent with the batch-level entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return The entity. - */ - com.google.analytics.data.v1alpha.Entity getEntity(); - /** - * - * - *
-   * A property whose events are tracked. Within a batch request, this entity
-   * should either be unspecified or consistent with the batch-level entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - com.google.analytics.data.v1alpha.EntityOrBuilder getEntityOrBuilder(); - - /** - * - * - *
-   * 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.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Metric metrics = 3; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Metric metrics = 3; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpression dimension_filter = 4; - * - * @return The dimensionFilter. - */ - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 4; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpression metric_filter = 5; - * - * @return The metricFilter. - */ - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 5; - */ - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getMetricFilterOrBuilder(); - - /** - * - * - *
-   * 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.v1alpha.Pivot pivots = 6; - */ - 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.v1alpha.Pivot pivots = 6; - */ - com.google.analytics.data.v1alpha.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.v1alpha.Pivot pivots = 6; - */ - 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.v1alpha.Pivot pivots = 6; - */ - 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.v1alpha.Pivot pivots = 6; - */ - com.google.analytics.data.v1alpha.PivotOrBuilder getPivotsOrBuilder(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.v1alpha.DateRange date_ranges = 7; - */ - 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.v1alpha.DateRange date_ranges = 7; - */ - com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 7; - */ - 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.v1alpha.DateRange date_ranges = 7; - */ - 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.v1alpha.DateRange date_ranges = 7; - */ - com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangesOrBuilder(int index); - - /** - * - * - *
-   * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-   * If the field is empty, the report uses the entity'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 entity'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.v1alpha.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.v1alpha.CohortSpec cohort_spec = 9; - * - * @return The cohortSpec. - */ - com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec cohort_spec = 9; - */ - com.google.analytics.data.v1alpha.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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportResponse.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportResponse.java deleted file mode 100644 index 49981cb4..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportResponse.java +++ /dev/null @@ -1,4339 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The response pivot report table corresponding to a pivot request.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.RunPivotReportResponse} - */ -public final class RunPivotReportResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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(); - } - - @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.v1alpha.PivotHeader.parser(), extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - metricHeaders_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - metricHeaders_.add( - input.readMessage( - com.google.analytics.data.v1alpha.MetricHeader.parser(), extensionRegistry)); - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - rows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - rows_.add( - input.readMessage( - com.google.analytics.data.v1alpha.Row.parser(), extensionRegistry)); - break; - } - case 34: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - aggregates_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - aggregates_.add( - input.readMessage( - com.google.analytics.data.v1alpha.Row.parser(), extensionRegistry)); - break; - } - case 42: - { - com.google.analytics.data.v1alpha.ResponseMetaData.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = - input.readMessage( - com.google.analytics.data.v1alpha.ResponseMetaData.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - com.google.analytics.data.v1alpha.PropertyQuota.Builder subBuilder = null; - if (propertyQuota_ != null) { - subBuilder = propertyQuota_.toBuilder(); - } - propertyQuota_ = - input.readMessage( - com.google.analytics.data.v1alpha.PropertyQuota.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(propertyQuota_); - propertyQuota_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - dimensionHeaders_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - dimensionHeaders_.add( - input.readMessage( - com.google.analytics.data.v1alpha.DimensionHeader.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)) { - pivotHeaders_ = java.util.Collections.unmodifiableList(pivotHeaders_); - } - 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_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunPivotReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunPivotReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.RunPivotReportResponse.class, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.PivotHeader pivot_headers = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader pivot_headers = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.PivotHeaderOrBuilder getPivotHeadersOrBuilder( - int index) { - return pivotHeaders_.get(index); - } - - public static final int DIMENSION_HEADERS_FIELD_NUMBER = 7; - 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.v1alpha.DimensionHeader dimension_headers = 7; - */ - @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.v1alpha.DimensionHeader dimension_headers = 7; - */ - @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.v1alpha.DimensionHeader dimension_headers = 7; - */ - @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.v1alpha.DimensionHeader dimension_headers = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Row rows = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Row getRows(int index) { - return rows_.get(index); - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.RowOrBuilder getRowsOrBuilder(int index) { - return rows_.get(index); - } - - public static final int AGGREGATES_FIELD_NUMBER = 4; - 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.v1alpha.Row aggregates = 4; - */ - @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.v1alpha.Row aggregates = 4; - */ - @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.v1alpha.Row aggregates = 4; - */ - @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.v1alpha.Row aggregates = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.Row aggregates = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.RowOrBuilder getAggregatesOrBuilder(int index) { - return aggregates_.get(index); - } - - public static final int METADATA_FIELD_NUMBER = 5; - private com.google.analytics.data.v1alpha.ResponseMetaData metadata_; - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 5; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 5; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.ResponseMetaData getMetadata() { - return metadata_ == null - ? com.google.analytics.data.v1alpha.ResponseMetaData.getDefaultInstance() - : metadata_; - } - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int PROPERTY_QUOTA_FIELD_NUMBER = 6; - private com.google.analytics.data.v1alpha.PropertyQuota propertyQuota_; - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 6; - * - * @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.v1alpha.PropertyQuota property_quota = 6; - * - * @return The propertyQuota. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota() { - return propertyQuota_ == null - ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { - return getPropertyQuota(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < 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 < aggregates_.size(); i++) { - output.writeMessage(4, aggregates_.get(i)); - } - if (metadata_ != null) { - output.writeMessage(5, getMetadata()); - } - if (propertyQuota_ != null) { - output.writeMessage(6, getPropertyQuota()); - } - for (int i = 0; i < dimensionHeaders_.size(); i++) { - output.writeMessage(7, dimensionHeaders_.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 < pivotHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pivotHeaders_.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 < aggregates_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, aggregates_.get(i)); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMetadata()); - } - if (propertyQuota_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getPropertyQuota()); - } - for (int i = 0; i < dimensionHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, dimensionHeaders_.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.v1alpha.RunPivotReportResponse)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.RunPivotReportResponse other = - (com.google.analytics.data.v1alpha.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 (!unknownFields.equals(other.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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.RunPivotReportResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunPivotReportResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.RunPivotReportResponse) - com.google.analytics.data.v1alpha.RunPivotReportResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunPivotReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunPivotReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.RunPivotReportResponse.class, - com.google.analytics.data.v1alpha.RunPivotReportResponse.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunPivotReportResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunPivotReportResponse getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.RunPivotReportResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunPivotReportResponse build() { - com.google.analytics.data.v1alpha.RunPivotReportResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunPivotReportResponse buildPartial() { - com.google.analytics.data.v1alpha.RunPivotReportResponse result = - new com.google.analytics.data.v1alpha.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(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.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.v1alpha.RunPivotReportResponse) { - return mergeFrom((com.google.analytics.data.v1alpha.RunPivotReportResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.RunPivotReportResponse other) { - if (other == com.google.analytics.data.v1alpha.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()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - 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.v1alpha.RunPivotReportResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader, - com.google.analytics.data.v1alpha.PivotHeader.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.PivotHeader pivot_headers = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader pivot_headers = 1; - */ - public Builder setPivotHeaders(int index, com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader pivot_headers = 1; - */ - public Builder setPivotHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader pivot_headers = 1; - */ - public Builder addPivotHeaders(com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader pivot_headers = 1; - */ - public Builder addPivotHeaders(int index, com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader pivot_headers = 1; - */ - public Builder addPivotHeaders( - com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader pivot_headers = 1; - */ - public Builder addPivotHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.PivotHeader pivot_headers = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader pivot_headers = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.PivotHeader pivot_headers = 1; - */ - public com.google.analytics.data.v1alpha.PivotHeader.Builder addPivotHeadersBuilder() { - return getPivotHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader pivot_headers = 1; - */ - public com.google.analytics.data.v1alpha.PivotHeader.Builder addPivotHeadersBuilder(int index) { - return getPivotHeadersFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.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.v1alpha.PivotHeader pivot_headers = 1; - */ - public java.util.List - getPivotHeadersBuilderList() { - return getPivotHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.PivotHeader, - com.google.analytics.data.v1alpha.PivotHeader.Builder, - com.google.analytics.data.v1alpha.PivotHeaderOrBuilder> - getPivotHeadersFieldBuilder() { - if (pivotHeadersBuilder_ == null) { - pivotHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.PivotHeader, - com.google.analytics.data.v1alpha.PivotHeader.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader, - com.google.analytics.data.v1alpha.DimensionHeader.Builder, - com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder> - dimensionHeadersBuilder_; - - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7; - */ - 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.v1alpha.DimensionHeader dimension_headers = 7; - */ - 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.v1alpha.DimensionHeader dimension_headers = 7; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 7; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 7; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 7; - */ - public Builder addDimensionHeaders(com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 7; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 7; - */ - public Builder addDimensionHeaders( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 7; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 7; - */ - 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.v1alpha.DimensionHeader dimension_headers = 7; - */ - 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.v1alpha.DimensionHeader dimension_headers = 7; - */ - 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.v1alpha.DimensionHeader dimension_headers = 7; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 7; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 7; - */ - 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.v1alpha.DimensionHeader dimension_headers = 7; - */ - public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder() { - return getDimensionHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7; - */ - public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder( - int index) { - return getDimensionHeadersFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7; - */ - public java.util.List - getDimensionHeadersBuilderList() { - return getDimensionHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionHeader, - com.google.analytics.data.v1alpha.DimensionHeader.Builder, - com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder> - getDimensionHeadersFieldBuilder() { - if (dimensionHeadersBuilder_ == null) { - dimensionHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionHeader, - com.google.analytics.data.v1alpha.DimensionHeader.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader, - com.google.analytics.data.v1alpha.MetricHeader.Builder, - com.google.analytics.data.v1alpha.MetricHeaderOrBuilder> - metricHeadersBuilder_; - - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders(com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - 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.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBuilder() { - return getMetricHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBuilder( - int index) { - return getMetricHeadersFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public java.util.List - getMetricHeadersBuilderList() { - return getMetricHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.MetricHeader, - com.google.analytics.data.v1alpha.MetricHeader.Builder, - com.google.analytics.data.v1alpha.MetricHeaderOrBuilder> - getMetricHeadersFieldBuilder() { - if (metricHeadersBuilder_ == null) { - metricHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.MetricHeader, - com.google.analytics.data.v1alpha.MetricHeader.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - rowsBuilder_; - - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Row rows = 3; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder setRows(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder setRows( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder addRows(com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder addRows(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder addRows(com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder addRows( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Row rows = 3; - */ - 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.v1alpha.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.v1alpha.Row rows = 3; - */ - public com.google.analytics.data.v1alpha.Row.Builder getRowsBuilder(int index) { - return getRowsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Row rows = 3; - */ - public com.google.analytics.data.v1alpha.Row.Builder addRowsBuilder() { - return getRowsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - public com.google.analytics.data.v1alpha.Row.Builder addRowsBuilder(int index) { - return getRowsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - public java.util.List getRowsBuilderList() { - return getRowsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - getRowsFieldBuilder() { - if (rowsBuilder_ == null) { - rowsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Row aggregates = 4; - */ - 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.v1alpha.Row aggregates = 4; - */ - 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.v1alpha.Row aggregates = 4; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row aggregates = 4; - */ - public Builder setAggregates(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row aggregates = 4; - */ - public Builder setAggregates( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Row aggregates = 4; - */ - public Builder addAggregates(com.google.analytics.data.v1alpha.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.v1alpha.Row aggregates = 4; - */ - public Builder addAggregates(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row aggregates = 4; - */ - public Builder addAggregates(com.google.analytics.data.v1alpha.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.v1alpha.Row aggregates = 4; - */ - public Builder addAggregates( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Row aggregates = 4; - */ - 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.v1alpha.Row aggregates = 4; - */ - 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.v1alpha.Row aggregates = 4; - */ - 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.v1alpha.Row aggregates = 4; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row aggregates = 4; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row aggregates = 4; - */ - 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.v1alpha.Row aggregates = 4; - */ - public com.google.analytics.data.v1alpha.Row.Builder addAggregatesBuilder() { - return getAggregatesFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.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.v1alpha.Row aggregates = 4; - */ - public com.google.analytics.data.v1alpha.Row.Builder addAggregatesBuilder(int index) { - return getAggregatesFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.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.v1alpha.Row aggregates = 4; - */ - public java.util.List - getAggregatesBuilderList() { - return getAggregatesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - getAggregatesFieldBuilder() { - if (aggregatesBuilder_ == null) { - aggregatesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder>( - aggregates_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - aggregates_ = null; - } - return aggregatesBuilder_; - } - - private com.google.analytics.data.v1alpha.ResponseMetaData metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.ResponseMetaData, - com.google.analytics.data.v1alpha.ResponseMetaData.Builder, - com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder> - metadataBuilder_; - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 5; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 5; - * - * @return The metadata. - */ - public com.google.analytics.data.v1alpha.ResponseMetaData getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.analytics.data.v1alpha.ResponseMetaData.getDefaultInstance() - : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 5; - */ - public Builder setMetadata(com.google.analytics.data.v1alpha.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.v1alpha.ResponseMetaData metadata = 5; - */ - public Builder setMetadata( - com.google.analytics.data.v1alpha.ResponseMetaData.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 5; - */ - public Builder mergeMetadata(com.google.analytics.data.v1alpha.ResponseMetaData value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.analytics.data.v1alpha.ResponseMetaData.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 5; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 5; - */ - public com.google.analytics.data.v1alpha.ResponseMetaData.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 5; - */ - public com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null - ? com.google.analytics.data.v1alpha.ResponseMetaData.getDefaultInstance() - : metadata_; - } - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.ResponseMetaData, - com.google.analytics.data.v1alpha.ResponseMetaData.Builder, - com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.ResponseMetaData, - com.google.analytics.data.v1alpha.ResponseMetaData.Builder, - com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private com.google.analytics.data.v1alpha.PropertyQuota propertyQuota_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.PropertyQuota, - com.google.analytics.data.v1alpha.PropertyQuota.Builder, - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> - propertyQuotaBuilder_; - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 6; - * - * @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.v1alpha.PropertyQuota property_quota = 6; - * - * @return The propertyQuota. - */ - public com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota() { - if (propertyQuotaBuilder_ == null) { - return propertyQuota_ == null - ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } else { - return propertyQuotaBuilder_.getMessage(); - } - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 6; - */ - public Builder setPropertyQuota(com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 6; - */ - public Builder setPropertyQuota( - com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 6; - */ - public Builder mergePropertyQuota(com.google.analytics.data.v1alpha.PropertyQuota value) { - if (propertyQuotaBuilder_ == null) { - if (propertyQuota_ != null) { - propertyQuota_ = - com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 6; - */ - 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.v1alpha.PropertyQuota property_quota = 6; - */ - public com.google.analytics.data.v1alpha.PropertyQuota.Builder getPropertyQuotaBuilder() { - - onChanged(); - return getPropertyQuotaFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 6; - */ - public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { - if (propertyQuotaBuilder_ != null) { - return propertyQuotaBuilder_.getMessageOrBuilder(); - } else { - return propertyQuota_ == null - ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.PropertyQuota, - com.google.analytics.data.v1alpha.PropertyQuota.Builder, - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> - getPropertyQuotaFieldBuilder() { - if (propertyQuotaBuilder_ == null) { - propertyQuotaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.PropertyQuota, - com.google.analytics.data.v1alpha.PropertyQuota.Builder, - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder>( - getPropertyQuota(), getParentForChildren(), isClean()); - propertyQuota_ = null; - } - return propertyQuotaBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.RunPivotReportResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.RunPivotReportResponse) - private static final com.google.analytics.data.v1alpha.RunPivotReportResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.RunPivotReportResponse(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunPivotReportResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportResponseOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportResponseOrBuilder.java deleted file mode 100644 index 1a014826..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunPivotReportResponseOrBuilder.java +++ /dev/null @@ -1,540 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -public interface RunPivotReportResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.PivotHeader pivot_headers = 1; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.PivotHeader pivot_headers = 1; - */ - com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 7; - */ - 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.v1alpha.DimensionHeader dimension_headers = 7; - */ - com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 7; - */ - int getDimensionHeadersCount(); - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 7; - */ - 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.v1alpha.DimensionHeader dimension_headers = 7; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersOrBuilder(int index); - - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - java.util.List getRowsList(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - com.google.analytics.data.v1alpha.Row getRows(int index); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - int getRowsCount(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - java.util.List getRowsOrBuilderList(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - com.google.analytics.data.v1alpha.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.v1alpha.Row aggregates = 4; - */ - 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.v1alpha.Row aggregates = 4; - */ - com.google.analytics.data.v1alpha.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.v1alpha.Row aggregates = 4; - */ - 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.v1alpha.Row aggregates = 4; - */ - 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.v1alpha.Row aggregates = 4; - */ - com.google.analytics.data.v1alpha.RowOrBuilder getAggregatesOrBuilder(int index); - - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 5; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 5; - * - * @return The metadata. - */ - com.google.analytics.data.v1alpha.ResponseMetaData getMetadata(); - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 5; - */ - com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder getMetadataOrBuilder(); - - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 6; - * - * @return Whether the propertyQuota field is set. - */ - boolean hasPropertyQuota(); - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 6; - * - * @return The propertyQuota. - */ - com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota(); - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 6; - */ - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportRequest.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportRequest.java deleted file mode 100644 index eebe8826..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportRequest.java +++ /dev/null @@ -1,3343 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The request to generate a realtime report.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.RunRealtimeReportRequest} - */ -public final class RunRealtimeReportRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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(); - } - - @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.v1alpha.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.v1alpha.Metric.parser(), extensionRegistry)); - break; - } - case 32: - { - limit_ = input.readInt64(); - break; - } - case 42: - { - com.google.analytics.data.v1alpha.FilterExpression.Builder subBuilder = null; - if (dimensionFilter_ != null) { - subBuilder = dimensionFilter_.toBuilder(); - } - dimensionFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dimensionFilter_); - dimensionFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 50: - { - com.google.analytics.data.v1alpha.FilterExpression.Builder subBuilder = null; - if (metricFilter_ != null) { - subBuilder = metricFilter_.toBuilder(); - } - metricFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metricFilter_); - metricFilter_ = subBuilder.buildPartial(); - } - - 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.v1alpha.OrderBy.parser(), extensionRegistry)); - break; - } - case 72: - { - 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)) { - metricAggregations_ = java.util.Collections.unmodifiableList(metricAggregations_); - } - if (((mutable_bitField0_ & 0x00000008) != 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.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunRealtimeReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunRealtimeReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.RunRealtimeReportRequest.class, - com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - @java.lang.Override - public java.util.List getDimensionsList() { - return dimensions_; - } - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - @java.lang.Override - public java.util.List - getDimensionsOrBuilderList() { - return dimensions_; - } - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - @java.lang.Override - public int getDimensionsCount() { - return dimensions_.size(); - } - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Dimension getDimensions(int index) { - return dimensions_.get(index); - } - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Metric getMetrics(int index) { - return metrics_.get(index); - } - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricOrBuilder getMetricsOrBuilder(int index) { - return metrics_.get(index); - } - - public static final int LIMIT_FIELD_NUMBER = 4; - private long limit_; - /** - * - * - *
-   * The number of rows to return. If unspecified, 10 rows are returned. If
-   * -1, all rows are returned.
-   * 
- * - * int64 limit = 4; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - - public static final int DIMENSION_FILTER_FIELD_NUMBER = 5; - private com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 5; - * - * @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.v1alpha.FilterExpression dimension_filter = 5; - * - * @return The dimensionFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() { - return dimensionFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getDimensionFilterOrBuilder() { - return getDimensionFilter(); - } - - public static final int METRIC_FILTER_FIELD_NUMBER = 6; - private com.google.analytics.data.v1alpha.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.v1alpha.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. Metrics must be requested to be used in this filter.
-   * Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6; - * - * @return The metricFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression getMetricFilter() { - return metricFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getMetricFilterOrBuilder() { - return getMetricFilter(); - } - - 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.v1alpha.MetricAggregation> - metricAggregations_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.data.v1alpha.MetricAggregation>() { - public com.google.analytics.data.v1alpha.MetricAggregation convert( - java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.MetricAggregation result = - com.google.analytics.data.v1alpha.MetricAggregation.valueOf(from); - return result == null - ? com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy order_bys = 8; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy getOrderBys(int index) { - return orderBys_.get(index); - } - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 8; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 (!getPropertyBytes().isEmpty()) { - 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 (limit_ != 0L) { - output.writeInt64(4, limit_); - } - if (dimensionFilter_ != null) { - output.writeMessage(5, getDimensionFilter()); - } - if (metricFilter_ != null) { - output.writeMessage(6, getMetricFilter()); - } - 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_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!getPropertyBytes().isEmpty()) { - 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 (limit_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(4, limit_); - } - if (dimensionFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getDimensionFilter()); - } - if (metricFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetricFilter()); - } - { - 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_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = 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.v1alpha.RunRealtimeReportRequest)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.RunRealtimeReportRequest other = - (com.google.analytics.data.v1alpha.RunRealtimeReportRequest) obj; - - if (!getProperty().equals(other.getProperty())) return false; - if (!getDimensionsList().equals(other.getDimensionsList())) return false; - if (!getMetricsList().equals(other.getMetricsList())) return false; - if (getLimit() != other.getLimit()) 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 (!metricAggregations_.equals(other.metricAggregations_)) return false; - if (!getOrderBysList().equals(other.getOrderBysList())) 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(); - } - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); - 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(); - } - 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()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.RunRealtimeReportRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunRealtimeReportRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunRealtimeReportRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunRealtimeReportRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunRealtimeReportRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunRealtimeReportRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.RunRealtimeReportRequest) - com.google.analytics.data.v1alpha.RunRealtimeReportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunRealtimeReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunRealtimeReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.RunRealtimeReportRequest.class, - com.google.analytics.data.v1alpha.RunRealtimeReportRequest.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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(); - } - } - - @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(); - } - limit_ = 0L; - - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = null; - } else { - dimensionFilter_ = null; - dimensionFilterBuilder_ = null; - } - if (metricFilterBuilder_ == null) { - metricFilter_ = null; - } else { - metricFilter_ = null; - metricFilterBuilder_ = null; - } - metricAggregations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - if (orderBysBuilder_ == null) { - orderBys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - } else { - orderBysBuilder_.clear(); - } - returnPropertyQuota_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunRealtimeReportRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunRealtimeReportRequest getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.RunRealtimeReportRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunRealtimeReportRequest build() { - com.google.analytics.data.v1alpha.RunRealtimeReportRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunRealtimeReportRequest buildPartial() { - com.google.analytics.data.v1alpha.RunRealtimeReportRequest result = - new com.google.analytics.data.v1alpha.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(); - } - result.limit_ = limit_; - if (dimensionFilterBuilder_ == null) { - result.dimensionFilter_ = dimensionFilter_; - } else { - result.dimensionFilter_ = dimensionFilterBuilder_.build(); - } - if (metricFilterBuilder_ == null) { - result.metricFilter_ = metricFilter_; - } else { - result.metricFilter_ = metricFilterBuilder_.build(); - } - 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_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.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.v1alpha.RunRealtimeReportRequest) { - return mergeFrom((com.google.analytics.data.v1alpha.RunRealtimeReportRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.RunRealtimeReportRequest other) { - if (other == com.google.analytics.data.v1alpha.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.getLimit() != 0L) { - setLimit(other.getLimit()); - } - if (other.hasDimensionFilter()) { - mergeDimensionFilter(other.getDimensionFilter()); - } - if (other.hasMetricFilter()) { - mergeMetricFilter(other.getMetricFilter()); - } - 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()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - 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.v1alpha.RunRealtimeReportRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.Dimension, - com.google.analytics.data.v1alpha.Dimension.Builder, - com.google.analytics.data.v1alpha.DimensionOrBuilder> - dimensionsBuilder_; - - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder setDimensions(int index, com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder setDimensions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder addDimensions(com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder addDimensions(int index, com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder addDimensions( - com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder addDimensions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1alpha.Dimension.Builder getDimensionsBuilder(int index) { - return getDimensionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1alpha.Dimension.Builder addDimensionsBuilder() { - return getDimensionsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.Dimension.getDefaultInstance()); - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1alpha.Dimension.Builder addDimensionsBuilder(int index) { - return getDimensionsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.Dimension.getDefaultInstance()); - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - public java.util.List - getDimensionsBuilderList() { - return getDimensionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Dimension, - com.google.analytics.data.v1alpha.Dimension.Builder, - com.google.analytics.data.v1alpha.DimensionOrBuilder> - getDimensionsFieldBuilder() { - if (dimensionsBuilder_ == null) { - dimensionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Dimension, - com.google.analytics.data.v1alpha.Dimension.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Metric, - com.google.analytics.data.v1alpha.Metric.Builder, - com.google.analytics.data.v1alpha.MetricOrBuilder> - metricsBuilder_; - - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder setMetrics(int index, com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder addMetrics(int index, com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public com.google.analytics.data.v1alpha.Metric.Builder getMetricsBuilder(int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public com.google.analytics.data.v1alpha.Metric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - public com.google.analytics.data.v1alpha.Metric.Builder addMetricsBuilder(int index) { - return getMetricsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - public java.util.List - getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Metric, - com.google.analytics.data.v1alpha.Metric.Builder, - com.google.analytics.data.v1alpha.MetricOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Metric, - com.google.analytics.data.v1alpha.Metric.Builder, - com.google.analytics.data.v1alpha.MetricOrBuilder>( - metrics_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - metrics_ = null; - } - return metricsBuilder_; - } - - private long limit_; - /** - * - * - *
-     * The number of rows to return. If unspecified, 10 rows are returned. If
-     * -1, all rows are returned.
-     * 
- * - * int64 limit = 4; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - /** - * - * - *
-     * The number of rows to return. If unspecified, 10 rows are returned. If
-     * -1, all rows are returned.
-     * 
- * - * 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 rows to return. If unspecified, 10 rows are returned. If
-     * -1, all rows are returned.
-     * 
- * - * int64 limit = 4; - * - * @return This builder for chaining. - */ - public Builder clearLimit() { - - limit_ = 0L; - onChanged(); - return this; - } - - private com.google.analytics.data.v1alpha.FilterExpression dimensionFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 5; - * - * @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.v1alpha.FilterExpression dimension_filter = 5; - * - * @return The dimensionFilter. - */ - public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() { - if (dimensionFilterBuilder_ == null) { - return dimensionFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 5; - */ - public Builder setDimensionFilter(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 5; - */ - public Builder setDimensionFilter( - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 5; - */ - public Builder mergeDimensionFilter(com.google.analytics.data.v1alpha.FilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (dimensionFilter_ != null) { - dimensionFilter_ = - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 5; - */ - 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.v1alpha.FilterExpression dimension_filter = 5; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 5; - */ - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder - getDimensionFilterOrBuilder() { - if (dimensionFilterBuilder_ != null) { - return dimensionFilterBuilder_.getMessageOrBuilder(); - } else { - return dimensionFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> - getDimensionFilterFieldBuilder() { - if (dimensionFilterBuilder_ == null) { - dimensionFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>( - getDimensionFilter(), getParentForChildren(), isClean()); - dimensionFilter_ = null; - } - return dimensionFilterBuilder_; - } - - private com.google.analytics.data.v1alpha.FilterExpression metricFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6; - * - * @return The metricFilter. - */ - public com.google.analytics.data.v1alpha.FilterExpression getMetricFilter() { - if (metricFilterBuilder_ == null) { - return metricFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 6; - */ - public Builder setMetricFilter(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 6; - */ - public Builder setMetricFilter( - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 6; - */ - public Builder mergeMetricFilter(com.google.analytics.data.v1alpha.FilterExpression value) { - if (metricFilterBuilder_ == null) { - if (metricFilter_ != null) { - metricFilter_ = - com.google.analytics.data.v1alpha.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.v1alpha.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. Metrics must be requested to be used in this filter.
-     * Dimensions cannot be used in this filter.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 6; - */ - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getMetricFilterOrBuilder() { - if (metricFilterBuilder_ != null) { - return metricFilterBuilder_.getMessageOrBuilder(); - } else { - return metricFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> - getMetricFilterFieldBuilder() { - if (metricFilterBuilder_ == null) { - metricFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>( - getMetricFilter(), getParentForChildren(), isClean()); - metricFilter_ = null; - } - return metricFilterBuilder_; - } - - 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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricAggregation metric_aggregations = 7; - * - * - * @param value The metricAggregations to add. - * @return This builder for chaining. - */ - public Builder addMetricAggregations( - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy, - com.google.analytics.data.v1alpha.OrderBy.Builder, - com.google.analytics.data.v1alpha.OrderByOrBuilder> - orderBysBuilder_; - - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.OrderBy order_bys = 8; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 8; - */ - public Builder setOrderBys(int index, com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 8; - */ - public Builder setOrderBys( - int index, com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 8; - */ - public Builder addOrderBys(com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 8; - */ - public Builder addOrderBys(int index, com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 8; - */ - public Builder addOrderBys(com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 8; - */ - public Builder addOrderBys( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy order_bys = 8; - */ - public com.google.analytics.data.v1alpha.OrderBy.Builder getOrderBysBuilder(int index) { - return getOrderBysFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 8; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.OrderBy order_bys = 8; - */ - public com.google.analytics.data.v1alpha.OrderBy.Builder addOrderBysBuilder() { - return getOrderBysFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.OrderBy.getDefaultInstance()); - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 8; - */ - public com.google.analytics.data.v1alpha.OrderBy.Builder addOrderBysBuilder(int index) { - return getOrderBysFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.OrderBy.getDefaultInstance()); - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 8; - */ - public java.util.List - getOrderBysBuilderList() { - return getOrderBysFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy, - com.google.analytics.data.v1alpha.OrderBy.Builder, - com.google.analytics.data.v1alpha.OrderByOrBuilder> - getOrderBysFieldBuilder() { - if (orderBysBuilder_ == null) { - orderBysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy, - com.google.analytics.data.v1alpha.OrderBy.Builder, - com.google.analytics.data.v1alpha.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; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.RunRealtimeReportRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.RunRealtimeReportRequest) - private static final com.google.analytics.data.v1alpha.RunRealtimeReportRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.RunRealtimeReportRequest(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunRealtimeReportRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportRequestOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportRequestOrBuilder.java deleted file mode 100644 index e1bf4a2c..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportRequestOrBuilder.java +++ /dev/null @@ -1,389 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -public interface RunRealtimeReportRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - java.util.List getDimensionsList(); - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - com.google.analytics.data.v1alpha.Dimension getDimensions(int index); - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - int getDimensionsCount(); - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - java.util.List - getDimensionsOrBuilderList(); - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - com.google.analytics.data.v1alpha.DimensionOrBuilder getDimensionsOrBuilder(int index); - - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - java.util.List getMetricsList(); - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - com.google.analytics.data.v1alpha.Metric getMetrics(int index); - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - int getMetricsCount(); - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - java.util.List - getMetricsOrBuilderList(); - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - com.google.analytics.data.v1alpha.MetricOrBuilder getMetricsOrBuilder(int index); - - /** - * - * - *
-   * The number of rows to return. If unspecified, 10 rows are returned. If
-   * -1, all rows are returned.
-   * 
- * - * int64 limit = 4; - * - * @return The limit. - */ - long getLimit(); - - /** - * - * - *
-   * 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.v1alpha.FilterExpression dimension_filter = 5; - * - * @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.v1alpha.FilterExpression dimension_filter = 5; - * - * @return The dimensionFilter. - */ - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 5; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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. Metrics must be requested to be used in this filter.
-   * Dimensions cannot be used in this filter.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpression metric_filter = 6; - * - * @return The metricFilter. - */ - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 6; - */ - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getMetricFilterOrBuilder(); - - /** - * - * - *
-   * Aggregation of metrics. Aggregated metric values will be shown in rows
-   * where the dimension_values are set to "RESERVED_(MetricAggregation)".
-   * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricAggregation metric_aggregations = 7; - * - * @param index The index of the element to return. - * @return The metricAggregations at the given index. - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy order_bys = 8; - */ - java.util.List getOrderBysList(); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 8; - */ - com.google.analytics.data.v1alpha.OrderBy getOrderBys(int index); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 8; - */ - int getOrderBysCount(); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 8; - */ - java.util.List - getOrderBysOrBuilderList(); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 8; - */ - com.google.analytics.data.v1alpha.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(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportResponse.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportResponse.java deleted file mode 100644 index 4f370abd..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportResponse.java +++ /dev/null @@ -1,3836 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The response realtime report table corresponding to a request.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.RunRealtimeReportResponse} - */ -public final class RunRealtimeReportResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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(); - } - - @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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Row.parser(), extensionRegistry)); - break; - } - case 56: - { - rowCount_ = input.readInt32(); - break; - } - case 66: - { - com.google.analytics.data.v1alpha.PropertyQuota.Builder subBuilder = null; - if (propertyQuota_ != null) { - subBuilder = propertyQuota_.toBuilder(); - } - propertyQuota_ = - input.readMessage( - com.google.analytics.data.v1alpha.PropertyQuota.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(propertyQuota_); - propertyQuota_ = 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)) { - 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.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunRealtimeReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunRealtimeReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.RunRealtimeReportResponse.class, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Row rows = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Row getRows(int index) { - return rows_.get(index); - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.Row totals = 4; - */ - @java.lang.Override - public java.util.List getTotalsList() { - return totals_; - } - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 4; - */ - @java.lang.Override - public java.util.List - getTotalsOrBuilderList() { - return totals_; - } - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 4; - */ - @java.lang.Override - public int getTotalsCount() { - return totals_.size(); - } - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Row getTotals(int index) { - return totals_.get(index); - } - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.Row maximums = 5; - */ - @java.lang.Override - public java.util.List getMaximumsList() { - return maximums_; - } - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 5; - */ - @java.lang.Override - public java.util.List - getMaximumsOrBuilderList() { - return maximums_; - } - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 5; - */ - @java.lang.Override - public int getMaximumsCount() { - return maximums_.size(); - } - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Row getMaximums(int index) { - return maximums_.get(index); - } - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.Row minimums = 6; - */ - @java.lang.Override - public java.util.List getMinimumsList() { - return minimums_; - } - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 6; - */ - @java.lang.Override - public java.util.List - getMinimumsOrBuilderList() { - return minimums_; - } - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 6; - */ - @java.lang.Override - public int getMinimumsCount() { - return minimums_.size(); - } - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Row getMinimums(int index) { - return minimums_.get(index); - } - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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, regardless of the number of
-   * rows returned in the response. For example if a query returns 175 rows and
-   * includes limit = 50 in the API request, the response will contain row_count
-   * = 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.v1alpha.PropertyQuota propertyQuota_; - /** - * - * - *
-   * This Analytics Property's Realtime quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 8; - * - * @return The propertyQuota. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota() { - return propertyQuota_ == null - ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } - /** - * - * - *
-   * This Analytics Property's Realtime quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 8; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { - return getPropertyQuota(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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()); - } - 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()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = 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.v1alpha.RunRealtimeReportResponse)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.RunRealtimeReportResponse other = - (com.google.analytics.data.v1alpha.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 (!unknownFields.equals(other.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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.RunRealtimeReportResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunRealtimeReportResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunRealtimeReportResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunRealtimeReportResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunRealtimeReportResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunRealtimeReportResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.RunRealtimeReportResponse) - com.google.analytics.data.v1alpha.RunRealtimeReportResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunRealtimeReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunRealtimeReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.RunRealtimeReportResponse.class, - com.google.analytics.data.v1alpha.RunRealtimeReportResponse.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunRealtimeReportResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunRealtimeReportResponse getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.RunRealtimeReportResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunRealtimeReportResponse build() { - com.google.analytics.data.v1alpha.RunRealtimeReportResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunRealtimeReportResponse buildPartial() { - com.google.analytics.data.v1alpha.RunRealtimeReportResponse result = - new com.google.analytics.data.v1alpha.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(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.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.v1alpha.RunRealtimeReportResponse) { - return mergeFrom((com.google.analytics.data.v1alpha.RunRealtimeReportResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.RunRealtimeReportResponse other) { - if (other == com.google.analytics.data.v1alpha.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()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - 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.v1alpha.RunRealtimeReportResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader, - com.google.analytics.data.v1alpha.DimensionHeader.Builder, - com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder> - dimensionHeadersBuilder_; - - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 1; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 1; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders(com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder() { - return getDimensionHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder( - int index) { - return getDimensionHeadersFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - public java.util.List - getDimensionHeadersBuilderList() { - return getDimensionHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionHeader, - com.google.analytics.data.v1alpha.DimensionHeader.Builder, - com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder> - getDimensionHeadersFieldBuilder() { - if (dimensionHeadersBuilder_ == null) { - dimensionHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionHeader, - com.google.analytics.data.v1alpha.DimensionHeader.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader, - com.google.analytics.data.v1alpha.MetricHeader.Builder, - com.google.analytics.data.v1alpha.MetricHeaderOrBuilder> - metricHeadersBuilder_; - - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders(com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBuilder() { - return getMetricHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBuilder( - int index) { - return getMetricHeadersFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public java.util.List - getMetricHeadersBuilderList() { - return getMetricHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.MetricHeader, - com.google.analytics.data.v1alpha.MetricHeader.Builder, - com.google.analytics.data.v1alpha.MetricHeaderOrBuilder> - getMetricHeadersFieldBuilder() { - if (metricHeadersBuilder_ == null) { - metricHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.MetricHeader, - com.google.analytics.data.v1alpha.MetricHeader.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - rowsBuilder_; - - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Row rows = 3; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder setRows(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder setRows( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder addRows(com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder addRows(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder addRows(com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder addRows( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Row rows = 3; - */ - public com.google.analytics.data.v1alpha.Row.Builder getRowsBuilder(int index) { - return getRowsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Row rows = 3; - */ - public com.google.analytics.data.v1alpha.Row.Builder addRowsBuilder() { - return getRowsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - public com.google.analytics.data.v1alpha.Row.Builder addRowsBuilder(int index) { - return getRowsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - public java.util.List getRowsBuilderList() { - return getRowsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - getRowsFieldBuilder() { - if (rowsBuilder_ == null) { - rowsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - totalsBuilder_; - - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Row totals = 4; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row totals = 4; - */ - public Builder setTotals(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row totals = 4; - */ - public Builder setTotals( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Row totals = 4; - */ - public Builder addTotals(com.google.analytics.data.v1alpha.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.v1alpha.Row totals = 4; - */ - public Builder addTotals(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row totals = 4; - */ - public Builder addTotals(com.google.analytics.data.v1alpha.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.v1alpha.Row totals = 4; - */ - public Builder addTotals( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Row totals = 4; - */ - public com.google.analytics.data.v1alpha.Row.Builder getTotalsBuilder(int index) { - return getTotalsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 4; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Row totals = 4; - */ - public com.google.analytics.data.v1alpha.Row.Builder addTotalsBuilder() { - return getTotalsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 4; - */ - public com.google.analytics.data.v1alpha.Row.Builder addTotalsBuilder(int index) { - return getTotalsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 4; - */ - public java.util.List getTotalsBuilderList() { - return getTotalsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - getTotalsFieldBuilder() { - if (totalsBuilder_ == null) { - totalsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - maximumsBuilder_; - - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Row maximums = 5; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row maximums = 5; - */ - public Builder setMaximums(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row maximums = 5; - */ - public Builder setMaximums( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Row maximums = 5; - */ - public Builder addMaximums(com.google.analytics.data.v1alpha.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.v1alpha.Row maximums = 5; - */ - public Builder addMaximums(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row maximums = 5; - */ - public Builder addMaximums(com.google.analytics.data.v1alpha.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.v1alpha.Row maximums = 5; - */ - public Builder addMaximums( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Row maximums = 5; - */ - public com.google.analytics.data.v1alpha.Row.Builder getMaximumsBuilder(int index) { - return getMaximumsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 5; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Row maximums = 5; - */ - public com.google.analytics.data.v1alpha.Row.Builder addMaximumsBuilder() { - return getMaximumsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 5; - */ - public com.google.analytics.data.v1alpha.Row.Builder addMaximumsBuilder(int index) { - return getMaximumsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 5; - */ - public java.util.List getMaximumsBuilderList() { - return getMaximumsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - getMaximumsFieldBuilder() { - if (maximumsBuilder_ == null) { - maximumsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - minimumsBuilder_; - - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Row minimums = 6; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row minimums = 6; - */ - public Builder setMinimums(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row minimums = 6; - */ - public Builder setMinimums( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Row minimums = 6; - */ - public Builder addMinimums(com.google.analytics.data.v1alpha.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.v1alpha.Row minimums = 6; - */ - public Builder addMinimums(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row minimums = 6; - */ - public Builder addMinimums(com.google.analytics.data.v1alpha.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.v1alpha.Row minimums = 6; - */ - public Builder addMinimums( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Row minimums = 6; - */ - public com.google.analytics.data.v1alpha.Row.Builder getMinimumsBuilder(int index) { - return getMinimumsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 6; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Row minimums = 6; - */ - public com.google.analytics.data.v1alpha.Row.Builder addMinimumsBuilder() { - return getMinimumsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 6; - */ - public com.google.analytics.data.v1alpha.Row.Builder addMinimumsBuilder(int index) { - return getMinimumsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 6; - */ - public java.util.List getMinimumsBuilderList() { - return getMinimumsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - getMinimumsFieldBuilder() { - if (minimumsBuilder_ == null) { - minimumsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder>( - minimums_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); - minimums_ = null; - } - return minimumsBuilder_; - } - - private int rowCount_; - /** - * - * - *
-     * The total number of rows in the query result, regardless of the number of
-     * rows returned in the response. For example if a query returns 175 rows and
-     * includes limit = 50 in the API request, the response will contain row_count
-     * = 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, regardless of the number of
-     * rows returned in the response. For example if a query returns 175 rows and
-     * includes limit = 50 in the API request, the response will contain row_count
-     * = 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, regardless of the number of
-     * rows returned in the response. For example if a query returns 175 rows and
-     * includes limit = 50 in the API request, the response will contain row_count
-     * = 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.v1alpha.PropertyQuota propertyQuota_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.PropertyQuota, - com.google.analytics.data.v1alpha.PropertyQuota.Builder, - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> - propertyQuotaBuilder_; - /** - * - * - *
-     * This Analytics Property's Realtime quota state including this request.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 8; - * - * @return The propertyQuota. - */ - public com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota() { - if (propertyQuotaBuilder_ == null) { - return propertyQuota_ == null - ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } else { - return propertyQuotaBuilder_.getMessage(); - } - } - /** - * - * - *
-     * This Analytics Property's Realtime quota state including this request.
-     * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 8; - */ - public Builder setPropertyQuota(com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 8; - */ - public Builder setPropertyQuota( - com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 8; - */ - public Builder mergePropertyQuota(com.google.analytics.data.v1alpha.PropertyQuota value) { - if (propertyQuotaBuilder_ == null) { - if (propertyQuota_ != null) { - propertyQuota_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.PropertyQuota property_quota = 8; - */ - public com.google.analytics.data.v1alpha.PropertyQuota.Builder getPropertyQuotaBuilder() { - - onChanged(); - return getPropertyQuotaFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * This Analytics Property's Realtime quota state including this request.
-     * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 8; - */ - public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { - if (propertyQuotaBuilder_ != null) { - return propertyQuotaBuilder_.getMessageOrBuilder(); - } else { - return propertyQuota_ == null - ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } - } - /** - * - * - *
-     * This Analytics Property's Realtime quota state including this request.
-     * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.PropertyQuota, - com.google.analytics.data.v1alpha.PropertyQuota.Builder, - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> - getPropertyQuotaFieldBuilder() { - if (propertyQuotaBuilder_ == null) { - propertyQuotaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.PropertyQuota, - com.google.analytics.data.v1alpha.PropertyQuota.Builder, - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder>( - getPropertyQuota(), getParentForChildren(), isClean()); - propertyQuota_ = null; - } - return propertyQuotaBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.RunRealtimeReportResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.RunRealtimeReportResponse) - private static final com.google.analytics.data.v1alpha.RunRealtimeReportResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.RunRealtimeReportResponse(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunRealtimeReportResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportResponseOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportResponseOrBuilder.java deleted file mode 100644 index 458fa370..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunRealtimeReportResponseOrBuilder.java +++ /dev/null @@ -1,397 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -public interface RunRealtimeReportResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 1; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 1; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricHeader metric_headers = 2; - */ - com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersOrBuilder(int index); - - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - java.util.List getRowsList(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - com.google.analytics.data.v1alpha.Row getRows(int index); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - int getRowsCount(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - java.util.List getRowsOrBuilderList(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - com.google.analytics.data.v1alpha.RowOrBuilder getRowsOrBuilder(int index); - - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 4; - */ - java.util.List getTotalsList(); - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 4; - */ - com.google.analytics.data.v1alpha.Row getTotals(int index); - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 4; - */ - int getTotalsCount(); - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 4; - */ - java.util.List getTotalsOrBuilderList(); - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 4; - */ - com.google.analytics.data.v1alpha.RowOrBuilder getTotalsOrBuilder(int index); - - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 5; - */ - java.util.List getMaximumsList(); - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 5; - */ - com.google.analytics.data.v1alpha.Row getMaximums(int index); - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 5; - */ - int getMaximumsCount(); - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 5; - */ - java.util.List - getMaximumsOrBuilderList(); - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 5; - */ - com.google.analytics.data.v1alpha.RowOrBuilder getMaximumsOrBuilder(int index); - - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 6; - */ - java.util.List getMinimumsList(); - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 6; - */ - com.google.analytics.data.v1alpha.Row getMinimums(int index); - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 6; - */ - int getMinimumsCount(); - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 6; - */ - java.util.List - getMinimumsOrBuilderList(); - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 6; - */ - com.google.analytics.data.v1alpha.RowOrBuilder getMinimumsOrBuilder(int index); - - /** - * - * - *
-   * The total number of rows in the query result, regardless of the number of
-   * rows returned in the response. For example if a query returns 175 rows and
-   * includes limit = 50 in the API request, the response will contain row_count
-   * = 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.v1alpha.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.v1alpha.PropertyQuota property_quota = 8; - * - * @return The propertyQuota. - */ - com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota(); - /** - * - * - *
-   * This Analytics Property's Realtime quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 8; - */ - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequest.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequest.java deleted file mode 100644 index 236ffac1..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequest.java +++ /dev/null @@ -1,4686 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The request to generate a report.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.RunReportRequest} - */ -public final class RunReportRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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() { - 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: - { - com.google.analytics.data.v1alpha.Entity.Builder subBuilder = null; - if (entity_ != null) { - subBuilder = entity_.toBuilder(); - } - entity_ = - input.readMessage( - com.google.analytics.data.v1alpha.Entity.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(entity_); - entity_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dimensions_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dimensions_.add( - input.readMessage( - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DateRange.parser(), extensionRegistry)); - break; - } - case 40: - { - offset_ = input.readInt64(); - break; - } - case 48: - { - limit_ = input.readInt64(); - break; - } - case 56: - { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - metricAggregations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - 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_ & 0x00000008) != 0)) { - metricAggregations_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - metricAggregations_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - case 66: - { - com.google.analytics.data.v1alpha.FilterExpression.Builder subBuilder = null; - if (dimensionFilter_ != null) { - subBuilder = dimensionFilter_.toBuilder(); - } - dimensionFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dimensionFilter_); - dimensionFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 74: - { - com.google.analytics.data.v1alpha.FilterExpression.Builder subBuilder = null; - if (metricFilter_ != null) { - subBuilder = metricFilter_.toBuilder(); - } - metricFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metricFilter_); - metricFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 82: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - orderBys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - orderBys_.add( - input.readMessage( - com.google.analytics.data.v1alpha.OrderBy.parser(), extensionRegistry)); - break; - } - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - - currencyCode_ = s; - break; - } - case 98: - { - com.google.analytics.data.v1alpha.CohortSpec.Builder subBuilder = null; - if (cohortSpec_ != null) { - subBuilder = cohortSpec_.toBuilder(); - } - cohortSpec_ = - input.readMessage( - com.google.analytics.data.v1alpha.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.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.RunReportRequest.class, - com.google.analytics.data.v1alpha.RunReportRequest.Builder.class); - } - - public static final int ENTITY_FIELD_NUMBER = 1; - private com.google.analytics.data.v1alpha.Entity entity_; - /** - * - * - *
-   * A property whose events are tracked. Within a batch request, this entity
-   * should either be unspecified or consistent with the batch-level entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return Whether the entity field is set. - */ - @java.lang.Override - public boolean hasEntity() { - return entity_ != null; - } - /** - * - * - *
-   * A property whose events are tracked. Within a batch request, this entity
-   * should either be unspecified or consistent with the batch-level entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return The entity. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Entity getEntity() { - return entity_ == null - ? com.google.analytics.data.v1alpha.Entity.getDefaultInstance() - : entity_; - } - /** - * - * - *
-   * A property whose events are tracked. Within a batch request, this entity
-   * should either be unspecified or consistent with the batch-level entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EntityOrBuilder getEntityOrBuilder() { - return getEntity(); - } - - public static final int DIMENSIONS_FIELD_NUMBER = 2; - private java.util.List dimensions_; - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - @java.lang.Override - public java.util.List getDimensionsList() { - return dimensions_; - } - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - @java.lang.Override - public java.util.List - getDimensionsOrBuilderList() { - return dimensions_; - } - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - @java.lang.Override - public int getDimensionsCount() { - return dimensions_.size(); - } - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Dimension getDimensions(int index) { - return dimensions_.get(index); - } - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List getMetricsList() { - return metrics_; - } - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - @java.lang.Override - public java.util.List - getMetricsOrBuilderList() { - return metrics_; - } - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - @java.lang.Override - public int getMetricsCount() { - return metrics_.size(); - } - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Metric getMetrics(int index) { - return metrics_.get(index); - } - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DateRange date_ranges = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangesOrBuilder(int index) { - return dateRanges_.get(index); - } - - public static final int OFFSET_FIELD_NUMBER = 5; - private long offset_; - /** - * - * - *
-   * The row count of the start row. The first row is counted as row 0.
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 offset = 5; - * - * @return The offset. - */ - @java.lang.Override - public long getOffset() { - return offset_; - } - - public static final int LIMIT_FIELD_NUMBER = 6; - private long limit_; - /** - * - * - *
-   * The number of rows to return. If unspecified, 10 rows are returned. If
-   * -1, all rows are returned.
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * 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.v1alpha.MetricAggregation> - metricAggregations_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.analytics.data.v1alpha.MetricAggregation>() { - public com.google.analytics.data.v1alpha.MetricAggregation convert( - java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.MetricAggregation result = - com.google.analytics.data.v1alpha.MetricAggregation.valueOf(from); - return result == null - ? com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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 DIMENSION_FILTER_FIELD_NUMBER = 8; - private com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 8; - * - * @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.v1alpha.FilterExpression dimension_filter = 8; - * - * @return The dimensionFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() { - return dimensionFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 8; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getDimensionFilterOrBuilder() { - return getDimensionFilter(); - } - - public static final int METRIC_FILTER_FIELD_NUMBER = 9; - private com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 9; - * - * @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.v1alpha.FilterExpression metric_filter = 9; - * - * @return The metricFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression getMetricFilter() { - return metricFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 9; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getMetricFilterOrBuilder() { - return getMetricFilter(); - } - - 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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy order_bys = 10; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.OrderBy getOrderBys(int index) { - return orderBys_.get(index); - } - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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 entity'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 entity'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.v1alpha.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.v1alpha.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.v1alpha.CohortSpec cohort_spec = 12; - * - * @return The cohortSpec. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.CohortSpec getCohortSpec() { - return cohortSpec_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec cohort_spec = 12; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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 (entity_ != null) { - output.writeMessage(1, getEntity()); - } - 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 (offset_ != 0L) { - output.writeInt64(5, offset_); - } - 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)); - } - if (dimensionFilter_ != null) { - output.writeMessage(8, getDimensionFilter()); - } - if (metricFilter_ != null) { - output.writeMessage(9, getMetricFilter()); - } - for (int i = 0; i < orderBys_.size(); i++) { - output.writeMessage(10, orderBys_.get(i)); - } - if (!getCurrencyCodeBytes().isEmpty()) { - 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 (entity_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEntity()); - } - 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 (offset_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(5, offset_); - } - 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; - } - if (dimensionFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDimensionFilter()); - } - if (metricFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getMetricFilter()); - } - for (int i = 0; i < orderBys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, orderBys_.get(i)); - } - if (!getCurrencyCodeBytes().isEmpty()) { - 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.v1alpha.RunReportRequest)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.RunReportRequest other = - (com.google.analytics.data.v1alpha.RunReportRequest) obj; - - if (hasEntity() != other.hasEntity()) return false; - if (hasEntity()) { - if (!getEntity().equals(other.getEntity())) return false; - } - if (!getDimensionsList().equals(other.getDimensionsList())) return false; - if (!getMetricsList().equals(other.getMetricsList())) return false; - if (!getDateRangesList().equals(other.getDateRangesList())) return false; - if (getOffset() != other.getOffset()) return false; - if (getLimit() != other.getLimit()) return false; - if (!metricAggregations_.equals(other.metricAggregations_)) 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 (!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(); - if (hasEntity()) { - hash = (37 * hash) + ENTITY_FIELD_NUMBER; - hash = (53 * hash) + getEntity().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(); - } - 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 (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(); - } - 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.v1alpha.RunReportRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunReportRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunReportRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunReportRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunReportRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunReportRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.RunReportRequest) - com.google.analytics.data.v1alpha.RunReportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.RunReportRequest.class, - com.google.analytics.data.v1alpha.RunReportRequest.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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(); - if (entityBuilder_ == null) { - entity_ = null; - } else { - entity_ = null; - entityBuilder_ = null; - } - 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(); - } - offset_ = 0L; - - limit_ = 0L; - - metricAggregations_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = null; - } else { - dimensionFilter_ = null; - dimensionFilterBuilder_ = null; - } - if (metricFilterBuilder_ == null) { - metricFilter_ = null; - } else { - metricFilter_ = null; - metricFilterBuilder_ = null; - } - 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.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunReportRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunReportRequest getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.RunReportRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunReportRequest build() { - com.google.analytics.data.v1alpha.RunReportRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunReportRequest buildPartial() { - com.google.analytics.data.v1alpha.RunReportRequest result = - new com.google.analytics.data.v1alpha.RunReportRequest(this); - int from_bitField0_ = bitField0_; - if (entityBuilder_ == null) { - result.entity_ = entity_; - } else { - result.entity_ = entityBuilder_.build(); - } - 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(); - } - result.offset_ = offset_; - result.limit_ = limit_; - if (((bitField0_ & 0x00000008) != 0)) { - metricAggregations_ = java.util.Collections.unmodifiableList(metricAggregations_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.metricAggregations_ = metricAggregations_; - if (dimensionFilterBuilder_ == null) { - result.dimensionFilter_ = dimensionFilter_; - } else { - result.dimensionFilter_ = dimensionFilterBuilder_.build(); - } - if (metricFilterBuilder_ == null) { - result.metricFilter_ = metricFilter_; - } else { - result.metricFilter_ = metricFilterBuilder_.build(); - } - 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.v1alpha.RunReportRequest) { - return mergeFrom((com.google.analytics.data.v1alpha.RunReportRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.RunReportRequest other) { - if (other == com.google.analytics.data.v1alpha.RunReportRequest.getDefaultInstance()) - return this; - if (other.hasEntity()) { - mergeEntity(other.getEntity()); - } - 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.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 (other.hasDimensionFilter()) { - mergeDimensionFilter(other.getDimensionFilter()); - } - if (other.hasMetricFilter()) { - mergeMetricFilter(other.getMetricFilter()); - } - 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.v1alpha.RunReportRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.RunReportRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int bitField0_; - - private com.google.analytics.data.v1alpha.Entity entity_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Entity, - com.google.analytics.data.v1alpha.Entity.Builder, - com.google.analytics.data.v1alpha.EntityOrBuilder> - entityBuilder_; - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return Whether the entity field is set. - */ - public boolean hasEntity() { - return entityBuilder_ != null || entity_ != null; - } - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return The entity. - */ - public com.google.analytics.data.v1alpha.Entity getEntity() { - if (entityBuilder_ == null) { - return entity_ == null - ? com.google.analytics.data.v1alpha.Entity.getDefaultInstance() - : entity_; - } else { - return entityBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public Builder setEntity(com.google.analytics.data.v1alpha.Entity value) { - if (entityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - entity_ = value; - onChanged(); - } else { - entityBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public Builder setEntity(com.google.analytics.data.v1alpha.Entity.Builder builderForValue) { - if (entityBuilder_ == null) { - entity_ = builderForValue.build(); - onChanged(); - } else { - entityBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public Builder mergeEntity(com.google.analytics.data.v1alpha.Entity value) { - if (entityBuilder_ == null) { - if (entity_ != null) { - entity_ = - com.google.analytics.data.v1alpha.Entity.newBuilder(entity_) - .mergeFrom(value) - .buildPartial(); - } else { - entity_ = value; - } - onChanged(); - } else { - entityBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public Builder clearEntity() { - if (entityBuilder_ == null) { - entity_ = null; - onChanged(); - } else { - entity_ = null; - entityBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public com.google.analytics.data.v1alpha.Entity.Builder getEntityBuilder() { - - onChanged(); - return getEntityFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - public com.google.analytics.data.v1alpha.EntityOrBuilder getEntityOrBuilder() { - if (entityBuilder_ != null) { - return entityBuilder_.getMessageOrBuilder(); - } else { - return entity_ == null - ? com.google.analytics.data.v1alpha.Entity.getDefaultInstance() - : entity_; - } - } - /** - * - * - *
-     * A property whose events are tracked. Within a batch request, this entity
-     * should either be unspecified or consistent with the batch-level entity.
-     * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Entity, - com.google.analytics.data.v1alpha.Entity.Builder, - com.google.analytics.data.v1alpha.EntityOrBuilder> - getEntityFieldBuilder() { - if (entityBuilder_ == null) { - entityBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Entity, - com.google.analytics.data.v1alpha.Entity.Builder, - com.google.analytics.data.v1alpha.EntityOrBuilder>( - getEntity(), getParentForChildren(), isClean()); - entity_ = null; - } - return entityBuilder_; - } - - 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.v1alpha.Dimension, - com.google.analytics.data.v1alpha.Dimension.Builder, - com.google.analytics.data.v1alpha.DimensionOrBuilder> - dimensionsBuilder_; - - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder setDimensions(int index, com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder setDimensions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder addDimensions(com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder addDimensions(int index, com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder addDimensions( - com.google.analytics.data.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public Builder addDimensions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1alpha.Dimension.Builder getDimensionsBuilder(int index) { - return getDimensionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1alpha.Dimension.Builder addDimensionsBuilder() { - return getDimensionsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.Dimension.getDefaultInstance()); - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - public com.google.analytics.data.v1alpha.Dimension.Builder addDimensionsBuilder(int index) { - return getDimensionsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.Dimension.getDefaultInstance()); - } - /** - * - * - *
-     * The dimensions requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - public java.util.List - getDimensionsBuilderList() { - return getDimensionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Dimension, - com.google.analytics.data.v1alpha.Dimension.Builder, - com.google.analytics.data.v1alpha.DimensionOrBuilder> - getDimensionsFieldBuilder() { - if (dimensionsBuilder_ == null) { - dimensionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Dimension, - com.google.analytics.data.v1alpha.Dimension.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Metric, - com.google.analytics.data.v1alpha.Metric.Builder, - com.google.analytics.data.v1alpha.MetricOrBuilder> - metricsBuilder_; - - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder setMetrics(int index, com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder setMetrics( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder addMetrics(int index, com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder addMetrics(com.google.analytics.data.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public Builder addMetrics( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public com.google.analytics.data.v1alpha.Metric.Builder getMetricsBuilder(int index) { - return getMetricsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Metric metrics = 3; - */ - public com.google.analytics.data.v1alpha.Metric.Builder addMetricsBuilder() { - return getMetricsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - public com.google.analytics.data.v1alpha.Metric.Builder addMetricsBuilder(int index) { - return getMetricsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.Metric.getDefaultInstance()); - } - /** - * - * - *
-     * The metrics requested and displayed.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - public java.util.List - getMetricsBuilderList() { - return getMetricsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Metric, - com.google.analytics.data.v1alpha.Metric.Builder, - com.google.analytics.data.v1alpha.MetricOrBuilder> - getMetricsFieldBuilder() { - if (metricsBuilder_ == null) { - metricsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Metric, - com.google.analytics.data.v1alpha.Metric.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.DateRange, - com.google.analytics.data.v1alpha.DateRange.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DateRange date_ranges = 4; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 4; - */ - public Builder setDateRanges(int index, com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 4; - */ - public Builder setDateRanges( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 4; - */ - public Builder addDateRanges(com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 4; - */ - public Builder addDateRanges(int index, com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 4; - */ - public Builder addDateRanges( - com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 4; - */ - public Builder addDateRanges( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DateRange date_ranges = 4; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 4; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DateRange date_ranges = 4; - */ - public com.google.analytics.data.v1alpha.DateRange.Builder addDateRangesBuilder() { - return getDateRangesFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 4; - */ - public com.google.analytics.data.v1alpha.DateRange.Builder addDateRangesBuilder(int index) { - return getDateRangesFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.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.v1alpha.DateRange date_ranges = 4; - */ - public java.util.List - getDateRangesBuilderList() { - return getDateRangesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DateRange, - com.google.analytics.data.v1alpha.DateRange.Builder, - com.google.analytics.data.v1alpha.DateRangeOrBuilder> - getDateRangesFieldBuilder() { - if (dateRangesBuilder_ == null) { - dateRangesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DateRange, - com.google.analytics.data.v1alpha.DateRange.Builder, - com.google.analytics.data.v1alpha.DateRangeOrBuilder>( - dateRanges_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - dateRanges_ = null; - } - return dateRangesBuilder_; - } - - private long offset_; - /** - * - * - *
-     * The row count of the start row. The first row is counted as row 0.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 5; - * - * @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.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 5; - * - * @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.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 offset = 5; - * - * @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 rows are returned. If
-     * -1, all rows are returned.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * int64 limit = 6; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - /** - * - * - *
-     * The number of rows to return. If unspecified, 10 rows are returned. If
-     * -1, all rows are returned.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * 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 rows are returned. If
-     * -1, all rows are returned.
-     * To learn more about this pagination parameter, see
-     * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-     * 
- * - * 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_ & 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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricAggregation metric_aggregations = 7; - * - * - * @param value The metricAggregations to add. - * @return This builder for chaining. - */ - public Builder addMetricAggregations( - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricAggregation metric_aggregations = 7; - * - * - * @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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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 com.google.analytics.data.v1alpha.FilterExpression dimensionFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 8; - * - * @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.v1alpha.FilterExpression dimension_filter = 8; - * - * @return The dimensionFilter. - */ - public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() { - if (dimensionFilterBuilder_ == null) { - return dimensionFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 8; - */ - public Builder setDimensionFilter(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 8; - */ - public Builder setDimensionFilter( - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 8; - */ - public Builder mergeDimensionFilter(com.google.analytics.data.v1alpha.FilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (dimensionFilter_ != null) { - dimensionFilter_ = - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 8; - */ - 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.v1alpha.FilterExpression dimension_filter = 8; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 8; - */ - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder - getDimensionFilterOrBuilder() { - if (dimensionFilterBuilder_ != null) { - return dimensionFilterBuilder_.getMessageOrBuilder(); - } else { - return dimensionFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> - getDimensionFilterFieldBuilder() { - if (dimensionFilterBuilder_ == null) { - dimensionFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>( - getDimensionFilter(), getParentForChildren(), isClean()); - dimensionFilter_ = null; - } - return dimensionFilterBuilder_; - } - - private com.google.analytics.data.v1alpha.FilterExpression metricFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 9; - * - * @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.v1alpha.FilterExpression metric_filter = 9; - * - * @return The metricFilter. - */ - public com.google.analytics.data.v1alpha.FilterExpression getMetricFilter() { - if (metricFilterBuilder_ == null) { - return metricFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 9; - */ - public Builder setMetricFilter(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 9; - */ - public Builder setMetricFilter( - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 9; - */ - public Builder mergeMetricFilter(com.google.analytics.data.v1alpha.FilterExpression value) { - if (metricFilterBuilder_ == null) { - if (metricFilter_ != null) { - metricFilter_ = - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 9; - */ - 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.v1alpha.FilterExpression metric_filter = 9; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 9; - */ - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getMetricFilterOrBuilder() { - if (metricFilterBuilder_ != null) { - return metricFilterBuilder_.getMessageOrBuilder(); - } else { - return metricFilter_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 9; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> - getMetricFilterFieldBuilder() { - if (metricFilterBuilder_ == null) { - metricFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>( - getMetricFilter(), getParentForChildren(), isClean()); - metricFilter_ = null; - } - return metricFilterBuilder_; - } - - 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.v1alpha.OrderBy, - com.google.analytics.data.v1alpha.OrderBy.Builder, - com.google.analytics.data.v1alpha.OrderByOrBuilder> - orderBysBuilder_; - - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.OrderBy order_bys = 10; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 10; - */ - public Builder setOrderBys(int index, com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 10; - */ - public Builder setOrderBys( - int index, com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 10; - */ - public Builder addOrderBys(com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 10; - */ - public Builder addOrderBys(int index, com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 10; - */ - public Builder addOrderBys(com.google.analytics.data.v1alpha.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.v1alpha.OrderBy order_bys = 10; - */ - public Builder addOrderBys( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.OrderBy order_bys = 10; - */ - public com.google.analytics.data.v1alpha.OrderBy.Builder getOrderBysBuilder(int index) { - return getOrderBysFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.OrderBy order_bys = 10; - */ - public com.google.analytics.data.v1alpha.OrderBy.Builder addOrderBysBuilder() { - return getOrderBysFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.OrderBy.getDefaultInstance()); - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10; - */ - public com.google.analytics.data.v1alpha.OrderBy.Builder addOrderBysBuilder(int index) { - return getOrderBysFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.OrderBy.getDefaultInstance()); - } - /** - * - * - *
-     * Specifies how rows are ordered in the response.
-     * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10; - */ - public java.util.List - getOrderBysBuilderList() { - return getOrderBysFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy, - com.google.analytics.data.v1alpha.OrderBy.Builder, - com.google.analytics.data.v1alpha.OrderByOrBuilder> - getOrderBysFieldBuilder() { - if (orderBysBuilder_ == null) { - orderBysBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.OrderBy, - com.google.analytics.data.v1alpha.OrderBy.Builder, - com.google.analytics.data.v1alpha.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 entity'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 entity'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 entity'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 entity'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 entity'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.v1alpha.CohortSpec cohortSpec_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.CohortSpec, - com.google.analytics.data.v1alpha.CohortSpec.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.CohortSpec cohort_spec = 12; - * - * @return The cohortSpec. - */ - public com.google.analytics.data.v1alpha.CohortSpec getCohortSpec() { - if (cohortSpecBuilder_ == null) { - return cohortSpec_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec cohort_spec = 12; - */ - public Builder setCohortSpec(com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec cohort_spec = 12; - */ - public Builder setCohortSpec( - com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec cohort_spec = 12; - */ - public Builder mergeCohortSpec(com.google.analytics.data.v1alpha.CohortSpec value) { - if (cohortSpecBuilder_ == null) { - if (cohortSpec_ != null) { - cohortSpec_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.CohortSpec cohort_spec = 12; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec cohort_spec = 12; - */ - public com.google.analytics.data.v1alpha.CohortSpecOrBuilder getCohortSpecOrBuilder() { - if (cohortSpecBuilder_ != null) { - return cohortSpecBuilder_.getMessageOrBuilder(); - } else { - return cohortSpec_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec cohort_spec = 12; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.CohortSpec, - com.google.analytics.data.v1alpha.CohortSpec.Builder, - com.google.analytics.data.v1alpha.CohortSpecOrBuilder> - getCohortSpecFieldBuilder() { - if (cohortSpecBuilder_ == null) { - cohortSpecBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.CohortSpec, - com.google.analytics.data.v1alpha.CohortSpec.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.RunReportRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.RunReportRequest) - private static final com.google.analytics.data.v1alpha.RunReportRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.RunReportRequest(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunReportRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequestOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequestOrBuilder.java deleted file mode 100644 index bd618d00..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportRequestOrBuilder.java +++ /dev/null @@ -1,563 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -public interface RunReportRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.RunReportRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A property whose events are tracked. Within a batch request, this entity
-   * should either be unspecified or consistent with the batch-level entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return Whether the entity field is set. - */ - boolean hasEntity(); - /** - * - * - *
-   * A property whose events are tracked. Within a batch request, this entity
-   * should either be unspecified or consistent with the batch-level entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - * - * @return The entity. - */ - com.google.analytics.data.v1alpha.Entity getEntity(); - /** - * - * - *
-   * A property whose events are tracked. Within a batch request, this entity
-   * should either be unspecified or consistent with the batch-level entity.
-   * 
- * - * .google.analytics.data.v1alpha.Entity entity = 1; - */ - com.google.analytics.data.v1alpha.EntityOrBuilder getEntityOrBuilder(); - - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - java.util.List getDimensionsList(); - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - com.google.analytics.data.v1alpha.Dimension getDimensions(int index); - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - int getDimensionsCount(); - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - java.util.List - getDimensionsOrBuilderList(); - /** - * - * - *
-   * The dimensions requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Dimension dimensions = 2; - */ - com.google.analytics.data.v1alpha.DimensionOrBuilder getDimensionsOrBuilder(int index); - - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - java.util.List getMetricsList(); - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - com.google.analytics.data.v1alpha.Metric getMetrics(int index); - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - int getMetricsCount(); - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - java.util.List - getMetricsOrBuilderList(); - /** - * - * - *
-   * The metrics requested and displayed.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Metric metrics = 3; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DateRange date_ranges = 4; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DateRange date_ranges = 4; - */ - com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangesOrBuilder(int index); - - /** - * - * - *
-   * The row count of the start row. The first row is counted as row 0.
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * int64 offset = 5; - * - * @return The offset. - */ - long getOffset(); - - /** - * - * - *
-   * The number of rows to return. If unspecified, 10 rows are returned. If
-   * -1, all rows are returned.
-   * To learn more about this pagination parameter, see
-   * [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination).
-   * 
- * - * 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.v1alpha.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.v1alpha.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.v1alpha.MetricAggregation metric_aggregations = 7; - * - * @param index The index of the element to return. - * @return The metricAggregations at the given index. - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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); - - /** - * - * - *
-   * 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.v1alpha.FilterExpression dimension_filter = 8; - * - * @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.v1alpha.FilterExpression dimension_filter = 8; - * - * @return The dimensionFilter. - */ - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression dimension_filter = 8; - */ - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 9; - * - * @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.v1alpha.FilterExpression metric_filter = 9; - * - * @return The metricFilter. - */ - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression metric_filter = 9; - */ - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getMetricFilterOrBuilder(); - - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10; - */ - java.util.List getOrderBysList(); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10; - */ - com.google.analytics.data.v1alpha.OrderBy getOrderBys(int index); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10; - */ - int getOrderBysCount(); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10; - */ - java.util.List - getOrderBysOrBuilderList(); - /** - * - * - *
-   * Specifies how rows are ordered in the response.
-   * 
- * - * repeated .google.analytics.data.v1alpha.OrderBy order_bys = 10; - */ - com.google.analytics.data.v1alpha.OrderByOrBuilder getOrderBysOrBuilder(int index); - - /** - * - * - *
-   * A currency code in ISO4217 format, such as "AED", "USD", "JPY".
-   * If the field is empty, the report uses the entity'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 entity'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.v1alpha.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.v1alpha.CohortSpec cohort_spec = 12; - * - * @return The cohortSpec. - */ - com.google.analytics.data.v1alpha.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.v1alpha.CohortSpec cohort_spec = 12; - */ - com.google.analytics.data.v1alpha.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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponse.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponse.java deleted file mode 100644 index e793aaa4..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponse.java +++ /dev/null @@ -1,4123 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The response report table corresponding to a request.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.RunReportResponse} - */ -public final class RunReportResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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(); - } - - @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_ & 0x00000002) != 0)) { - metricHeaders_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - metricHeaders_.add( - input.readMessage( - com.google.analytics.data.v1alpha.MetricHeader.parser(), extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000004) != 0)) { - rows_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000004; - } - rows_.add( - input.readMessage( - com.google.analytics.data.v1alpha.Row.parser(), extensionRegistry)); - break; - } - case 50: - { - com.google.analytics.data.v1alpha.ResponseMetaData.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = - input.readMessage( - com.google.analytics.data.v1alpha.ResponseMetaData.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - case 58: - { - com.google.analytics.data.v1alpha.PropertyQuota.Builder subBuilder = null; - if (propertyQuota_ != null) { - subBuilder = propertyQuota_.toBuilder(); - } - propertyQuota_ = - input.readMessage( - com.google.analytics.data.v1alpha.PropertyQuota.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(propertyQuota_); - propertyQuota_ = subBuilder.buildPartial(); - } - - break; - } - case 66: - { - if (!((mutable_bitField0_ & 0x00000008) != 0)) { - totals_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000008; - } - totals_.add( - input.readMessage( - com.google.analytics.data.v1alpha.Row.parser(), extensionRegistry)); - break; - } - case 74: - { - if (!((mutable_bitField0_ & 0x00000010) != 0)) { - maximums_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000010; - } - maximums_.add( - input.readMessage( - com.google.analytics.data.v1alpha.Row.parser(), extensionRegistry)); - break; - } - case 82: - { - if (!((mutable_bitField0_ & 0x00000020) != 0)) { - minimums_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000020; - } - minimums_.add( - input.readMessage( - com.google.analytics.data.v1alpha.Row.parser(), extensionRegistry)); - break; - } - case 90: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionHeaders_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dimensionHeaders_.add( - input.readMessage( - com.google.analytics.data.v1alpha.DimensionHeader.parser(), - extensionRegistry)); - break; - } - case 96: - { - 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_ & 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_); - } - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionHeaders_ = java.util.Collections.unmodifiableList(dimensionHeaders_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.RunReportResponse.class, - com.google.analytics.data.v1alpha.RunReportResponse.Builder.class); - } - - public static final int DIMENSION_HEADERS_FIELD_NUMBER = 11; - 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.v1alpha.DimensionHeader dimension_headers = 11; - */ - @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.v1alpha.DimensionHeader dimension_headers = 11; - */ - @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.v1alpha.DimensionHeader dimension_headers = 11; - */ - @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.v1alpha.DimensionHeader dimension_headers = 11; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 11; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder( - int index) { - return dimensionHeaders_.get(index); - } - - public static final int METRIC_HEADERS_FIELD_NUMBER = 1; - 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.v1alpha.MetricHeader metric_headers = 1; - */ - @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.v1alpha.MetricHeader metric_headers = 1; - */ - @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.v1alpha.MetricHeader metric_headers = 1; - */ - @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.v1alpha.MetricHeader metric_headers = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersOrBuilder( - int index) { - return metricHeaders_.get(index); - } - - public static final int ROWS_FIELD_NUMBER = 2; - private java.util.List rows_; - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 2; - */ - @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.v1alpha.Row rows = 2; - */ - @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.v1alpha.Row rows = 2; - */ - @java.lang.Override - public int getRowsCount() { - return rows_.size(); - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Row getRows(int index) { - return rows_.get(index); - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.RowOrBuilder getRowsOrBuilder(int index) { - return rows_.get(index); - } - - public static final int TOTALS_FIELD_NUMBER = 8; - private java.util.List totals_; - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 8; - */ - @java.lang.Override - public java.util.List getTotalsList() { - return totals_; - } - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 8; - */ - @java.lang.Override - public java.util.List - getTotalsOrBuilderList() { - return totals_; - } - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 8; - */ - @java.lang.Override - public int getTotalsCount() { - return totals_.size(); - } - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 8; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Row getTotals(int index) { - return totals_.get(index); - } - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 8; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.RowOrBuilder getTotalsOrBuilder(int index) { - return totals_.get(index); - } - - public static final int MAXIMUMS_FIELD_NUMBER = 9; - private java.util.List maximums_; - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 9; - */ - @java.lang.Override - public java.util.List getMaximumsList() { - return maximums_; - } - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 9; - */ - @java.lang.Override - public java.util.List - getMaximumsOrBuilderList() { - return maximums_; - } - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 9; - */ - @java.lang.Override - public int getMaximumsCount() { - return maximums_.size(); - } - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 9; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Row getMaximums(int index) { - return maximums_.get(index); - } - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 9; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.RowOrBuilder getMaximumsOrBuilder(int index) { - return maximums_.get(index); - } - - public static final int MINIMUMS_FIELD_NUMBER = 10; - private java.util.List minimums_; - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 10; - */ - @java.lang.Override - public java.util.List getMinimumsList() { - return minimums_; - } - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 10; - */ - @java.lang.Override - public java.util.List - getMinimumsOrBuilderList() { - return minimums_; - } - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 10; - */ - @java.lang.Override - public int getMinimumsCount() { - return minimums_.size(); - } - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 10; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Row getMinimums(int index) { - return minimums_.get(index); - } - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 10; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.RowOrBuilder getMinimumsOrBuilder(int index) { - return minimums_.get(index); - } - - public static final int ROW_COUNT_FIELD_NUMBER = 12; - private int rowCount_; - /** - * - * - *
-   * The total number of rows in the query result, regardless of the number of
-   * rows returned in the response. For example if a query returns 175 rows and
-   * includes limit = 50 in the API request, the response will contain row_count
-   * = 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 = 12; - * - * @return The rowCount. - */ - @java.lang.Override - public int getRowCount() { - return rowCount_; - } - - public static final int METADATA_FIELD_NUMBER = 6; - private com.google.analytics.data.v1alpha.ResponseMetaData metadata_; - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.ResponseMetaData metadata = 6; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.ResponseMetaData getMetadata() { - return metadata_ == null - ? com.google.analytics.data.v1alpha.ResponseMetaData.getDefaultInstance() - : metadata_; - } - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - public static final int PROPERTY_QUOTA_FIELD_NUMBER = 7; - private com.google.analytics.data.v1alpha.PropertyQuota propertyQuota_; - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 7; - * - * @return The propertyQuota. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota() { - return propertyQuota_ == null - ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { - return getPropertyQuota(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < metricHeaders_.size(); i++) { - output.writeMessage(1, metricHeaders_.get(i)); - } - for (int i = 0; i < rows_.size(); i++) { - output.writeMessage(2, rows_.get(i)); - } - if (metadata_ != null) { - output.writeMessage(6, getMetadata()); - } - if (propertyQuota_ != null) { - output.writeMessage(7, getPropertyQuota()); - } - for (int i = 0; i < totals_.size(); i++) { - output.writeMessage(8, totals_.get(i)); - } - for (int i = 0; i < maximums_.size(); i++) { - output.writeMessage(9, maximums_.get(i)); - } - for (int i = 0; i < minimums_.size(); i++) { - output.writeMessage(10, minimums_.get(i)); - } - for (int i = 0; i < dimensionHeaders_.size(); i++) { - output.writeMessage(11, dimensionHeaders_.get(i)); - } - if (rowCount_ != 0) { - output.writeInt32(12, 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 < metricHeaders_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, metricHeaders_.get(i)); - } - for (int i = 0; i < rows_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, rows_.get(i)); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetadata()); - } - if (propertyQuota_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPropertyQuota()); - } - for (int i = 0; i < totals_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, totals_.get(i)); - } - for (int i = 0; i < maximums_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, maximums_.get(i)); - } - for (int i = 0; i < minimums_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, minimums_.get(i)); - } - for (int i = 0; i < dimensionHeaders_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(11, dimensionHeaders_.get(i)); - } - if (rowCount_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(12, 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.v1alpha.RunReportResponse)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.RunReportResponse other = - (com.google.analytics.data.v1alpha.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 (!unknownFields.equals(other.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 = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.RunReportResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunReportResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunReportResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunReportResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunReportResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.RunReportResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.RunReportResponse) - com.google.analytics.data.v1alpha.RunReportResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.RunReportResponse.class, - com.google.analytics.data.v1alpha.RunReportResponse.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.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; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunReportResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunReportResponse getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.RunReportResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunReportResponse build() { - com.google.analytics.data.v1alpha.RunReportResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunReportResponse buildPartial() { - com.google.analytics.data.v1alpha.RunReportResponse result = - new com.google.analytics.data.v1alpha.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(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.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.v1alpha.RunReportResponse) { - return mergeFrom((com.google.analytics.data.v1alpha.RunReportResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.RunReportResponse other) { - if (other == com.google.analytics.data.v1alpha.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()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - 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.v1alpha.RunReportResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader, - com.google.analytics.data.v1alpha.DimensionHeader.Builder, - com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder> - dimensionHeadersBuilder_; - - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11; - */ - 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.v1alpha.DimensionHeader dimension_headers = 11; - */ - 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.v1alpha.DimensionHeader dimension_headers = 11; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 11; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 11; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 11; - */ - public Builder addDimensionHeaders(com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 11; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 11; - */ - public Builder addDimensionHeaders( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 11; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 11; - */ - 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.v1alpha.DimensionHeader dimension_headers = 11; - */ - 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.v1alpha.DimensionHeader dimension_headers = 11; - */ - 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.v1alpha.DimensionHeader dimension_headers = 11; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 11; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 11; - */ - 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.v1alpha.DimensionHeader dimension_headers = 11; - */ - public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder() { - return getDimensionHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11; - */ - public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder( - int index) { - return getDimensionHeadersFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes dimension columns. The number of DimensionHeaders and ordering of
-     * DimensionHeaders matches the dimensions present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11; - */ - public java.util.List - getDimensionHeadersBuilderList() { - return getDimensionHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionHeader, - com.google.analytics.data.v1alpha.DimensionHeader.Builder, - com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder> - getDimensionHeadersFieldBuilder() { - if (dimensionHeadersBuilder_ == null) { - dimensionHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionHeader, - com.google.analytics.data.v1alpha.DimensionHeader.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader, - com.google.analytics.data.v1alpha.MetricHeader.Builder, - com.google.analytics.data.v1alpha.MetricHeaderOrBuilder> - metricHeadersBuilder_; - - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1; - */ - 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.v1alpha.MetricHeader metric_headers = 1; - */ - 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.v1alpha.MetricHeader metric_headers = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 1; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 1; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 1; - */ - public Builder addMetricHeaders(com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 1; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 1; - */ - public Builder addMetricHeaders( - com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 1; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 1; - */ - 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.v1alpha.MetricHeader metric_headers = 1; - */ - 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.v1alpha.MetricHeader metric_headers = 1; - */ - 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.v1alpha.MetricHeader metric_headers = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 1; - */ - 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.v1alpha.MetricHeader metric_headers = 1; - */ - public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBuilder() { - return getMetricHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1; - */ - public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBuilder( - int index) { - return getMetricHeadersFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes metric columns. The number of MetricHeaders and ordering of
-     * MetricHeaders matches the metrics present in rows.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1; - */ - public java.util.List - getMetricHeadersBuilderList() { - return getMetricHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.MetricHeader, - com.google.analytics.data.v1alpha.MetricHeader.Builder, - com.google.analytics.data.v1alpha.MetricHeaderOrBuilder> - getMetricHeadersFieldBuilder() { - if (metricHeadersBuilder_ == null) { - metricHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.MetricHeader, - com.google.analytics.data.v1alpha.MetricHeader.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - rowsBuilder_; - - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 2; - */ - 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.v1alpha.Row rows = 2; - */ - 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.v1alpha.Row rows = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 2; - */ - public Builder setRows(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 2; - */ - public Builder setRows( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 2; - */ - public Builder addRows(com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 2; - */ - public Builder addRows(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 2; - */ - public Builder addRows(com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 2; - */ - public Builder addRows( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 2; - */ - 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.v1alpha.Row rows = 2; - */ - 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.v1alpha.Row rows = 2; - */ - 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.v1alpha.Row rows = 2; - */ - public com.google.analytics.data.v1alpha.Row.Builder getRowsBuilder(int index) { - return getRowsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 2; - */ - 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.v1alpha.Row rows = 2; - */ - public com.google.analytics.data.v1alpha.Row.Builder addRowsBuilder() { - return getRowsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 2; - */ - public com.google.analytics.data.v1alpha.Row.Builder addRowsBuilder(int index) { - return getRowsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 2; - */ - public java.util.List getRowsBuilderList() { - return getRowsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - getRowsFieldBuilder() { - if (rowsBuilder_ == null) { - rowsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - totalsBuilder_; - - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 8; - */ - 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.v1alpha.Row totals = 8; - */ - public int getTotalsCount() { - if (totalsBuilder_ == null) { - return totals_.size(); - } else { - return totalsBuilder_.getCount(); - } - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 8; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row totals = 8; - */ - public Builder setTotals(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row totals = 8; - */ - public Builder setTotals( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Row totals = 8; - */ - public Builder addTotals(com.google.analytics.data.v1alpha.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.v1alpha.Row totals = 8; - */ - public Builder addTotals(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row totals = 8; - */ - public Builder addTotals(com.google.analytics.data.v1alpha.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.v1alpha.Row totals = 8; - */ - public Builder addTotals( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Row totals = 8; - */ - 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.v1alpha.Row totals = 8; - */ - 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.v1alpha.Row totals = 8; - */ - 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.v1alpha.Row totals = 8; - */ - public com.google.analytics.data.v1alpha.Row.Builder getTotalsBuilder(int index) { - return getTotalsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 8; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row totals = 8; - */ - 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.v1alpha.Row totals = 8; - */ - public com.google.analytics.data.v1alpha.Row.Builder addTotalsBuilder() { - return getTotalsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 8; - */ - public com.google.analytics.data.v1alpha.Row.Builder addTotalsBuilder(int index) { - return getTotalsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the totaled values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 8; - */ - public java.util.List getTotalsBuilderList() { - return getTotalsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - getTotalsFieldBuilder() { - if (totalsBuilder_ == null) { - totalsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - maximumsBuilder_; - - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 9; - */ - 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.v1alpha.Row maximums = 9; - */ - public int getMaximumsCount() { - if (maximumsBuilder_ == null) { - return maximums_.size(); - } else { - return maximumsBuilder_.getCount(); - } - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 9; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row maximums = 9; - */ - public Builder setMaximums(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row maximums = 9; - */ - public Builder setMaximums( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Row maximums = 9; - */ - public Builder addMaximums(com.google.analytics.data.v1alpha.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.v1alpha.Row maximums = 9; - */ - public Builder addMaximums(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row maximums = 9; - */ - public Builder addMaximums(com.google.analytics.data.v1alpha.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.v1alpha.Row maximums = 9; - */ - public Builder addMaximums( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Row maximums = 9; - */ - 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.v1alpha.Row maximums = 9; - */ - 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.v1alpha.Row maximums = 9; - */ - 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.v1alpha.Row maximums = 9; - */ - public com.google.analytics.data.v1alpha.Row.Builder getMaximumsBuilder(int index) { - return getMaximumsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 9; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row maximums = 9; - */ - 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.v1alpha.Row maximums = 9; - */ - public com.google.analytics.data.v1alpha.Row.Builder addMaximumsBuilder() { - return getMaximumsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 9; - */ - public com.google.analytics.data.v1alpha.Row.Builder addMaximumsBuilder(int index) { - return getMaximumsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the maximum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 9; - */ - public java.util.List getMaximumsBuilderList() { - return getMaximumsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - getMaximumsFieldBuilder() { - if (maximumsBuilder_ == null) { - maximumsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - minimumsBuilder_; - - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 10; - */ - 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.v1alpha.Row minimums = 10; - */ - public int getMinimumsCount() { - if (minimumsBuilder_ == null) { - return minimums_.size(); - } else { - return minimumsBuilder_.getCount(); - } - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 10; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row minimums = 10; - */ - public Builder setMinimums(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row minimums = 10; - */ - public Builder setMinimums( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Row minimums = 10; - */ - public Builder addMinimums(com.google.analytics.data.v1alpha.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.v1alpha.Row minimums = 10; - */ - public Builder addMinimums(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row minimums = 10; - */ - public Builder addMinimums(com.google.analytics.data.v1alpha.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.v1alpha.Row minimums = 10; - */ - public Builder addMinimums( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Row minimums = 10; - */ - 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.v1alpha.Row minimums = 10; - */ - 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.v1alpha.Row minimums = 10; - */ - 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.v1alpha.Row minimums = 10; - */ - public com.google.analytics.data.v1alpha.Row.Builder getMinimumsBuilder(int index) { - return getMinimumsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 10; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row minimums = 10; - */ - 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.v1alpha.Row minimums = 10; - */ - public com.google.analytics.data.v1alpha.Row.Builder addMinimumsBuilder() { - return getMinimumsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 10; - */ - public com.google.analytics.data.v1alpha.Row.Builder addMinimumsBuilder(int index) { - return getMinimumsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * If requested, the minimum values of metrics.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 10; - */ - public java.util.List getMinimumsBuilderList() { - return getMinimumsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - getMinimumsFieldBuilder() { - if (minimumsBuilder_ == null) { - minimumsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder>( - minimums_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); - minimums_ = null; - } - return minimumsBuilder_; - } - - private int rowCount_; - /** - * - * - *
-     * The total number of rows in the query result, regardless of the number of
-     * rows returned in the response. For example if a query returns 175 rows and
-     * includes limit = 50 in the API request, the response will contain row_count
-     * = 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 = 12; - * - * @return The rowCount. - */ - @java.lang.Override - public int getRowCount() { - return rowCount_; - } - /** - * - * - *
-     * The total number of rows in the query result, regardless of the number of
-     * rows returned in the response. For example if a query returns 175 rows and
-     * includes limit = 50 in the API request, the response will contain row_count
-     * = 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 = 12; - * - * @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, regardless of the number of
-     * rows returned in the response. For example if a query returns 175 rows and
-     * includes limit = 50 in the API request, the response will contain row_count
-     * = 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 = 12; - * - * @return This builder for chaining. - */ - public Builder clearRowCount() { - - rowCount_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.data.v1alpha.ResponseMetaData metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.ResponseMetaData, - com.google.analytics.data.v1alpha.ResponseMetaData.Builder, - com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder> - metadataBuilder_; - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.ResponseMetaData metadata = 6; - * - * @return The metadata. - */ - public com.google.analytics.data.v1alpha.ResponseMetaData getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.analytics.data.v1alpha.ResponseMetaData.getDefaultInstance() - : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 6; - */ - public Builder setMetadata(com.google.analytics.data.v1alpha.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.v1alpha.ResponseMetaData metadata = 6; - */ - public Builder setMetadata( - com.google.analytics.data.v1alpha.ResponseMetaData.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 6; - */ - public Builder mergeMetadata(com.google.analytics.data.v1alpha.ResponseMetaData value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.analytics.data.v1alpha.ResponseMetaData.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.ResponseMetaData metadata = 6; - */ - public com.google.analytics.data.v1alpha.ResponseMetaData.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 6; - */ - public com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null - ? com.google.analytics.data.v1alpha.ResponseMetaData.getDefaultInstance() - : metadata_; - } - } - /** - * - * - *
-     * Metadata for the report.
-     * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.ResponseMetaData, - com.google.analytics.data.v1alpha.ResponseMetaData.Builder, - com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.ResponseMetaData, - com.google.analytics.data.v1alpha.ResponseMetaData.Builder, - com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private com.google.analytics.data.v1alpha.PropertyQuota propertyQuota_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.PropertyQuota, - com.google.analytics.data.v1alpha.PropertyQuota.Builder, - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> - propertyQuotaBuilder_; - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 7; - * - * @return The propertyQuota. - */ - public com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota() { - if (propertyQuotaBuilder_ == null) { - return propertyQuota_ == null - ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } else { - return propertyQuotaBuilder_.getMessage(); - } - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 7; - */ - public Builder setPropertyQuota(com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 7; - */ - public Builder setPropertyQuota( - com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 7; - */ - public Builder mergePropertyQuota(com.google.analytics.data.v1alpha.PropertyQuota value) { - if (propertyQuotaBuilder_ == null) { - if (propertyQuota_ != null) { - propertyQuota_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.PropertyQuota property_quota = 7; - */ - public com.google.analytics.data.v1alpha.PropertyQuota.Builder getPropertyQuotaBuilder() { - - onChanged(); - return getPropertyQuotaFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 7; - */ - public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { - if (propertyQuotaBuilder_ != null) { - return propertyQuotaBuilder_.getMessageOrBuilder(); - } else { - return propertyQuota_ == null - ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.PropertyQuota, - com.google.analytics.data.v1alpha.PropertyQuota.Builder, - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> - getPropertyQuotaFieldBuilder() { - if (propertyQuotaBuilder_ == null) { - propertyQuotaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.PropertyQuota, - com.google.analytics.data.v1alpha.PropertyQuota.Builder, - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder>( - getPropertyQuota(), getParentForChildren(), isClean()); - propertyQuota_ = null; - } - return propertyQuotaBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.RunReportResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.RunReportResponse) - private static final com.google.analytics.data.v1alpha.RunReportResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.RunReportResponse(); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.RunReportResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponseOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponseOrBuilder.java deleted file mode 100644 index b0a27ef2..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunReportResponseOrBuilder.java +++ /dev/null @@ -1,434 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -public interface RunReportResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 11; - */ - 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.v1alpha.DimensionHeader dimension_headers = 11; - */ - com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader dimension_headers = 11; - */ - int getDimensionHeadersCount(); - /** - * - * - *
-   * Describes dimension columns. The number of DimensionHeaders and ordering of
-   * DimensionHeaders matches the dimensions present in rows.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 11; - */ - 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.v1alpha.DimensionHeader dimension_headers = 11; - */ - com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 1; - */ - 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.v1alpha.MetricHeader metric_headers = 1; - */ - com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader metric_headers = 1; - */ - int getMetricHeadersCount(); - /** - * - * - *
-   * Describes metric columns. The number of MetricHeaders and ordering of
-   * MetricHeaders matches the metrics present in rows.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 1; - */ - 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.v1alpha.MetricHeader metric_headers = 1; - */ - com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersOrBuilder(int index); - - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 2; - */ - java.util.List getRowsList(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 2; - */ - com.google.analytics.data.v1alpha.Row getRows(int index); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 2; - */ - int getRowsCount(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 2; - */ - java.util.List getRowsOrBuilderList(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 2; - */ - com.google.analytics.data.v1alpha.RowOrBuilder getRowsOrBuilder(int index); - - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 8; - */ - java.util.List getTotalsList(); - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 8; - */ - com.google.analytics.data.v1alpha.Row getTotals(int index); - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 8; - */ - int getTotalsCount(); - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 8; - */ - java.util.List getTotalsOrBuilderList(); - /** - * - * - *
-   * If requested, the totaled values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row totals = 8; - */ - com.google.analytics.data.v1alpha.RowOrBuilder getTotalsOrBuilder(int index); - - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 9; - */ - java.util.List getMaximumsList(); - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 9; - */ - com.google.analytics.data.v1alpha.Row getMaximums(int index); - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 9; - */ - int getMaximumsCount(); - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 9; - */ - java.util.List - getMaximumsOrBuilderList(); - /** - * - * - *
-   * If requested, the maximum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row maximums = 9; - */ - com.google.analytics.data.v1alpha.RowOrBuilder getMaximumsOrBuilder(int index); - - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 10; - */ - java.util.List getMinimumsList(); - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 10; - */ - com.google.analytics.data.v1alpha.Row getMinimums(int index); - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 10; - */ - int getMinimumsCount(); - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 10; - */ - java.util.List - getMinimumsOrBuilderList(); - /** - * - * - *
-   * If requested, the minimum values of metrics.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row minimums = 10; - */ - com.google.analytics.data.v1alpha.RowOrBuilder getMinimumsOrBuilder(int index); - - /** - * - * - *
-   * The total number of rows in the query result, regardless of the number of
-   * rows returned in the response. For example if a query returns 175 rows and
-   * includes limit = 50 in the API request, the response will contain row_count
-   * = 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 = 12; - * - * @return The rowCount. - */ - int getRowCount(); - - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 6; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 6; - * - * @return The metadata. - */ - com.google.analytics.data.v1alpha.ResponseMetaData getMetadata(); - /** - * - * - *
-   * Metadata for the report.
-   * 
- * - * .google.analytics.data.v1alpha.ResponseMetaData metadata = 6; - */ - com.google.analytics.data.v1alpha.ResponseMetaDataOrBuilder getMetadataOrBuilder(); - - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 7; - * - * @return The propertyQuota. - */ - com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota(); - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 7; - */ - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto b/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto deleted file mode 100644 index 7f5f9f9b..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto +++ /dev/null @@ -1,477 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.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.v1alpha; - -import "google/analytics/data/v1alpha/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/v1alpha;data"; -option java_multiple_files = true; -option java_outer_classname = "AnalyticsDataApiProto"; -option java_package = "com.google.analytics.data.v1alpha"; - -// Google Analytics reporting data service. -service AlphaAnalyticsData { - 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: "/v1alpha: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: "/v1alpha:runPivotReport" - body: "*" - }; - } - - // Returns multiple reports in a batch. All reports must be for the same - // Entity. - rpc BatchRunReports(BatchRunReportsRequest) returns (BatchRunReportsResponse) { - option (google.api.http) = { - post: "/v1alpha:batchRunReports" - body: "*" - }; - } - - // Returns multiple pivot reports in a batch. All reports must be for the same - // Entity. - rpc BatchRunPivotReports(BatchRunPivotReportsRequest) returns (BatchRunPivotReportsResponse) { - option (google.api.http) = { - post: "/v1alpha: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: "/v1alpha/{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: "/v1alpha/{property=properties/*}:runRealtimeReport" - body: "*" - }; - } -} - -// 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 property whose events are tracked. Within a batch request, this entity - // should either be unspecified or consistent with the batch-level entity. - Entity entity = 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; - - // The row count of the start row. The first row is counted as row 0. - // - // To learn more about this pagination parameter, see - // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - int64 offset = 5; - - // The number of rows to return. If unspecified, 10 rows are returned. If - // -1, all rows are returned. - // - // To learn more about this pagination parameter, see - // [Pagination](https://developers.google.com/analytics/devguides/reporting/data/v1/basics#pagination). - 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; - - // 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 = 8; - - // 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 = 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 entity'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 = 11; - - // Describes metric columns. The number of MetricHeaders and ordering of - // MetricHeaders matches the metrics present in rows. - repeated MetricHeader metric_headers = 1; - - // Rows of dimension value combinations and metric values in the report. - repeated Row rows = 2; - - // If requested, the totaled values of metrics. - repeated Row totals = 8; - - // If requested, the maximum values of metrics. - repeated Row maximums = 9; - - // If requested, the minimum values of metrics. - repeated Row minimums = 10; - - // The total number of rows in the query result, regardless of the number of - // rows returned in the response. For example if a query returns 175 rows and - // includes limit = 50 in the API request, the response will contain row_count - // = 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 = 12; - - // Metadata for the report. - ResponseMetaData metadata = 6; - - // This Analytics Property's quota state including this request. - PropertyQuota property_quota = 7; -} - -// The request to generate a pivot report. -message RunPivotReportRequest { - // A property whose events are tracked. Within a batch request, this entity - // should either be unspecified or consistent with the batch-level entity. - Entity entity = 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 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; - - // 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 = 6; - - // 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 = 7; - - // A currency code in ISO4217 format, such as "AED", "USD", "JPY". - // If the field is empty, the report uses the entity'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 = 7; - - // 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; - - // 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 = 4; - - // Metadata for the report. - ResponseMetaData metadata = 5; - - // This Analytics Property's quota state including this request. - PropertyQuota property_quota = 6; -} - -// The batch request containing multiple report requests. -message BatchRunReportsRequest { - // A property whose events are tracked. This entity must be specified for the - // batch. The entity within RunReportRequest may either be unspecified or - // consistent with this entity. - Entity entity = 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; -} - -// The batch request containing multiple pivot report requests. -message BatchRunPivotReportsRequest { - // A property whose events are tracked. This entity must be specified for the - // batch. The entity within RunPivotReportRequest may either be unspecified or - // consistent with this entity. - Entity entity = 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; -} - -// 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 number of rows to return. If unspecified, 10 rows are returned. If - // -1, all rows are returned. - int64 limit = 4; - - // 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 = 5; - - // 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 = 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 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, regardless of the number of - // rows returned in the response. For example if a query returns 175 rows and - // includes limit = 50 in the API request, the response will contain row_count - // = 175 but only 50 rows. - int32 row_count = 7; - - // This Analytics Property's Realtime quota state including this request. - PropertyQuota property_quota = 8; -} diff --git a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto b/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto deleted file mode 100644 index aafd1768..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto +++ /dev/null @@ -1,793 +0,0 @@ -// Copyright 2020 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// 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.v1alpha; - -option go_package = "google.golang.org/genproto/googleapis/analytics/data/v1alpha;data"; -option java_multiple_files = true; -option java_outer_classname = "ReportingApiProto"; -option java_package = "com.google.analytics.data.v1alpha"; - -// 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; -} - -// The unique identifier of the property whose events are tracked. -message Entity { - // A Google Analytics GA4 property id. To learn more, see [where to find your - // Property - // ID](https://developers.google.com/analytics/devguides/reporting/data/v1/property-id). - string property_id = 1; -} - -// 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 8 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. For example if a `dimensionExpression` concatenates `country` - // and `city`, you could call that dimension `countryAndCity`. - // - // 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. - // For example if `expression` is `screenPageViews/sessions`, you could call - // that metric's name = `viewsPerSession`. - // - // 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 { - // A filter for null values. If True, a null dimension value is matched by - // this filter. Null filter is commonly used inside a NOT filter - // expression. For example, a NOT expression of a null filter removes rows - // when a dimension is null. - bool null_filter = 2; - - // 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 rows to return in this pivot. If unspecified, 10 rows are - // returned. If -1, all rows are returned. - int64 limit = 4; - - // Aggregate the metrics by dimensions in this pivot using the specified - // metric_aggregations. - repeated MetricAggregation metric_aggregations = 5; -} - -// Specification of cohorts for a cohort report. -// Cohort reports can be used for example to 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. -// -// 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 `firstTouchDate` -// 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 `firstTouchDate`. - 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; - } - - // 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; - - // `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 { - // 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 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 as if offset = 0 and limit = -1. 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 day; Analytics - // 360 Properties can use 50,000 tokens per day. 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; -} - -// 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; -} - -// Explains a metric. -message MetricMetadata { - // 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; -} - -// 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; -} 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 index a8d5c5f3..4099fcbb 100644 --- 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 @@ -27,6 +27,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_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 @@ -90,143 +98,163 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".proto\032\034google/api/annotations.proto\032\027go" + "ogle/api/client.proto\032\037google/api/field_" + "behavior.proto\032\031google/api/resource.prot" - + "o\"\350\001\n\010Metadata\022\014\n\004name\030\003 \001(\t\022C\n\ndimensio" - + "ns\030\001 \003(\0132/.google.analytics.data.v1beta." - + "DimensionMetadata\022=\n\007metrics\030\002 \003(\0132,.goo" - + "gle.analytics.data.v1beta.MetricMetadata" - + ":J\352AG\n%analyticsdata.googleapis.com/Meta" - + "data\022\036properties/{property}/metadata\"\234\005\n" - + "\020RunReportRequest\022\020\n\010property\030\001 \001(\t\022;\n\nd" - + "imensions\030\002 \003(\0132\'.google.analytics.data." - + "v1beta.Dimension\0225\n\007metrics\030\003 \003(\0132$.goog" - + "le.analytics.data.v1beta.Metric\022<\n\013date_" - + "ranges\030\004 \003(\0132\'.google.analytics.data.v1b" - + "eta.DateRange\022H\n\020dimension_filter\030\005 \001(\0132" - + "..google.analytics.data.v1beta.FilterExp" - + "ression\022E\n\rmetric_filter\030\006 \001(\0132..google." - + "analytics.data.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.da" - + "ta.v1beta.MetricAggregation\0228\n\torder_bys" - + "\030\n \003(\0132%.google.analytics.data.v1beta.Or" - + "derBy\022\025\n\rcurrency_code\030\013 \001(\t\022=\n\013cohort_s" - + "pec\030\014 \001(\0132(.google.analytics.data.v1beta" - + ".CohortSpec\022\027\n\017keep_empty_rows\030\r \001(\010\022\035\n\025" - + "return_property_quota\030\016 \001(\010\"\227\004\n\021RunRepor" - + "tResponse\022H\n\021dimension_headers\030\001 \003(\0132-.g" - + "oogle.analytics.data.v1beta.DimensionHea" - + "der\022B\n\016metric_headers\030\002 \003(\0132*.google.ana" - + "lytics.data.v1beta.MetricHeader\022/\n\004rows\030" - + "\003 \003(\0132!.google.analytics.data.v1beta.Row" - + "\0221\n\006totals\030\004 \003(\0132!.google.analytics.data" - + ".v1beta.Row\0223\n\010maximums\030\005 \003(\0132!.google.a" - + "nalytics.data.v1beta.Row\0223\n\010minimums\030\006 \003" - + "(\0132!.google.analytics.data.v1beta.Row\022\021\n" - + "\trow_count\030\007 \001(\005\022@\n\010metadata\030\010 \001(\0132..goo" - + "gle.analytics.data.v1beta.ResponseMetaDa" - + "ta\022C\n\016property_quota\030\t \001(\0132+.google.anal" - + "ytics.data.v1beta.PropertyQuota\022\014\n\004kind\030" - + "\n \001(\t\"\257\004\n\025RunPivotReportRequest\022\020\n\010prope" + + "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\022<\n\013date_ranges\030\004 \003(\0132\'.google.anal" - + "ytics.data.v1beta.DateRange\0223\n\006pivots\030\005 " - + "\003(\0132#.google.analytics.data.v1beta.Pivot" - + "\022H\n\020dimension_filter\030\006 \001(\0132..google.anal" + + "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\007 \001(\0132..google.analytics.dat" - + "a.v1beta.FilterExpression\022\025\n\rcurrency_co" - + "de\030\010 \001(\t\022=\n\013cohort_spec\030\t \001(\0132(.google.a" - + "nalytics.data.v1beta.CohortSpec\022\027\n\017keep_" - + "empty_rows\030\n \001(\010\022\035\n\025return_property_quot" - + "a\030\013 \001(\010\"\345\003\n\026RunPivotReportResponse\022@\n\rpi" - + "vot_headers\030\001 \003(\0132).google.analytics.dat" - + "a.v1beta.PivotHeader\022H\n\021dimension_header" - + "s\030\002 \003(\0132-.google.analytics.data.v1beta.D" - + "imensionHeader\022B\n\016metric_headers\030\003 \003(\0132*" - + ".google.analytics.data.v1beta.MetricHead" - + "er\022/\n\004rows\030\004 \003(\0132!.google.analytics.data" - + ".v1beta.Row\0225\n\naggregates\030\005 \003(\0132!.google" - + ".analytics.data.v1beta.Row\022@\n\010metadata\030\006" - + " \001(\0132..google.analytics.data.v1beta.Resp" - + "onseMetaData\022C\n\016property_quota\030\007 \001(\0132+.g" - + "oogle.analytics.data.v1beta.PropertyQuot" - + "a\022\014\n\004kind\030\010 \001(\t\"l\n\026BatchRunReportsReques" - + "t\022\020\n\010property\030\001 \001(\t\022@\n\010requests\030\002 \003(\0132.." - + "google.analytics.data.v1beta.RunReportRe" - + "quest\"i\n\027BatchRunReportsResponse\022@\n\007repo" - + "rts\030\001 \003(\0132/.google.analytics.data.v1beta" - + ".RunReportResponse\022\014\n\004kind\030\002 \001(\t\"v\n\033Batc" - + "hRunPivotReportsRequest\022\020\n\010property\030\001 \001(" - + "\t\022E\n\010requests\030\002 \003(\01323.google.analytics.d" - + "ata.v1beta.RunPivotReportRequest\"y\n\034Batc" - + "hRunPivotReportsResponse\022K\n\rpivot_report" - + "s\030\001 \003(\01324.google.analytics.data.v1beta.R" - + "unPivotReportResponse\022\014\n\004kind\030\002 \001(\t\"Q\n\022G" - + "etMetadataRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n" - + "%analyticsdata.googleapis.com/Metadata\"\251" - + "\004\n\030RunRealtimeReportRequest\022\020\n\010property\030" - + "\001 \001(\t\022;\n\ndimensions\030\002 \003(\0132\'.google.analy" - + "tics.data.v1beta.Dimension\0225\n\007metrics\030\003 " - + "\003(\0132$.google.analytics.data.v1beta.Metri" - + "c\022H\n\020dimension_filter\030\004 \001(\0132..google.ana" - + "lytics.data.v1beta.FilterExpression\022E\n\rm" - + "etric_filter\030\005 \001(\0132..google.analytics.da" - + "ta.v1beta.FilterExpression\022\r\n\005limit\030\006 \001(" - + "\003\022L\n\023metric_aggregations\030\007 \003(\0162/.google." - + "analytics.data.v1beta.MetricAggregation\022" - + "8\n\torder_bys\030\010 \003(\0132%.google.analytics.da" - + "ta.v1beta.OrderBy\022\035\n\025return_property_quo" - + "ta\030\t \001(\010\022@\n\rminute_ranges\030\n \003(\0132).google" - + ".analytics.data.v1beta.MinuteRange\"\335\003\n\031R" - + "unRealtimeReportResponse\022H\n\021dimension_he" - + "aders\030\001 \003(\0132-.google.analytics.data.v1be" - + "ta.DimensionHeader\022B\n\016metric_headers\030\002 \003" - + "(\0132*.google.analytics.data.v1beta.Metric" - + "Header\022/\n\004rows\030\003 \003(\0132!.google.analytics." - + "data.v1beta.Row\0221\n\006totals\030\004 \003(\0132!.google" - + ".analytics.data.v1beta.Row\0223\n\010maximums\030\005" + + "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" - + "3\n\010minimums\030\006 \003(\0132!.google.analytics.dat" - + "a.v1beta.Row\022\021\n\trow_count\030\007 \001(\005\022C\n\016prope" - + "rty_quota\030\010 \001(\0132+.google.analytics.data." - + "v1beta.PropertyQuota\022\014\n\004kind\030\t \001(\t2\343\t\n\021B" - + "etaAnalyticsData\022\242\001\n\tRunReport\022..google." - + "analytics.data.v1beta.RunReportRequest\032/" - + ".google.analytics.data.v1beta.RunReportR" - + "esponse\"4\202\323\344\223\002.\")/v1beta/{property=prope" - + "rties/*}:runReport:\001*\022\266\001\n\016RunPivotReport" - + "\0223.google.analytics.data.v1beta.RunPivot" - + "ReportRequest\0324.google.analytics.data.v1" - + "beta.RunPivotReportResponse\"9\202\323\344\223\0023\"./v1" - + "beta/{property=properties/*}:runPivotRep" - + "ort:\001*\022\272\001\n\017BatchRunReports\0224.google.anal" - + "ytics.data.v1beta.BatchRunReportsRequest" - + "\0325.google.analytics.data.v1beta.BatchRun" - + "ReportsResponse\":\202\323\344\223\0024\"//v1beta/{proper" - + "ty=properties/*}:batchRunReports:\001*\022\316\001\n\024" - + "BatchRunPivotReports\0229.google.analytics." - + "data.v1beta.BatchRunPivotReportsRequest\032" - + ":.google.analytics.data.v1beta.BatchRunP" - + "ivotReportsResponse\"?\202\323\344\223\0029\"4/v1beta/{pr" - + "operty=properties/*}:batchRunPivotReport" - + "s:\001*\022\234\001\n\013GetMetadata\0220.google.analytics." - + "data.v1beta.GetMetadataRequest\032&.google." - + "analytics.data.v1beta.Metadata\"3\202\323\344\223\002&\022$" - + "/v1beta/{name=properties/*/metadata}\332A\004n" - + "ame\022\302\001\n\021RunRealtimeReport\0226.google.analy" - + "tics.data.v1beta.RunRealtimeReportReques" - + "t\0327.google.analytics.data.v1beta.RunReal" - + "timeReportResponse\"<\202\323\344\223\0026\"1/v1beta/{pro" - + "perty=properties/*}:runRealtimeReport:\001*" - + "\032~\312A\034analyticsdata.googleapis.com\322A\\http" - + "s://www.googleapis.com/auth/analytics,ht" - + "tps://www.googleapis.com/auth/analytics." - + "readonlyB}\n com.google.analytics.data.v1" - + "betaB\025AnalyticsDataApiProtoP\001Z@google.go" - + "lang.org/genproto/googleapis/analytics/d" - + "ata/v1beta;datab\006proto3" + + "\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( @@ -238,8 +266,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), }); - internal_static_google_analytics_data_v1beta_Metadata_descriptor = + 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, @@ -247,7 +296,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Dimensions", "Metrics", }); internal_static_google_analytics_data_v1beta_RunReportRequest_descriptor = - getDescriptor().getMessageTypes().get(1); + 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, @@ -268,7 +317,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReturnPropertyQuota", }); internal_static_google_analytics_data_v1beta_RunReportResponse_descriptor = - getDescriptor().getMessageTypes().get(2); + 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, @@ -285,7 +334,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Kind", }); internal_static_google_analytics_data_v1beta_RunPivotReportRequest_descriptor = - getDescriptor().getMessageTypes().get(3); + 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, @@ -303,7 +352,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReturnPropertyQuota", }); internal_static_google_analytics_data_v1beta_RunPivotReportResponse_descriptor = - getDescriptor().getMessageTypes().get(4); + 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, @@ -318,7 +367,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Kind", }); internal_static_google_analytics_data_v1beta_BatchRunReportsRequest_descriptor = - getDescriptor().getMessageTypes().get(5); + 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, @@ -326,7 +375,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", "Requests", }); internal_static_google_analytics_data_v1beta_BatchRunReportsResponse_descriptor = - getDescriptor().getMessageTypes().get(6); + 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, @@ -334,7 +383,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Reports", "Kind", }); internal_static_google_analytics_data_v1beta_BatchRunPivotReportsRequest_descriptor = - getDescriptor().getMessageTypes().get(7); + 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, @@ -342,7 +391,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Property", "Requests", }); internal_static_google_analytics_data_v1beta_BatchRunPivotReportsResponse_descriptor = - getDescriptor().getMessageTypes().get(8); + 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, @@ -350,7 +399,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PivotReports", "Kind", }); internal_static_google_analytics_data_v1beta_GetMetadataRequest_descriptor = - getDescriptor().getMessageTypes().get(9); + 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, @@ -358,7 +407,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_data_v1beta_RunRealtimeReportRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + 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, @@ -375,7 +424,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MinuteRanges", }); internal_static_google_analytics_data_v1beta_RunRealtimeReportResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + 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, 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 new file mode 100644 index 00000000..0b1729f1 --- /dev/null +++ b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequest.java @@ -0,0 +1,2467 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 (!getPropertyBytes().isEmpty()) { + 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 (!getPropertyBytes().isEmpty()) { + 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 new file mode 100644 index 00000000..fcce7901 --- /dev/null +++ b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequestOrBuilder.java @@ -0,0 +1,283 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 00000000..d4bdc8c6 --- /dev/null +++ b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityResponse.java @@ -0,0 +1,1561 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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 new file mode 100644 index 00000000..820ea15c --- /dev/null +++ b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityResponseOrBuilder.java @@ -0,0 +1,148 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricAggregation.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Compatibility.java similarity index 53% rename from proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricAggregation.java rename to proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Compatibility.java index ea43dff7..f60a7ea8 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricAggregation.java +++ b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Compatibility.java @@ -14,70 +14,52 @@ * limitations under the License. */ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto +// source: google/analytics/data/v1beta/data.proto -package com.google.analytics.data.v1alpha; +package com.google.analytics.data.v1beta; /** * * *
- * Represents aggregation of metrics.
+ * The compatibility types for a single dimension or metric.
  * 
* - * Protobuf enum {@code google.analytics.data.v1alpha.MetricAggregation} + * Protobuf enum {@code google.analytics.data.v1beta.Compatibility} */ -public enum MetricAggregation implements com.google.protobuf.ProtocolMessageEnum { +public enum Compatibility implements com.google.protobuf.ProtocolMessageEnum { /** * * *
-   * Unspecified operator.
+   * Unspecified compatibility.
    * 
* - * METRIC_AGGREGATION_UNSPECIFIED = 0; + * COMPATIBILITY_UNSPECIFIED = 0; */ - METRIC_AGGREGATION_UNSPECIFIED(0), + COMPATIBILITY_UNSPECIFIED(0), /** * * *
-   * SUM operator.
+   * The dimension or metric is compatible. This dimension or metric can be
+   * successfully added to a report.
    * 
* - * TOTAL = 1; + * COMPATIBLE = 1; */ - TOTAL(1), + COMPATIBLE(1), /** * * *
-   * Minimum operator.
+   * The dimension or metric is incompatible. This dimension or metric cannot be
+   * successfully added to a report.
    * 
* - * MINIMUM = 5; + * INCOMPATIBLE = 2; */ - MINIMUM(5), - /** - * - * - *
-   * Maximum operator.
-   * 
- * - * MAXIMUM = 6; - */ - MAXIMUM(6), - /** - * - * - *
-   * Count operator.
-   * 
- * - * COUNT = 4; - */ - COUNT(4), + INCOMPATIBLE(2), UNRECOGNIZED(-1), ; @@ -85,52 +67,34 @@ public enum MetricAggregation implements com.google.protobuf.ProtocolMessageEnum * * *
-   * 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.
+   * Unspecified compatibility.
    * 
* - * MINIMUM = 5; + * COMPATIBILITY_UNSPECIFIED = 0; */ - public static final int MINIMUM_VALUE = 5; + public static final int COMPATIBILITY_UNSPECIFIED_VALUE = 0; /** * * *
-   * Maximum operator.
+   * The dimension or metric is compatible. This dimension or metric can be
+   * successfully added to a report.
    * 
* - * MAXIMUM = 6; + * COMPATIBLE = 1; */ - public static final int MAXIMUM_VALUE = 6; + public static final int COMPATIBLE_VALUE = 1; /** * * *
-   * Count operator.
+   * The dimension or metric is incompatible. This dimension or metric cannot be
+   * successfully added to a report.
    * 
* - * COUNT = 4; + * INCOMPATIBLE = 2; */ - public static final int COUNT_VALUE = 4; + public static final int INCOMPATIBLE_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -146,7 +110,7 @@ public final int getNumber() { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static MetricAggregation valueOf(int value) { + public static Compatibility valueOf(int value) { return forNumber(value); } @@ -154,34 +118,29 @@ public static MetricAggregation valueOf(int 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) { + public static Compatibility forNumber(int value) { switch (value) { case 0: - return METRIC_AGGREGATION_UNSPECIFIED; + return COMPATIBILITY_UNSPECIFIED; case 1: - return TOTAL; - case 5: - return MINIMUM; - case 6: - return MAXIMUM; - case 4: - return COUNT; + return COMPATIBLE; + case 2: + return INCOMPATIBLE; default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + 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); - } - }; + 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) { @@ -196,15 +155,12 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor() - .getEnumTypes() - .get(0); + return com.google.analytics.data.v1beta.ReportingApiProto.getDescriptor().getEnumTypes().get(2); } - private static final MetricAggregation[] VALUES = values(); + private static final Compatibility[] VALUES = values(); - public static MetricAggregation valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + 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."); } @@ -216,9 +172,9 @@ public static MetricAggregation valueOf( private final int value; - private MetricAggregation(int value) { + private Compatibility(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.MetricAggregation) + // @@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/DimensionCompatibility.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionCompatibility.java new file mode 100644 index 00000000..19dd191f --- /dev/null +++ b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionCompatibility.java @@ -0,0 +1,978 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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 new file mode 100644 index 00000000..71cddb17 --- /dev/null +++ b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionCompatibilityOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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/DimensionMetadata.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionMetadata.java index 197014d0..bdaafe63 100644 --- 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 @@ -42,6 +42,7 @@ private DimensionMetadata() { uiName_ = ""; description_ = ""; deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; + category_ = ""; } @java.lang.Override @@ -110,6 +111,13 @@ private DimensionMetadata( customDefinition_ = input.readBool(); break; } + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + + category_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -389,6 +397,57 @@ 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 @@ -418,6 +477,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (customDefinition_ != false) { output.writeBool(5, customDefinition_); } + if (!getCategoryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, category_); + } unknownFields.writeTo(output); } @@ -447,6 +509,9 @@ public int getSerializedSize() { if (customDefinition_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, customDefinition_); } + if (!getCategoryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, category_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -468,6 +533,7 @@ public boolean equals(final java.lang.Object obj) { 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; } @@ -491,6 +557,8 @@ public int 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; @@ -646,6 +714,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000001); customDefinition_ = false; + category_ = ""; + return this; } @@ -683,6 +753,7 @@ public com.google.analytics.data.v1beta.DimensionMetadata buildPartial() { } result.deprecatedApiNames_ = deprecatedApiNames_; result.customDefinition_ = customDefinition_; + result.category_ = category_; onBuilt(); return result; } @@ -758,6 +829,10 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.DimensionMetadata othe if (other.getCustomDefinition() != false) { setCustomDefinition(other.getCustomDefinition()); } + if (!other.getCategory().isEmpty()) { + category_ = other.category_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1365,6 +1440,117 @@ public Builder clearCustomDefinition() { 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); 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 index a3aaba90..eeecb63d 100644 --- 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 @@ -177,4 +177,31 @@ public interface DimensionMetadataOrBuilder * @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/MetricCompatibility.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricCompatibility.java new file mode 100644 index 00000000..b867d025 --- /dev/null +++ b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricCompatibility.java @@ -0,0 +1,972 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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.
+     * 
+ * + * .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 new file mode 100644 index 00000000..9a4b0fd8 --- /dev/null +++ b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricCompatibilityOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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.
+   * 
+ * + * .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/MetricMetadata.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricMetadata.java index 34cf0483..49cac8b1 100644 --- 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 @@ -44,6 +44,7 @@ private MetricMetadata() { deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; type_ = 0; expression_ = ""; + category_ = ""; } @java.lang.Override @@ -126,6 +127,13 @@ private MetricMetadata( customDefinition_ = input.readBool(); break; } + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + + category_ = s; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -494,6 +502,57 @@ public boolean getCustomDefinition() { return customDefinition_; } + 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 @@ -529,6 +588,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (customDefinition_ != false) { output.writeBool(7, customDefinition_); } + if (!getCategoryBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, category_); + } unknownFields.writeTo(output); } @@ -564,6 +626,9 @@ public int getSerializedSize() { if (customDefinition_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, customDefinition_); } + if (!getCategoryBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, category_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -587,6 +652,7 @@ public boolean equals(final java.lang.Object obj) { if (type_ != other.type_) return false; if (!getExpression().equals(other.getExpression())) return false; if (getCustomDefinition() != other.getCustomDefinition()) return false; + if (!getCategory().equals(other.getCategory())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -614,6 +680,8 @@ public int hashCode() { hash = (53 * hash) + getExpression().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; @@ -773,6 +841,8 @@ public Builder clear() { customDefinition_ = false; + category_ = ""; + return this; } @@ -812,6 +882,7 @@ public com.google.analytics.data.v1beta.MetricMetadata buildPartial() { result.type_ = type_; result.expression_ = expression_; result.customDefinition_ = customDefinition_; + result.category_ = category_; onBuilt(); return result; } @@ -894,6 +965,10 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.MetricMetadata other) if (other.getCustomDefinition() != false) { setCustomDefinition(other.getCustomDefinition()); } + if (!other.getCategory().isEmpty()) { + category_ = other.category_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1707,6 +1782,117 @@ public Builder clearCustomDefinition() { 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); 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 index 83bc4604..5828a0f3 100644 --- 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 @@ -231,4 +231,31 @@ public interface MetricMetadataOrBuilder * @return The customDefinition. */ boolean getCustomDefinition(); + + /** + * + * + *
+   * 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/ReportingApiProto.java b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ReportingApiProto.java index 633ef547..efbfb403 100644 --- 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 @@ -175,6 +175,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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; @@ -310,28 +318,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "otentially_thresholded_requests_per_hour" + "\030\005 \001(\0132).google.analytics.data.v1beta.Qu" + "otaStatus\"2\n\013QuotaStatus\022\020\n\010consumed\030\001 \001" - + "(\005\022\021\n\tremaining\030\002 \001(\005\"\204\001\n\021DimensionMetad" + + "(\005\022\021\n\tremaining\030\002 \001(\005\"\226\001\n\021DimensionMetad" + "ata\022\020\n\010api_name\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_na" - + "mes\030\004 \003(\t\022\031\n\021custom_definition\030\005 \001(\010\"\315\001\n" - + "\016MetricMetadata\022\020\n\010api_name\030\001 \001(\t\022\017\n\007ui_" - + "name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\034\n\024depre" - + "cated_api_names\030\004 \003(\t\0226\n\004type\030\005 \001(\0162(.go" - + "ogle.analytics.data.v1beta.MetricType\022\022\n" - + "\nexpression\030\006 \001(\t\022\031\n\021custom_definition\030\007" - + " \001(\010*g\n\021MetricAggregation\022\"\n\036METRIC_AGGR" - + "EGATION_UNSPECIFIED\020\000\022\t\n\005TOTAL\020\001\022\013\n\007MINI" - + "MUM\020\005\022\013\n\007MAXIMUM\020\006\022\t\n\005COUNT\020\004*\201\002\n\nMetric" - + "Type\022\033\n\027METRIC_TYPE_UNSPECIFIED\020\000\022\020\n\014TYP" - + "E_INTEGER\020\001\022\016\n\nTYPE_FLOAT\020\002\022\020\n\014TYPE_SECO" - + "NDS\020\004\022\025\n\021TYPE_MILLISECONDS\020\005\022\020\n\014TYPE_MIN" - + "UTES\020\006\022\016\n\nTYPE_HOURS\020\007\022\021\n\rTYPE_STANDARD\020" - + "\010\022\021\n\rTYPE_CURRENCY\020\t\022\r\n\tTYPE_FEET\020\n\022\016\n\nT" - + "YPE_MILES\020\013\022\017\n\013TYPE_METERS\020\014\022\023\n\017TYPE_KIL" - + "OMETERS\020\rBy\n com.google.analytics.data.v" - + "1betaB\021ReportingApiProtoP\001Z@google.golan" - + "g.org/genproto/googleapis/analytics/data" - + "/v1beta;datab\006proto3" + + "mes\030\004 \003(\t\022\031\n\021custom_definition\030\005 \001(\010\022\020\n\010" + + "category\030\007 \001(\t\"\337\001\n\016MetricMetadata\022\020\n\010api" + + "_name\030\001 \001(\t\022\017\n\007ui_name\030\002 \001(\t\022\023\n\013descript" + + "ion\030\003 \001(\t\022\034\n\024deprecated_api_names\030\004 \003(\t\022" + + "6\n\004type\030\005 \001(\0162(.google.analytics.data.v1" + + "beta.MetricType\022\022\n\nexpression\030\006 \001(\t\022\031\n\021c" + + "ustom_definition\030\007 \001(\010\022\020\n\010category\030\n \001(\t" + + "\"\334\001\n\026DimensionCompatibility\022P\n\022dimension" + + "_metadata\030\001 \001(\0132/.google.analytics.data." + + "v1beta.DimensionMetadataH\000\210\001\001\022G\n\rcompati" + + "bility\030\002 \001(\0162+.google.analytics.data.v1b" + + "eta.CompatibilityH\001\210\001\001B\025\n\023_dimension_met" + + "adataB\020\n\016_compatibility\"\320\001\n\023MetricCompat" + + "ibility\022J\n\017metric_metadata\030\001 \001(\0132,.googl" + + "e.analytics.data.v1beta.MetricMetadataH\000" + + "\210\001\001\022G\n\rcompatibility\030\002 \001(\0162+.google.anal" + + "ytics.data.v1beta.CompatibilityH\001\210\001\001B\022\n\020" + + "_metric_metadataB\020\n\016_compatibility*g\n\021Me" + + "tricAggregation\022\"\n\036METRIC_AGGREGATION_UN" + + "SPECIFIED\020\000\022\t\n\005TOTAL\020\001\022\013\n\007MINIMUM\020\005\022\013\n\007M" + + "AXIMUM\020\006\022\t\n\005COUNT\020\004*\201\002\n\nMetricType\022\033\n\027ME" + + "TRIC_TYPE_UNSPECIFIED\020\000\022\020\n\014TYPE_INTEGER\020" + + "\001\022\016\n\nTYPE_FLOAT\020\002\022\020\n\014TYPE_SECONDS\020\004\022\025\n\021T" + + "YPE_MILLISECONDS\020\005\022\020\n\014TYPE_MINUTES\020\006\022\016\n\n" + + "TYPE_HOURS\020\007\022\021\n\rTYPE_STANDARD\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\017TYPE_KILOMETERS\020\r*" + + "P\n\rCompatibility\022\035\n\031COMPATIBILITY_UNSPEC" + + "IFIED\020\000\022\016\n\nCOMPATIBLE\020\001\022\020\n\014INCOMPATIBLE\020" + + "\002By\n com.google.analytics.data.v1betaB\021R" + + "eportingApiProtoP\001Z@google.golang.org/ge" + + "nproto/googleapis/analytics/data/v1beta;" + + "datab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -637,7 +659,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1beta_DimensionMetadata_descriptor, new java.lang.String[] { - "ApiName", "UiName", "Description", "DeprecatedApiNames", "CustomDefinition", + "ApiName", + "UiName", + "Description", + "DeprecatedApiNames", + "CustomDefinition", + "Category", }); internal_static_google_analytics_data_v1beta_MetricMetadata_descriptor = getDescriptor().getMessageTypes().get(26); @@ -652,6 +679,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", "Expression", "CustomDefinition", + "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", }); } 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 index d7f71fee..f7c00738 100644 --- 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 @@ -573,8 +573,10 @@ public com.google.analytics.data.v1beta.DateRangeOrBuilder getDateRangesOrBuilde * * *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
+   * 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; @@ -589,8 +591,10 @@ public boolean hasDimensionFilter() { * * *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
+   * 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; @@ -607,8 +611,10 @@ public 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.
+   * 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; @@ -625,8 +631,7 @@ public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getDimensionFi * *
    * 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.
+   * SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -642,8 +647,7 @@ public 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.
+   * SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -661,8 +665,7 @@ public 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.
+   * SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3047,8 +3050,10 @@ public com.google.analytics.data.v1beta.DateRange.Builder addDateRangesBuilder(i * * *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
+     * 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; @@ -3062,8 +3067,10 @@ public boolean hasDimensionFilter() { * * *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
+     * 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; @@ -3083,8 +3090,10 @@ public 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.
+     * 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; @@ -3106,8 +3115,10 @@ public Builder setDimensionFilter(com.google.analytics.data.v1beta.FilterExpress * * *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
+     * 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; @@ -3127,8 +3138,10 @@ public Builder setDimensionFilter( * * *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
+     * 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; @@ -3154,8 +3167,10 @@ public Builder mergeDimensionFilter(com.google.analytics.data.v1beta.FilterExpre * * *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
+     * 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; @@ -3175,8 +3190,10 @@ public Builder clearDimensionFilter() { * * *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
+     * 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; @@ -3190,8 +3207,10 @@ public com.google.analytics.data.v1beta.FilterExpression.Builder getDimensionFil * * *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
+     * 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; @@ -3210,8 +3229,10 @@ public com.google.analytics.data.v1beta.FilterExpression.Builder getDimensionFil * * *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
+     * 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; @@ -3244,8 +3265,7 @@ public com.google.analytics.data.v1beta.FilterExpression.Builder getDimensionFil * *
      * 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3260,8 +3280,7 @@ public 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3282,8 +3301,7 @@ public 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3306,8 +3324,7 @@ public Builder setMetricFilter(com.google.analytics.data.v1beta.FilterExpression * *
      * 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3328,8 +3345,7 @@ public Builder setMetricFilter( * *
      * 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3356,8 +3372,7 @@ public Builder mergeMetricFilter(com.google.analytics.data.v1beta.FilterExpressi * *
      * 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3378,8 +3393,7 @@ public Builder clearMetricFilter() { * *
      * 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3394,8 +3408,7 @@ public com.google.analytics.data.v1beta.FilterExpression.Builder 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3414,8 +3427,7 @@ public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getMetricFilte * *
      * 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; 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 index 71d26bca..8453277c 100644 --- 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 @@ -240,8 +240,10 @@ public interface RunReportRequestOrBuilder * * *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
+   * 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; @@ -253,8 +255,10 @@ public interface RunReportRequestOrBuilder * * *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
+   * 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; @@ -266,8 +270,10 @@ public interface RunReportRequestOrBuilder * * *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
+   * 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; @@ -279,8 +285,7 @@ public interface RunReportRequestOrBuilder * *
    * 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.
+   * SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -293,8 +298,7 @@ public interface RunReportRequestOrBuilder * *
    * 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.
+   * SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -307,8 +311,7 @@ public interface RunReportRequestOrBuilder * *
    * 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.
+   * SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; 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 index e7a203af..b32577e7 100644 --- 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 @@ -104,6 +104,71 @@ service BetaAnalyticsData { 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. @@ -148,13 +213,14 @@ message RunReportRequest { // must be unspecified. repeated DateRange date_ranges = 4; - // The filter clause of dimensions. Dimensions must be requested to be used in - // this filter. Metrics cannot be used in this filter. + // 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. Metrics must be requested to be used in this filter. - // Dimensions cannot be used in this filter. + // 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. 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 index 202eb1c3..fdc95c46 100644 --- 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 @@ -736,6 +736,10 @@ message DimensionMetadata { // 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. @@ -767,6 +771,34 @@ message MetricMetadata { // True if the metric is a custom metric for this property. bool custom_definition = 7; + + // 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. @@ -828,3 +860,17 @@ enum MetricType { // A length in kilometers; a special floating point type. TYPE_KILOMETERS = 13; } + +// 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/versions.txt b/versions.txt index a3e2b483..51397811 100644 --- a/versions.txt +++ b/versions.txt @@ -2,7 +2,5 @@ # module:released-version:current-version google-analytics-data:0.10.2:0.10.3-SNAPSHOT -grpc-google-analytics-data-v1alpha:0.10.2:0.10.3-SNAPSHOT grpc-google-analytics-data-v1beta:0.10.2:0.10.3-SNAPSHOT -proto-google-analytics-data-v1alpha:0.10.2:0.10.3-SNAPSHOT proto-google-analytics-data-v1beta:0.10.2:0.10.3-SNAPSHOT From 01e462d38b387b6e09fb7c96bc561d1e5c1a3b3d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 3 Nov 2021 01:44:14 +0000 Subject: [PATCH 010/225] chore(ruby): Re-enable bigquery-storage-v1 generation, which also required updating protobuf from 3.15.3 to 3.18.1 for codegen (#350) - [x] Regenerate this pull request now. PiperOrigin-RevId: 403132955 Source-Link: https://github.com/googleapis/googleapis/commit/d2977af9e9f1fc0c9dc8368352daa032471f3c63 Source-Link: https://github.com/googleapis/googleapis-gen/commit/99bb13c813c0e9c2682d03a8b3c3bcb382a909c9 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOTliYjEzYzgxM2MwZTljMjY4MmQwM2E4YjNjM2JjYjM4MmE5MDljOSJ9 --- .../v1beta/BatchRunPivotReportsRequest.java | 4 +- .../v1beta/BatchRunPivotReportsResponse.java | 4 +- .../data/v1beta/BatchRunReportsRequest.java | 4 +- .../data/v1beta/BatchRunReportsResponse.java | 4 +- .../v1beta/CheckCompatibilityRequest.java | 4 +- .../google/analytics/data/v1beta/Cohort.java | 8 ++-- .../analytics/data/v1beta/DateRange.java | 12 +++--- .../analytics/data/v1beta/Dimension.java | 4 +- .../data/v1beta/DimensionCompatibility.java | 42 +++++++++---------- .../DimensionCompatibilityOrBuilder.java | 12 +++--- .../data/v1beta/DimensionExpression.java | 8 ++-- .../data/v1beta/DimensionHeader.java | 4 +- .../data/v1beta/DimensionMetadata.java | 16 +++---- .../google/analytics/data/v1beta/Filter.java | 8 ++-- .../data/v1beta/GetMetadataRequest.java | 4 +- .../analytics/data/v1beta/Metadata.java | 4 +- .../google/analytics/data/v1beta/Metric.java | 8 ++-- .../data/v1beta/MetricCompatibility.java | 42 +++++++++---------- .../v1beta/MetricCompatibilityOrBuilder.java | 12 +++--- .../analytics/data/v1beta/MetricHeader.java | 4 +- .../analytics/data/v1beta/MetricMetadata.java | 20 ++++----- .../analytics/data/v1beta/MinuteRange.java | 28 ++++++------- .../data/v1beta/MinuteRangeOrBuilder.java | 8 ++-- .../google/analytics/data/v1beta/OrderBy.java | 20 ++++----- .../data/v1beta/RunPivotReportRequest.java | 8 ++-- .../data/v1beta/RunPivotReportResponse.java | 4 +- .../data/v1beta/RunRealtimeReportRequest.java | 4 +- .../v1beta/RunRealtimeReportResponse.java | 4 +- .../data/v1beta/RunReportRequest.java | 8 ++-- .../data/v1beta/RunReportResponse.java | 4 +- 30 files changed, 158 insertions(+), 158 deletions(-) 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 index fd3e5ae2..893069af 100644 --- 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 @@ -282,7 +282,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getPropertyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); } for (int i = 0; i < requests_.size(); i++) { @@ -297,7 +297,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getPropertyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); } for (int i = 0; i < requests_.size(); i++) { 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 index 660701e0..dad592ab 100644 --- 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 @@ -271,7 +271,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < pivotReports_.size(); i++) { output.writeMessage(1, pivotReports_.get(i)); } - if (!getKindBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_); } unknownFields.writeTo(output); @@ -286,7 +286,7 @@ public int getSerializedSize() { for (int i = 0; i < pivotReports_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, pivotReports_.get(i)); } - if (!getKindBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kind_); } size += unknownFields.getSerializedSize(); 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 index afe702f1..bb6c60c9 100644 --- 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 @@ -281,7 +281,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getPropertyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); } for (int i = 0; i < requests_.size(); i++) { @@ -296,7 +296,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getPropertyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); } for (int i = 0; i < requests_.size(); i++) { 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 index ae433bfd..53855a60 100644 --- 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 @@ -269,7 +269,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < reports_.size(); i++) { output.writeMessage(1, reports_.get(i)); } - if (!getKindBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_); } unknownFields.writeTo(output); @@ -284,7 +284,7 @@ public int getSerializedSize() { for (int i = 0; i < reports_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, reports_.get(i)); } - if (!getKindBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kind_); } size += unknownFields.getSerializedSize(); 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 index 0b1729f1..d76d84c4 100644 --- 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 @@ -554,7 +554,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getPropertyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); } for (int i = 0; i < dimensions_.size(); i++) { @@ -582,7 +582,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getPropertyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); } for (int i = 0; i < dimensions_.size(); i++) { 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 index 47ce0c7f..cfbf8c85 100644 --- 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 @@ -344,10 +344,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDimensionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimension_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dimension_); } if (dateRange_ != null) { @@ -362,10 +362,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDimensionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimension_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dimension_); } if (dateRange_ != null) { 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 index 09368707..ae0a3ce8 100644 --- 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 @@ -307,13 +307,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getStartDateBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, startDate_); } - if (!getEndDateBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, endDate_); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } unknownFields.writeTo(output); @@ -325,13 +325,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getStartDateBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(startDate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, startDate_); } - if (!getEndDateBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(endDate_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, endDate_); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } size += unknownFields.getSerializedSize(); 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 index 92b8deba..2c1d2cfc 100644 --- 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 @@ -264,7 +264,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (dimensionExpression_ != null) { @@ -279,7 +279,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (dimensionExpression_ != null) { 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 index 19dd191f..bfe2a8d6 100644 --- 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 @@ -141,7 +141,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * like the UI name and description. * * - * .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; * * @return Whether the dimensionMetadata field is set. */ @@ -158,7 +158,7 @@ public boolean hasDimensionMetadata() { * like the UI name and description. * * - * .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; * * @return The dimensionMetadata. */ @@ -177,7 +177,7 @@ public com.google.analytics.data.v1beta.DimensionMetadata getDimensionMetadata() * like the UI name and description. * * - * .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; */ @java.lang.Override public com.google.analytics.data.v1beta.DimensionMetadataOrBuilder @@ -197,7 +197,7 @@ public com.google.analytics.data.v1beta.DimensionMetadata getDimensionMetadata() * this dimension can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return Whether the compatibility field is set. */ @@ -213,7 +213,7 @@ public boolean hasCompatibility() { * this dimension can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return The enum numeric value on the wire for compatibility. */ @@ -229,7 +229,7 @@ public int getCompatibilityValue() { * this dimension can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return The compatibility. */ @@ -620,7 +620,7 @@ public Builder mergeFrom( * like the UI name and description. * * - * .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; * * @return Whether the dimensionMetadata field is set. */ @@ -636,7 +636,7 @@ public boolean hasDimensionMetadata() { * like the UI name and description. * * - * .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; * * @return The dimensionMetadata. */ @@ -658,7 +658,7 @@ public com.google.analytics.data.v1beta.DimensionMetadata getDimensionMetadata() * like the UI name and description. * * - * .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; */ public Builder setDimensionMetadata(com.google.analytics.data.v1beta.DimensionMetadata value) { if (dimensionMetadataBuilder_ == null) { @@ -682,7 +682,7 @@ public Builder setDimensionMetadata(com.google.analytics.data.v1beta.DimensionMe * like the UI name and description. * * - * .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; */ public Builder setDimensionMetadata( com.google.analytics.data.v1beta.DimensionMetadata.Builder builderForValue) { @@ -704,7 +704,7 @@ public Builder setDimensionMetadata( * like the UI name and description. * * - * .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; */ public Builder mergeDimensionMetadata( com.google.analytics.data.v1beta.DimensionMetadata value) { @@ -736,7 +736,7 @@ public Builder mergeDimensionMetadata( * like the UI name and description. * * - * .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; */ public Builder clearDimensionMetadata() { if (dimensionMetadataBuilder_ == null) { @@ -757,7 +757,7 @@ public Builder clearDimensionMetadata() { * like the UI name and description. * * - * .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; */ public com.google.analytics.data.v1beta.DimensionMetadata.Builder getDimensionMetadataBuilder() { @@ -774,7 +774,7 @@ public Builder clearDimensionMetadata() { * like the UI name and description. * * - * .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; */ public com.google.analytics.data.v1beta.DimensionMetadataOrBuilder getDimensionMetadataOrBuilder() { @@ -795,7 +795,7 @@ public Builder clearDimensionMetadata() { * like the UI name and description. * * - * .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.analytics.data.v1beta.DimensionMetadata, @@ -823,7 +823,7 @@ public Builder clearDimensionMetadata() { * this dimension can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return Whether the compatibility field is set. */ @@ -839,7 +839,7 @@ public boolean hasCompatibility() { * this dimension can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return The enum numeric value on the wire for compatibility. */ @@ -855,7 +855,7 @@ public int getCompatibilityValue() { * this dimension can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * 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. @@ -874,7 +874,7 @@ public Builder setCompatibilityValue(int value) { * this dimension can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return The compatibility. */ @@ -893,7 +893,7 @@ public com.google.analytics.data.v1beta.Compatibility getCompatibility() { * this dimension can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @param value The compatibility to set. * @return This builder for chaining. @@ -915,7 +915,7 @@ public Builder setCompatibility(com.google.analytics.data.v1beta.Compatibility v * this dimension can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return This builder for chaining. */ 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 index 71cddb17..e64c9caa 100644 --- 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 @@ -32,7 +32,7 @@ public interface DimensionCompatibilityOrBuilder * like the UI name and description. * * - * .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; * * @return Whether the dimensionMetadata field is set. */ @@ -46,7 +46,7 @@ public interface DimensionCompatibilityOrBuilder * like the UI name and description. * * - * .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; * * @return The dimensionMetadata. */ @@ -60,7 +60,7 @@ public interface DimensionCompatibilityOrBuilder * like the UI name and description. * * - * .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; + * optional .google.analytics.data.v1beta.DimensionMetadata dimension_metadata = 1; */ com.google.analytics.data.v1beta.DimensionMetadataOrBuilder getDimensionMetadataOrBuilder(); @@ -72,7 +72,7 @@ public interface DimensionCompatibilityOrBuilder * this dimension can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return Whether the compatibility field is set. */ @@ -85,7 +85,7 @@ public interface DimensionCompatibilityOrBuilder * this dimension can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return The enum numeric value on the wire for compatibility. */ @@ -98,7 +98,7 @@ public interface DimensionCompatibilityOrBuilder * this dimension can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return The compatibility. */ 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 index 2482d358..ee7cefb8 100644 --- 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 @@ -365,7 +365,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDimensionNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); } unknownFields.writeTo(output); @@ -377,7 +377,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDimensionNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_); } size += unknownFields.getSerializedSize(); @@ -1193,7 +1193,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < dimensionNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionNames_.getRaw(i)); } - if (!getDelimiterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delimiter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, delimiter_); } unknownFields.writeTo(output); @@ -1213,7 +1213,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getDimensionNamesList().size(); } - if (!getDelimiterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delimiter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, delimiter_); } size += unknownFields.getSerializedSize(); 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 index 7742a397..6b833e2e 100644 --- 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 @@ -177,7 +177,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -189,7 +189,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-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 index bdaafe63..f839aa91 100644 --- 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 @@ -462,13 +462,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getApiNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiName_); } - if (!getUiNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uiName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uiName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } for (int i = 0; i < deprecatedApiNames_.size(); i++) { @@ -477,7 +477,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (customDefinition_ != false) { output.writeBool(5, customDefinition_); } - if (!getCategoryBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, category_); } unknownFields.writeTo(output); @@ -489,13 +489,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getApiNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiName_); } - if (!getUiNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uiName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uiName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } { @@ -509,7 +509,7 @@ public int getSerializedSize() { if (customDefinition_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, customDefinition_); } - if (!getCategoryBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, category_); } size += unknownFields.getSerializedSize(); 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 index 41a6c038..ea691b3e 100644 --- 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 @@ -734,7 +734,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, matchType_); } - if (!getValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_); } if (caseSensitive_ != false) { @@ -754,7 +754,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, matchType_); } - if (!getValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(value_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_); } if (caseSensitive_ != false) { @@ -4845,7 +4845,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getFieldNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fieldName_); } if (oneFilterCase_ == 3) { @@ -4869,7 +4869,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getFieldNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); } if (oneFilterCase_ == 3) { 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 index 38fd6f02..ba989de0 100644 --- 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 @@ -194,7 +194,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -206,7 +206,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-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 index 985c611c..9aa44745 100644 --- 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 @@ -353,7 +353,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < metrics_.size(); i++) { output.writeMessage(2, metrics_.get(i)); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } unknownFields.writeTo(output); @@ -371,7 +371,7 @@ public int getSerializedSize() { for (int i = 0; i < metrics_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metrics_.get(i)); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } size += unknownFields.getSerializedSize(); 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 index 0c381ce2..bdfae98f 100644 --- 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 @@ -278,10 +278,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getExpressionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expression_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, expression_); } if (invisible_ != false) { @@ -296,10 +296,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getExpressionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expression_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, expression_); } if (invisible_ != false) { 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 index b867d025..730006c6 100644 --- 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 @@ -140,7 +140,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * like the UI name and description. * * - * .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; * * @return Whether the metricMetadata field is set. */ @@ -157,7 +157,7 @@ public boolean hasMetricMetadata() { * like the UI name and description. * * - * .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; * * @return The metricMetadata. */ @@ -176,7 +176,7 @@ public com.google.analytics.data.v1beta.MetricMetadata getMetricMetadata() { * like the UI name and description. * * - * .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; */ @java.lang.Override public com.google.analytics.data.v1beta.MetricMetadataOrBuilder getMetricMetadataOrBuilder() { @@ -195,7 +195,7 @@ public com.google.analytics.data.v1beta.MetricMetadataOrBuilder getMetricMetadat * this metric can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return Whether the compatibility field is set. */ @@ -211,7 +211,7 @@ public boolean hasCompatibility() { * this metric can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return The enum numeric value on the wire for compatibility. */ @@ -227,7 +227,7 @@ public int getCompatibilityValue() { * this metric can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return The compatibility. */ @@ -617,7 +617,7 @@ public Builder mergeFrom( * like the UI name and description. * * - * .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; * * @return Whether the metricMetadata field is set. */ @@ -633,7 +633,7 @@ public boolean hasMetricMetadata() { * like the UI name and description. * * - * .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; * * @return The metricMetadata. */ @@ -655,7 +655,7 @@ public com.google.analytics.data.v1beta.MetricMetadata getMetricMetadata() { * like the UI name and description. * * - * .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; */ public Builder setMetricMetadata(com.google.analytics.data.v1beta.MetricMetadata value) { if (metricMetadataBuilder_ == null) { @@ -679,7 +679,7 @@ public Builder setMetricMetadata(com.google.analytics.data.v1beta.MetricMetadata * like the UI name and description. * * - * .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; */ public Builder setMetricMetadata( com.google.analytics.data.v1beta.MetricMetadata.Builder builderForValue) { @@ -701,7 +701,7 @@ public Builder setMetricMetadata( * like the UI name and description. * * - * .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; */ public Builder mergeMetricMetadata(com.google.analytics.data.v1beta.MetricMetadata value) { if (metricMetadataBuilder_ == null) { @@ -732,7 +732,7 @@ public Builder mergeMetricMetadata(com.google.analytics.data.v1beta.MetricMetada * like the UI name and description. * * - * .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; */ public Builder clearMetricMetadata() { if (metricMetadataBuilder_ == null) { @@ -753,7 +753,7 @@ public Builder clearMetricMetadata() { * like the UI name and description. * * - * .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; */ public com.google.analytics.data.v1beta.MetricMetadata.Builder getMetricMetadataBuilder() { bitField0_ |= 0x00000001; @@ -769,7 +769,7 @@ public com.google.analytics.data.v1beta.MetricMetadata.Builder getMetricMetadata * like the UI name and description. * * - * .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; */ public com.google.analytics.data.v1beta.MetricMetadataOrBuilder getMetricMetadataOrBuilder() { if (metricMetadataBuilder_ != null) { @@ -789,7 +789,7 @@ public com.google.analytics.data.v1beta.MetricMetadataOrBuilder getMetricMetadat * like the UI name and description. * * - * .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.analytics.data.v1beta.MetricMetadata, @@ -817,7 +817,7 @@ public com.google.analytics.data.v1beta.MetricMetadataOrBuilder getMetricMetadat * this metric can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return Whether the compatibility field is set. */ @@ -833,7 +833,7 @@ public boolean hasCompatibility() { * this metric can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return The enum numeric value on the wire for compatibility. */ @@ -849,7 +849,7 @@ public int getCompatibilityValue() { * this metric can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * 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. @@ -868,7 +868,7 @@ public Builder setCompatibilityValue(int value) { * this metric can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return The compatibility. */ @@ -887,7 +887,7 @@ public com.google.analytics.data.v1beta.Compatibility getCompatibility() { * this metric can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @param value The compatibility to set. * @return This builder for chaining. @@ -909,7 +909,7 @@ public Builder setCompatibility(com.google.analytics.data.v1beta.Compatibility v * this metric can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return This builder for chaining. */ 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 index 9a4b0fd8..6c3ac155 100644 --- 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 @@ -32,7 +32,7 @@ public interface MetricCompatibilityOrBuilder * like the UI name and description. * * - * .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; * * @return Whether the metricMetadata field is set. */ @@ -46,7 +46,7 @@ public interface MetricCompatibilityOrBuilder * like the UI name and description. * * - * .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; * * @return The metricMetadata. */ @@ -60,7 +60,7 @@ public interface MetricCompatibilityOrBuilder * like the UI name and description. * * - * .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; + * optional .google.analytics.data.v1beta.MetricMetadata metric_metadata = 1; */ com.google.analytics.data.v1beta.MetricMetadataOrBuilder getMetricMetadataOrBuilder(); @@ -72,7 +72,7 @@ public interface MetricCompatibilityOrBuilder * this metric can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return Whether the compatibility field is set. */ @@ -85,7 +85,7 @@ public interface MetricCompatibilityOrBuilder * this metric can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return The enum numeric value on the wire for compatibility. */ @@ -98,7 +98,7 @@ public interface MetricCompatibilityOrBuilder * this metric can be successfully added to the report. * * - * .google.analytics.data.v1beta.Compatibility compatibility = 2; + * optional .google.analytics.data.v1beta.Compatibility compatibility = 2; * * @return The compatibility. */ 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 index a8feaad4..dbc42080 100644 --- 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 @@ -221,7 +221,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (type_ != com.google.analytics.data.v1beta.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { @@ -236,7 +236,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (type_ != com.google.analytics.data.v1beta.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { 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 index 49cac8b1..5e4efa3a 100644 --- 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 @@ -567,13 +567,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getApiNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, apiName_); } - if (!getUiNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uiName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, uiName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); } for (int i = 0; i < deprecatedApiNames_.size(); i++) { @@ -582,13 +582,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (type_ != com.google.analytics.data.v1beta.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(5, type_); } - if (!getExpressionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expression_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, expression_); } if (customDefinition_ != false) { output.writeBool(7, customDefinition_); } - if (!getCategoryBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, category_); } unknownFields.writeTo(output); @@ -600,13 +600,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getApiNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(apiName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, apiName_); } - if (!getUiNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uiName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, uiName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); } { @@ -620,13 +620,13 @@ public int getSerializedSize() { if (type_ != com.google.analytics.data.v1beta.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, type_); } - if (!getExpressionBytes().isEmpty()) { + 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_); } - if (!getCategoryBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, category_); } size += unknownFields.getSerializedSize(); 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 index 7c1be90d..c930f8ad 100644 --- 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 @@ -141,7 +141,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * the last 60 minutes of event data (`startMinutesAgo <= 59`). * * - * int32 start_minutes_ago = 1; + * optional int32 start_minutes_ago = 1; * * @return Whether the startMinutesAgo field is set. */ @@ -162,7 +162,7 @@ public boolean hasStartMinutesAgo() { * the last 60 minutes of event data (`startMinutesAgo <= 59`). * * - * int32 start_minutes_ago = 1; + * optional int32 start_minutes_ago = 1; * * @return The startMinutesAgo. */ @@ -187,7 +187,7 @@ public int getStartMinutesAgo() { * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). * * - * int32 end_minutes_ago = 2; + * optional int32 end_minutes_ago = 2; * * @return Whether the endMinutesAgo field is set. */ @@ -209,7 +209,7 @@ public boolean hasEndMinutesAgo() { * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). * * - * int32 end_minutes_ago = 2; + * optional int32 end_minutes_ago = 2; * * @return The endMinutesAgo. */ @@ -293,7 +293,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, endMinutesAgo_); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } unknownFields.writeTo(output); @@ -311,7 +311,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, endMinutesAgo_); } - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } size += unknownFields.getSerializedSize(); @@ -655,7 +655,7 @@ public Builder mergeFrom( * the last 60 minutes of event data (`startMinutesAgo <= 59`). * * - * int32 start_minutes_ago = 1; + * optional int32 start_minutes_ago = 1; * * @return Whether the startMinutesAgo field is set. */ @@ -676,7 +676,7 @@ public boolean hasStartMinutesAgo() { * the last 60 minutes of event data (`startMinutesAgo <= 59`). * * - * int32 start_minutes_ago = 1; + * optional int32 start_minutes_ago = 1; * * @return The startMinutesAgo. */ @@ -697,7 +697,7 @@ public int getStartMinutesAgo() { * the last 60 minutes of event data (`startMinutesAgo <= 59`). * * - * int32 start_minutes_ago = 1; + * optional int32 start_minutes_ago = 1; * * @param value The startMinutesAgo to set. * @return This builder for chaining. @@ -721,7 +721,7 @@ public Builder setStartMinutesAgo(int value) { * the last 60 minutes of event data (`startMinutesAgo <= 59`). * * - * int32 start_minutes_ago = 1; + * optional int32 start_minutes_ago = 1; * * @return This builder for chaining. */ @@ -747,7 +747,7 @@ public Builder clearStartMinutesAgo() { * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). * * - * int32 end_minutes_ago = 2; + * optional int32 end_minutes_ago = 2; * * @return Whether the endMinutesAgo field is set. */ @@ -769,7 +769,7 @@ public boolean hasEndMinutesAgo() { * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). * * - * int32 end_minutes_ago = 2; + * optional int32 end_minutes_ago = 2; * * @return The endMinutesAgo. */ @@ -791,7 +791,7 @@ public int getEndMinutesAgo() { * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). * * - * int32 end_minutes_ago = 2; + * optional int32 end_minutes_ago = 2; * * @param value The endMinutesAgo to set. * @return This builder for chaining. @@ -816,7 +816,7 @@ public Builder setEndMinutesAgo(int value) { * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). * * - * int32 end_minutes_ago = 2; + * optional int32 end_minutes_ago = 2; * * @return This builder for chaining. */ 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 index 436079c2..3726076c 100644 --- 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 @@ -36,7 +36,7 @@ public interface MinuteRangeOrBuilder * the last 60 minutes of event data (`startMinutesAgo <= 59`). * * - * int32 start_minutes_ago = 1; + * optional int32 start_minutes_ago = 1; * * @return Whether the startMinutesAgo field is set. */ @@ -54,7 +54,7 @@ public interface MinuteRangeOrBuilder * the last 60 minutes of event data (`startMinutesAgo <= 59`). * * - * int32 start_minutes_ago = 1; + * optional int32 start_minutes_ago = 1; * * @return The startMinutesAgo. */ @@ -74,7 +74,7 @@ public interface MinuteRangeOrBuilder * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). * * - * int32 end_minutes_ago = 2; + * optional int32 end_minutes_ago = 2; * * @return Whether the endMinutesAgo field is set. */ @@ -93,7 +93,7 @@ public interface MinuteRangeOrBuilder * minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). * * - * int32 end_minutes_ago = 2; + * optional int32 end_minutes_ago = 2; * * @return The endMinutesAgo. */ 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 index 4a0c1f5a..e7d417c4 100644 --- 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 @@ -353,7 +353,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getMetricNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } unknownFields.writeTo(output); @@ -365,7 +365,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getMetricNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); } size += unknownFields.getSerializedSize(); @@ -1268,7 +1268,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDimensionNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); } if (orderType_ @@ -1286,7 +1286,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDimensionNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_); } if (orderType_ @@ -2363,10 +2363,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getDimensionNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); } - if (!getDimensionValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionValue_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dimensionValue_); } unknownFields.writeTo(output); @@ -2378,10 +2378,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getDimensionNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_); } - if (!getDimensionValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionValue_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dimensionValue_); } size += unknownFields.getSerializedSize(); @@ -3146,7 +3146,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getMetricNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } for (int i = 0; i < pivotSelections_.size(); i++) { @@ -3161,7 +3161,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getMetricNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); } for (int i = 0; i < pivotSelections_.size(); i++) { 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 index 853a98d7..3830daad 100644 --- 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 @@ -887,7 +887,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getPropertyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); } for (int i = 0; i < dimensions_.size(); i++) { @@ -908,7 +908,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (metricFilter_ != null) { output.writeMessage(7, getMetricFilter()); } - if (!getCurrencyCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, currencyCode_); } if (cohortSpec_ != null) { @@ -929,7 +929,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getPropertyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); } for (int i = 0; i < dimensions_.size(); i++) { @@ -950,7 +950,7 @@ public int getSerializedSize() { if (metricFilter_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetricFilter()); } - if (!getCurrencyCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, currencyCode_); } if (cohortSpec_ != null) { 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 index 9dfbd55d..7eff2522 100644 --- 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 @@ -941,7 +941,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (propertyQuota_ != null) { output.writeMessage(7, getPropertyQuota()); } - if (!getKindBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, kind_); } unknownFields.writeTo(output); @@ -974,7 +974,7 @@ public int getSerializedSize() { if (propertyQuota_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getPropertyQuota()); } - if (!getKindBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, kind_); } size += unknownFields.getSerializedSize(); 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 index fb94d77e..32dfaf3a 100644 --- 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 @@ -868,7 +868,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (!getPropertyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); } for (int i = 0; i < dimensions_.size(); i++) { @@ -911,7 +911,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getPropertyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); } for (int i = 0; i < dimensions_.size(); i++) { 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 index 98cec581..7a86dd3a 100644 --- 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 @@ -814,7 +814,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (propertyQuota_ != null) { output.writeMessage(8, getPropertyQuota()); } - if (!getKindBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, kind_); } unknownFields.writeTo(output); @@ -850,7 +850,7 @@ public int getSerializedSize() { if (propertyQuota_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getPropertyQuota()); } - if (!getKindBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, kind_); } size += unknownFields.getSerializedSize(); 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 index f7c00738..4462e42b 100644 --- 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 @@ -1056,7 +1056,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (!getPropertyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); } for (int i = 0; i < dimensions_.size(); i++) { @@ -1090,7 +1090,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < orderBys_.size(); i++) { output.writeMessage(10, orderBys_.get(i)); } - if (!getCurrencyCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, currencyCode_); } if (cohortSpec_ != null) { @@ -1111,7 +1111,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getPropertyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); } for (int i = 0; i < dimensions_.size(); i++) { @@ -1151,7 +1151,7 @@ public int getSerializedSize() { for (int i = 0; i < orderBys_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, orderBys_.get(i)); } - if (!getCurrencyCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, currencyCode_); } if (cohortSpec_ != null) { 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 index 7994fc6e..f2cdbdee 100644 --- 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 @@ -884,7 +884,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (propertyQuota_ != null) { output.writeMessage(9, getPropertyQuota()); } - if (!getKindBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, kind_); } unknownFields.writeTo(output); @@ -923,7 +923,7 @@ public int getSerializedSize() { if (propertyQuota_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getPropertyQuota()); } - if (!getKindBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, kind_); } size += unknownFields.getSerializedSize(); From 5084a15a0ef7be4b95cb684267c017f3f425f8fa Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 4 Nov 2021 21:02:27 +0000 Subject: [PATCH 011/225] chore(java): remove pin on Apache Maven 3.8.1 from github actions (#1268) (#362) --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/ci.yaml | 17 +---------------- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 0df65ebe..5a79fcd5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:a3ac08d167454718ff057b97a1950d3cb5e16fc39fb3f355d90276285a6cac75 + digest: sha256:ed012741acaae5d03e011244585a1f0625a596d31568967d77772aa5a0a51d5e diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 2425d723..d95a11a2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,9 +12,6 @@ jobs: java: [8, 11, 17] steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -27,9 +24,6 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -45,9 +39,6 @@ jobs: java: [8, 11, 17] steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -58,9 +49,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -73,9 +61,6 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: stCarolas/setup-maven@v4 - with: - maven-version: 3.8.1 - uses: actions/setup-java@v2 with: distribution: zulu @@ -83,4 +68,4 @@ jobs: - run: java -version - run: .kokoro/build.sh env: - JOB_TYPE: clirr + JOB_TYPE: clirr \ No newline at end of file From 7d21c514ae9e10a4af3cbedbc9802918e3a41f93 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Sat, 6 Nov 2021 00:40:28 +0000 Subject: [PATCH 012/225] Update ci.yaml (#1275) (#363) --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/ci.yaml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 5a79fcd5..994dd04b 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:ed012741acaae5d03e011244585a1f0625a596d31568967d77772aa5a0a51d5e + digest: sha256:fecf6bd85f19eb046d913982ea36f6d434f9a49ab0545d25e31186aa64367c0c diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d95a11a2..93b337c6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -8,6 +8,7 @@ jobs: units: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: java: [8, 11, 17] steps: @@ -68,4 +69,4 @@ jobs: - run: java -version - run: .kokoro/build.sh env: - JOB_TYPE: clirr \ No newline at end of file + JOB_TYPE: clirr From 30dcc423dcbfe360176566542dc369465523e323 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 8 Nov 2021 21:52:24 +0000 Subject: [PATCH 013/225] chore: cleanup cloud RAD generation (#1269) (#364) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/release/publish_javadoc11.sh | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 994dd04b..325daaa4 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:fecf6bd85f19eb046d913982ea36f6d434f9a49ab0545d25e31186aa64367c0c + digest: sha256:204b7af96e6d481f19b0ff377aa379d46bc56dd06e1cc7c523f361dd9cbfeeaa diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index c282f717..c131f1b4 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -36,13 +36,9 @@ mvn clean install -B -q -DskipTests=true export NAME=google-analytics-data export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) -# V3 generates docfx yml from javadoc -# generate yml -mvn clean site -B -q -P docFX - -# copy README to docfx-yml dir and rename index.md -cp README.md target/docfx-yml/index.md -# copy CHANGELOG to docfx-yml dir and rename history.md +# cloud RAD generation +mvn clean javadoc:aggregate -B -q -P docFX +# include CHANGELOG cp CHANGELOG.md target/docfx-yml/history.md pushd target/docfx-yml From 85542830da7c556ac409d0ffe1ec693741deff9c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 9 Nov 2021 14:50:13 +0000 Subject: [PATCH 014/225] chore: update jre to 11 for linter (#1278) (#366) --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/ci.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 325daaa4..886d0949 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:204b7af96e6d481f19b0ff377aa379d46bc56dd06e1cc7c523f361dd9cbfeeaa + digest: sha256:14ecf64ec36f67c7bf04e3dc0f68eafcc01df3955121c38862b695e2ae7515d8 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 93b337c6..05de1f60 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -53,7 +53,7 @@ jobs: - uses: actions/setup-java@v2 with: distribution: zulu - java-version: 8 + java-version: 11 - run: java -version - run: .kokoro/build.sh env: From ac0c889c10879bc0321ad9357288a11b080aae22 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 10 Nov 2021 21:03:57 +0100 Subject: [PATCH 015/225] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.1 (#365) --- google-analytics-data-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index ff5d01af..fa16ba0f 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.0 + 1.2.1 Google Analytics Data BOM diff --git a/pom.xml b/pom.xml index f8d4b03d..bd2adce6 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.0 + 1.2.1 From 8fe92a275c0443877e8b5fe027293273e25eddb1 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 11 Nov 2021 21:08:27 +0000 Subject: [PATCH 016/225] chore: update minimum java version to java 8 (#1281) (#369) --- .github/.OwlBot.lock.yaml | 2 +- README.md | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 886d0949..5d788be0 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:14ecf64ec36f67c7bf04e3dc0f68eafcc01df3955121c38862b695e2ae7515d8 + digest: sha256:a744afda1956beb7bd6dc8d0b740a7839bbe402e34e2f4ef24589074db53ceb0 diff --git a/README.md b/README.md index 613c82c0..2535de07 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,7 @@ Analytics Data uses gRPC for the transport layer. ## Supported Java Versions -Java 7 or above is required for using this client. +Java 8 or above is required for using this client. Google's Java client libraries, [Google Cloud Client Libraries][cloudlibs] @@ -166,7 +166,6 @@ Apache 2.0 - See [LICENSE][license] for more information. Java Version | Status ------------ | ------ -Java 7 | [![Kokoro CI][kokoro-badge-image-1]][kokoro-badge-link-1] Java 8 | [![Kokoro CI][kokoro-badge-image-2]][kokoro-badge-link-2] Java 8 OSX | [![Kokoro CI][kokoro-badge-image-3]][kokoro-badge-link-3] Java 8 Windows | [![Kokoro CI][kokoro-badge-image-4]][kokoro-badge-link-4] From bfe02e118f69477cc06cf614ae9b447e026543e6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 15 Nov 2021 17:00:59 +0100 Subject: [PATCH 017/225] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 (#370) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.4.0` -> `2.5.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.0/compatibility-slim/2.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.0/confidence-slim/2.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.5.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​250-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare240v250-2021-11-12) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.4.0...v2.5.0) ##### Features - next release from main branch is 2.5.0 ([#​510](https://www.togithub.com/googleapis/java-shared-dependencies/issues/510)) ([ca9eb8a](https://www.github.com/googleapis/java-shared-dependencies/commit/ca9eb8a40ae81d69de0d82d9499ef21b0136ae49)) ##### Bug Fixes - dependencies.sh to work with Java 17 ([#​516](https://www.togithub.com/googleapis/java-shared-dependencies/issues/516)) ([8422c1d](https://www.github.com/googleapis/java-shared-dependencies/commit/8422c1d7e9ef479f348e63c530789050b5235426)) ##### Dependencies - update dependency com.google.api:api-common to v2.1.0 ([#​508](https://www.togithub.com/googleapis/java-shared-dependencies/issues/508)) ([ae32d16](https://www.github.com/googleapis/java-shared-dependencies/commit/ae32d1689c78fc1469206c8c0df0ebaca59edd2c)) - update dependency com.google.auth:google-auth-library-bom to v1.2.2 ([#​506](https://www.togithub.com/googleapis/java-shared-dependencies/issues/506)) ([b9a8209](https://www.github.com/googleapis/java-shared-dependencies/commit/b9a82098655f29e858bd0c7a9b1049a379e5062a)) - update dependency com.google.auth:google-auth-library-bom to v1.3.0 ([#​524](https://www.togithub.com/googleapis/java-shared-dependencies/issues/524)) ([fc07879](https://www.github.com/googleapis/java-shared-dependencies/commit/fc07879fa6531e39b21977fe77abc19354a1fd33)) - update dependency com.google.code.gson:gson to v2.8.9 ([#​509](https://www.togithub.com/googleapis/java-shared-dependencies/issues/509)) ([bece99b](https://www.github.com/googleapis/java-shared-dependencies/commit/bece99bb3e0365e60e7376ba18d046ab6436a235)) - update dependency com.google.errorprone:error_prone_annotations to v2.10.0 ([#​512](https://www.togithub.com/googleapis/java-shared-dependencies/issues/512)) ([c281f13](https://www.github.com/googleapis/java-shared-dependencies/commit/c281f137525e2111e97349657be578ed1fc832f2)) - update dependency com.google.protobuf:protobuf-bom to v3.19.1 ([#​505](https://www.togithub.com/googleapis/java-shared-dependencies/issues/505)) ([94cde96](https://www.github.com/googleapis/java-shared-dependencies/commit/94cde96069900f9f8c2ff9a522671d03b26828bd)) - update dependency io.grpc:grpc-bom to v1.42.1 ([#​513](https://www.togithub.com/googleapis/java-shared-dependencies/issues/513)) ([0d2b774](https://www.github.com/googleapis/java-shared-dependencies/commit/0d2b774287a132821cc6fe2789140086bc48d525)) - update dependency org.checkerframework:checker-qual to v3.19.0 ([#​501](https://www.togithub.com/googleapis/java-shared-dependencies/issues/501)) ([2b3e0b5](https://www.github.com/googleapis/java-shared-dependencies/commit/2b3e0b5ddc3a645b20a837f3123394f1ca114f08)) - update dependency org.threeten:threetenbp to v1.5.2 ([#​514](https://www.togithub.com/googleapis/java-shared-dependencies/issues/514)) ([4885f40](https://www.github.com/googleapis/java-shared-dependencies/commit/4885f402e2c70435cd10d4f1b893df9873808c56)) - update gax.version to v2.7.0 ([#​515](https://www.togithub.com/googleapis/java-shared-dependencies/issues/515)) ([567e728](https://www.github.com/googleapis/java-shared-dependencies/commit/567e728b0e59233a04e2d04183e6a0c36cca2437)) - update google.core.version to v2.3.0 ([#​530](https://www.togithub.com/googleapis/java-shared-dependencies/issues/530)) ([78e87e9](https://www.github.com/googleapis/java-shared-dependencies/commit/78e87e96befab34dc4a494e752aeb473cd14a156)) - update iam.version to v1.1.7 ([#​504](https://www.togithub.com/googleapis/java-shared-dependencies/issues/504)) ([63dd583](https://www.github.com/googleapis/java-shared-dependencies/commit/63dd583c80f35b01a66fd1908d41467468c66436))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index bd2adce6..934a8103 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.4.0 + 2.5.0 pom import From 7e300eb166ac0f3944fbd524184476249da98f24 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Nov 2021 23:54:52 +0100 Subject: [PATCH 018/225] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.2 (#371) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.1` -> `1.2.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.2/compatibility-slim/1.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.2/confidence-slim/1.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.2`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​122-httpswwwgithubcomgoogleapisjava-shared-configcomparev121v122-2021-11-16) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.1...v1.2.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- google-analytics-data-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index fa16ba0f..01c80807 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.1 + 1.2.2 Google Analytics Data BOM diff --git a/pom.xml b/pom.xml index 934a8103..3bef9d7b 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.1 + 1.2.2 From 4cda91c1b72d6adc570aff2230c32f68cae3050d Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 22 Nov 2021 18:34:11 +0000 Subject: [PATCH 019/225] chore: remove enable-samples profile (#1284) (#373) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/build.sh | 1 - CONTRIBUTING.md | 61 +++++---------------------------------- 3 files changed, 8 insertions(+), 56 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 5d788be0..88d9b926 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:a744afda1956beb7bd6dc8d0b740a7839bbe402e34e2f4ef24589074db53ceb0 + digest: sha256:5b8c790f57cca57e6b37ba25f79291265c218cea3e6ba9714b001910ab3f1419 diff --git a/.kokoro/build.sh b/.kokoro/build.sh index a5fa6e1c..8a4c96fe 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -91,7 +91,6 @@ samples) pushd ${SAMPLES_DIR} mvn -B \ - -Penable-samples \ -ntp \ -DtrimStackTrace=false \ -Dclirr.skip=true \ diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f2dbdee0..b65dd279 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -53,12 +53,12 @@ mvn -Penable-integration-tests clean verify ## Code Samples -Code Samples must be bundled in separate Maven modules, and guarded by a -Maven profile with the name `enable-samples`. +All code samples must be in compliance with the [java sample formatting guide][3]. +Code Samples must be bundled in separate Maven modules. The samples must be separate from the primary project for a few reasons: -1. Primary projects have a minimum Java version of Java 7 whereas samples have - a minimum Java version of Java 8. Due to this we need the ability to +1. Primary projects have a minimum Java version of Java 8 whereas samples can have + Java version of Java 11. Due to this we need the ability to selectively exclude samples from a build run. 2. Many code samples depend on external GCP services and need credentials to access the service. @@ -68,39 +68,16 @@ The samples must be separate from the primary project for a few reasons: ### Building ```bash -mvn -Penable-samples clean verify +mvn clean verify ``` Some samples require access to GCP services and require a service account: ```bash export GOOGLE_APPLICATION_CREDENTIALS=/path/to/service/account.json -mvn -Penable-samples clean verify +mvn clean verify ``` -### Profile Config - -1. To add samples in a profile to your Maven project, add the following to your -`pom.xml` - - ```xml - - [...] - - - enable-samples - - sample - - - - [...] - - ``` - -2. [Activate](#profile-activation) the profile. -3. Define your samples in a normal Maven project in the `samples/` directory. - ### Code Formatting Code in this repo is formatted with @@ -110,30 +87,6 @@ To run formatting on your project, you can run: mvn com.coveo:fmt-maven-plugin:format ``` -### Profile Activation - -To include code samples when building and testing the project, enable the -`enable-samples` Maven profile. - -#### Command line - -To activate the Maven profile on the command line add `-Penable-samples` to your -Maven command. - -#### Maven `settings.xml` - -To activate the Maven profile in your `~/.m2/settings.xml` add an entry of -`enable-samples` following the instructions in [Active Profiles][2]. - -This method has the benefit of applying to all projects you build (and is -respected by IntelliJ IDEA) and is recommended if you are going to be -contributing samples to several projects. - -#### IntelliJ IDEA - -To activate the Maven Profile inside IntelliJ IDEA, follow the instructions in -[Activate Maven profiles][3] to activate `enable-samples`. - [1]: https://cloud.google.com/docs/authentication/getting-started#creating_a_service_account [2]: https://maven.apache.org/settings.html#Active_Profiles -[3]: https://www.jetbrains.com/help/idea/work-with-maven-profiles.html#activate_maven_profiles +[3]: https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md \ No newline at end of file From ab5808656c6d2ca197e4649764ad64c070d338eb Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 1 Dec 2021 11:06:57 -0500 Subject: [PATCH 020/225] docs: fix docstring formatting (#368) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * docs: fix docstring formatting Committer: @parthea PiperOrigin-RevId: 408715661 Source-Link: https://github.com/googleapis/googleapis/commit/5bb0518fbf14a1ffdab113c56353d52c1bf7e62d Source-Link: https://github.com/googleapis/googleapis-gen/commit/48387f9661ea34f392f7611e319537928c76c1db Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNDgzODdmOTY2MWVhMzRmMzkyZjc2MTFlMzE5NTM3OTI4Yzc2YzFkYiJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * build: fix sample tests * build: fix sample tests Co-authored-by: Owl Bot Co-authored-by: Chanseok Oh --- .../data/v1beta/BetaAnalyticsDataGrpc.java | 1 + .../analytics/data/v1beta/Compatibility.java | 2 +- .../analytics/data/v1beta/Dimension.java | 14 +- .../data/v1beta/DimensionOrBuilder.java | 4 +- .../google/analytics/data/v1beta/Metric.java | 14 +- .../analytics/data/v1beta/MetricMetadata.java | 691 +++ .../data/v1beta/MetricMetadataOrBuilder.java | 99 + .../data/v1beta/MetricOrBuilder.java | 4 +- .../data/v1beta/ReportingApiProto.java | 189 +- .../data/v1beta/ResponseMetaData.java | 4192 +++++++++++++++-- .../v1beta/ResponseMetaDataOrBuilder.java | 193 + .../data/v1beta/RestrictedMetricType.java | 180 + .../google/analytics/data/v1beta/data.proto | 87 +- samples/snapshot/pom.xml | 11 +- samples/snippets/pom.xml | 5 + 15 files changed, 5335 insertions(+), 351 deletions(-) create mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RestrictedMetricType.java 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 index 96a73f49..414c6fb6 100644 --- 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 @@ -27,6 +27,7 @@ @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() {} 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 index f60a7ea8..1d92ef70 100644 --- 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 @@ -155,7 +155,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.analytics.data.v1beta.ReportingApiProto.getDescriptor().getEnumTypes().get(2); + return com.google.analytics.data.v1beta.ReportingApiProto.getDescriptor().getEnumTypes().get(3); } private static final Compatibility[] VALUES = values(); 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 index 2c1d2cfc..e689caf8 100644 --- 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 @@ -144,7 +144,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * 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_]$". + * the regular expression `^[a-zA-Z0-9_]$`. * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, * `dimensionExpression`, and `pivots`. * @@ -176,7 +176,7 @@ public java.lang.String getName() { * 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_]$". + * the regular expression `^[a-zA-Z0-9_]$`. * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, * `dimensionExpression`, and `pivots`. * @@ -609,7 +609,7 @@ public Builder mergeFrom( * 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_]$". + * the regular expression `^[a-zA-Z0-9_]$`. * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, * `dimensionExpression`, and `pivots`. * @@ -640,7 +640,7 @@ public java.lang.String getName() { * 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_]$". + * the regular expression `^[a-zA-Z0-9_]$`. * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, * `dimensionExpression`, and `pivots`. * @@ -671,7 +671,7 @@ public com.google.protobuf.ByteString getNameBytes() { * 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_]$". + * the regular expression `^[a-zA-Z0-9_]$`. * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, * `dimensionExpression`, and `pivots`. * @@ -701,7 +701,7 @@ public Builder setName(java.lang.String value) { * 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_]$". + * the regular expression `^[a-zA-Z0-9_]$`. * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, * `dimensionExpression`, and `pivots`. * @@ -727,7 +727,7 @@ public Builder clearName() { * 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_]$". + * the regular expression `^[a-zA-Z0-9_]$`. * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, * `dimensionExpression`, and `pivots`. * 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 index 26ab4db3..0bb8a9f9 100644 --- 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 @@ -34,7 +34,7 @@ public interface DimensionOrBuilder * 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_]$". + * the regular expression `^[a-zA-Z0-9_]$`. * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, * `dimensionExpression`, and `pivots`. * @@ -55,7 +55,7 @@ public interface DimensionOrBuilder * 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_]$". + * the regular expression `^[a-zA-Z0-9_]$`. * Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, * `dimensionExpression`, and `pivots`. * 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 index bdfae98f..b7f45f6d 100644 --- 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 @@ -139,7 +139,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * 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_]$". + * expression `^[a-zA-Z0-9_]$`. * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric * `expression`. * @@ -171,7 +171,7 @@ public java.lang.String getName() { * 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_]$". + * expression `^[a-zA-Z0-9_]$`. * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric * `expression`. * @@ -624,7 +624,7 @@ public Builder mergeFrom( * 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_]$". + * expression `^[a-zA-Z0-9_]$`. * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric * `expression`. * @@ -655,7 +655,7 @@ public java.lang.String getName() { * 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_]$". + * expression `^[a-zA-Z0-9_]$`. * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric * `expression`. * @@ -686,7 +686,7 @@ public com.google.protobuf.ByteString getNameBytes() { * 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_]$". + * expression `^[a-zA-Z0-9_]$`. * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric * `expression`. * @@ -716,7 +716,7 @@ public Builder setName(java.lang.String value) { * 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_]$". + * expression `^[a-zA-Z0-9_]$`. * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric * `expression`. * @@ -742,7 +742,7 @@ public Builder clearName() { * 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_]$". + * expression `^[a-zA-Z0-9_]$`. * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric * `expression`. * 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 index 5e4efa3a..0e1d42d9 100644 --- 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 @@ -44,6 +44,7 @@ private MetricMetadata() { deprecatedApiNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; type_ = 0; expression_ = ""; + blockedReasons_ = java.util.Collections.emptyList(); category_ = ""; } @@ -127,6 +128,31 @@ private MetricMetadata( 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(); @@ -151,6 +177,9 @@ private MetricMetadata( if (((mutable_bitField0_ & 0x00000001) != 0)) { deprecatedApiNames_ = deprecatedApiNames_.getUnmodifiableView(); } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + blockedReasons_ = java.util.Collections.unmodifiableList(blockedReasons_); + } this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } @@ -171,6 +200,167 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { 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_; /** @@ -502,6 +692,142 @@ 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_; /** @@ -567,6 +893,7 @@ public final boolean isInitialized() { @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_); } @@ -588,6 +915,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 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_); } @@ -626,6 +960,19 @@ public int getSerializedSize() { 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_); } @@ -652,6 +999,7 @@ public boolean equals(final java.lang.Object obj) { 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; @@ -680,6 +1028,10 @@ public int hashCode() { 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(); @@ -841,6 +1193,8 @@ public Builder clear() { customDefinition_ = false; + blockedReasons_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); category_ = ""; return this; @@ -882,6 +1236,11 @@ public com.google.analytics.data.v1beta.MetricMetadata buildPartial() { 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; @@ -965,6 +1324,16 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.MetricMetadata other) 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(); @@ -1782,6 +2151,328 @@ public Builder clearCustomDefinition() { 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_ = ""; /** * 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 index 5828a0f3..a890ad10 100644 --- 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 @@ -232,6 +232,105 @@ public interface MetricMetadataOrBuilder */ 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); + /** * * 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 index e8e2749a..3ff2f96f 100644 --- 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 @@ -34,7 +34,7 @@ public interface MetricOrBuilder * 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_]$". + * expression `^[a-zA-Z0-9_]$`. * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric * `expression`. * @@ -55,7 +55,7 @@ public interface MetricOrBuilder * 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_]$". + * expression `^[a-zA-Z0-9_]$`. * Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric * `expression`. * 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 index efbfb403..768e8696 100644 --- 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 @@ -127,6 +127,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r 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 @@ -289,71 +297,93 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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\"4\n\020ResponseMetaData" - + "\022 \n\030data_loss_from_other_row\030\003 \001(\010\"\037\n\017Di" - + "mensionHeader\022\014\n\004name\030\001 \001(\t\"T\n\014MetricHea" - + "der\022\014\n\004name\030\001 \001(\t\0226\n\004type\030\002 \001(\0162(.google" - + ".analytics.data.v1beta.MetricType\"u\n\013Piv" - + "otHeader\022S\n\027pivot_dimension_headers\030\001 \003(" - + "\01322.google.analytics.data.v1beta.PivotDi" - + "mensionHeader\022\021\n\trow_count\030\002 \001(\005\"^\n\024Pivo" - + "tDimensionHeader\022F\n\020dimension_values\030\001 \003" - + "(\0132,.google.analytics.data.v1beta.Dimens" - + "ionValue\"\217\001\n\003Row\022F\n\020dimension_values\030\001 \003" - + "(\0132,.google.analytics.data.v1beta.Dimens" - + "ionValue\022@\n\rmetric_values\030\002 \003(\0132).google" - + ".analytics.data.v1beta.MetricValue\".\n\016Di" - + "mensionValue\022\017\n\005value\030\001 \001(\tH\000B\013\n\tone_val" - + "ue\"+\n\013MetricValue\022\017\n\005value\030\004 \001(\tH\000B\013\n\ton" - + "e_value\"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_va" - + "lue\"\223\003\n\rPropertyQuota\022A\n\016tokens_per_day\030" - + "\001 \001(\0132).google.analytics.data.v1beta.Quo" - + "taStatus\022B\n\017tokens_per_hour\030\002 \001(\0132).goog" - + "le.analytics.data.v1beta.QuotaStatus\022F\n\023" - + "concurrent_requests\030\003 \001(\0132).google.analy" - + "tics.data.v1beta.QuotaStatus\022U\n\"server_e" - + "rrors_per_project_per_hour\030\004 \001(\0132).googl" - + "e.analytics.data.v1beta.QuotaStatus\022\\\n)p" - + "otentially_thresholded_requests_per_hour" - + "\030\005 \001(\0132).google.analytics.data.v1beta.Qu" - + "otaStatus\"2\n\013QuotaStatus\022\020\n\010consumed\030\001 \001" - + "(\005\022\021\n\tremaining\030\002 \001(\005\"\226\001\n\021DimensionMetad" - + "ata\022\020\n\010api_name\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_na" - + "mes\030\004 \003(\t\022\031\n\021custom_definition\030\005 \001(\010\022\020\n\010" - + "category\030\007 \001(\t\"\337\001\n\016MetricMetadata\022\020\n\010api" - + "_name\030\001 \001(\t\022\017\n\007ui_name\030\002 \001(\t\022\023\n\013descript" - + "ion\030\003 \001(\t\022\034\n\024deprecated_api_names\030\004 \003(\t\022" - + "6\n\004type\030\005 \001(\0162(.google.analytics.data.v1" - + "beta.MetricType\022\022\n\nexpression\030\006 \001(\t\022\031\n\021c" - + "ustom_definition\030\007 \001(\010\022\020\n\010category\030\n \001(\t" - + "\"\334\001\n\026DimensionCompatibility\022P\n\022dimension" - + "_metadata\030\001 \001(\0132/.google.analytics.data." - + "v1beta.DimensionMetadataH\000\210\001\001\022G\n\rcompati" - + "bility\030\002 \001(\0162+.google.analytics.data.v1b" - + "eta.CompatibilityH\001\210\001\001B\025\n\023_dimension_met" - + "adataB\020\n\016_compatibility\"\320\001\n\023MetricCompat" - + "ibility\022J\n\017metric_metadata\030\001 \001(\0132,.googl" - + "e.analytics.data.v1beta.MetricMetadataH\000" - + "\210\001\001\022G\n\rcompatibility\030\002 \001(\0162+.google.anal" - + "ytics.data.v1beta.CompatibilityH\001\210\001\001B\022\n\020" - + "_metric_metadataB\020\n\016_compatibility*g\n\021Me" - + "tricAggregation\022\"\n\036METRIC_AGGREGATION_UN" - + "SPECIFIED\020\000\022\t\n\005TOTAL\020\001\022\013\n\007MINIMUM\020\005\022\013\n\007M" - + "AXIMUM\020\006\022\t\n\005COUNT\020\004*\201\002\n\nMetricType\022\033\n\027ME" - + "TRIC_TYPE_UNSPECIFIED\020\000\022\020\n\014TYPE_INTEGER\020" - + "\001\022\016\n\nTYPE_FLOAT\020\002\022\020\n\014TYPE_SECONDS\020\004\022\025\n\021T" - + "YPE_MILLISECONDS\020\005\022\020\n\014TYPE_MINUTES\020\006\022\016\n\n" - + "TYPE_HOURS\020\007\022\021\n\rTYPE_STANDARD\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\017TYPE_KILOMETERS\020\r*" - + "P\n\rCompatibility\022\035\n\031COMPATIBILITY_UNSPEC" - + "IFIED\020\000\022\016\n\nCOMPATIBLE\020\001\022\020\n\014INCOMPATIBLE\020" - + "\002By\n com.google.analytics.data.v1betaB\021R" - + "eportingApiProtoP\001Z@google.golang.org/ge" - + "nproto/googleapis/analytics/data/v1beta;" - + "datab\006proto3" + + "\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( @@ -568,6 +598,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { 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); @@ -679,6 +737,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Type", "Expression", "CustomDefinition", + "BlockedReasons", "Category", }); internal_static_google_analytics_data_v1beta_DimensionCompatibility_descriptor = 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 index 3b549245..e7d0f6d7 100644 --- 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 @@ -37,7 +37,11 @@ private ResponseMetaData(com.google.protobuf.GeneratedMessageV3.Builder build super(builder); } - private ResponseMetaData() {} + private ResponseMetaData() { + currencyCode_ = ""; + timeZone_ = ""; + emptyReason_ = ""; + } @java.lang.Override @SuppressWarnings({"unused"}) @@ -58,6 +62,7 @@ private ResponseMetaData( if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } + int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { @@ -73,6 +78,46 @@ private ResponseMetaData( 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)) { @@ -107,181 +152,3085 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.analytics.data.v1beta.ResponseMetaData.Builder.class); } - public static final int DATA_LOSS_FROM_OTHER_ROW_FIELD_NUMBER = 3; - private boolean dataLossFromOtherRow_; + 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); + } /** * * *
-   * If true, indicates some buckets of dimension combinations are rolled into
-   * "(other)" row. This can happen for high cardinality reports.
+   * 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).
    * 
* - * bool data_loss_from_other_row = 3; - * - * @return The dataLossFromOtherRow. + * Protobuf type {@code google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse} */ - @java.lang.Override - public boolean getDataLossFromOtherRow() { - return dataLossFromOtherRow_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + 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); + } - memoizedIsInitialized = 1; - return true; - } + private SchemaRestrictionResponse() { + activeMetricRestrictions_ = java.util.Collections.emptyList(); + } - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (dataLossFromOtherRow_ != false) { - output.writeBool(3, dataLossFromOtherRow_); + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SchemaRestrictionResponse(); } - unknownFields.writeTo(output); - } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - size = 0; - if (dataLossFromOtherRow_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, dataLossFromOtherRow_); + 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(); + } } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; + 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; } - if (!(obj instanceof com.google.analytics.data.v1beta.ResponseMetaData)) { - return super.equals(obj); + + @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); } - com.google.analytics.data.v1beta.ResponseMetaData other = - (com.google.analytics.data.v1beta.ResponseMetaData) obj; - if (getDataLossFromOtherRow() != other.getDataLossFromOtherRow()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } + public interface ActiveMetricRestrictionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction) + com.google.protobuf.MessageOrBuilder { - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; + /** + * + * + *
+       * 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); } - 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()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } + /** + * + * + *
+     * 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); + } - public static com.google.analytics.data.v1beta.ResponseMetaData parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + private ActiveMetricRestriction() { + metricName_ = ""; + restrictedMetricTypes_ = java.util.Collections.emptyList(); + } - 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); - } + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ActiveMetricRestriction(); + } - public static com.google.analytics.data.v1beta.ResponseMetaData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } - 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); - } + 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 com.google.analytics.data.v1beta.ResponseMetaData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } + 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; + } - 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); - } + @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); + } - 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); - } + 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 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 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); + } - 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); - } + private int restrictedMetricTypesMemoizedSerializedSize; - 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); - } + private byte memoizedIsInitialized = -1; - 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); - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - 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); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public Builder newBuilderForType() { - return newBuilder(); - } + @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); + } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; - public static Builder newBuilder(com.google.analytics.data.v1beta.ResponseMetaData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } + 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 Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } + @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; - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + 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; } @@ -304,178 +3253,876 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } @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); + 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; } - // Construct using com.google.analytics.data.v1beta.ResponseMetaData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); + @java.lang.Override + public Builder clone() { + return super.clone(); } - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); } @java.lang.Override - public Builder clear() { - super.clear(); - dataLossFromOtherRow_ = false; + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.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 com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1beta.ReportingApiProto - .internal_static_google_analytics_data_v1beta_ResponseMetaData_descriptor; + public final boolean isInitialized() { + 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_; } - @java.lang.Override - public com.google.analytics.data.v1beta.ResponseMetaData getDefaultInstanceForType() { - return com.google.analytics.data.v1beta.ResponseMetaData.getDefaultInstance(); + 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); } - - @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); + /** + * + * + *
+     * 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; } - 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); - result.dataLossFromOtherRow_ = dataLossFromOtherRow_; - onBuilt(); - return result; } - - @java.lang.Override - public Builder clone() { - return super.clone(); + /** + * + * + *
+     * 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; + } } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); + /** + * + * + *
+     * 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; } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); + /** + * + * + *
+     * 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; } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); + /** + * + * + *
+     * 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; } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); + 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); } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); + /** + * + * + *
+     * 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; + } } - - @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); + /** + * + * + *
+     * 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 { - super.mergeFrom(other); - return this; + return (com.google.protobuf.ByteString) ref; } } - - 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()); + /** + * + * + *
+     * 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(); } - this.mergeUnknownFields(other.unknownFields); + bitField0_ |= 0x00000004; + timeZone_ = value; onChanged(); return this; } - - @java.lang.Override - public final boolean isInitialized() { - return true; + /** + * + * + *
+     * 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; } - - @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); - } + /** + * + * + *
+     * 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 boolean dataLossFromOtherRow_; + private java.lang.Object emptyReason_ = ""; /** * * *
-     * If true, indicates some buckets of dimension combinations are rolled into
-     * "(other)" row. This can happen for high cardinality reports.
+     * If empty reason is specified, the report is empty for this reason.
      * 
* - * bool data_loss_from_other_row = 3; + * optional string empty_reason = 7; * - * @return The dataLossFromOtherRow. + * @return Whether the emptyReason field is set. */ - @java.lang.Override - public boolean getDataLossFromOtherRow() { - return dataLossFromOtherRow_; + public boolean hasEmptyReason() { + return ((bitField0_ & 0x00000008) != 0); } /** * * *
-     * If true, indicates some buckets of dimension combinations are rolled into
-     * "(other)" row. This can happen for high cardinality reports.
+     * If empty reason is specified, the report is empty for this reason.
      * 
* - * bool data_loss_from_other_row = 3; + * optional string empty_reason = 7; * - * @param value The dataLossFromOtherRow to set. + * @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 setDataLossFromOtherRow(boolean value) { - - dataLossFromOtherRow_ = value; + public Builder setEmptyReason(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + emptyReason_ = value; onChanged(); return this; } @@ -483,17 +4130,38 @@ public Builder setDataLossFromOtherRow(boolean value) { * * *
-     * If true, indicates some buckets of dimension combinations are rolled into
-     * "(other)" row. This can happen for high cardinality reports.
+     * If empty reason is specified, the report is empty for this reason.
      * 
* - * bool data_loss_from_other_row = 3; + * optional string empty_reason = 7; * * @return This builder for chaining. */ - public Builder clearDataLossFromOtherRow() { - - dataLossFromOtherRow_ = false; + 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; } 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 index 30d8d054..bbe87653 100644 --- 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 @@ -36,4 +36,197 @@ public interface ResponseMetaDataOrBuilder * @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 new file mode 100644 index 00000000..b8bf8c08 --- /dev/null +++ b/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RestrictedMetricType.java @@ -0,0 +1,180 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/proto/google/analytics/data/v1beta/data.proto b/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/data.proto index fdc95c46..7f9b1450 100644 --- 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 @@ -87,7 +87,7 @@ message Dimension { // 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_]$". + // the regular expression `^[a-zA-Z0-9_]$`. // // Dimensions are referenced by `name` in `dimensionFilter`, `orderBys`, // `dimensionExpression`, and `pivots`. @@ -152,7 +152,7 @@ message Metric { // 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_]$". + // expression `^[a-zA-Z0-9_]$`. // // Metrics are referenced by `name` in `metricFilter`, `orderBys`, and metric // `expression`. @@ -555,9 +555,55 @@ message CohortReportSettings { // 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 @@ -744,6 +790,20 @@ message DimensionMetadata { // 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; @@ -772,6 +832,16 @@ message MetricMetadata { // 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; @@ -861,6 +931,19 @@ enum MetricType { 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. diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 17dbaf2a..456adca7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -23,14 +23,19 @@ UTF-8 - + com.google.analytics google-analytics-data 0.10.3-SNAPSHOT - + + + com.google.auth + google-auth-library-oauth2-http + 1.3.0 + junit @@ -80,4 +85,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 07b1bcf6..398ee380 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -30,6 +30,11 @@ google-analytics-data 0.10.2 + + com.google.auth + google-auth-library-oauth2-http + 1.3.0 + junit From dba107ad76ad5e5ff54c446073f54e39a6ec926a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 1 Dec 2021 11:07:11 -0500 Subject: [PATCH 021/225] feat: add the `schema_restriction_response` field to the `ResponseMetaData` type that contains the schema restrictions actively enforced in creating a report (#361) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add the `schema_restriction_response` field to the `ResponseMetaData` type that contains the schema restrictions actively enforced in creating a report feat: add the `currency_code`, `time_zone` fields to the `ResponseMetaData` type feat: add the `empty_reason` field to the `ResponseMetaData` type that contains an empty report reason, if specified feat: add the `blocked_reasons` field to the `MetricMetadata` type that contains reasons why access was blocked to a certain metric in a report, if specified PiperOrigin-RevId: 406725448 Source-Link: https://github.com/googleapis/googleapis/commit/c1176cd3140f249d6d0340070d7933142b821575 Source-Link: https://github.com/googleapis/googleapis-gen/commit/4d391c476d0fcf76fd884a677d6a16a0fc44a22b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGQzOTFjNDc2ZDBmY2Y3NmZkODg0YTY3N2Q2YTE2YTBmYzQ0YTIyYiJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * build: fix sample tests * build: fix sample tests Co-authored-by: Owl Bot Co-authored-by: Chanseok Oh From 7923f71a6b5bc7704f7af83831cb43f6e537b4e0 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 1 Dec 2021 11:07:22 -0500 Subject: [PATCH 022/225] chore: update Java and Python dependencies (#367) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: update Java and Python dependencies PiperOrigin-RevId: 408420890 Source-Link: https://github.com/googleapis/googleapis/commit/2921f9fb3bfbd16f6b2da0104373e2b47a80a65e Source-Link: https://github.com/googleapis/googleapis-gen/commit/6598ca8cbbf5226733a099c4506518a5af6ff74c Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjU5OGNhOGNiYmY1MjI2NzMzYTA5OWM0NTA2NTE4YTVhZjZmZjc0YyJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * build: fix sample tests * build: fix sample tests Co-authored-by: Owl Bot Co-authored-by: Chanseok Oh From 28c9ebce442d56b2e5ecab10a5306fa7e91fb535 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 3 Dec 2021 17:14:21 +0100 Subject: [PATCH 023/225] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 (#377) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.5.0` -> `2.5.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/compatibility-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.5.1/confidence-slim/2.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.5.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​251-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare250v251-2021-12-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.5.0...v2.5.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 3bef9d7b..d34d6498 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.5.0 + 2.5.1 pom import From fd890a019ef695eef15325479b88ab98153c6ce3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 6 Dec 2021 18:10:11 +0000 Subject: [PATCH 024/225] fix(java): add -ntp flag to native image testing command (#1299) (#378) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/build.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 88d9b926..3d2f8282 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:5b8c790f57cca57e6b37ba25f79291265c218cea3e6ba9714b001910ab3f1419 + digest: sha256:a4d7b2cfc6a9d6b378a6b2458740eae15fcab28854bd23dad3a15102d2e47c87 diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 8a4c96fe..20db30e6 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -71,7 +71,7 @@ integration) ;; graalvm) # Run Unit and Integration Tests with Native Image - mvn test -Pnative -Penable-integration-tests + mvn -ntp -Pnative -Penable-integration-tests test RETURN_CODE=$? ;; samples) From b086473a62a4e133f549db1701b970694d6e4567 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 7 Dec 2021 00:03:05 +0100 Subject: [PATCH 025/225] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.2.0 (#376) --- samples/install-without-bom/pom.xml | 2 +- samples/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 1f7479dc..8859aa63 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 diff --git a/samples/pom.xml b/samples/pom.xml index dbbe7b88..1f41c94b 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 456adca7..fc5f51cf 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 398ee380..ba95b773 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 From 96a079fbe2b7e31d2f516e80a555a0e6d594717e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 4 Jan 2022 22:36:49 +0000 Subject: [PATCH 026/225] fix(java): run Maven in plain console-friendly mode (#1301) (#382) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/build.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 3d2f8282..731a0eb4 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:a4d7b2cfc6a9d6b378a6b2458740eae15fcab28854bd23dad3a15102d2e47c87 + digest: sha256:491a007c6bd6e77f9e9b1bebcd6cdf08a4a4ef2c228c123d9696845204cb685d diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 20db30e6..a082dce4 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -47,15 +47,15 @@ set +e case ${JOB_TYPE} in test) - mvn test -B -Dclirr.skip=true -Denforcer.skip=true + mvn test -B -ntp -Dclirr.skip=true -Denforcer.skip=true RETURN_CODE=$? ;; lint) - mvn com.coveo:fmt-maven-plugin:check + mvn com.coveo:fmt-maven-plugin:check -B -ntp RETURN_CODE=$? ;; javadoc) - mvn javadoc:javadoc javadoc:test-javadoc + mvn javadoc:javadoc javadoc:test-javadoc -B -ntp RETURN_CODE=$? ;; integration) @@ -71,7 +71,7 @@ integration) ;; graalvm) # Run Unit and Integration Tests with Native Image - mvn -ntp -Pnative -Penable-integration-tests test + mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test RETURN_CODE=$? ;; samples) @@ -104,7 +104,7 @@ samples) fi ;; clirr) - mvn -B -Denforcer.skip=true clirr:check + mvn -B -ntp -Denforcer.skip=true clirr:check RETURN_CODE=$? ;; *) From c2f79de547d7e959f236bbc131c1b3297494776c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 5 Jan 2022 23:26:17 +0100 Subject: [PATCH 027/225] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.3 (#384) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.2` -> `1.2.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.3/compatibility-slim/1.2.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.3/confidence-slim/1.2.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.3`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​123-httpswwwgithubcomgoogleapisjava-shared-configcomparev122v123-2022-01-04) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.2...v1.2.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- google-analytics-data-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 01c80807..c2fa032a 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.2 + 1.2.3 Google Analytics Data BOM diff --git a/pom.xml b/pom.xml index d34d6498..51e8b282 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.2 + 1.2.3 From 218a0690a27b4648530baad5eacc2d176af4d305 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 6 Jan 2022 20:00:13 +0100 Subject: [PATCH 028/225] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.4 (#385) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.3` -> `1.2.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/compatibility-slim/1.2.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/confidence-slim/1.2.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.4`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​124-httpswwwgithubcomgoogleapisjava-shared-configcomparev123v124-2022-01-06) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.3...v1.2.4)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- google-analytics-data-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index c2fa032a..606b9df8 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.3 + 1.2.4 Google Analytics Data BOM diff --git a/pom.xml b/pom.xml index 51e8b282..f4bffae3 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.3 + 1.2.4 From c7d78d096b985202e9c0240de53c9f15a4ade5f2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 04:38:18 +0100 Subject: [PATCH 029/225] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 (#386) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.5.1` -> `2.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.6.0/compatibility-slim/2.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.6.0/confidence-slim/2.5.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.6.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​260-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare251v260-2022-01-07) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.5.1...v2.6.0) ##### Bug Fixes - **java:** add -ntp flag to native image testing command ([#​1299](https://www.togithub.com/googleapis/java-shared-dependencies/issues/1299)) ([#​546](https://www.togithub.com/googleapis/java-shared-dependencies/issues/546)) ([d8bb8d9](https://www.github.com/googleapis/java-shared-dependencies/commit/d8bb8d9d8e3b8c582f768cd3164e8580ec334511)) - **java:** run Maven in plain console-friendly mode ([#​1301](https://www.togithub.com/googleapis/java-shared-dependencies/issues/1301)) ([#​557](https://www.togithub.com/googleapis/java-shared-dependencies/issues/557)) ([6b57d08](https://www.github.com/googleapis/java-shared-dependencies/commit/6b57d08816ec6c1dfb637cae022624e896930ad8)) ##### Dependencies - gRPC upgrade to 1.43.2 ([#​567](https://www.togithub.com/googleapis/java-shared-dependencies/issues/567)) ([c946655](https://www.github.com/googleapis/java-shared-dependencies/commit/c94665571f26d24fbbb3f89ef5a3db99663bfdba)) - update dependency com.google.api-client:google-api-client-bom to v1.33.0 ([#​563](https://www.togithub.com/googleapis/java-shared-dependencies/issues/563)) ([0aedddb](https://www.github.com/googleapis/java-shared-dependencies/commit/0aedddb9a535753767d56f5910f355c7a1c8509c)) - update dependency com.google.api:api-common to v2.1.2 ([2f154a3](https://www.github.com/googleapis/java-shared-dependencies/commit/2f154a3ff759211438c72859e98b314c7ff8405f)) - update dependency com.google.http-client:google-http-client-bom to v1.41.0 ([#​562](https://www.togithub.com/googleapis/java-shared-dependencies/issues/562)) ([6da0735](https://www.github.com/googleapis/java-shared-dependencies/commit/6da0735d4db9df998d11c549488a024b800bed65)) - update dependency io.grpc:grpc-bom to v1.43.1 ([#​553](https://www.togithub.com/googleapis/java-shared-dependencies/issues/553)) ([b787c8f](https://www.github.com/googleapis/java-shared-dependencies/commit/b787c8f2032b7ffc9797158c3ff214b7813f34b7)) - update dependency org.apache.httpcomponents:httpcore to v4.4.15 ([#​550](https://www.togithub.com/googleapis/java-shared-dependencies/issues/550)) ([e2d3dba](https://www.github.com/googleapis/java-shared-dependencies/commit/e2d3dbad6dd54c117abb5ab1b6137cfee4e5a32b)) - update dependency org.checkerframework:checker-qual to v3.20.0 ([#​549](https://www.togithub.com/googleapis/java-shared-dependencies/issues/549)) ([586df59](https://www.github.com/googleapis/java-shared-dependencies/commit/586df5949d4ddca11d0705d696882c32d8436c31)) - update gax.version to v2.8.0 ([#​564](https://www.togithub.com/googleapis/java-shared-dependencies/issues/564)) ([9ad5d4f](https://www.github.com/googleapis/java-shared-dependencies/commit/9ad5d4f5385753a0c5739ef400f5d346e3342b84)) - update gax.version to v2.8.1 ([2f154a3](https://www.github.com/googleapis/java-shared-dependencies/commit/2f154a3ff759211438c72859e98b314c7ff8405f)) - update google.common-protos.version to v2.7.1 ([#​561](https://www.togithub.com/googleapis/java-shared-dependencies/issues/561)) ([9aa860d](https://www.github.com/googleapis/java-shared-dependencies/commit/9aa860d92f745f1d4382eb16439bf17ac6ca8ae9)) - update google.core.version to v2.3.5 ([#​565](https://www.togithub.com/googleapis/java-shared-dependencies/issues/565)) ([2f154a3](https://www.github.com/googleapis/java-shared-dependencies/commit/2f154a3ff759211438c72859e98b314c7ff8405f)) - update iam.version to v1.2.0 ([#​547](https://www.togithub.com/googleapis/java-shared-dependencies/issues/547)) ([3232c82](https://www.github.com/googleapis/java-shared-dependencies/commit/3232c828b628cb604a200b3e569e56e758e5e11d)) - upgrading protobuf to 3.19.2 ([#​560](https://www.togithub.com/googleapis/java-shared-dependencies/issues/560)) ([7ef3325](https://www.github.com/googleapis/java-shared-dependencies/commit/7ef33250f5473348d3546210b7a534360f476101)) ##### [2.5.1](https://www.github.com/googleapis/java-shared-dependencies/compare/2.5.0...v2.5.1) (2021-12-03) ##### Dependencies - update dependency com.google.api:api-common to v2.1.1 ([#​533](https://www.togithub.com/googleapis/java-shared-dependencies/issues/533)) ([4e23adb](https://www.github.com/googleapis/java-shared-dependencies/commit/4e23adb666dfaa18ae8bf869aca030153de16d62)) - update gax.version to v2.7.1 ([#​544](https://www.togithub.com/googleapis/java-shared-dependencies/issues/544)) ([5a0c480](https://www.github.com/googleapis/java-shared-dependencies/commit/5a0c480671fa834e600edc6ac6fe77967d1b79b3)) - update google.common-protos.version to v2.7.0 ([#​542](https://www.togithub.com/googleapis/java-shared-dependencies/issues/542)) ([af97eb5](https://www.github.com/googleapis/java-shared-dependencies/commit/af97eb5d9cff397080fdb3d4a6dbf7c2692e0358)) - update google.core.version to v2.3.3 ([#​534](https://www.togithub.com/googleapis/java-shared-dependencies/issues/534)) ([885acef](https://www.github.com/googleapis/java-shared-dependencies/commit/885acefe4ff5313eb53dc43b4825ca597b97dcfd))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f4bffae3..14784788 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.5.1 + 2.6.0 pom import From 275774218f2d969836bf699fd74f4fe344484589 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 7 Jan 2022 17:38:15 +0000 Subject: [PATCH 030/225] chore: release 0.11.0 (#360) :robot: I have created a release \*beep\* \*boop\* --- ## [0.11.0](https://www.github.com/googleapis/java-analytics-data/compare/v0.10.2...v0.11.0) (2022-01-07) ### Features * add the `schema_restriction_response` field to the `ResponseMetaData` type that contains the schema restrictions actively enforced in creating a report ([#361](https://www.github.com/googleapis/java-analytics-data/issues/361)) ([dba107a](https://www.github.com/googleapis/java-analytics-data/commit/dba107ad76ad5e5ff54c446073f54e39a6ec926a)) ### Bug Fixes * **java:** add -ntp flag to native image testing command ([#1299](https://www.github.com/googleapis/java-analytics-data/issues/1299)) ([#378](https://www.github.com/googleapis/java-analytics-data/issues/378)) ([fd890a0](https://www.github.com/googleapis/java-analytics-data/commit/fd890a019ef695eef15325479b88ab98153c6ce3)) * **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-analytics-data/issues/1266)) ([#359](https://www.github.com/googleapis/java-analytics-data/issues/359)) ([96f478d](https://www.github.com/googleapis/java-analytics-data/commit/96f478dd732fa3967b095e28dfaa641ddb458c0f)) * **java:** run Maven in plain console-friendly mode ([#1301](https://www.github.com/googleapis/java-analytics-data/issues/1301)) ([#382](https://www.github.com/googleapis/java-analytics-data/issues/382)) ([96a079f](https://www.github.com/googleapis/java-analytics-data/commit/96a079fbe2b7e31d2f516e80a555a0e6d594717e)) * remove classes for all v1alpha methods ([#345](https://www.github.com/googleapis/java-analytics-data/issues/345)) ([d323fb9](https://www.github.com/googleapis/java-analytics-data/commit/d323fb980cb25be22eb9988e4587c4abaff06681)) ### Documentation * fix docstring formatting ([#368](https://www.github.com/googleapis/java-analytics-data/issues/368)) ([ab58086](https://www.github.com/googleapis/java-analytics-data/commit/ab5808656c6d2ca197e4649764ad64c070d338eb)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#370](https://www.github.com/googleapis/java-analytics-data/issues/370)) ([bfe02e1](https://www.github.com/googleapis/java-analytics-data/commit/bfe02e118f69477cc06cf614ae9b447e026543e6)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#377](https://www.github.com/googleapis/java-analytics-data/issues/377)) ([28c9ebc](https://www.github.com/googleapis/java-analytics-data/commit/28c9ebce442d56b2e5ecab10a5306fa7e91fb535)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#386](https://www.github.com/googleapis/java-analytics-data/issues/386)) ([c7d78d0](https://www.github.com/googleapis/java-analytics-data/commit/c7d78d096b985202e9c0240de53c9f15a4ade5f2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 27 ++++++++++++++++++++++ google-analytics-data-bom/pom.xml | 8 +++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 +++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 ++--- 8 files changed, 45 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 80e93bd6..582052d6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,32 @@ # Changelog +## [0.11.0](https://www.github.com/googleapis/java-analytics-data/compare/v0.10.2...v0.11.0) (2022-01-07) + + +### Features + +* add the `schema_restriction_response` field to the `ResponseMetaData` type that contains the schema restrictions actively enforced in creating a report ([#361](https://www.github.com/googleapis/java-analytics-data/issues/361)) ([dba107a](https://www.github.com/googleapis/java-analytics-data/commit/dba107ad76ad5e5ff54c446073f54e39a6ec926a)) + + +### Bug Fixes + +* **java:** add -ntp flag to native image testing command ([#1299](https://www.github.com/googleapis/java-analytics-data/issues/1299)) ([#378](https://www.github.com/googleapis/java-analytics-data/issues/378)) ([fd890a0](https://www.github.com/googleapis/java-analytics-data/commit/fd890a019ef695eef15325479b88ab98153c6ce3)) +* **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-analytics-data/issues/1266)) ([#359](https://www.github.com/googleapis/java-analytics-data/issues/359)) ([96f478d](https://www.github.com/googleapis/java-analytics-data/commit/96f478dd732fa3967b095e28dfaa641ddb458c0f)) +* **java:** run Maven in plain console-friendly mode ([#1301](https://www.github.com/googleapis/java-analytics-data/issues/1301)) ([#382](https://www.github.com/googleapis/java-analytics-data/issues/382)) ([96a079f](https://www.github.com/googleapis/java-analytics-data/commit/96a079fbe2b7e31d2f516e80a555a0e6d594717e)) +* remove classes for all v1alpha methods ([#345](https://www.github.com/googleapis/java-analytics-data/issues/345)) ([d323fb9](https://www.github.com/googleapis/java-analytics-data/commit/d323fb980cb25be22eb9988e4587c4abaff06681)) + + +### Documentation + +* fix docstring formatting ([#368](https://www.github.com/googleapis/java-analytics-data/issues/368)) ([ab58086](https://www.github.com/googleapis/java-analytics-data/commit/ab5808656c6d2ca197e4649764ad64c070d338eb)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#370](https://www.github.com/googleapis/java-analytics-data/issues/370)) ([bfe02e1](https://www.github.com/googleapis/java-analytics-data/commit/bfe02e118f69477cc06cf614ae9b447e026543e6)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#377](https://www.github.com/googleapis/java-analytics-data/issues/377)) ([28c9ebc](https://www.github.com/googleapis/java-analytics-data/commit/28c9ebce442d56b2e5ecab10a5306fa7e91fb535)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#386](https://www.github.com/googleapis/java-analytics-data/issues/386)) ([c7d78d0](https://www.github.com/googleapis/java-analytics-data/commit/c7d78d096b985202e9c0240de53c9f15a4ade5f2)) + ### [0.10.2](https://www.github.com/googleapis/java-analytics-data/compare/v0.10.1...v0.10.2) (2021-10-19) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 606b9df8..b4b4886d 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.10.3-SNAPSHOT + 0.11.0 pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.10.3-SNAPSHOT + 0.11.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.10.3-SNAPSHOT + 0.11.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.10.3-SNAPSHOT + 0.11.0
diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 4608a5ba..2f8115d1 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.10.3-SNAPSHOT + 0.11.0 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.10.3-SNAPSHOT + 0.11.0 google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 769367e7..f7e317c0 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.10.3-SNAPSHOT + 0.11.0 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.10.3-SNAPSHOT + 0.11.0 diff --git a/pom.xml b/pom.xml index 14784788..682aadde 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.10.3-SNAPSHOT + 0.11.0 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.10.3-SNAPSHOT + 0.11.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.10.3-SNAPSHOT + 0.11.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.10.3-SNAPSHOT + 0.11.0 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index f0ebd69e..9642f881 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.10.3-SNAPSHOT + 0.11.0 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.10.3-SNAPSHOT + 0.11.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index fc5f51cf..f8cd975e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.10.3-SNAPSHOT + 0.11.0 diff --git a/versions.txt b/versions.txt index 51397811..858a136f 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # 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 +google-analytics-data:0.11.0:0.11.0 +grpc-google-analytics-data-v1beta:0.11.0:0.11.0 +proto-google-analytics-data-v1beta:0.11.0:0.11.0 From 097d3cb086f7616b85e019b6a5729a3109ce282a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 10 Jan 2022 19:20:19 +0000 Subject: [PATCH 031/225] chore(owlbot-java): disable re-writing clirr file in owlbot java post-processor (#1320) (#390) --- .github/.OwlBot.lock.yaml | 2 +- README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 731a0eb4..20c6ee3c 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:491a007c6bd6e77f9e9b1bebcd6cdf08a4a4ef2c228c123d9696845204cb685d + digest: sha256:efbfc5e9ff713005a037941f8ebcc0c69cc630e3ad934675ee26868705a30897 diff --git a/README.md b/README.md index 2535de07..91f2b1a6 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.10.2 + 0.11.0 ``` 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.11.0' ``` 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.11.0" ``` ## Authentication From 0cb5a7720c7f2d72a297ab7eeafd7d03360898df Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Mon, 10 Jan 2022 19:24:22 -0500 Subject: [PATCH 032/225] chore: change name to api_shortname in .repo-metadata.json (#391) --- .repo-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index 163d8bb5..d09abb61 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -1,5 +1,5 @@ { - "name": "analytics-data", + "api_shortname": "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.", From e55fca9843cb35d31ec077b059ae4a3211d1a2a8 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 11 Jan 2022 18:44:25 +0000 Subject: [PATCH 033/225] chore(java): update variable name to api_shortname in README template (#1323) (#393) --- .github/.OwlBot.lock.yaml | 2 +- .github/ISSUE_TEMPLATE/bug_report.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 20c6ee3c..dddb13b8 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:efbfc5e9ff713005a037941f8ebcc0c69cc630e3ad934675ee26868705a30897 + digest: sha256:7f737996c88586c499f7b0c25294c760f9f5eec092289a0e08d2d3f42a069ebb diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 66bcd3a5..08b03705 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -21,7 +21,7 @@ If you are still having issues, please include as much information as possible: General, Core, and Other are also allowed as types 2. OS type and version: 3. Java version: -4. analytics-data version(s): +4. version(s): #### Steps to reproduce From c3be92fb24c831fec937e38afd5b6f6486351892 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 12 Jan 2022 17:48:15 +0100 Subject: [PATCH 034/225] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.5 (#394) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.4` -> `1.2.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.5/compatibility-slim/1.2.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.5/confidence-slim/1.2.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.5`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​125-httpsgithubcomgoogleapisjava-shared-configcomparev124v125-2022-01-11) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.4...v1.2.5)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- google-analytics-data-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index b4b4886d..16d2b41d 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.4 + 1.2.5 Google Analytics Data BOM diff --git a/pom.xml b/pom.xml index 682aadde..bfca83b5 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.4 + 1.2.5 From 8a25e2eb68a45ffb851eebbcf079332f56fb089a Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 13 Jan 2022 15:28:24 -0500 Subject: [PATCH 035/225] chore: update release-level in .repo-metadata.json (#396) --- .repo-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index d09abb61..dbf882d4 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -4,7 +4,7 @@ "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", + "release_level": "preview", "transport": "grpc", "language": "java", "repo": "googleapis/java-analytics-data", From 22d4b9d4e7b0b824bc0fce2fbeb40a375349e032 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 17 Jan 2022 21:22:16 +0000 Subject: [PATCH 036/225] chore(java): update release_type choices to stable and preview (#1331) (#397) --- .github/.OwlBot.lock.yaml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index dddb13b8..dcdda8c6 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7f737996c88586c499f7b0c25294c760f9f5eec092289a0e08d2d3f42a069ebb + digest: sha256:9669c169d0582f13d6b2d319a43a78fc49f296a883aa48519bd0e5c7d34087c4 diff --git a/README.md b/README.md index 91f2b1a6..def740b5 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,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 From 3978670689a47f3d7daabe6090ebf75c49bab580 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Jan 2022 20:02:30 +0100 Subject: [PATCH 037/225] build(deps): update dependency org.codehaus.mojo:build-helper-maven-plugin to v3.3.0 (#387) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.codehaus.mojo:build-helper-maven-plugin](http://www.mojohaus.org/build-helper-maven-plugin/) ([source](https://togithub.com/mojohaus/build-helper-maven-plugin)) | `3.2.0` -> `3.3.0` | [![age](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/compatibility-slim/3.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.codehaus.mojo:build-helper-maven-plugin/3.3.0/confidence-slim/3.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 8859aa63..c82a087d 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -53,7 +53,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.2.0 + 3.3.0 add-snippets-source diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f8cd975e..8206708f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -57,7 +57,7 @@ org.codehaus.mojo build-helper-maven-plugin - 3.2.0 + 3.3.0 add-snippets-source From e19409d3b01a3c7169dba6a97a421c3476c44126 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 21 Jan 2022 21:34:15 +0100 Subject: [PATCH 038/225] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.6 (#398) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.5` -> `1.2.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/compatibility-slim/1.2.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.6/confidence-slim/1.2.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.6`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​126-httpsgithubcomgoogleapisjava-shared-configcomparev125v126-2022-01-19) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.5...v1.2.6)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- google-analytics-data-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 16d2b41d..3b05b667 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.5 + 1.2.6 Google Analytics Data BOM diff --git a/pom.xml b/pom.xml index bfca83b5..965275a5 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.5 + 1.2.6 From c347a304b4698235afe765e318a5802e9a9e3eb1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 24 Jan 2022 21:22:13 +0100 Subject: [PATCH 039/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.11.0 (#389) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.10.2` -> `0.11.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.0/compatibility-slim/0.10.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.0/confidence-slim/0.10.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-analytics-data ### [`v0.11.0`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0110-httpswwwgithubcomgoogleapisjava-analytics-datacomparev0102v0110-2022-01-07) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.10.2...v0.11.0) ##### Features - add the `schema_restriction_response` field to the `ResponseMetaData` type that contains the schema restrictions actively enforced in creating a report ([#​361](https://www.togithub.com/googleapis/java-analytics-data/issues/361)) ([dba107a](https://www.github.com/googleapis/java-analytics-data/commit/dba107ad76ad5e5ff54c446073f54e39a6ec926a)) ##### Bug Fixes - **java:** add -ntp flag to native image testing command ([#​1299](https://www.togithub.com/googleapis/java-analytics-data/issues/1299)) ([#​378](https://www.togithub.com/googleapis/java-analytics-data/issues/378)) ([fd890a0](https://www.github.com/googleapis/java-analytics-data/commit/fd890a019ef695eef15325479b88ab98153c6ce3)) - **java:** java 17 dependency arguments ([#​1266](https://www.togithub.com/googleapis/java-analytics-data/issues/1266)) ([#​359](https://www.togithub.com/googleapis/java-analytics-data/issues/359)) ([96f478d](https://www.github.com/googleapis/java-analytics-data/commit/96f478dd732fa3967b095e28dfaa641ddb458c0f)) - **java:** run Maven in plain console-friendly mode ([#​1301](https://www.togithub.com/googleapis/java-analytics-data/issues/1301)) ([#​382](https://www.togithub.com/googleapis/java-analytics-data/issues/382)) ([96a079f](https://www.github.com/googleapis/java-analytics-data/commit/96a079fbe2b7e31d2f516e80a555a0e6d594717e)) - remove classes for all v1alpha methods ([#​345](https://www.togithub.com/googleapis/java-analytics-data/issues/345)) ([d323fb9](https://www.github.com/googleapis/java-analytics-data/commit/d323fb980cb25be22eb9988e4587c4abaff06681)) ##### Documentation - fix docstring formatting ([#​368](https://www.togithub.com/googleapis/java-analytics-data/issues/368)) ([ab58086](https://www.github.com/googleapis/java-analytics-data/commit/ab5808656c6d2ca197e4649764ad64c070d338eb)) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#​370](https://www.togithub.com/googleapis/java-analytics-data/issues/370)) ([bfe02e1](https://www.github.com/googleapis/java-analytics-data/commit/bfe02e118f69477cc06cf614ae9b447e026543e6)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#​377](https://www.togithub.com/googleapis/java-analytics-data/issues/377)) ([28c9ebc](https://www.github.com/googleapis/java-analytics-data/commit/28c9ebce442d56b2e5ecab10a5306fa7e91fb535)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#​386](https://www.togithub.com/googleapis/java-analytics-data/issues/386)) ([c7d78d0](https://www.github.com/googleapis/java-analytics-data/commit/c7d78d096b985202e9c0240de53c9f15a4ade5f2)) ##### [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.togithub.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.togithub.com/googleapis/java-analytics-data/issues/338)) ([9d17e92](https://www.github.com/googleapis/java-analytics-data/commit/9d17e92ffcf46cfeb18b52475c1b70f5b9385c4b))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index c82a087d..67fe619d 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.10.2 + 0.11.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index ba95b773..c30904c5 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.10.2 + 0.11.0 com.google.auth From 7b37e6c9ce37e8a9e511c6db8a05aa7d705190d8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 24 Jan 2022 21:22:17 +0100 Subject: [PATCH 040/225] deps: update dependency com.google.auth:google-auth-library-oauth2-http to v1.4.0 (#399) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.auth:google-auth-library-oauth2-http](https://togithub.com/googleapis/google-auth-library-java) | `1.3.0` -> `1.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.4.0/compatibility-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.4.0/confidence-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/google-auth-library-java ### [`v1.4.0`](https://togithub.com/googleapis/google-auth-library-java/blob/HEAD/CHANGELOG.md#​140-httpsgithubcomgoogleapisgoogle-auth-library-javacomparev130v140-2022-01-19) [Compare Source](https://togithub.com/googleapis/google-auth-library-java/compare/v1.3.0...v1.4.0) ##### Features - setting the audience to always point to google token endpoint ([#​833](https://togithub.com/googleapis/google-auth-library-java/issues/833)) ([33bfe7a](https://togithub.com/googleapis/google-auth-library-java/commit/33bfe7a788a524324cd9b0a54acc8917f6b75556)) ##### Bug Fixes - (WIF) remove erroneous check for the subject token field name for text credential source ([#​822](https://togithub.com/googleapis/google-auth-library-java/issues/822)) ([6d35c68](https://togithub.com/googleapis/google-auth-library-java/commit/6d35c681cf397ff2a90363184e26ee5850294c41)) - **java:** add -ntp flag to native image testing command ([#​1299](https://togithub.com/googleapis/google-auth-library-java/issues/1299)) ([#​807](https://togithub.com/googleapis/google-auth-library-java/issues/807)) ([aa6654a](https://togithub.com/googleapis/google-auth-library-java/commit/aa6654a639ea15bcce7c7a6e86f170b1345895f0)) - **java:** run Maven in plain console-friendly mode ([#​1301](https://togithub.com/googleapis/google-auth-library-java/issues/1301)) ([#​818](https://togithub.com/googleapis/google-auth-library-java/issues/818)) ([4df45d0](https://togithub.com/googleapis/google-auth-library-java/commit/4df45d0d03a973f1beff43d8965c26289f217f22))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8206708f..12cf8087 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.auth google-auth-library-oauth2-http - 1.3.0 + 1.4.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index c30904c5..683e404f 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -33,7 +33,7 @@ com.google.auth google-auth-library-oauth2-http - 1.3.0 + 1.4.0 From 2c6e3d73bed5fe0cff44061dd1ce7e7f80df4ecc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Feb 2022 04:58:42 +0100 Subject: [PATCH 041/225] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 (#402) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.6.0` -> `2.7.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/compatibility-slim/2.6.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.7.0/confidence-slim/2.6.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.7.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​270-httpsgithubcomgoogleapisjava-shared-dependenciescomparev260v270-2022-01-28) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.6.0...v2.7.0) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.13.1 ([#​555](https://togithub.com/googleapis/java-shared-dependencies/issues/555)) ([67b5663](https://togithub.com/googleapis/java-shared-dependencies/commit/67b56635509215fd132b2ffbcaed995a6de93879)) - update dependency com.google.api-client:google-api-client-bom to v1.33.1 ([#​580](https://togithub.com/googleapis/java-shared-dependencies/issues/580)) ([895dba2](https://togithub.com/googleapis/java-shared-dependencies/commit/895dba2afef6c295b0e21a4ccd27feee1b6af8e2)) - update dependency com.google.api:api-common to v2.1.3 ([#​587](https://togithub.com/googleapis/java-shared-dependencies/issues/587)) ([5dbbce8](https://togithub.com/googleapis/java-shared-dependencies/commit/5dbbce80baa045818757912e6db4f222c12b75f6)) - update dependency com.google.auth:google-auth-library-bom to v1.4.0 ([#​578](https://togithub.com/googleapis/java-shared-dependencies/issues/578)) ([c274c62](https://togithub.com/googleapis/java-shared-dependencies/commit/c274c62905192bcc48c82104bf50cbeaa1894c2b)) - update dependency com.google.errorprone:error_prone_annotations to v2.11.0 ([#​582](https://togithub.com/googleapis/java-shared-dependencies/issues/582)) ([314da38](https://togithub.com/googleapis/java-shared-dependencies/commit/314da38c9f12cf425b5d1be8297e9f2a78d13948)) - update dependency com.google.http-client:google-http-client-bom to v1.41.2 ([#​579](https://togithub.com/googleapis/java-shared-dependencies/issues/579)) ([c8df06d](https://togithub.com/googleapis/java-shared-dependencies/commit/c8df06ddb3f4a975e928bbdd9dfae293e81efa39)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.0 ([#​576](https://togithub.com/googleapis/java-shared-dependencies/issues/576)) ([3315988](https://togithub.com/googleapis/java-shared-dependencies/commit/3315988059ca0223f078b0f760960674bfa8c04a)) - update dependency com.google.protobuf:protobuf-bom to v3.19.3 ([#​571](https://togithub.com/googleapis/java-shared-dependencies/issues/571)) ([c1931e1](https://togithub.com/googleapis/java-shared-dependencies/commit/c1931e1c4611ca3d1e2afac1c9e983cf1ec4a7de)) - update dependency io.grpc:grpc-bom to v1.44.0 ([#​586](https://togithub.com/googleapis/java-shared-dependencies/issues/586)) ([52c47b7](https://togithub.com/googleapis/java-shared-dependencies/commit/52c47b7425af438ba1a82dac87f9002353a6a87a)) - update dependency org.checkerframework:checker-qual to v3.21.1 ([#​554](https://togithub.com/googleapis/java-shared-dependencies/issues/554)) ([81bbb91](https://togithub.com/googleapis/java-shared-dependencies/commit/81bbb91774ab67161371bfd0dfd143de89dee4c9)) - update gax.version to v2.11.0 ([#​581](https://togithub.com/googleapis/java-shared-dependencies/issues/581)) ([1899612](https://togithub.com/googleapis/java-shared-dependencies/commit/189961226f84cdd4e283780d2c7d4a4dffc3e00c)) - update gax.version to v2.9.0 ([#​573](https://togithub.com/googleapis/java-shared-dependencies/issues/573)) ([ee5e38e](https://togithub.com/googleapis/java-shared-dependencies/commit/ee5e38efea574eeb2b5803192da98ba1ce1c8e6e)) - update google.common-protos.version to v2.7.2 ([#​588](https://togithub.com/googleapis/java-shared-dependencies/issues/588)) ([caac0e6](https://togithub.com/googleapis/java-shared-dependencies/commit/caac0e68e336b801becb6322b5b81fce1824ad8a)) - update google.core.version to v2.4.0 ([#​589](https://togithub.com/googleapis/java-shared-dependencies/issues/589)) ([6a292e3](https://togithub.com/googleapis/java-shared-dependencies/commit/6a292e3530a06d6b228f3154ed4e979ef68d7aeb)) - update iam.version to v1.2.1 ([#​569](https://togithub.com/googleapis/java-shared-dependencies/issues/569)) ([62dd270](https://togithub.com/googleapis/java-shared-dependencies/commit/62dd2705b257c4bb539bfe619234f38d0e13b138)) - update opencensus.version to v0.30.0 ([#​552](https://togithub.com/googleapis/java-shared-dependencies/issues/552)) ([ebae62e](https://togithub.com/googleapis/java-shared-dependencies/commit/ebae62eca75234db4fd571f42b8ed0f6ce1bd1f7)) - update opencensus.version to v0.31.0 ([#​585](https://togithub.com/googleapis/java-shared-dependencies/issues/585)) ([021b066](https://togithub.com/googleapis/java-shared-dependencies/commit/021b066a833af1629c89fcca593d16b9786ee0bf))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 965275a5..c9ed57fa 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.6.0 + 2.7.0 pom import From 67848224b156a1f4f6a156deb2446604213d9303 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 2 Feb 2022 04:54:59 +0000 Subject: [PATCH 042/225] deps(java): update actions/github-script action to v5 (#1339) (#400) --- .github/.OwlBot.lock.yaml | 15 ++++++++++++++- .github/workflows/approve-readme.yaml | 2 +- .github/workflows/auto-release.yaml | 2 +- 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index dcdda8c6..be3b9bde 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,16 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:9669c169d0582f13d6b2d319a43a78fc49f296a883aa48519bd0e5c7d34087c4 + digest: sha256:7062473f423f339256346ddbee3d81fb1de6b784fabc2a4d959d7df2c720e375 diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml index 7513acae..c5132427 100644 --- a/.github/workflows/approve-readme.yaml +++ b/.github/workflows/approve-readme.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' steps: - - uses: actions/github-script@v3 + - uses: actions/github-script@v5 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} script: | diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 9b4fd4d8..59c7cadd 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -6,7 +6,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.head_ref, 'release-please') steps: - - uses: actions/github-script@v3 + - uses: actions/github-script@v5 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true From 371c8e7d076ae7736e6e441b7b95446c936f8ab3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 19:44:53 +0000 Subject: [PATCH 043/225] chore: add kokoro config to run nightly integration test on java11.0.14 (#1347) (#403) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/nightly/java11-integration.cfg | 37 ++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 .kokoro/nightly/java11-integration.cfg diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index be3b9bde..8807efca 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7062473f423f339256346ddbee3d81fb1de6b784fabc2a4d959d7df2c720e375 + digest: sha256:7c853edc4136ae8f19f9d46d4569d38de2e446db2eea057f32e412bdba255846 diff --git a/.kokoro/nightly/java11-integration.cfg b/.kokoro/nightly/java11-integration.cfg new file mode 100644 index 00000000..58049cc3 --- /dev/null +++ b/.kokoro/nightly/java11-integration.cfg @@ -0,0 +1,37 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-public-resources/java11014" +} + +env_vars: { + key: "JOB_TYPE" + value: "integration" +} +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "ENABLE_FLAKYBOT" + value: "true" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} From a47d4c545858a3a1d3cfe8ad3c6a56373e5cb38d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 3 Feb 2022 20:58:49 +0000 Subject: [PATCH 044/225] chore(main): release 0.11.1-SNAPSHOT (#392) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 3b05b667..e454791f 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.0 + 0.11.1-SNAPSHOT pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.0 + 0.11.1-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.0 + 0.11.1-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.0 + 0.11.1-SNAPSHOT
diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 2f8115d1..63dcfe30 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.0 + 0.11.1-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.0 + 0.11.1-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index f7e317c0..37b4d299 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.0 + 0.11.1-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.0 + 0.11.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index c9ed57fa..bd3dd4d5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.0 + 0.11.1-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.0 + 0.11.1-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.0 + 0.11.1-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.0 + 0.11.1-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 9642f881..229b4fab 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.0 + 0.11.1-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.0 + 0.11.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 12cf8087..a6754505 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.11.0 + 0.11.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 858a136f..a51c8032 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.0:0.11.0 -grpc-google-analytics-data-v1beta:0.11.0:0.11.0 -proto-google-analytics-data-v1beta:0.11.0:0.11.0 +google-analytics-data:0.11.0:0.11.1-SNAPSHOT +grpc-google-analytics-data-v1beta:0.11.0:0.11.1-SNAPSHOT +proto-google-analytics-data-v1beta:0.11.0:0.11.1-SNAPSHOT From 4a3f417e24eb92dceb1ff66cb433412cd2f1b3f4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 7 Feb 2022 22:06:40 +0000 Subject: [PATCH 045/225] chore: enable auto release in java (#1349) (#406) * chore: fix auto-release * chore: remove codecov.yml * chore: update license headers for yaml files Source-Link: https://github.com/googleapis/synthtool/commit/5b777277a01a93e7f10c9279521e807b934e78d4 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6 --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/approve-readme.yaml | 15 +++++++++++++++ .github/workflows/auto-release.yaml | 19 +++++++++++++++++-- .github/workflows/ci.yaml | 15 +++++++++++++++ .github/workflows/samples.yaml | 15 +++++++++++++++ .kokoro/build.bat | 15 +++++++++++++++ 6 files changed, 78 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 8807efca..a8ddd81a 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:7c853edc4136ae8f19f9d46d4569d38de2e446db2eea057f32e412bdba255846 + digest: sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6 diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml index c5132427..1bb18232 100644 --- a/.github/workflows/approve-readme.yaml +++ b/.github/workflows/approve-readme.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: auto-merge-readme diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 59c7cadd..2ba3082b 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: auto-release @@ -16,8 +31,8 @@ jobs: return; } - // only approve PRs like "chore: release " - if ( !context.payload.pull_request.title.startsWith("chore: release") ) { + // only approve PRs like "chore(main): release " + if ( !context.payload.pull_request.title.startsWith("chore(main): release") ) { return; } diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 05de1f60..6b5e56aa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: push: branches: diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml index c46230a7..d5d964df 100644 --- a/.github/workflows/samples.yaml +++ b/.github/workflows/samples.yaml @@ -1,3 +1,18 @@ +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. on: pull_request: name: samples diff --git a/.kokoro/build.bat b/.kokoro/build.bat index 05826ad9..cc602c9e 100644 --- a/.kokoro/build.bat +++ b/.kokoro/build.bat @@ -1,3 +1,18 @@ :: See documentation in type-shell-output.bat +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# Github action job to test core java library features on +# downstream client libraries before they are released. "C:\Program Files\Git\bin\bash.exe" %~dp0build.sh From f68ad5d4b67070cd3dd18818ae11b4efd3d45057 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 8 Feb 2022 00:47:00 +0000 Subject: [PATCH 046/225] chore: update auto-release script to fix breaking changes in v5 (#1350) (#407) Source-Link: https://github.com/googleapis/synthtool/commit/53a58c23eb4decb3a17fab07388d42799e158b5f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:3c950ed12391ebaffd1ee66d0374766a1c50144ebe6a7a0042300b2e6bb5856b --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/auto-release.yaml | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a8ddd81a..9786771c 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:ebc2104854c5b81c6fd72ca79400a2e20e0d510c5e0654fd1a19e5c9be160ca6 + digest: sha256:3c950ed12391ebaffd1ee66d0374766a1c50144ebe6a7a0042300b2e6bb5856b diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 2ba3082b..18e23230 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -37,7 +37,7 @@ jobs: } // only approve PRs with pom.xml and versions.txt changes - const filesPromise = github.pulls.listFiles.endpoint({ + const filesPromise = github.rest.pulls.listFiles.endpoint({ owner: context.repo.owner, repo: context.repo.repo, pull_number: context.payload.pull_request.number, @@ -69,7 +69,7 @@ jobs: return; } - const promise = github.pulls.list.endpoint({ + const promise = github.rest.pulls.list.endpoint({ owner: context.repo.owner, repo: context.repo.repo, state: 'open' @@ -86,7 +86,7 @@ jobs: } // approve release PR - await github.pulls.createReview({ + await github.rest.pulls.createReview({ owner: context.repo.owner, repo: context.repo.repo, body: 'Rubber stamped release!', @@ -95,7 +95,7 @@ jobs: }); // attach kokoro:force-run and automerge labels - await github.issues.addLabels({ + await github.rest.issues.addLabels({ owner: context.repo.owner, repo: context.repo.repo, issue_number: context.payload.pull_request.number, From 36b3d6f46be5c613390d49334029e3a2c6fb3859 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 8 Feb 2022 01:00:48 +0000 Subject: [PATCH 047/225] chore(main): release 0.11.1 (#404) :robot: I have created a release *beep* *boop* --- ### [0.11.1](https://github.com/googleapis/java-analytics-data/compare/v0.11.0...v0.11.1) (2022-02-08) ### Dependencies * **java:** update actions/github-script action to v5 ([#1339](https://github.com/googleapis/java-analytics-data/issues/1339)) ([#400](https://github.com/googleapis/java-analytics-data/issues/400)) ([6784822](https://github.com/googleapis/java-analytics-data/commit/67848224b156a1f4f6a156deb2446604213d9303)) * update dependency com.google.auth:google-auth-library-oauth2-http to v1.4.0 ([#399](https://github.com/googleapis/java-analytics-data/issues/399)) ([7b37e6c](https://github.com/googleapis/java-analytics-data/commit/7b37e6c9ce37e8a9e511c6db8a05aa7d705190d8)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#402](https://github.com/googleapis/java-analytics-data/issues/402)) ([2c6e3d7](https://github.com/googleapis/java-analytics-data/commit/2c6e3d73bed5fe0cff44061dd1ce7e7f80df4ecc)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 9 +++++++++ google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 27 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 582052d6..75c291b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +### [0.11.1](https://github.com/googleapis/java-analytics-data/compare/v0.11.0...v0.11.1) (2022-02-08) + + +### Dependencies + +* **java:** update actions/github-script action to v5 ([#1339](https://github.com/googleapis/java-analytics-data/issues/1339)) ([#400](https://github.com/googleapis/java-analytics-data/issues/400)) ([6784822](https://github.com/googleapis/java-analytics-data/commit/67848224b156a1f4f6a156deb2446604213d9303)) +* update dependency com.google.auth:google-auth-library-oauth2-http to v1.4.0 ([#399](https://github.com/googleapis/java-analytics-data/issues/399)) ([7b37e6c](https://github.com/googleapis/java-analytics-data/commit/7b37e6c9ce37e8a9e511c6db8a05aa7d705190d8)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#402](https://github.com/googleapis/java-analytics-data/issues/402)) ([2c6e3d7](https://github.com/googleapis/java-analytics-data/commit/2c6e3d73bed5fe0cff44061dd1ce7e7f80df4ecc)) + ## [0.11.0](https://www.github.com/googleapis/java-analytics-data/compare/v0.10.2...v0.11.0) (2022-01-07) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index e454791f..7a13032d 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.1-SNAPSHOT + 0.11.1 pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.1-SNAPSHOT + 0.11.1 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.1-SNAPSHOT + 0.11.1 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.1-SNAPSHOT + 0.11.1 diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 63dcfe30..c9ffff98 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.1-SNAPSHOT + 0.11.1 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.1-SNAPSHOT + 0.11.1 google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 37b4d299..31e57a15 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.1-SNAPSHOT + 0.11.1 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.1-SNAPSHOT + 0.11.1 diff --git a/pom.xml b/pom.xml index bd3dd4d5..4f675a7e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.1-SNAPSHOT + 0.11.1 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.1-SNAPSHOT + 0.11.1 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.1-SNAPSHOT + 0.11.1 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.1-SNAPSHOT + 0.11.1 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 229b4fab..6ddf855c 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.1-SNAPSHOT + 0.11.1 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.1-SNAPSHOT + 0.11.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index a6754505..ea082223 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.11.1-SNAPSHOT + 0.11.1 diff --git a/versions.txt b/versions.txt index a51c8032..f2748e6f 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.0:0.11.1-SNAPSHOT -grpc-google-analytics-data-v1beta:0.11.0:0.11.1-SNAPSHOT -proto-google-analytics-data-v1beta:0.11.0:0.11.1-SNAPSHOT +google-analytics-data:0.11.1:0.11.1 +grpc-google-analytics-data-v1beta:0.11.1:0.11.1 +proto-google-analytics-data-v1beta:0.11.1:0.11.1 From faf0d6f3aea275cd1e813a2c1bec6f59796b0a0d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 8 Feb 2022 01:06:34 +0000 Subject: [PATCH 048/225] chore(main): release 0.11.2-SNAPSHOT (#408) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 7a13032d..f9eac355 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.1 + 0.11.2-SNAPSHOT pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.1 + 0.11.2-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.1 + 0.11.2-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.1 + 0.11.2-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index c9ffff98..07d695a3 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.1 + 0.11.2-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.1 + 0.11.2-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 31e57a15..a1aaa3e4 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.1 + 0.11.2-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.1 + 0.11.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index 4f675a7e..5eb5c89c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.1 + 0.11.2-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.1 + 0.11.2-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.1 + 0.11.2-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.1 + 0.11.2-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 6ddf855c..49178331 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.1 + 0.11.2-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.1 + 0.11.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ea082223..69a6dc91 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.11.1 + 0.11.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index f2748e6f..6a6435e0 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.1:0.11.1 -grpc-google-analytics-data-v1beta:0.11.1:0.11.1 -proto-google-analytics-data-v1beta:0.11.1:0.11.1 +google-analytics-data:0.11.1:0.11.2-SNAPSHOT +grpc-google-analytics-data-v1beta:0.11.1:0.11.2-SNAPSHOT +proto-google-analytics-data-v1beta:0.11.1:0.11.2-SNAPSHOT From 00bab5d71439ae966d7517011b68d1b29969f0c7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Feb 2022 18:51:06 +0100 Subject: [PATCH 049/225] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.7 (#410) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.6` -> `1.2.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.7/compatibility-slim/1.2.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.7/confidence-slim/1.2.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.7`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​127-httpsgithubcomgoogleapisjava-shared-configcomparev126v127-2022-02-04) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.6...v1.2.7)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- README.md | 6 +++--- google-analytics-data-bom/pom.xml | 2 +- pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index def740b5..60a279e1 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.11.0 + 0.11.1 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.11.0' +implementation 'com.google.analytics:google-analytics-data:0.11.1' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.1" ``` ## Authentication diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index f9eac355..0401c3ad 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.6 + 1.2.7 Google Analytics Data BOM diff --git a/pom.xml b/pom.xml index 5eb5c89c..2de13057 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.6 + 1.2.7 From 4f3329f8dc1e56ccc8d4587c6a53a7821ba18d17 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Feb 2022 20:04:30 +0100 Subject: [PATCH 050/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.11.1 (#409) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.11.0` -> `0.11.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.1/compatibility-slim/0.11.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.1/confidence-slim/0.11.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-analytics-data ### [`v0.11.1`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0111-httpsgithubcomgoogleapisjava-analytics-datacomparev0110v0111-2022-02-08) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.0...v0.11.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 67fe619d..3c1b732f 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.11.0 + 0.11.1 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 683e404f..38262878 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.11.0 + 0.11.1 com.google.auth From 70410d16bcde71ba112ee640ccfd533fb38c0bd6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Feb 2022 20:38:59 +0100 Subject: [PATCH 051/225] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.2.1 (#405) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 2de13057..6e9d887b 100644 --- a/pom.xml +++ b/pom.xml @@ -113,7 +113,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.1.2 + 3.2.1 From 7bbd192ff02d9003977a6ed235cad2e7f2195278 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 11 Feb 2022 20:52:58 +0100 Subject: [PATCH 052/225] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.2 (#411) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-javadoc-plugin](https://maven.apache.org/plugins/) | `3.3.1` -> `3.3.2` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.2/compatibility-slim/3.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.3.2/confidence-slim/3.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 6e9d887b..3fcd036f 100644 --- a/pom.xml +++ b/pom.xml @@ -140,7 +140,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.1 + 3.3.2 html From 831d07fbe3dff2d7d2519a7c13e977d08dbedcaf Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 11 Feb 2022 21:24:51 +0100 Subject: [PATCH 053/225] deps: update actions/github-script action to v6 (#412) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/github-script](https://togithub.com/actions/github-script) | action | major | `v5` -> `v6` | --- ### Release Notes
actions/github-script ### [`v6`](https://togithub.com/actions/github-script/compare/v5...v6) [Compare Source](https://togithub.com/actions/github-script/compare/v5...v6)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From 03d5100d937b53196cf85a11457321e2dac8687a Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 21:08:53 +0000 Subject: [PATCH 054/225] chore(main): release 0.11.2 (#413) :robot: I have created a release *beep* *boop* --- ### [0.11.2](https://github.com/googleapis/java-analytics-data/compare/v0.11.1...v0.11.2) (2022-02-11) ### Dependencies * update actions/github-script action to v6 ([#412](https://github.com/googleapis/java-analytics-data/issues/412)) ([831d07f](https://github.com/googleapis/java-analytics-data/commit/831d07fbe3dff2d7d2519a7c13e977d08dbedcaf)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 75c291b8..26824f64 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [0.11.2](https://github.com/googleapis/java-analytics-data/compare/v0.11.1...v0.11.2) (2022-02-11) + + +### Dependencies + +* update actions/github-script action to v6 ([#412](https://github.com/googleapis/java-analytics-data/issues/412)) ([831d07f](https://github.com/googleapis/java-analytics-data/commit/831d07fbe3dff2d7d2519a7c13e977d08dbedcaf)) + ### [0.11.1](https://github.com/googleapis/java-analytics-data/compare/v0.11.0...v0.11.1) (2022-02-08) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 0401c3ad..b4d58c17 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.2-SNAPSHOT + 0.11.2 pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.2-SNAPSHOT + 0.11.2 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.2-SNAPSHOT + 0.11.2 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.2-SNAPSHOT + 0.11.2
diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 07d695a3..4193a63c 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.2-SNAPSHOT + 0.11.2 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.2-SNAPSHOT + 0.11.2 google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index a1aaa3e4..f4e76327 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.2-SNAPSHOT + 0.11.2 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.2-SNAPSHOT + 0.11.2 diff --git a/pom.xml b/pom.xml index 3fcd036f..a3d0c60c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.2-SNAPSHOT + 0.11.2 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.2-SNAPSHOT + 0.11.2 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.2-SNAPSHOT + 0.11.2 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.2-SNAPSHOT + 0.11.2 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 49178331..46d30b20 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.2-SNAPSHOT + 0.11.2 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.2-SNAPSHOT + 0.11.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 69a6dc91..d0658998 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.11.2-SNAPSHOT + 0.11.2 diff --git a/versions.txt b/versions.txt index 6a6435e0..df6f8893 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.1:0.11.2-SNAPSHOT -grpc-google-analytics-data-v1beta:0.11.1:0.11.2-SNAPSHOT -proto-google-analytics-data-v1beta:0.11.1:0.11.2-SNAPSHOT +google-analytics-data:0.11.2:0.11.2 +grpc-google-analytics-data-v1beta:0.11.2:0.11.2 +proto-google-analytics-data-v1beta:0.11.2:0.11.2 From a2b8197941b960432a3c053f2376c9dded0f50af Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 11 Feb 2022 21:24:39 +0000 Subject: [PATCH 055/225] chore(main): release 0.11.3-SNAPSHOT (#414) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index b4d58c17..1d5a9561 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.2 + 0.11.3-SNAPSHOT pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.2 + 0.11.3-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.2 + 0.11.3-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.2 + 0.11.3-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 4193a63c..59c0acda 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.2 + 0.11.3-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.2 + 0.11.3-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index f4e76327..89dcd31c 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.2 + 0.11.3-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.2 + 0.11.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index a3d0c60c..7cf165e9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.2 + 0.11.3-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.2 + 0.11.3-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.2 + 0.11.3-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.2 + 0.11.3-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 46d30b20..fedac385 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.2 + 0.11.3-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.2 + 0.11.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d0658998..b04562e7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.11.2 + 0.11.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index df6f8893..3cbce6d0 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.2:0.11.2 -grpc-google-analytics-data-v1beta:0.11.2:0.11.2 -proto-google-analytics-data-v1beta:0.11.2:0.11.2 +google-analytics-data:0.11.2:0.11.3-SNAPSHOT +grpc-google-analytics-data-v1beta:0.11.2:0.11.3-SNAPSHOT +proto-google-analytics-data-v1beta:0.11.2:0.11.3-SNAPSHOT From 7059b80b5c12eb194eae5ff9bd6ca58c2b3dcaae Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Feb 2022 22:50:55 +0100 Subject: [PATCH 056/225] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.9 (#415) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | org.sonatype.plugins:nexus-staging-maven-plugin | `1.6.8` -> `1.6.9` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/compatibility-slim/1.6.8)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.9/confidence-slim/1.6.8)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- README.md | 6 +++--- samples/pom.xml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 60a279e1..6d393836 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.11.1 + 0.11.2 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.11.1' +implementation 'com.google.analytics:google-analytics-data:0.11.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.1" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.2" ``` ## Authentication diff --git a/samples/pom.xml b/samples/pom.xml index 1f41c94b..941a047f 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -46,7 +46,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.8 + 1.6.9 true From 2561c030ca5113c93bdd24c4648d46cdb8f9cf96 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Feb 2022 17:47:04 +0100 Subject: [PATCH 057/225] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.10 (#417) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.9` -> `1.6.10` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/compatibility-slim/1.6.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.10/confidence-slim/1.6.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sonatype/nexus-maven-plugins ### [`v1.6.10`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.9...release-1.6.10) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.9...release-1.6.10)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index 941a047f..a78b7385 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -46,7 +46,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.9 + 1.6.10 true From 98965f97d6c8fc35fb0f9386d6fee9366ae6193d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Feb 2022 19:40:53 +0100 Subject: [PATCH 058/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.11.2 (#416) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.11.1` -> `0.11.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.2/compatibility-slim/0.11.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.2/confidence-slim/0.11.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-analytics-data ### [`v0.11.2`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0112-httpsgithubcomgoogleapisjava-analytics-datacomparev0111v0112-2022-02-11) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.1...v0.11.2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 3c1b732f..413f89c4 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.11.1 + 0.11.2 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 38262878..eca9d114 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.11.1 + 0.11.2 com.google.auth From ce3337fc7426a970903c0d177d58e38ff4571e5e Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Tue, 15 Feb 2022 11:19:11 -0800 Subject: [PATCH 059/225] chore: fix .repo-metadata (#418) Fixes #395 --- .repo-metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index dbf882d4..11b2aec9 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -1,5 +1,5 @@ { - "api_shortname": "analytics-data", + "api_shortname": "analyticsdata", "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.", From de7f7b3ea6b04a7c8886ffde3547fb87c1071cdb Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 17 Feb 2022 16:45:27 +0100 Subject: [PATCH 060/225] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.11 (#419) --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index a78b7385..f44b21b5 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -46,7 +46,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.10 + 1.6.11 true From ec4a7cf37f2b71cc194df7d10a5e8804c8bc316c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 25 Feb 2022 21:56:37 +0000 Subject: [PATCH 061/225] ci: pull request template includes sample format (#1357) (#424) Source-Link: https://github.com/googleapis/synthtool/commit/e122cb03ea37652946651346736d99b9dcc4311f Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:387835a1375a0049ec44e02542c844302854c732d8291bdf8e472c0ff70a8f67 --- .github/.OwlBot.lock.yaml | 2 +- .github/PULL_REQUEST_TEMPLATE.md | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 9786771c..9351fdfb 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:3c950ed12391ebaffd1ee66d0374766a1c50144ebe6a7a0042300b2e6bb5856b + digest: sha256:387835a1375a0049ec44e02542c844302854c732d8291bdf8e472c0ff70a8f67 diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 4fda4435..b1b8ba4a 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -5,3 +5,6 @@ Thank you for opening a Pull Request! Before submitting your PR, there are a few - [ ] Appropriate docs were updated (if necessary) Fixes # ☕️ + +If you write sample code, please follow the [samples format]( +https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md). From 99a33829b10b1f56be86690b4218a7ccc7970f0e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 28 Feb 2022 23:22:22 +0100 Subject: [PATCH 062/225] deps: update dependency com.google.auth:google-auth-library-oauth2-http to v1.5.3 (#421) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.auth:google-auth-library-oauth2-http](https://togithub.com/googleapis/google-auth-library-java) | `1.4.0` -> `1.5.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.5.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.5.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.5.3/compatibility-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.5.3/confidence-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/google-auth-library-java ### [`v1.5.3`](https://togithub.com/googleapis/google-auth-library-java/blob/HEAD/CHANGELOG.md#​153-httpsgithubcomgoogleapisgoogle-auth-library-javacomparev152v153-2022-02-24) [Compare Source](https://togithub.com/googleapis/google-auth-library-java/compare/v1.4.0...v1.5.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index b04562e7..e2eb2346 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -34,7 +34,7 @@ com.google.auth google-auth-library-oauth2-http - 1.4.0 + 1.5.3 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index eca9d114..35bd0a27 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -33,7 +33,7 @@ com.google.auth google-auth-library-oauth2-http - 1.4.0 + 1.5.3 From 028806526126c7107d8a1feb6b95dc5a193b87d8 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 28 Feb 2022 22:32:32 +0000 Subject: [PATCH 063/225] chore(main): release 0.11.3 (#425) :robot: I have created a release *beep* *boop* --- ### [0.11.3](https://github.com/googleapis/java-analytics-data/compare/v0.11.2...v0.11.3) (2022-02-28) ### Dependencies * update dependency com.google.auth:google-auth-library-oauth2-http to v1.5.3 ([#421](https://github.com/googleapis/java-analytics-data/issues/421)) ([99a3382](https://github.com/googleapis/java-analytics-data/commit/99a33829b10b1f56be86690b4218a7ccc7970f0e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26824f64..4279d181 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [0.11.3](https://github.com/googleapis/java-analytics-data/compare/v0.11.2...v0.11.3) (2022-02-28) + + +### Dependencies + +* update dependency com.google.auth:google-auth-library-oauth2-http to v1.5.3 ([#421](https://github.com/googleapis/java-analytics-data/issues/421)) ([99a3382](https://github.com/googleapis/java-analytics-data/commit/99a33829b10b1f56be86690b4218a7ccc7970f0e)) + ### [0.11.2](https://github.com/googleapis/java-analytics-data/compare/v0.11.1...v0.11.2) (2022-02-11) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 1d5a9561..00ceaf33 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.3-SNAPSHOT + 0.11.3 pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.3-SNAPSHOT + 0.11.3 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.3-SNAPSHOT + 0.11.3 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.3-SNAPSHOT + 0.11.3
diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 59c0acda..121f0313 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.3-SNAPSHOT + 0.11.3 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.3-SNAPSHOT + 0.11.3 google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 89dcd31c..27fd760a 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.3-SNAPSHOT + 0.11.3 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.3-SNAPSHOT + 0.11.3 diff --git a/pom.xml b/pom.xml index 7cf165e9..60922534 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.3-SNAPSHOT + 0.11.3 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.3-SNAPSHOT + 0.11.3 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.3-SNAPSHOT + 0.11.3 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.3-SNAPSHOT + 0.11.3 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index fedac385..c67681ff 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.3-SNAPSHOT + 0.11.3 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.3-SNAPSHOT + 0.11.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e2eb2346..97f54ed7 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.11.3-SNAPSHOT + 0.11.3 diff --git a/versions.txt b/versions.txt index 3cbce6d0..be7cb5ed 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.2:0.11.3-SNAPSHOT -grpc-google-analytics-data-v1beta:0.11.2:0.11.3-SNAPSHOT -proto-google-analytics-data-v1beta:0.11.2:0.11.3-SNAPSHOT +google-analytics-data:0.11.3:0.11.3 +grpc-google-analytics-data-v1beta:0.11.3:0.11.3 +proto-google-analytics-data-v1beta:0.11.3:0.11.3 From 72dd5422e1c76a946735702ecabfd4191bed8936 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 28 Feb 2022 23:38:27 +0100 Subject: [PATCH 064/225] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.2.2 (#422) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) ([source](https://togithub.com/apache/maven-project-info-reports-plugin)) | `3.2.1` -> `3.2.2` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/compatibility-slim/3.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.2.2/confidence-slim/3.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 60922534..cff3331e 100644 --- a/pom.xml +++ b/pom.xml @@ -113,7 +113,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.2.1 + 3.2.2 From 4f01b3fa2af7de1dc828b92476be4372ccd382a6 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 28 Feb 2022 23:36:18 +0000 Subject: [PATCH 065/225] chore(main): release 0.11.4-SNAPSHOT (#426) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 00ceaf33..5eba601d 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.3 + 0.11.4-SNAPSHOT pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.3 + 0.11.4-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.3 + 0.11.4-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.3 + 0.11.4-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 121f0313..059c83ba 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.3 + 0.11.4-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.3 + 0.11.4-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 27fd760a..7249c1bc 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.3 + 0.11.4-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.3 + 0.11.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index cff3331e..5bd02b55 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.3 + 0.11.4-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.3 + 0.11.4-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.3 + 0.11.4-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.3 + 0.11.4-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index c67681ff..0b59e784 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.3 + 0.11.4-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.3 + 0.11.4-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 97f54ed7..dfb24001 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.11.3 + 0.11.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index be7cb5ed..7a140c04 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.3:0.11.3 -grpc-google-analytics-data-v1beta:0.11.3:0.11.3 -proto-google-analytics-data-v1beta:0.11.3:0.11.3 +google-analytics-data:0.11.3:0.11.4-SNAPSHOT +grpc-google-analytics-data-v1beta:0.11.3:0.11.4-SNAPSHOT +proto-google-analytics-data-v1beta:0.11.3:0.11.4-SNAPSHOT From 9b0c521b26422dfeb12695b761583851967f5222 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Mar 2022 02:40:30 +0100 Subject: [PATCH 066/225] deps: update actions/setup-java action to v3 (#423) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [actions/setup-java](https://togithub.com/actions/setup-java) | action | major | `v1` -> `v3` | | [actions/setup-java](https://togithub.com/actions/setup-java) | action | major | `v2` -> `v3` | --- ### Release Notes
actions/setup-java ### [`v3`](https://togithub.com/actions/setup-java/compare/v2...v3) [Compare Source](https://togithub.com/actions/setup-java/compare/v2...v3) ### [`v2`](https://togithub.com/actions/setup-java/compare/v1...v2) [Compare Source](https://togithub.com/actions/setup-java/compare/v1...v2)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From d412dd495d477c25d7b6f355f7d8ca8ab919d59c Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 1 Mar 2022 03:06:19 +0000 Subject: [PATCH 067/225] chore(main): release 0.11.4 (#427) :robot: I have created a release *beep* *boop* --- ### [0.11.4](https://github.com/googleapis/java-analytics-data/compare/v0.11.3...v0.11.4) (2022-03-01) ### Dependencies * update actions/setup-java action to v3 ([#423](https://github.com/googleapis/java-analytics-data/issues/423)) ([9b0c521](https://github.com/googleapis/java-analytics-data/commit/9b0c521b26422dfeb12695b761583851967f5222)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ README.md | 6 +++--- google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 28 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4279d181..9055e33a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [0.11.4](https://github.com/googleapis/java-analytics-data/compare/v0.11.3...v0.11.4) (2022-03-01) + + +### Dependencies + +* update actions/setup-java action to v3 ([#423](https://github.com/googleapis/java-analytics-data/issues/423)) ([9b0c521](https://github.com/googleapis/java-analytics-data/commit/9b0c521b26422dfeb12695b761583851967f5222)) + ### [0.11.3](https://github.com/googleapis/java-analytics-data/compare/v0.11.2...v0.11.3) (2022-02-28) diff --git a/README.md b/README.md index 6d393836..b8ca6d1f 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.11.2 + 0.11.3 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.11.2' +implementation 'com.google.analytics:google-analytics-data:0.11.3' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.2" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.3" ``` ## Authentication diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 5eba601d..6e8e142b 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.4-SNAPSHOT + 0.11.4 pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.4-SNAPSHOT + 0.11.4 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.4-SNAPSHOT + 0.11.4 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.4-SNAPSHOT + 0.11.4
diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 059c83ba..a47ee818 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.4-SNAPSHOT + 0.11.4 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.4-SNAPSHOT + 0.11.4 google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 7249c1bc..23e449fc 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.4-SNAPSHOT + 0.11.4 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.4-SNAPSHOT + 0.11.4 diff --git a/pom.xml b/pom.xml index 5bd02b55..adef84ce 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.4-SNAPSHOT + 0.11.4 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.4-SNAPSHOT + 0.11.4 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.4-SNAPSHOT + 0.11.4 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.4-SNAPSHOT + 0.11.4 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 0b59e784..e2cdf6fa 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.4-SNAPSHOT + 0.11.4 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.4-SNAPSHOT + 0.11.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index dfb24001..d406772a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.11.4-SNAPSHOT + 0.11.4 diff --git a/versions.txt b/versions.txt index 7a140c04..a7da39c5 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.3:0.11.4-SNAPSHOT -grpc-google-analytics-data-v1beta:0.11.3:0.11.4-SNAPSHOT -proto-google-analytics-data-v1beta:0.11.3:0.11.4-SNAPSHOT +google-analytics-data:0.11.4:0.11.4 +grpc-google-analytics-data-v1beta:0.11.4:0.11.4 +proto-google-analytics-data-v1beta:0.11.4:0.11.4 From b38fe49352a865b22884949a465e2526f3abb425 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 1 Mar 2022 03:12:20 +0000 Subject: [PATCH 068/225] chore(main): release 0.11.5-SNAPSHOT (#428) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 6e8e142b..934d53da 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.4 + 0.11.5-SNAPSHOT pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.4 + 0.11.5-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.4 + 0.11.5-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.4 + 0.11.5-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index a47ee818..25914226 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.4 + 0.11.5-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.4 + 0.11.5-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 23e449fc..171bc4e6 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.4 + 0.11.5-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.4 + 0.11.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index adef84ce..b02a9776 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.4 + 0.11.5-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.4 + 0.11.5-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.4 + 0.11.5-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.4 + 0.11.5-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index e2cdf6fa..3f42c63b 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.4 + 0.11.5-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.4 + 0.11.5-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d406772a..891fdf45 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.11.4 + 0.11.5-SNAPSHOT diff --git a/versions.txt b/versions.txt index a7da39c5..ca859e8b 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.4:0.11.4 -grpc-google-analytics-data-v1beta:0.11.4:0.11.4 -proto-google-analytics-data-v1beta:0.11.4:0.11.4 +google-analytics-data:0.11.4:0.11.5-SNAPSHOT +grpc-google-analytics-data-v1beta:0.11.4:0.11.5-SNAPSHOT +proto-google-analytics-data-v1beta:0.11.4:0.11.5-SNAPSHOT From 69a5376c39d46137e7908c114023789fc57d9817 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 1 Mar 2022 18:46:25 +0100 Subject: [PATCH 069/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.11.4 (#429) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.11.2` -> `0.11.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.4/compatibility-slim/0.11.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.4/confidence-slim/0.11.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-analytics-data ### [`v0.11.4`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0114-httpsgithubcomgoogleapisjava-analytics-datacomparev0113v0114-2022-03-01) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.3...v0.11.4) ### [`v0.11.3`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0113-httpsgithubcomgoogleapisjava-analytics-datacomparev0112v0113-2022-02-28) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.2...v0.11.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b8ca6d1f..60e18c16 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.11.3 + 0.11.4 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.11.3' +implementation 'com.google.analytics:google-analytics-data:0.11.4' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.3" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.4" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 413f89c4..3a3d4b7e 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.11.2 + 0.11.4 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 35bd0a27..a8300b8d 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.11.2 + 0.11.4 com.google.auth From ea835bc760850556d731a6adcb41f72a76645cf0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 2 Mar 2022 19:14:14 +0100 Subject: [PATCH 070/225] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 (#436) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.7.0` -> `2.8.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.8.0/compatibility-slim/2.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.8.0/confidence-slim/2.7.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.8.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​280-httpsgithubcomgoogleapisjava-shared-dependenciescomparev270v280-2022-03-02) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.7.0...v2.8.0) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.33.2 ([#​602](https://togithub.com/googleapis/java-shared-dependencies/issues/602)) ([85b132f](https://togithub.com/googleapis/java-shared-dependencies/commit/85b132f5830772646025b6a9fbbb970a941b86b5)) - update dependency com.google.api:api-common to v2.1.4 ([#​605](https://togithub.com/googleapis/java-shared-dependencies/issues/605)) ([ca7d49a](https://togithub.com/googleapis/java-shared-dependencies/commit/ca7d49aee26b6d90abd2afd61c20861d2307fe9c)) - update dependency com.google.auth:google-auth-library-bom to v1.5.3 ([#​614](https://togithub.com/googleapis/java-shared-dependencies/issues/614)) ([e6413f3](https://togithub.com/googleapis/java-shared-dependencies/commit/e6413f3b1be78473ace7085c344eda2d78cdf01a)) - update dependency com.google.cloud:google-cloud-core to v2.5.6 ([#​621](https://togithub.com/googleapis/java-shared-dependencies/issues/621)) ([3d5669f](https://togithub.com/googleapis/java-shared-dependencies/commit/3d5669f215689dd2df71200ffe37d5a9d385cda8)) - update dependency com.google.code.gson:gson to v2.9.0 ([#​611](https://togithub.com/googleapis/java-shared-dependencies/issues/611)) ([f59c28d](https://togithub.com/googleapis/java-shared-dependencies/commit/f59c28d8cd30ada1237f7722135ba148dce6315e)) - update dependency com.google.http-client:google-http-client-bom to v1.41.4 ([#​608](https://togithub.com/googleapis/java-shared-dependencies/issues/608)) ([f9a4f23](https://togithub.com/googleapis/java-shared-dependencies/commit/f9a4f23d3a32148ac59e53eaae6558ccbceca12c)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.1 ([#​606](https://togithub.com/googleapis/java-shared-dependencies/issues/606)) ([3882494](https://togithub.com/googleapis/java-shared-dependencies/commit/3882494770d48fcc02ed19088aa06612a8e440eb)) - update dependency com.google.protobuf:protobuf-bom to v3.19.4 ([#​593](https://togithub.com/googleapis/java-shared-dependencies/issues/593)) ([1e155bf](https://togithub.com/googleapis/java-shared-dependencies/commit/1e155bfc957bbb7e25d2e0994cdecaa81843bdc5)) - update dependency io.grpc:grpc-bom to v1.44.1 ([#​613](https://togithub.com/googleapis/java-shared-dependencies/issues/613)) ([3038a2c](https://togithub.com/googleapis/java-shared-dependencies/commit/3038a2c86cd20c91b65f2d7926eeb739147a68db)) - update dependency junit:junit to v4.13.2 ([#​607](https://togithub.com/googleapis/java-shared-dependencies/issues/607)) ([987e617](https://togithub.com/googleapis/java-shared-dependencies/commit/987e61796c7a093e005fe8832cf39275c391b2c1)) - update dependency org.checkerframework:checker-qual to v3.21.3 ([#​596](https://togithub.com/googleapis/java-shared-dependencies/issues/596)) ([ac5083c](https://togithub.com/googleapis/java-shared-dependencies/commit/ac5083cd010924dc128f041c2cdbab20166a6bf0)) - update gax.version to v2.12.2 ([#​592](https://togithub.com/googleapis/java-shared-dependencies/issues/592)) ([713ff8d](https://togithub.com/googleapis/java-shared-dependencies/commit/713ff8dd94f939c417524616bc47c771a3fbe0cf)) - update google.common-protos.version to v2.7.4 ([#​603](https://togithub.com/googleapis/java-shared-dependencies/issues/603)) ([bb9b4c7](https://togithub.com/googleapis/java-shared-dependencies/commit/bb9b4c7e39552cc73b3b9d4c826b26e8cb74459f)) - update google.core.version ([#​599](https://togithub.com/googleapis/java-shared-dependencies/issues/599)) ([327d0df](https://togithub.com/googleapis/java-shared-dependencies/commit/327d0df9b57203c0d4f426de0380770d3d7910d6)) - update iam.version to v1.2.6 ([#​598](https://togithub.com/googleapis/java-shared-dependencies/issues/598)) ([2801439](https://togithub.com/googleapis/java-shared-dependencies/commit/280143964c7c3b93a8d7f67215ba2cc74ffce761))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b02a9776..ba07803a 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.7.0 + 2.8.0 pom import From c35aa126f29cc4cc6137b2dc9cf6ba9ff0043bbe Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 2 Mar 2022 18:28:30 +0000 Subject: [PATCH 071/225] chore(main): release 0.11.5 (#437) :robot: I have created a release *beep* *boop* --- ### [0.11.5](https://github.com/googleapis/java-analytics-data/compare/v0.11.4...v0.11.5) (2022-03-02) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#436](https://github.com/googleapis/java-analytics-data/issues/436)) ([ea835bc](https://github.com/googleapis/java-analytics-data/commit/ea835bc760850556d731a6adcb41f72a76645cf0)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9055e33a..ddad9f14 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [0.11.5](https://github.com/googleapis/java-analytics-data/compare/v0.11.4...v0.11.5) (2022-03-02) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#436](https://github.com/googleapis/java-analytics-data/issues/436)) ([ea835bc](https://github.com/googleapis/java-analytics-data/commit/ea835bc760850556d731a6adcb41f72a76645cf0)) + ### [0.11.4](https://github.com/googleapis/java-analytics-data/compare/v0.11.3...v0.11.4) (2022-03-01) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 934d53da..147d20df 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.5-SNAPSHOT + 0.11.5 pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.5-SNAPSHOT + 0.11.5 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.5-SNAPSHOT + 0.11.5 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.5-SNAPSHOT + 0.11.5
diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 25914226..c5ce1bd8 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.5-SNAPSHOT + 0.11.5 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.5-SNAPSHOT + 0.11.5 google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 171bc4e6..7a77496c 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.5-SNAPSHOT + 0.11.5 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.5-SNAPSHOT + 0.11.5 diff --git a/pom.xml b/pom.xml index ba07803a..c662289c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.5-SNAPSHOT + 0.11.5 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.5-SNAPSHOT + 0.11.5 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.5-SNAPSHOT + 0.11.5 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.5-SNAPSHOT + 0.11.5 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 3f42c63b..e7022972 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.5-SNAPSHOT + 0.11.5 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.5-SNAPSHOT + 0.11.5 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 891fdf45..1737b532 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.11.5-SNAPSHOT + 0.11.5 diff --git a/versions.txt b/versions.txt index ca859e8b..030fe386 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.4:0.11.5-SNAPSHOT -grpc-google-analytics-data-v1beta:0.11.4:0.11.5-SNAPSHOT -proto-google-analytics-data-v1beta:0.11.4:0.11.5-SNAPSHOT +google-analytics-data:0.11.5:0.11.5 +grpc-google-analytics-data-v1beta:0.11.5:0.11.5 +proto-google-analytics-data-v1beta:0.11.5:0.11.5 From 020ece1c23b6d7ed6b24838d237ea8c3cffc4a3d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 2 Mar 2022 18:44:36 +0000 Subject: [PATCH 072/225] chore(main): release 0.11.6-SNAPSHOT (#438) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 147d20df..8a52b387 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.5 + 0.11.6-SNAPSHOT pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.5 + 0.11.6-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.5 + 0.11.6-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.5 + 0.11.6-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index c5ce1bd8..69231ac7 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.5 + 0.11.6-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.5 + 0.11.6-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 7a77496c..a8e5e785 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.5 + 0.11.6-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.5 + 0.11.6-SNAPSHOT diff --git a/pom.xml b/pom.xml index c662289c..7f07aa57 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.5 + 0.11.6-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.5 + 0.11.6-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.5 + 0.11.6-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.5 + 0.11.6-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index e7022972..abc2ce52 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.5 + 0.11.6-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.5 + 0.11.6-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1737b532..2b1e6348 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-data - 0.11.5 + 0.11.6-SNAPSHOT diff --git a/versions.txt b/versions.txt index 030fe386..8d904c83 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.5:0.11.5 -grpc-google-analytics-data-v1beta:0.11.5:0.11.5 -proto-google-analytics-data-v1beta:0.11.5:0.11.5 +google-analytics-data:0.11.5:0.11.6-SNAPSHOT +grpc-google-analytics-data-v1beta:0.11.5:0.11.6-SNAPSHOT +proto-google-analytics-data-v1beta:0.11.5:0.11.6-SNAPSHOT From 9018d0adb963e80af2942ffb2c73d972762bf96e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 7 Mar 2022 17:28:20 +0000 Subject: [PATCH 073/225] chore: fix license header in build.bat (#1363) (#439) * chore: fix license header in build.bat * chore: add disctribution field for setup-java action Source-Link: https://github.com/googleapis/synthtool/commit/4fea5f40a9075f3ba205ede0b453010cf080e194 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:df8d7b2cc0dbc65871e7edd86601901a0612b272fa3f7f0eb590c5c53aa5f92e --- .github/.OwlBot.lock.yaml | 2 +- .github/workflows/approve-readme.yaml | 2 +- .github/workflows/auto-release.yaml | 2 +- .github/workflows/ci.yaml | 20 +++++++++--------- .github/workflows/samples.yaml | 5 +++-- .kokoro/build.bat | 30 +++++++++++++-------------- README.md | 6 +++--- 7 files changed, 34 insertions(+), 33 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 9351fdfb..3473042c 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:387835a1375a0049ec44e02542c844302854c732d8291bdf8e472c0ff70a8f67 + digest: sha256:df8d7b2cc0dbc65871e7edd86601901a0612b272fa3f7f0eb590c5c53aa5f92e diff --git a/.github/workflows/approve-readme.yaml b/.github/workflows/approve-readme.yaml index 1bb18232..f5fc7d51 100644 --- a/.github/workflows/approve-readme.yaml +++ b/.github/workflows/approve-readme.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' steps: - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} script: | diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 18e23230..7a106d00 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: contains(github.head_ref, 'release-please') steps: - - uses: actions/github-script@v5 + - uses: actions/github-script@v6 with: github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} debug: true diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6b5e56aa..83ef7f9c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -27,8 +27,8 @@ jobs: matrix: java: [8, 11, 17] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: ${{matrix.java}} @@ -39,8 +39,8 @@ jobs: windows: runs-on: windows-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: 8 @@ -54,8 +54,8 @@ jobs: matrix: java: [8, 11, 17] steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: ${{matrix.java}} @@ -64,8 +64,8 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: 11 @@ -76,8 +76,8 @@ jobs: clirr: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: distribution: zulu java-version: 8 diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml index d5d964df..912ed8b2 100644 --- a/.github/workflows/samples.yaml +++ b/.github/workflows/samples.yaml @@ -20,9 +20,10 @@ jobs: checkstyle: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-java@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 with: + distribution: zulu java-version: 8 - name: Run checkstyle run: mvn -P lint --quiet --batch-mode checkstyle:check diff --git a/.kokoro/build.bat b/.kokoro/build.bat index cc602c9e..067cf4a4 100644 --- a/.kokoro/build.bat +++ b/.kokoro/build.bat @@ -1,18 +1,18 @@ +:: Copyright 2022 Google LLC +:: +:: Licensed under the Apache License, Version 2.0 (the "License"); +:: you may not use this file except in compliance with the License. +:: You may obtain a copy of the License at +:: +:: http://www.apache.org/licenses/LICENSE-2.0 +:: +:: Unless required by applicable law or agreed to in writing, software +:: distributed under the License is distributed on an "AS IS" BASIS, +:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +:: See the License for the specific language governing permissions and +:: limitations under the License. +:: Github action job to test core java library features on +:: downstream client libraries before they are released. :: See documentation in type-shell-output.bat -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. "C:\Program Files\Git\bin\bash.exe" %~dp0build.sh diff --git a/README.md b/README.md index 60e18c16..535e0c63 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.11.4 + 0.11.5 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.11.4' +implementation 'com.google.analytics:google-analytics-data:0.11.5' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.4" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.5" ``` ## Authentication From 5342f06d9c44b35145c29c5c0c05a444a667b2de Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Mar 2022 21:44:29 +0100 Subject: [PATCH 074/225] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.3.0 (#442) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.7` -> `1.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.0/compatibility-slim/1.2.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.0/confidence-slim/1.2.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.3.0`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​130-httpsgithubcomgoogleapisjava-shared-configcomparev127v130-2022-03-07) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.7...v1.3.0) ##### Features - increase IT timeout from 20 to 60 mins ([#​440](https://togithub.com/googleapis/java-shared-config/issues/440)) ([a4427bc](https://togithub.com/googleapis/java-shared-config/commit/a4427bceebd0624e23f0b02bb24d7ed46ea4b3a6)) ##### Dependencies - update dependency com.google.cloud:native-image-support to v0.12.6 ([#​423](https://togithub.com/googleapis/java-shared-config/issues/423)) ([9a0cb79](https://togithub.com/googleapis/java-shared-config/commit/9a0cb79896d5c97dc3c5648a6740d53eb9ada673)) - update dependency com.puppycrawl.tools:checkstyle to v9.3 ([#​415](https://togithub.com/googleapis/java-shared-config/issues/415)) ([9e2d3fd](https://togithub.com/googleapis/java-shared-config/commit/9e2d3fd8bd42bc210dae5798f7d5dfe950c29f51)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.10 ([#​429](https://togithub.com/googleapis/java-shared-config/issues/429)) ([0355f29](https://togithub.com/googleapis/java-shared-config/commit/0355f2988ebcff19615b72bc65523555e4844523)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.10 ([#​430](https://togithub.com/googleapis/java-shared-config/issues/430)) ([16984d2](https://togithub.com/googleapis/java-shared-config/commit/16984d25a84aa6a8daf2a0925ea57cd0d3f0ee24)) ##### [1.2.7](https://togithub.com/googleapis/java-shared-config/compare/v1.2.6...v1.2.7) (2022-02-04) ##### Dependencies - update dependency com.google.cloud:native-image-support to v0.12.0 ([#​414](https://togithub.com/googleapis/java-shared-config/issues/414)) ([2133cc0](https://togithub.com/googleapis/java-shared-config/commit/2133cc093efd8420e352274f3eab09de819ff796)) ##### [1.2.6](https://togithub.com/googleapis/java-shared-config/compare/v1.2.5...v1.2.6) (2022-01-19) ##### Bug Fixes - library should released as 1.2.6 ([#​408](https://togithub.com/googleapis/java-shared-config/issues/408)) ([4972daa](https://togithub.com/googleapis/java-shared-config/commit/4972daa60467797566c4b043cebd322577b8eb73)) ##### [1.2.5](https://togithub.com/googleapis/java-shared-config/compare/v1.2.4...v1.2.5) (2022-01-11) ##### Bug Fixes - **java:** Enable unit tests in generated libraries for native image testing ([#​394](https://togithub.com/googleapis/java-shared-config/issues/394)) ([a453b9f](https://togithub.com/googleapis/java-shared-config/commit/a453b9f141c7555f2fd5333eb17d223410ab66eb)) ##### [1.2.4](https://www.github.com/googleapis/java-shared-config/compare/v1.2.3...v1.2.4) (2022-01-06) ##### Dependencies - revert dependency com.google.googlejavaformat:google-java-format to v1.7 ([#​391](https://www.togithub.com/googleapis/java-shared-config/issues/391)) ([17077fb](https://www.github.com/googleapis/java-shared-config/commit/17077fb1a58eef7098dc5e1e9b2c78a63c5c11e1)) ##### [1.2.3](https://www.github.com/googleapis/java-shared-config/compare/v1.2.2...v1.2.3) (2022-01-04) ##### Bug Fixes - **java:** add -ntp flag to native image testing command ([#​1299](https://www.togithub.com/googleapis/java-shared-config/issues/1299)) ([#​376](https://www.togithub.com/googleapis/java-shared-config/issues/376)) ([50e7a10](https://www.github.com/googleapis/java-shared-config/commit/50e7a10a8dca0505fd831e3dd929577d2f82b011)) - **java:** Only enable integration tests for native image testing ([#​375](https://www.togithub.com/googleapis/java-shared-config/issues/375)) ([663f421](https://www.github.com/googleapis/java-shared-config/commit/663f421de342afcba24703079f778738045d3ff2)) - **java:** Pass missing integration test flags to native image test commands ([#​1309](https://www.togithub.com/googleapis/java-shared-config/issues/1309)) ([#​383](https://www.togithub.com/googleapis/java-shared-config/issues/383)) ([b17b44e](https://www.github.com/googleapis/java-shared-config/commit/b17b44e37fe44ba61616417189c6b2271f3a4d18)) ##### Dependencies - update auto-value-annotation.version to v1.9 ([#​378](https://www.togithub.com/googleapis/java-shared-config/issues/378)) ([5e1cd0e](https://www.github.com/googleapis/java-shared-config/commit/5e1cd0e39910548ec4eb6639da979c3b66411503)) - update dependency com.google.googlejavaformat:google-java-format to v1.13.0 ([#​361](https://www.togithub.com/googleapis/java-shared-config/issues/361)) ([095d60a](https://www.github.com/googleapis/java-shared-config/commit/095d60a061a574dcf84b9fcf26dff48617a306b1)) - update dependency com.puppycrawl.tools:checkstyle to v9.2 ([#​366](https://www.togithub.com/googleapis/java-shared-config/issues/366)) ([061df67](https://www.github.com/googleapis/java-shared-config/commit/061df676d8b2fef5bbb0ce9661d3c96fcb57e73a)) - update dependency com.puppycrawl.tools:checkstyle to v9.2.1 ([#​382](https://www.togithub.com/googleapis/java-shared-config/issues/382)) ([1a182c5](https://www.github.com/googleapis/java-shared-config/commit/1a182c52e7c5431875296940d68c9bdfcf74be00)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.9 ([#​379](https://www.togithub.com/googleapis/java-shared-config/issues/379)) ([0a2b05f](https://www.github.com/googleapis/java-shared-config/commit/0a2b05ff7f649331efbc4dd540705da10691a2f1)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.8 ([#​372](https://www.togithub.com/googleapis/java-shared-config/issues/372)) ([6fe795e](https://www.github.com/googleapis/java-shared-config/commit/6fe795ede39575656ef1609bf7aac28c1d170976)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.9 ([#​380](https://www.togithub.com/googleapis/java-shared-config/issues/380)) ([f2efad5](https://www.github.com/googleapis/java-shared-config/commit/f2efad585b431fe186c7900a8171a999c689405b)) - update dependency org.junit.vintage:junit-vintage-engine to v5.8.2 ([#​365](https://www.togithub.com/googleapis/java-shared-config/issues/365)) ([604058d](https://www.github.com/googleapis/java-shared-config/commit/604058d52dc962db9a506762926576542687285e)) ##### [1.2.2](https://www.github.com/googleapis/java-shared-config/compare/v1.2.1...v1.2.2) (2021-11-16) ##### Bug Fixes - update dependency com.google.cloud:native-image-support to v0.10.0 ([#​358](https://www.togithub.com/googleapis/java-shared-config/issues/358)) ([0441958](https://www.github.com/googleapis/java-shared-config/commit/044195865a1122d419cadae90fddbf8dc5b4a32d)) ##### [1.2.1](https://www.github.com/googleapis/java-shared-config/compare/v1.2.0...v1.2.1) (2021-11-08) ##### Bug Fixes - Add native image feature to register protobuf reflection in tests ([#​347](https://www.togithub.com/googleapis/java-shared-config/issues/347)) ([88c3e3b](https://www.github.com/googleapis/java-shared-config/commit/88c3e3b0ad1e480e0fdbe9f6fe1f9df183066ee6)) ##### Dependencies - update dependency com.google.auto.service:auto-service-annotations to v1.0.1 ([#​346](https://www.togithub.com/googleapis/java-shared-config/issues/346)) ([9c1f943](https://www.github.com/googleapis/java-shared-config/commit/9c1f94345fb47346fe66f901976c2347b8102bc8)) - update dependency com.google.cloud:native-image-support to v0.9.0 ([#​350](https://www.togithub.com/googleapis/java-shared-config/issues/350)) ([3b496b0](https://www.github.com/googleapis/java-shared-config/commit/3b496b03bd95e59fcd1a3a1eb6cc0dfd330db769)) - update dependency com.puppycrawl.tools:checkstyle to v9.1 ([#​345](https://www.togithub.com/googleapis/java-shared-config/issues/345)) ([f5c03d3](https://www.github.com/googleapis/java-shared-config/commit/f5c03d35684ef4e0bb3178ab6056f231f3f4faf6))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- google-analytics-data-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 8a52b387..3537ff72 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.7 + 1.3.0 Google Analytics Data BOM diff --git a/pom.xml b/pom.xml index 7f07aa57..36ffe1ca 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.7 + 1.3.0 From e31449fc3f0c8e3ec3082451055639c5241e6035 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 10 Mar 2022 22:08:18 +0000 Subject: [PATCH 075/225] chore: update java template (#1367) (#441) * chore: update java template * chore: fix tests * chore: fix tests * chore: update project Source-Link: https://github.com/googleapis/synthtool/commit/1155a97fed1c195d10ad406d483bc8ac2507f1d7 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:b0b1c1c89570e229b1026372a2b8989ba31495007055b8d30178b7648503eefa --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/nightly/integration.cfg | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 3473042c..426cf83e 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:df8d7b2cc0dbc65871e7edd86601901a0612b272fa3f7f0eb590c5c53aa5f92e + digest: sha256:b0b1c1c89570e229b1026372a2b8989ba31495007055b8d30178b7648503eefa diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg index e51c7b4c..a2907a25 100644 --- a/.kokoro/nightly/integration.cfg +++ b/.kokoro/nightly/integration.cfg @@ -13,12 +13,12 @@ env_vars: { # TODO: remove this after we've migrated all tests and scripts env_vars: { key: "GCLOUD_PROJECT" - value: "gcloud-devel" + value: "java-docs-samples-testing" } env_vars: { key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" + value: "java-docs-samples-testing" } env_vars: { From d62be0c2f1f9ed8573a5842e5fff0a4c67233726 Mon Sep 17 00:00:00 2001 From: Mike Eltsufin Date: Thu, 10 Mar 2022 21:10:32 -0500 Subject: [PATCH 076/225] test: downgrade google-auth-library-oauth2-http back to 1.4.0 (#443) Fixes: #430. Fixes: #431. --- samples/install-without-bom/pom.xml | 5 +++++ samples/snapshot/pom.xml | 13 ++++++++++++- samples/snippets/pom.xml | 13 ++++++++++++- 3 files changed, 29 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 3a3d4b7e..62d26631 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -32,6 +32,11 @@ 0.11.4
+ + com.google.auth + google-auth-library-oauth2-http + 1.4.0 + junit diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 2b1e6348..198f2a3e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -23,6 +23,18 @@ UTF-8
+ + + + com.google.cloud + libraries-bom + 24.2.0 + pom + import + + + + @@ -34,7 +46,6 @@ com.google.auth google-auth-library-oauth2-http - 1.5.3 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index a8300b8d..b518f1e9 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -23,6 +23,18 @@ UTF-8
+ + + + com.google.cloud + libraries-bom + 24.2.0 + pom + import + + + + @@ -33,7 +45,6 @@ com.google.auth google-auth-library-oauth2-http - 1.5.3 From 4fa6b6e68860c9d0c4d6a3255c362f5cd1eed4e9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 22:56:27 +0100 Subject: [PATCH 077/225] chore(deps): update dependency com.google.cloud:libraries-bom to v25 (#446) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.2.0` -> `25.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/compatibility-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/confidence-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 198f2a3e..01d3d384 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 24.2.0 + 25.0.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index b518f1e9..e3365c30 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 24.2.0 + 25.0.0 pom import From d07834d29e78493a18b881aee6545f05139388f8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 17 Mar 2022 20:40:23 +0100 Subject: [PATCH 078/225] deps: update dependency com.google.auth:google-auth-library-oauth2-http to v1.6.0 (#448) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.auth:google-auth-library-oauth2-http](https://togithub.com/googleapis/google-auth-library-java) | `1.4.0` -> `1.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.6.0/compatibility-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.6.0/confidence-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 62d26631..6d9517e2 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.auth google-auth-library-oauth2-http - 1.4.0 + 1.6.0 From ea2030d5bfca4eba96e5c93a5b6bbe31d88451ef Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 17 Mar 2022 19:46:19 +0000 Subject: [PATCH 079/225] chore(main): release 0.11.6 (#449) :robot: I have created a release *beep* *boop* --- ### [0.11.6](https://github.com/googleapis/java-analytics-data/compare/v0.11.5...v0.11.6) (2022-03-17) ### Dependencies * update dependency com.google.auth:google-auth-library-oauth2-http to v1.6.0 ([#448](https://github.com/googleapis/java-analytics-data/issues/448)) ([d07834d](https://github.com/googleapis/java-analytics-data/commit/d07834d29e78493a18b881aee6545f05139388f8)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ddad9f14..2a68f5bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [0.11.6](https://github.com/googleapis/java-analytics-data/compare/v0.11.5...v0.11.6) (2022-03-17) + + +### Dependencies + +* update dependency com.google.auth:google-auth-library-oauth2-http to v1.6.0 ([#448](https://github.com/googleapis/java-analytics-data/issues/448)) ([d07834d](https://github.com/googleapis/java-analytics-data/commit/d07834d29e78493a18b881aee6545f05139388f8)) + ### [0.11.5](https://github.com/googleapis/java-analytics-data/compare/v0.11.4...v0.11.5) (2022-03-02) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 3537ff72..b5e9d4cb 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.6-SNAPSHOT + 0.11.6 pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.6-SNAPSHOT + 0.11.6 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.6-SNAPSHOT + 0.11.6 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.6-SNAPSHOT + 0.11.6 diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 69231ac7..935f5135 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.6-SNAPSHOT + 0.11.6 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.6-SNAPSHOT + 0.11.6 google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index a8e5e785..4b6dace1 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.6-SNAPSHOT + 0.11.6 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.6-SNAPSHOT + 0.11.6 diff --git a/pom.xml b/pom.xml index 36ffe1ca..8e69459c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.6-SNAPSHOT + 0.11.6 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.6-SNAPSHOT + 0.11.6 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.6-SNAPSHOT + 0.11.6 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.6-SNAPSHOT + 0.11.6 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index abc2ce52..78466a27 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.6-SNAPSHOT + 0.11.6 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.6-SNAPSHOT + 0.11.6 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 01d3d384..8e1b35d4 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.6-SNAPSHOT + 0.11.6 diff --git a/versions.txt b/versions.txt index 8d904c83..7fd5ef84 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.5:0.11.6-SNAPSHOT -grpc-google-analytics-data-v1beta:0.11.5:0.11.6-SNAPSHOT -proto-google-analytics-data-v1beta:0.11.5:0.11.6-SNAPSHOT +google-analytics-data:0.11.6:0.11.6 +grpc-google-analytics-data-v1beta:0.11.6:0.11.6 +proto-google-analytics-data-v1beta:0.11.6:0.11.6 From aa1832b6b35cebc7b2f6136ed4dcb4a638be0b65 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 17 Mar 2022 19:52:24 +0000 Subject: [PATCH 080/225] chore(main): release 0.11.7-SNAPSHOT (#450) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index b5e9d4cb..463fd435 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.6 + 0.11.7-SNAPSHOT pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.6 + 0.11.7-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.6 + 0.11.7-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.6 + 0.11.7-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 935f5135..f8791cc8 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.6 + 0.11.7-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.6 + 0.11.7-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 4b6dace1..4b03631d 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.6 + 0.11.7-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.6 + 0.11.7-SNAPSHOT diff --git a/pom.xml b/pom.xml index 8e69459c..5ceb7fca 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.6 + 0.11.7-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.6 + 0.11.7-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.6 + 0.11.7-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.6 + 0.11.7-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 78466a27..dc0186f2 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.6 + 0.11.7-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.6 + 0.11.7-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8e1b35d4..21c74645 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.6 + 0.11.7-SNAPSHOT diff --git a/versions.txt b/versions.txt index 7fd5ef84..6511ec93 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.6:0.11.6 -grpc-google-analytics-data-v1beta:0.11.6:0.11.6 -proto-google-analytics-data-v1beta:0.11.6:0.11.6 +google-analytics-data:0.11.6:0.11.7-SNAPSHOT +grpc-google-analytics-data-v1beta:0.11.6:0.11.7-SNAPSHOT +proto-google-analytics-data-v1beta:0.11.6:0.11.7-SNAPSHOT From 74446cf387d1f7ef3e1b61cd3a85e0700a874b2d Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Mon, 21 Mar 2022 16:20:18 -0400 Subject: [PATCH 081/225] deps(sample): using newer google-analytics-data in snippet (#452) Fixes #430 and #431 . --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 535e0c63..7289ca26 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.11.5 + 0.11.6 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.11.5' +implementation 'com.google.analytics:google-analytics-data:0.11.6' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.5" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.6" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 6d9517e2..84f0e13b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.11.4 + 0.11.6 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index e3365c30..45dc890f 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.4 + 0.11.6 com.google.auth From f9fc273954ca3b4dce20cca04ba270a57e452322 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 21 Mar 2022 20:26:14 +0000 Subject: [PATCH 082/225] chore(main): release 0.11.7 (#453) :robot: I have created a release *beep* *boop* --- ### [0.11.7](https://github.com/googleapis/java-analytics-data/compare/v0.11.6...v0.11.7) (2022-03-21) ### Dependencies * **sample:** using newer google-analytics-data in snippet ([#452](https://github.com/googleapis/java-analytics-data/issues/452)) ([74446cf](https://github.com/googleapis/java-analytics-data/commit/74446cf387d1f7ef3e1b61cd3a85e0700a874b2d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a68f5bc..1ac9309c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [0.11.7](https://github.com/googleapis/java-analytics-data/compare/v0.11.6...v0.11.7) (2022-03-21) + + +### Dependencies + +* **sample:** using newer google-analytics-data in snippet ([#452](https://github.com/googleapis/java-analytics-data/issues/452)) ([74446cf](https://github.com/googleapis/java-analytics-data/commit/74446cf387d1f7ef3e1b61cd3a85e0700a874b2d)) + ### [0.11.6](https://github.com/googleapis/java-analytics-data/compare/v0.11.5...v0.11.6) (2022-03-17) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 463fd435..b7c50d8b 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.7-SNAPSHOT + 0.11.7 pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.7-SNAPSHOT + 0.11.7 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.7-SNAPSHOT + 0.11.7 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.7-SNAPSHOT + 0.11.7 diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index f8791cc8..4d1bb0e7 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.7-SNAPSHOT + 0.11.7 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.7-SNAPSHOT + 0.11.7 google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 4b03631d..e52d45c1 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.7-SNAPSHOT + 0.11.7 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.7-SNAPSHOT + 0.11.7 diff --git a/pom.xml b/pom.xml index 5ceb7fca..69225b4f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.7-SNAPSHOT + 0.11.7 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.7-SNAPSHOT + 0.11.7 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.7-SNAPSHOT + 0.11.7 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.7-SNAPSHOT + 0.11.7 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index dc0186f2..48cfc347 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.7-SNAPSHOT + 0.11.7 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.7-SNAPSHOT + 0.11.7 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 21c74645..02106c20 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.7-SNAPSHOT + 0.11.7 diff --git a/versions.txt b/versions.txt index 6511ec93..6778cc6d 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.6:0.11.7-SNAPSHOT -grpc-google-analytics-data-v1beta:0.11.6:0.11.7-SNAPSHOT -proto-google-analytics-data-v1beta:0.11.6:0.11.7-SNAPSHOT +google-analytics-data:0.11.7:0.11.7 +grpc-google-analytics-data-v1beta:0.11.7:0.11.7 +proto-google-analytics-data-v1beta:0.11.7:0.11.7 From 6c9ae66147f9576df240b6a8d4698faf11ad5388 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 21 Mar 2022 20:32:15 +0000 Subject: [PATCH 083/225] chore(main): release 0.11.8-SNAPSHOT (#454) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index b7c50d8b..865a2e9d 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.7 + 0.11.8-SNAPSHOT pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.7 + 0.11.8-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.7 + 0.11.8-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.7 + 0.11.8-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 4d1bb0e7..44d19b53 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.7 + 0.11.8-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.7 + 0.11.8-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index e52d45c1..b34fa31d 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.7 + 0.11.8-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.7 + 0.11.8-SNAPSHOT diff --git a/pom.xml b/pom.xml index 69225b4f..e381ede9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.7 + 0.11.8-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.7 + 0.11.8-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.7 + 0.11.8-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.7 + 0.11.8-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 48cfc347..d11c9b4a 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.7 + 0.11.8-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.7 + 0.11.8-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 02106c20..c27497b4 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.7 + 0.11.8-SNAPSHOT diff --git a/versions.txt b/versions.txt index 6778cc6d..ddd3882c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.7:0.11.7 -grpc-google-analytics-data-v1beta:0.11.7:0.11.7 -proto-google-analytics-data-v1beta:0.11.7:0.11.7 +google-analytics-data:0.11.7:0.11.8-SNAPSHOT +grpc-google-analytics-data-v1beta:0.11.7:0.11.8-SNAPSHOT +proto-google-analytics-data-v1beta:0.11.7:0.11.8-SNAPSHOT From 35cc32386e17f1b8e8c5116e4453fac8076451b6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 23 Mar 2022 00:18:38 +0100 Subject: [PATCH 084/225] deps: update actions/checkout action to v3 (#435) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * deps: update actions/checkout action to v3 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot From 327160bcc63c4dbacdff542c8811b83d772a464b Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 22 Mar 2022 23:28:16 +0000 Subject: [PATCH 085/225] chore(main): release 0.11.8 (#455) :robot: I have created a release *beep* *boop* --- ### [0.11.8](https://github.com/googleapis/java-analytics-data/compare/v0.11.7...v0.11.8) (2022-03-22) ### Dependencies * update actions/checkout action to v3 ([#435](https://github.com/googleapis/java-analytics-data/issues/435)) ([35cc323](https://github.com/googleapis/java-analytics-data/commit/35cc32386e17f1b8e8c5116e4453fac8076451b6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ README.md | 6 +++--- google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 9 files changed, 28 insertions(+), 21 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1ac9309c..4006ac30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [0.11.8](https://github.com/googleapis/java-analytics-data/compare/v0.11.7...v0.11.8) (2022-03-22) + + +### Dependencies + +* update actions/checkout action to v3 ([#435](https://github.com/googleapis/java-analytics-data/issues/435)) ([35cc323](https://github.com/googleapis/java-analytics-data/commit/35cc32386e17f1b8e8c5116e4453fac8076451b6)) + ### [0.11.7](https://github.com/googleapis/java-analytics-data/compare/v0.11.6...v0.11.7) (2022-03-21) diff --git a/README.md b/README.md index 7289ca26..a3ea9026 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.11.6 + 0.11.7 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.11.6' +implementation 'com.google.analytics:google-analytics-data:0.11.7' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.6" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.7" ``` ## Authentication diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 865a2e9d..4e6cbcd4 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.8-SNAPSHOT + 0.11.8 pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.8-SNAPSHOT + 0.11.8 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.8-SNAPSHOT + 0.11.8 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.8-SNAPSHOT + 0.11.8 diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 44d19b53..03b8afc8 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.8-SNAPSHOT + 0.11.8 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.8-SNAPSHOT + 0.11.8 google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index b34fa31d..80babf13 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.8-SNAPSHOT + 0.11.8 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.8-SNAPSHOT + 0.11.8 diff --git a/pom.xml b/pom.xml index e381ede9..64892f27 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.8-SNAPSHOT + 0.11.8 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.8-SNAPSHOT + 0.11.8 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.8-SNAPSHOT + 0.11.8 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.8-SNAPSHOT + 0.11.8 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index d11c9b4a..3637a5ba 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.8-SNAPSHOT + 0.11.8 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.8-SNAPSHOT + 0.11.8 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c27497b4..48c828b1 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.8-SNAPSHOT + 0.11.8 diff --git a/versions.txt b/versions.txt index ddd3882c..cf441377 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.7:0.11.8-SNAPSHOT -grpc-google-analytics-data-v1beta:0.11.7:0.11.8-SNAPSHOT -proto-google-analytics-data-v1beta:0.11.7:0.11.8-SNAPSHOT +google-analytics-data:0.11.8:0.11.8 +grpc-google-analytics-data-v1beta:0.11.8:0.11.8 +proto-google-analytics-data-v1beta:0.11.8:0.11.8 From 13ff05c24963bbc36e8f7fbceb7ea7562a83299d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 22 Mar 2022 23:34:18 +0000 Subject: [PATCH 086/225] chore(main): release 0.11.9-SNAPSHOT (#456) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 4e6cbcd4..c6d82ad2 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.8 + 0.11.9-SNAPSHOT pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.8 + 0.11.9-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.8 + 0.11.9-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.8 + 0.11.9-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 03b8afc8..8f36aa87 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.8 + 0.11.9-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.8 + 0.11.9-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 80babf13..cd65fd6e 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.8 + 0.11.9-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.8 + 0.11.9-SNAPSHOT diff --git a/pom.xml b/pom.xml index 64892f27..e27a1848 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.8 + 0.11.9-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.8 + 0.11.9-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.8 + 0.11.9-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.8 + 0.11.9-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 3637a5ba..5753ea20 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.8 + 0.11.9-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.8 + 0.11.9-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 48c828b1..81e2e9a1 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.8 + 0.11.9-SNAPSHOT diff --git a/versions.txt b/versions.txt index cf441377..c0d3e967 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.8:0.11.8 -grpc-google-analytics-data-v1beta:0.11.8:0.11.8 -proto-google-analytics-data-v1beta:0.11.8:0.11.8 +google-analytics-data:0.11.8:0.11.9-SNAPSHOT +grpc-google-analytics-data-v1beta:0.11.8:0.11.9-SNAPSHOT +proto-google-analytics-data-v1beta:0.11.8:0.11.9-SNAPSHOT From bfe5e32a62fd973a7c9c129ed3a7abc401412bda Mon Sep 17 00:00:00 2001 From: Anwesha Date: Wed, 23 Mar 2022 10:25:37 -0700 Subject: [PATCH 087/225] samples: add Java sample for runReport method (#447) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * A copy sample to test fork process * Adds sample RunReportSample * Modifies runReport sample to have headers printed * Addresses comment differences inbetween python and java sample * Changes println to printf for consistency * Test for run report * Fixes a matching tag * Fixes checkstyle violation * -Another commit to fix checkstyle violations * Changes to linting * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: ikuleshov --- README.md | 7 +- .../example/analytics/RunReportSample.java | 108 ++++++++++++++++++ .../analytics/RunReportSampleTest.java | 54 +++++++++ 3 files changed, 166 insertions(+), 3 deletions(-) create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportSample.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportSampleTest.java diff --git a/README.md b/README.md index a3ea9026..c3444c1a 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.11.7 + 0.11.8 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.11.7' +implementation 'com.google.analytics:google-analytics-data:0.11.8' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.7" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.8" ``` ## Authentication @@ -81,6 +81,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-analytics-dat | --------------------------- | --------------------------------- | ------ | | 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 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) | diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportSample.java new file mode 100644 index 00000000..1db677f6 --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportSample.java @@ -0,0 +1,108 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the creation +of a basic report. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport +for more information. + +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.RunReportSample" + */ + +// [START analyticsdata_run_report] +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.DimensionHeader; +import com.google.analytics.data.v1beta.Metric; +import com.google.analytics.data.v1beta.MetricHeader; +import com.google.analytics.data.v1beta.Row; +import com.google.analytics.data.v1beta.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; + +public class RunReportSample { + + 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); + } + + // Runs a report of active users grouped by country. + 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"; + + // Using a default constructor instructs the client to use the credentials + // specified in GOOGLE_APPLICATION_CREDENTIALS environment variable. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDimensions(Dimension.newBuilder().setName("country")) + .addMetrics(Metric.newBuilder().setName("activeUsers")) + .addDateRanges( + DateRange.newBuilder().setStartDate("2020-09-01").setEndDate("2020-09-15")) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + printRunResponseResponse(response); + } + } + + // Prints results of a runReport call. + static void printRunResponseResponse(RunReportResponse response) { + // [START analyticsdata_print_run_report_response_header] + System.out.printf("%s rows received%n", response.getRowsList().size()); + + for (DimensionHeader header : response.getDimensionHeadersList()) { + System.out.printf("Dimension header name: %s%n", header.getName()); + } + + for (MetricHeader header : response.getMetricHeadersList()) { + System.out.printf("Metric header name: %s%n", header.getName()); + } + // [END analyticsdata_print_run_report_response_header] + + // [START analyticsdata_print_run_report_response_rows] + System.out.println("Report result:"); + for (Row row : response.getRowsList()) { + System.out.printf( + "%s, %s%n", row.getDimensionValues(0).getValue(), row.getMetricValues(0).getValue()); + } + // [END analyticsdata_print_run_report_response_rows] + } +} +// [END analyticsdata_run_report] diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportSampleTest.java new file mode 100644 index 00000000..48e3ca22 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportSampleTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the run report sample. */ +@RunWith(JUnit4.class) +public class RunReportSampleTest { + + 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. + RunReportSample.sampleRunReport(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReport() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} From 3085bf76d0ef1876b74a0df23b235e298e3a860a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 29 Mar 2022 19:02:12 +0200 Subject: [PATCH 088/225] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.3.2 (#457) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.3.0` -> `1.3.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.2/compatibility-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.2/confidence-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.3.2`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​132-httpsgithubcomgoogleapisjava-shared-configcomparev131v132-2022-03-28) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.1...v1.3.2) ### [`v1.3.1`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​131-httpsgithubcomgoogleapisjava-shared-configcomparev130v131-2022-03-25) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.0...v1.3.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- google-analytics-data-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index c6d82ad2..7221934b 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.3.0 + 1.3.2 Google Analytics Data BOM diff --git a/pom.xml b/pom.xml index e27a1848..fe071bdc 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.3.0 + 1.3.2 From 19ff7fb0e2100a7e71d27ce8163540419594a5c2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 29 Mar 2022 20:10:27 +0200 Subject: [PATCH 089/225] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 (#459) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.8.0` -> `2.9.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.9.0/compatibility-slim/2.8.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.9.0/confidence-slim/2.8.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.9.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​290-httpsgithubcomgoogleapisjava-shared-dependenciescomparev280v290-2022-03-28) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.8.0...v2.9.0) ##### Dependencies - guava 31.1 ([#​635](https://togithub.com/googleapis/java-shared-dependencies/issues/635)) ([0939b06](https://togithub.com/googleapis/java-shared-dependencies/commit/0939b063a79cd4ffafb49cf04861ce577e35efd6)) - update dependency com.fasterxml.jackson:jackson-bom to v2.13.2 ([#​626](https://togithub.com/googleapis/java-shared-dependencies/issues/626)) ([6014663](https://togithub.com/googleapis/java-shared-dependencies/commit/601466339c9631faa88033d1ff1e31582fb67b7b)) - update dependency com.fasterxml.jackson:jackson-bom to v2.13.2.20220324 ([#​636](https://togithub.com/googleapis/java-shared-dependencies/issues/636)) ([6c833fa](https://togithub.com/googleapis/java-shared-dependencies/commit/6c833faa7815147013999bfc2bb6935fd8fe6b34)) - update dependency com.google.api-client:google-api-client-bom to v1.33.4 ([#​642](https://togithub.com/googleapis/java-shared-dependencies/issues/642)) ([57bd912](https://togithub.com/googleapis/java-shared-dependencies/commit/57bd9124ce8981b7b3b5d0c87b7c1e5f935b7150)) - update dependency com.google.api:api-common to v2.1.5 ([#​637](https://togithub.com/googleapis/java-shared-dependencies/issues/637)) ([d3a00fa](https://togithub.com/googleapis/java-shared-dependencies/commit/d3a00fa5ce9908000122d8365fb2f2d0e388494b)) - update dependency com.google.auth:google-auth-library-bom to v1.6.0 ([#​631](https://togithub.com/googleapis/java-shared-dependencies/issues/631)) ([53dc7c2](https://togithub.com/googleapis/java-shared-dependencies/commit/53dc7c2fe255a6c7ca059dd414449bf96780f936)) - update dependency com.google.cloud:google-cloud-core-bom to v2.5.11 ([#​644](https://togithub.com/googleapis/java-shared-dependencies/issues/644)) ([4331dcc](https://togithub.com/googleapis/java-shared-dependencies/commit/4331dcc331e8377fcc57e5404321611186ca22cb)) - update dependency com.google.http-client:google-http-client-bom to v1.41.5 ([#​638](https://togithub.com/googleapis/java-shared-dependencies/issues/638)) ([e007d23](https://togithub.com/googleapis/java-shared-dependencies/commit/e007d2381bd388a1c199fc3f31d0b965f8ae592d)) - update dependency io.grpc:grpc-bom to v1.45.0 ([#​630](https://togithub.com/googleapis/java-shared-dependencies/issues/630)) ([20334e3](https://togithub.com/googleapis/java-shared-dependencies/commit/20334e30d256897cd7ef52c646e5c4549cd7ae69)) - update dependency org.threeten:threetenbp to v1.6.0 ([#​633](https://togithub.com/googleapis/java-shared-dependencies/issues/633)) ([1a2716d](https://togithub.com/googleapis/java-shared-dependencies/commit/1a2716d22e442c5cd6adea9449756b9ac3ddbf8e)) - update gax.version to v2.13.0 ([#​641](https://togithub.com/googleapis/java-shared-dependencies/issues/641)) ([b863746](https://togithub.com/googleapis/java-shared-dependencies/commit/b863746727fadd45c35198f58eb862f47fe14945)) - update google.common-protos.version to v2.8.0 ([#​639](https://togithub.com/googleapis/java-shared-dependencies/issues/639)) ([252afba](https://togithub.com/googleapis/java-shared-dependencies/commit/252afba1df8e4cfdf2574d127097b0978b7778c0)) - update google.core.version to v2.5.10 ([#​628](https://togithub.com/googleapis/java-shared-dependencies/issues/628)) ([fec6f51](https://togithub.com/googleapis/java-shared-dependencies/commit/fec6f5121384a04a389bad6f6477a9a5ce468016)) - update iam.version to v1.2.10 ([#​625](https://togithub.com/googleapis/java-shared-dependencies/issues/625)) ([0d7ca29](https://togithub.com/googleapis/java-shared-dependencies/commit/0d7ca2924bd24abe14883c173156bb4dc5fb90bf))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index fe071bdc..7eb39fa4 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.8.0 + 2.9.0 pom import From 9fc990eff6dd75de7bc1a57a3ce16d55b1395416 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 29 Mar 2022 18:26:33 +0000 Subject: [PATCH 090/225] chore(main): release 0.11.9 (#460) :robot: I have created a release *beep* *boop* --- ### [0.11.9](https://github.com/googleapis/java-analytics-data/compare/v0.11.8...v0.11.9) (2022-03-29) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#459](https://github.com/googleapis/java-analytics-data/issues/459)) ([19ff7fb](https://github.com/googleapis/java-analytics-data/commit/19ff7fb0e2100a7e71d27ce8163540419594a5c2)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4006ac30..a677be26 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [0.11.9](https://github.com/googleapis/java-analytics-data/compare/v0.11.8...v0.11.9) (2022-03-29) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#459](https://github.com/googleapis/java-analytics-data/issues/459)) ([19ff7fb](https://github.com/googleapis/java-analytics-data/commit/19ff7fb0e2100a7e71d27ce8163540419594a5c2)) + ### [0.11.8](https://github.com/googleapis/java-analytics-data/compare/v0.11.7...v0.11.8) (2022-03-22) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 7221934b..2a2e988d 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.9-SNAPSHOT + 0.11.9 pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.9-SNAPSHOT + 0.11.9 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.9-SNAPSHOT + 0.11.9 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.9-SNAPSHOT + 0.11.9
diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 8f36aa87..653edb6a 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.9-SNAPSHOT + 0.11.9 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.9-SNAPSHOT + 0.11.9 google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index cd65fd6e..0cd9ee37 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.9-SNAPSHOT + 0.11.9 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.9-SNAPSHOT + 0.11.9 diff --git a/pom.xml b/pom.xml index 7eb39fa4..d17427b4 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.9-SNAPSHOT + 0.11.9 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.9-SNAPSHOT + 0.11.9 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.9-SNAPSHOT + 0.11.9 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.9-SNAPSHOT + 0.11.9 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 5753ea20..decf9262 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.9-SNAPSHOT + 0.11.9 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.9-SNAPSHOT + 0.11.9 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 81e2e9a1..95feba66 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.9-SNAPSHOT + 0.11.9 diff --git a/versions.txt b/versions.txt index c0d3e967..410d7d0d 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.8:0.11.9-SNAPSHOT -grpc-google-analytics-data-v1beta:0.11.8:0.11.9-SNAPSHOT -proto-google-analytics-data-v1beta:0.11.8:0.11.9-SNAPSHOT +google-analytics-data:0.11.9:0.11.9 +grpc-google-analytics-data-v1beta:0.11.9:0.11.9 +proto-google-analytics-data-v1beta:0.11.9:0.11.9 From 631b9007c1d4fda977dd14a665d2dbffb2a451c5 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 29 Mar 2022 23:16:11 +0000 Subject: [PATCH 091/225] chore(main): release 0.11.10-SNAPSHOT (#461) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 2a2e988d..d4031e66 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.9 + 0.11.10-SNAPSHOT pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.9 + 0.11.10-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.9 + 0.11.10-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.9 + 0.11.10-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 653edb6a..13d88df1 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.9 + 0.11.10-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.9 + 0.11.10-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 0cd9ee37..2a95477d 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.9 + 0.11.10-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.9 + 0.11.10-SNAPSHOT diff --git a/pom.xml b/pom.xml index d17427b4..a6b7e3c1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.9 + 0.11.10-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.9 + 0.11.10-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.9 + 0.11.10-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.9 + 0.11.10-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index decf9262..d5bd1820 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.9 + 0.11.10-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.9 + 0.11.10-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 95feba66..cbf29c1d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.9 + 0.11.10-SNAPSHOT diff --git a/versions.txt b/versions.txt index 410d7d0d..a5bfa712 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.9:0.11.9 -grpc-google-analytics-data-v1beta:0.11.9:0.11.9 -proto-google-analytics-data-v1beta:0.11.9:0.11.9 +google-analytics-data:0.11.9:0.11.10-SNAPSHOT +grpc-google-analytics-data-v1beta:0.11.9:0.11.10-SNAPSHOT +proto-google-analytics-data-v1beta:0.11.9:0.11.10-SNAPSHOT From dd988323d4d60529a47e9fda00cb2b404e76b17e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 18:48:14 +0200 Subject: [PATCH 092/225] chore(deps): update dependency com.google.cloud:libraries-bom to v25.1.0 (#464) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.0.0` -> `25.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/compatibility-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/confidence-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- README.md | 6 +++--- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c3444c1a..c766067d 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.11.8 + 0.11.9 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.11.8' +implementation 'com.google.analytics:google-analytics-data:0.11.9' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.8" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.9" ``` ## Authentication diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index cbf29c1d..d6874674 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 45dc890f..fd74b620 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import From bdd345f0bd61ddef3d43c6d7ef591a539f016dcd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 4 Apr 2022 21:00:17 +0200 Subject: [PATCH 093/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.11.5 (#440) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.11.4` -> `0.11.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.5/compatibility-slim/0.11.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.5/confidence-slim/0.11.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-analytics-data ### [`v0.11.5`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0115-httpsgithubcomgoogleapisjava-analytics-datacomparev0114v0115-2022-03-02) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.4...v0.11.5)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From 7984fd8f49d9107603d10587294a1bfdb6564083 Mon Sep 17 00:00:00 2001 From: Anwesha Date: Mon, 4 Apr 2022 15:47:37 -0700 Subject: [PATCH 094/225] samples: add Java samples for runReport method (#458) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * A copy sample to test fork process * Adds sample RunReportSample * Modifies runReport sample to have headers printed * Addresses comment differences inbetween python and java sample * Changes println to printf for consistency * Test for run report * Fixes a matching tag * Fixes checkstyle violation * -Another commit to fix checkstyle violations * Changes to linting * Adds RunReportWithAggregation sample * Fixes duplicate comments with property ID for Java samples * Adds tests for java samples and completes unfinished samples * Fixes printing error discrepancy in RunReportSample and linting errors * Removes deleted files with incorrect naming conventions * Modifies documentation for cohorts sample in java * docs: fixes comment for cohorts sample * Makes suggested review edits * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- README.md | 2 + .../example/analytics/QuickstartSample.java | 8 +- .../example/analytics/RunReportSample.java | 9 +- .../RunReportWithAggregationsSample.java | 82 ++++++++++++++++ .../analytics/RunReportWithCohortsSample.java | 97 +++++++++++++++++++ .../RunReportWithAggregationsSampleTest.java | 54 +++++++++++ .../RunReportWithCohortsSampleTest.java | 54 +++++++++++ 7 files changed, 291 insertions(+), 15 deletions(-) create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithAggregationsSample.java create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithCohortsSample.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithAggregationsSampleTest.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithCohortsSampleTest.java diff --git a/README.md b/README.md index c766067d..12bfdbe7 100644 --- a/README.md +++ b/README.md @@ -82,6 +82,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-analytics-dat | 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 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) | diff --git a/samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java b/samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java index 32983df9..7186562a 100644 --- a/samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java +++ b/samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -52,12 +52,6 @@ public static void main(String... args) throws Exception { // 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. diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportSample.java index 1db677f6..0dbb8c16 100644 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportSample.java +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportSample.java @@ -23,8 +23,6 @@ https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport for more information. -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. @@ -58,11 +56,6 @@ public static void main(String... args) throws Exception { // Runs a report of active users grouped by country. 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"; // Using a default constructor instructs the client to use the credentials // specified in GOOGLE_APPLICATION_CREDENTIALS environment variable. @@ -92,7 +85,7 @@ static void printRunResponseResponse(RunReportResponse response) { } for (MetricHeader header : response.getMetricHeadersList()) { - System.out.printf("Metric header name: %s%n", header.getName()); + System.out.printf("Metric header name: %s (%s)%n", header.getName(), header.getType()); } // [END analyticsdata_print_run_report_response_header] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithAggregationsSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithAggregationsSample.java new file mode 100644 index 00000000..55d6a88d --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportWithAggregationsSample.java @@ -0,0 +1,82 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the usage of +metric aggregations in a report. + +See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.metric_aggregations +for more information. + +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.RunReportWithAggregationsSample" + */ + +// [START analyticsdata_run_report_with_aggregations] +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.MetricAggregation; +import com.google.analytics.data.v1beta.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; +import java.util.ArrayList; + +public class RunReportWithAggregationsSample { + + 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"; + sampleRunReportWithAggregations(propertyId); + } + + // Runs a report which includes total, maximum and minimum values for each metric. + static void sampleRunReportWithAggregations(String propertyId) throws Exception { + // Using a default constructor instructs the client to use the credentials + // specified in GOOGLE_APPLICATION_CREDENTIALS environment variable. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDimensions(Dimension.newBuilder().setName("country")) + .addMetrics(Metric.newBuilder().setName("sessions")) + .addDateRanges(DateRange.newBuilder().setStartDate("365daysAgo").setEndDate("today")) + .addAllMetricAggregations( + new ArrayList() { + { + add(MetricAggregation.TOTAL); + add(MetricAggregation.MAXIMUM); + add(MetricAggregation.MINIMUM); + } + }) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + RunReportSample.printRunResponseResponse(response); + } + } +} +// [END analyticsdata_run_report_with_aggregations] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithCohortsSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithCohortsSample.java new file mode 100644 index 00000000..510aab60 --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportWithCohortsSample.java @@ -0,0 +1,97 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the usage of +cohort specification in a report. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.cohort_spec +for more information. + +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.RunReportWithCohortsSample" + */ + +// [START analyticsdata_run_report_with_cohorts] +import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; +import com.google.analytics.data.v1beta.Cohort; +import com.google.analytics.data.v1beta.CohortSpec; +import com.google.analytics.data.v1beta.CohortsRange; +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.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; + +public class RunReportWithCohortsSample { + + 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"; + sampleRunReportWithCohorts(propertyId); + } + + // Runs a report on a cohort of users whose first session happened on the + // same week. The number of active users and user retention rate is calculated + // for the cohort using WEEKLY granularity. + static void sampleRunReportWithCohorts(String propertyId) throws Exception { + // Using a default constructor instructs the client to use the credentials + // specified in GOOGLE_APPLICATION_CREDENTIALS environment variable. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDimensions(Dimension.newBuilder().setName("cohort")) + .addDimensions(Dimension.newBuilder().setName("cohortNthWeek")) + .addMetrics(Metric.newBuilder().setName("cohortActiveUsers")) + .addMetrics( + Metric.newBuilder() + .setName("cohortRetentionRate") + .setExpression("cohortActiveUsers/cohortTotalUsers")) + .setCohortSpec( + CohortSpec.newBuilder() + .addCohorts( + Cohort.newBuilder() + .setDimension("firstSessionDate") + .setName("cohort") + .setDateRange( + DateRange.newBuilder() + .setStartDate("2021-01-03") + .setEndDate("2021-01-09"))) + .setCohortsRange( + CohortsRange.newBuilder() + .setStartOffset(0) + .setEndOffset(4) + .setGranularity(CohortsRange.Granularity.WEEKLY))) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + RunReportSample.printRunResponseResponse(response); + } + } +} +// [END analyticsdata_run_report_with_cohorts] diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithAggregationsSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithAggregationsSampleTest.java new file mode 100644 index 00000000..566dbbb8 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportWithAggregationsSampleTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunReportWithAggregations sample. */ +@RunWith(JUnit4.class) +public class RunReportWithAggregationsSampleTest { + + 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. + RunReportWithAggregationsSample.sampleRunReportWithAggregations(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReportWithAggregations() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithCohortsSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithCohortsSampleTest.java new file mode 100644 index 00000000..c018d4c7 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportWithCohortsSampleTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunReportWithCohorts sample. */ +@RunWith(JUnit4.class) +public class RunReportWithCohortsSampleTest { + + 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. + RunReportWithCohortsSample.sampleRunReportWithCohorts(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReportWithCohorts() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} From 224b9fdfba6e081d12a12ce52964e3597739ab7e Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 7 Apr 2022 16:00:35 +0000 Subject: [PATCH 095/225] chore: Enable Size-Label bot in all googleapis Java repositories (#1381) (#468) * chore: Enable Size-Label bot in all googleapis Java repositories Auto-label T-shirt size indicator should be assigned on every new pull request in all googleapis Java repositories * Remove product Remove product since it is by default true * add license header Co-authored-by: Neenu Shaji Source-Link: https://github.com/googleapis/synthtool/commit/54b2c6ac75370a4a3582431b4a3080f777ba1f11 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 --- .github/.OwlBot.lock.yaml | 3 ++- .github/auto-label.yaml | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .github/auto-label.yaml diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 426cf83e..f60d7749 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:b0b1c1c89570e229b1026372a2b8989ba31495007055b8d30178b7648503eefa + digest: sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 +# created: 2022-04-06T16:30:03.627422514Z diff --git a/.github/auto-label.yaml b/.github/auto-label.yaml new file mode 100644 index 00000000..4caef688 --- /dev/null +++ b/.github/auto-label.yaml @@ -0,0 +1,15 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +requestsize: + enabled: true From 2c2fa47794f6c84b485281568db60e678c0443ff Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 7 Apr 2022 18:04:15 +0200 Subject: [PATCH 096/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.11.9 (#466) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.11.6` -> `0.11.9` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.9/compatibility-slim/0.11.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.9/confidence-slim/0.11.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-analytics-data ### [`v0.11.9`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0119-httpsgithubcomgoogleapisjava-analytics-datacomparev0118v0119-2022-03-29) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.8...v0.11.9) ### [`v0.11.8`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0118-httpsgithubcomgoogleapisjava-analytics-datacomparev0117v0118-2022-03-22) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.7...v0.11.8) ### [`v0.11.7`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0117-httpsgithubcomgoogleapisjava-analytics-datacomparev0116v0117-2022-03-21) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.6...v0.11.7)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 84f0e13b..3ce6f136 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.11.6 + 0.11.9 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index fd74b620..0fc3f35f 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.6 + 0.11.9 com.google.auth From 0346b09955c53309cc4d34497f5f075f73c78a8e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Apr 2022 21:24:15 +0200 Subject: [PATCH 097/225] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 (#478) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.9.0` -> `2.10.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/compatibility-slim/2.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.10.0/confidence-slim/2.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.10.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2100-httpsgithubcomgoogleapisjava-shared-dependenciescomparev290v2100-2022-04-15) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.9.0...v2.10.0) ##### Dependencies - google-cloud-core 2.6.0 ([#​668](https://togithub.com/googleapis/java-shared-dependencies/issues/668)) ([22f4d18](https://togithub.com/googleapis/java-shared-dependencies/commit/22f4d1809cbb9848174b3569ab527e4bef00d443)) - reverting protobuf to 3.19.4 ([#​657](https://togithub.com/googleapis/java-shared-dependencies/issues/657)) ([8501e6d](https://togithub.com/googleapis/java-shared-dependencies/commit/8501e6d842c10d2370bbd5d5246070134336bddd)) - update dependency com.fasterxml.jackson:jackson-bom to v2.13.2.20220328 ([#​646](https://togithub.com/googleapis/java-shared-dependencies/issues/646)) ([7bfd6d7](https://togithub.com/googleapis/java-shared-dependencies/commit/7bfd6d7073859d1955b91b368c6713a72ffa14b6)) - update dependency com.google.api-client:google-api-client-bom to v1.34.0 ([#​662](https://togithub.com/googleapis/java-shared-dependencies/issues/662)) ([1b8e378](https://togithub.com/googleapis/java-shared-dependencies/commit/1b8e378fe0ccf2a28c759868caaf5ba593a95728)) - update dependency com.google.errorprone:error_prone_annotations to v2.12.1 ([#​652](https://togithub.com/googleapis/java-shared-dependencies/issues/652)) ([1cc80ee](https://togithub.com/googleapis/java-shared-dependencies/commit/1cc80ee984ebcad9bc2a95e2f28c0a49fe924b37)) - update dependency com.google.errorprone:error_prone_annotations to v2.13.0 ([#​669](https://togithub.com/googleapis/java-shared-dependencies/issues/669)) ([61b7834](https://togithub.com/googleapis/java-shared-dependencies/commit/61b78341b34a251722be4805a6bdd895cd64836c)) - update dependency com.google.http-client:google-http-client-bom to v1.41.6 ([#​654](https://togithub.com/googleapis/java-shared-dependencies/issues/654)) ([140ef40](https://togithub.com/googleapis/java-shared-dependencies/commit/140ef405bc17ed83f5ce177df59affca14fbe49c)) - update dependency com.google.http-client:google-http-client-bom to v1.41.7 ([#​658](https://togithub.com/googleapis/java-shared-dependencies/issues/658)) ([f6f93e5](https://togithub.com/googleapis/java-shared-dependencies/commit/f6f93e5b9172c9684623c4c148e4a8fe2fae1e94)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.2 ([#​655](https://togithub.com/googleapis/java-shared-dependencies/issues/655)) ([20cd9ed](https://togithub.com/googleapis/java-shared-dependencies/commit/20cd9eda112c96836a5ab7485a4247ed2bc0edb8)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.33.3 ([#​663](https://togithub.com/googleapis/java-shared-dependencies/issues/663)) ([f011a46](https://togithub.com/googleapis/java-shared-dependencies/commit/f011a46c551dba16851b4f8c919c40452fc5d5c3)) - update dependency com.google.protobuf:protobuf-bom to v3.20.0 ([#​651](https://togithub.com/googleapis/java-shared-dependencies/issues/651)) ([ad2ff73](https://togithub.com/googleapis/java-shared-dependencies/commit/ad2ff73207dd6493321c77d8eca0022baf13b4ce)) - update dependency io.grpc:grpc-bom to v1.45.1 ([#​647](https://togithub.com/googleapis/java-shared-dependencies/issues/647)) ([38e46fc](https://togithub.com/googleapis/java-shared-dependencies/commit/38e46fc4f03af0a02f30ce4a2fa222c71797ae15)) - update dependency org.checkerframework:checker-qual to v3.21.4 ([#​650](https://togithub.com/googleapis/java-shared-dependencies/issues/650)) ([125e80a](https://togithub.com/googleapis/java-shared-dependencies/commit/125e80ab2c3225a00c03f5ff5de94872ebb94303)) - update gax.version to v2.15.0 ([#​649](https://togithub.com/googleapis/java-shared-dependencies/issues/649)) ([c7f32a6](https://togithub.com/googleapis/java-shared-dependencies/commit/c7f32a68b14520104432282ac9598643700162eb)) - update gax.version to v2.16.0 ([#​664](https://togithub.com/googleapis/java-shared-dependencies/issues/664)) ([caaf941](https://togithub.com/googleapis/java-shared-dependencies/commit/caaf941643af04295f5527a0144587d7bf040862)) - update google.common-protos.version to v2.8.1 ([#​656](https://togithub.com/googleapis/java-shared-dependencies/issues/656)) ([df4a4a2](https://togithub.com/googleapis/java-shared-dependencies/commit/df4a4a2130a3cdb2965ea42962d1ea6a85506ba7)) - update google.common-protos.version to v2.8.2 ([#​659](https://togithub.com/googleapis/java-shared-dependencies/issues/659)) ([b499e2b](https://togithub.com/googleapis/java-shared-dependencies/commit/b499e2bc99506d48d26e35bf6e68c09409ce8b11)) - update google.common-protos.version to v2.8.3 ([#​660](https://togithub.com/googleapis/java-shared-dependencies/issues/660)) ([461081c](https://togithub.com/googleapis/java-shared-dependencies/commit/461081c0cf73057c1f6e07fc573453ad467a60ae)) - update iam.version to v1.3.0 ([#​648](https://togithub.com/googleapis/java-shared-dependencies/issues/648)) ([6670c4f](https://togithub.com/googleapis/java-shared-dependencies/commit/6670c4f61fcf075c543bfd148eea49796e0662ce)) - update iam.version to v1.3.1 ([#​661](https://togithub.com/googleapis/java-shared-dependencies/issues/661)) ([cc8fbe6](https://togithub.com/googleapis/java-shared-dependencies/commit/cc8fbe6eae03341c2ece7d3356febc843a74a812))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index a6b7e3c1..41305a50 100644 --- a/pom.xml +++ b/pom.xml @@ -77,7 +77,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.9.0 + 2.10.0 pom import From 1723d8580548b7e4a5a678e13e1732195a50bf36 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 15 Apr 2022 19:46:19 +0000 Subject: [PATCH 098/225] chore(main): release 0.11.10 (#479) :robot: I have created a release *beep* *boop* --- ### [0.11.10](https://github.com/googleapis/java-analytics-data/compare/v0.11.9...v0.11.10) (2022-04-15) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#478](https://github.com/googleapis/java-analytics-data/issues/478)) ([0346b09](https://github.com/googleapis/java-analytics-data/commit/0346b09955c53309cc4d34497f5f075f73c78a8e)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-analytics-data-bom/pom.xml | 8 ++++---- google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 25 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a677be26..6d15450b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +### [0.11.10](https://github.com/googleapis/java-analytics-data/compare/v0.11.9...v0.11.10) (2022-04-15) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#478](https://github.com/googleapis/java-analytics-data/issues/478)) ([0346b09](https://github.com/googleapis/java-analytics-data/commit/0346b09955c53309cc4d34497f5f075f73c78a8e)) + ### [0.11.9](https://github.com/googleapis/java-analytics-data/compare/v0.11.8...v0.11.9) (2022-03-29) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index d4031e66..2910c849 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.10-SNAPSHOT + 0.11.10 pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-data - 0.11.10-SNAPSHOT + 0.11.10 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.10-SNAPSHOT + 0.11.10 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.10-SNAPSHOT + 0.11.10
diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 13d88df1..2462e75d 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.10-SNAPSHOT + 0.11.10 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.10-SNAPSHOT + 0.11.10 google-analytics-data diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 2a95477d..42ef8430 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.10-SNAPSHOT + 0.11.10 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.10-SNAPSHOT + 0.11.10 diff --git a/pom.xml b/pom.xml index 41305a50..f2a5bf21 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.10-SNAPSHOT + 0.11.10 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,17 +61,17 @@ com.google.analytics google-analytics-data - 0.11.10-SNAPSHOT + 0.11.10 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.10-SNAPSHOT + 0.11.10 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.10-SNAPSHOT + 0.11.10 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index d5bd1820..f965f54e 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.10-SNAPSHOT + 0.11.10 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.10-SNAPSHOT + 0.11.10 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d6874674..a20a135e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.10-SNAPSHOT + 0.11.10 diff --git a/versions.txt b/versions.txt index a5bfa712..99fc3526 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.9:0.11.10-SNAPSHOT -grpc-google-analytics-data-v1beta:0.11.9:0.11.10-SNAPSHOT -proto-google-analytics-data-v1beta:0.11.9:0.11.10-SNAPSHOT +google-analytics-data:0.11.10:0.11.10 +grpc-google-analytics-data-v1beta:0.11.10:0.11.10 +proto-google-analytics-data-v1beta:0.11.10:0.11.10 From 1f6525f7cf1331ac132e083af2dffa6e042e93a5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 18 Apr 2022 17:42:33 +0200 Subject: [PATCH 099/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.11.10 (#481) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.11.9` -> `0.11.10` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.10/compatibility-slim/0.11.9)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.11.10/confidence-slim/0.11.9)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-analytics-data ### [`v0.11.10`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​01110-httpsgithubcomgoogleapisjava-analytics-datacomparev0119v01110-2022-04-15) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.9...v0.11.10)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 12bfdbe7..93d148ce 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.11.9 + 0.11.10 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.11.9' +implementation 'com.google.analytics:google-analytics-data:0.11.10' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.9" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.10" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 3ce6f136..071d4296 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.11.9 + 0.11.10 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 0fc3f35f..2bfb7c8c 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.9 + 0.11.10 com.google.auth From ca8e107485b8820488f955d6c646c1ccfaa449cd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 16:50:19 +0200 Subject: [PATCH 100/225] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.4.0 (#483) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-javadoc-plugin](https://maven.apache.org/plugins/) | `3.3.2` -> `3.4.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.0/compatibility-slim/3.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.0/confidence-slim/3.3.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f2a5bf21..ec851775 100644 --- a/pom.xml +++ b/pom.xml @@ -140,7 +140,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.2 + 3.4.0 html From 2336d75fbb04e3516817e6961cf8fa7336c313d1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 17:34:11 +0200 Subject: [PATCH 101/225] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.3.3 (#482) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.3.2` -> `1.3.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.3/compatibility-slim/1.3.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.3.3/confidence-slim/1.3.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.3.3`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​133-httpsgithubcomgoogleapisjava-shared-configcomparev132v133-2022-04-19) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.2...v1.3.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- google-analytics-data-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 2910c849..2c677eb7 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.3.2 + 1.3.3 Google Analytics Data BOM diff --git a/pom.xml b/pom.xml index ec851775..41c40126 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.3.2 + 1.3.3 From 569de9491348f32c317654ed7611b709cf38c88f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 21 Apr 2022 19:40:22 +0200 Subject: [PATCH 102/225] build(deps): update dependency org.sonatype.plugins:nexus-staging-maven-plugin to v1.6.13 (#484) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.sonatype.plugins:nexus-staging-maven-plugin](http://www.sonatype.com/) ([source](https://togithub.com/sonatype/nexus-maven-plugins)) | `1.6.11` -> `1.6.13` | [![age](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/compatibility-slim/1.6.11)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.sonatype.plugins:nexus-staging-maven-plugin/1.6.13/confidence-slim/1.6.11)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
sonatype/nexus-maven-plugins ### [`v1.6.13`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.12...release-1.6.13) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.12...release-1.6.13) ### [`v1.6.12`](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.11...release-1.6.12) [Compare Source](https://togithub.com/sonatype/nexus-maven-plugins/compare/release-1.6.11...release-1.6.12)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index f44b21b5..8b9749bf 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -46,7 +46,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.11 + 1.6.13 true From f03c3ebfc0119e5654a71a0cc71102580922ad88 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Apr 2022 17:44:27 +0200 Subject: [PATCH 103/225] chore(deps): update dependency com.google.cloud:libraries-bom to v25.2.0 (#487) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.1.0` -> `25.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/compatibility-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/confidence-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index a20a135e..c2122821 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 25.1.0 + 25.2.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 2bfb7c8c..f906f874 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 25.1.0 + 25.2.0 pom import From e15659c791d3a904f8ef573e2a66181434732586 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 29 Apr 2022 22:18:21 +0200 Subject: [PATCH 104/225] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.4.0 (#489) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.3.3` -> `1.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/compatibility-slim/1.3.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.4.0/confidence-slim/1.3.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.4.0`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​140-httpsgithubcomgoogleapisjava-shared-configcomparev133v140-2022-04-28) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.3.3...v1.4.0) ##### Features - **java:** remove native image module ([#​471](https://togithub.com/googleapis/java-shared-config/issues/471)) ([7fcba01](https://togithub.com/googleapis/java-shared-config/commit/7fcba016b3138d7beaa4e962853f9bc80f59438c)) ##### [1.3.3](https://togithub.com/googleapis/java-shared-config/compare/v1.3.2...v1.3.3) (2022-04-19) ##### Bug Fixes - **java:** remove protobuf feature from native profile ([#​461](https://togithub.com/googleapis/java-shared-config/issues/461)) ([ffd07cb](https://togithub.com/googleapis/java-shared-config/commit/ffd07cb18ee7d45d4daee1d9ea6f6d321fdca874)) ##### Dependencies - update dependency com.google.cloud:native-image-support to v0.12.11 ([#​459](https://togithub.com/googleapis/java-shared-config/issues/459)) ([d20008d](https://togithub.com/googleapis/java-shared-config/commit/d20008df15209708fdf9d06828b567778190f4d0)) - update dependency com.google.cloud:native-image-support to v0.13.1 ([#​465](https://togithub.com/googleapis/java-shared-config/issues/465)) ([b202064](https://togithub.com/googleapis/java-shared-config/commit/b2020648816feb4740ad70acedfed470d7da5bcf)) ##### [1.3.2](https://togithub.com/googleapis/java-shared-config/compare/v1.3.1...v1.3.2) (2022-03-28) ##### Dependencies - revert google-java-format to 1.7 ([#​453](https://togithub.com/googleapis/java-shared-config/issues/453)) ([cbc777f](https://togithub.com/googleapis/java-shared-config/commit/cbc777f3e9ab75edb6fa2e0268a7446ae4111725)) ##### [1.3.1](https://togithub.com/googleapis/java-shared-config/compare/v1.3.0...v1.3.1) (2022-03-25) ##### Dependencies - update dependency com.google.cloud:native-image-support to v0.12.10 ([#​443](https://togithub.com/googleapis/java-shared-config/issues/443)) ([5b39d5e](https://togithub.com/googleapis/java-shared-config/commit/5b39d5ee15121f052226ff873b6ab101e9c71de5)) - update dependency com.google.googlejavaformat:google-java-format to v1.15.0 ([#​426](https://togithub.com/googleapis/java-shared-config/issues/426)) ([4c3c4b6](https://togithub.com/googleapis/java-shared-config/commit/4c3c4b66129632181e6bc363a0ecccf4f5aac914)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.11 ([#​448](https://togithub.com/googleapis/java-shared-config/issues/448)) ([f7f518e](https://togithub.com/googleapis/java-shared-config/commit/f7f518e87d1d9feb9ac54d7c099f97d8751ee3da)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.11 ([#​449](https://togithub.com/googleapis/java-shared-config/issues/449)) ([3e1c0b5](https://togithub.com/googleapis/java-shared-config/commit/3e1c0b5a1d2f4a0db88c06a0d683ed90cbc745e2))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- google-analytics-data-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 2c677eb7..f6da1d32 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.3.3 + 1.4.0 Google Analytics Data BOM diff --git a/pom.xml b/pom.xml index 41c40126..084610e4 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.3.3 + 1.4.0 From e96123116ba88ee896c259e1140645e3c62b3347 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 5 May 2022 00:56:11 +0200 Subject: [PATCH 105/225] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.3.0 (#488) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.2.2` -> `3.3.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/compatibility-slim/3.2.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.3.0/confidence-slim/3.2.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 084610e4..f8b7efe5 100644 --- a/pom.xml +++ b/pom.xml @@ -113,7 +113,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.2.2 + 3.3.0 From 8b0004cf71d430903d59faa2da84499b8c3b14ba Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 5 May 2022 19:12:19 +0000 Subject: [PATCH 106/225] Synchronize new proto/yaml changes. (#486) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 446264416 Source-Link: https://github.com/googleapis/googleapis/commit/3a976a38edfb67cff5432cd2bfe1edf7746822b5 Source-Link: https://github.com/googleapis/googleapis-gen/commit/0548a716a01383382344958ab20bb4d522388154 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDU0OGE3MTZhMDEzODMzODIzNDQ5NThhYjIwYmI0ZDUyMjM4ODE1NCJ9 chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 PiperOrigin-RevId: 446250659 Source-Link: https://github.com/googleapis/googleapis/commit/dc4ef314fecf1b00833e78288cf2eb4d2b165ad1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5fdda4ddfbab87998e77e4a453e0ff87986d2db8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWZkZGE0ZGRmYmFiODc5OThlNzdlNGE0NTNlMGZmODc5ODZkMmRiOCJ9 chore(bazel): update version of Protobuf to v3.20.1 PiperOrigin-RevId: 444328399 Source-Link: https://github.com/googleapis/googleapis/commit/c7ca416c2856aad6a3f7092924e56b8cf0cb2534 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d61705453a62b3ecda78aa30c192840ebc5a8a90 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDYxNzA1NDUzYTYyYjNlY2RhNzhhYTMwYzE5Mjg0MGViYzVhOGE5MCJ9 --- .../data/v1beta/BetaAnalyticsDataClient.java | 40 ++++++++++++++- .../v1beta/BetaAnalyticsDataSettings.java | 4 +- .../analytics/data/v1beta/package-info.java | 4 +- .../v1beta/stub/BetaAnalyticsDataStub.java | 2 +- .../stub/BetaAnalyticsDataStubSettings.java | 4 +- .../GrpcBetaAnalyticsDataCallableFactory.java | 2 +- .../stub/GrpcBetaAnalyticsDataStub.java | 2 +- .../v1beta/BetaAnalyticsDataClientTest.java | 2 +- .../data/v1beta/MockBetaAnalyticsData.java | 2 +- .../v1beta/MockBetaAnalyticsDataImpl.java | 2 +- .../v1beta/BatchRunPivotReportsRequest.java | 2 + .../v1beta/BatchRunPivotReportsResponse.java | 2 + .../data/v1beta/BatchRunReportsRequest.java | 2 + .../data/v1beta/BatchRunReportsResponse.java | 2 + .../v1beta/CheckCompatibilityRequest.java | 2 + .../v1beta/CheckCompatibilityResponse.java | 2 + .../google/analytics/data/v1beta/Cohort.java | 2 + .../data/v1beta/CohortReportSettings.java | 2 + .../analytics/data/v1beta/CohortSpec.java | 2 + .../analytics/data/v1beta/CohortsRange.java | 2 + .../analytics/data/v1beta/DateRange.java | 2 + .../analytics/data/v1beta/Dimension.java | 2 + .../data/v1beta/DimensionCompatibility.java | 2 + .../data/v1beta/DimensionExpression.java | 15 ++++-- .../data/v1beta/DimensionHeader.java | 2 + .../data/v1beta/DimensionMetadata.java | 2 + .../analytics/data/v1beta/DimensionValue.java | 2 + .../google/analytics/data/v1beta/Filter.java | 22 ++++++-- .../data/v1beta/FilterExpression.java | 14 ++++-- .../data/v1beta/FilterExpressionList.java | 2 + .../data/v1beta/GetMetadataRequest.java | 2 + .../analytics/data/v1beta/Metadata.java | 2 + .../analytics/data/v1beta/MetadataName.java | 2 +- .../google/analytics/data/v1beta/Metric.java | 2 + .../data/v1beta/MetricCompatibility.java | 2 + .../analytics/data/v1beta/MetricHeader.java | 2 + .../analytics/data/v1beta/MetricMetadata.java | 2 + .../analytics/data/v1beta/MetricValue.java | 2 + .../analytics/data/v1beta/MinuteRange.java | 50 ++++++++++--------- .../data/v1beta/MinuteRangeOrBuilder.java | 16 +++--- .../analytics/data/v1beta/NumericValue.java | 6 ++- .../google/analytics/data/v1beta/OrderBy.java | 19 +++++-- .../google/analytics/data/v1beta/Pivot.java | 2 + .../data/v1beta/PivotDimensionHeader.java | 2 + .../analytics/data/v1beta/PivotHeader.java | 2 + .../analytics/data/v1beta/PropertyQuota.java | 2 + .../analytics/data/v1beta/QuotaStatus.java | 2 + .../data/v1beta/ResponseMetaData.java | 6 +++ .../com/google/analytics/data/v1beta/Row.java | 2 + .../data/v1beta/RunPivotReportRequest.java | 2 + .../data/v1beta/RunPivotReportResponse.java | 2 + .../data/v1beta/RunRealtimeReportRequest.java | 2 + .../v1beta/RunRealtimeReportResponse.java | 2 + .../data/v1beta/RunReportRequest.java | 2 + .../data/v1beta/RunReportResponse.java | 2 + .../google/analytics/data/v1beta/data.proto | 8 +-- 56 files changed, 231 insertions(+), 63 deletions(-) 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 index 6bc3ea3f..fcd8eb10 100644 --- 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 @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -33,6 +33,8 @@ * calls that map to API methods. Sample code to get started: * *
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
  *   RunReportRequest request =
  *       RunReportRequest.newBuilder()
@@ -85,6 +87,8 @@
  * 

To customize credentials: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BetaAnalyticsDataSettings betaAnalyticsDataSettings =
  *     BetaAnalyticsDataSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -96,6 +100,8 @@
  * 

To customize the endpoint: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BetaAnalyticsDataSettings betaAnalyticsDataSettings =
  *     BetaAnalyticsDataSettings.newBuilder().setEndpoint(myEndpoint).build();
  * BetaAnalyticsDataClient betaAnalyticsDataClient =
@@ -169,6 +175,8 @@ public BetaAnalyticsDataStub getStub() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   RunReportRequest request =
    *       RunReportRequest.newBuilder()
@@ -209,6 +217,8 @@ public final RunReportResponse runReport(RunReportRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   RunReportRequest request =
    *       RunReportRequest.newBuilder()
@@ -248,6 +258,8 @@ public final UnaryCallable runReportCallabl
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   RunPivotReportRequest request =
    *       RunPivotReportRequest.newBuilder()
@@ -284,6 +296,8 @@ public final RunPivotReportResponse runPivotReport(RunPivotReportRequest request
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   RunPivotReportRequest request =
    *       RunPivotReportRequest.newBuilder()
@@ -318,6 +332,8 @@ public final RunPivotReportResponse runPivotReport(RunPivotReportRequest request
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   BatchRunReportsRequest request =
    *       BatchRunReportsRequest.newBuilder()
@@ -342,6 +358,8 @@ public final BatchRunReportsResponse batchRunReports(BatchRunReportsRequest requ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   BatchRunReportsRequest request =
    *       BatchRunReportsRequest.newBuilder()
@@ -367,6 +385,8 @@ public final BatchRunReportsResponse batchRunReports(BatchRunReportsRequest requ
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   BatchRunPivotReportsRequest request =
    *       BatchRunPivotReportsRequest.newBuilder()
@@ -392,6 +412,8 @@ public final BatchRunPivotReportsResponse batchRunPivotReports(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   BatchRunPivotReportsRequest request =
    *       BatchRunPivotReportsRequest.newBuilder()
@@ -424,6 +446,8 @@ public final BatchRunPivotReportsResponse batchRunPivotReports(
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   MetadataName name = MetadataName.of("[PROPERTY]");
    *   Metadata response = betaAnalyticsDataClient.getMetadata(name);
@@ -459,6 +483,8 @@ public final Metadata getMetadata(MetadataName name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   String name = MetadataName.of("[PROPERTY]").toString();
    *   Metadata response = betaAnalyticsDataClient.getMetadata(name);
@@ -493,6 +519,8 @@ public final Metadata getMetadata(String name) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   GetMetadataRequest request =
    *       GetMetadataRequest.newBuilder().setName(MetadataName.of("[PROPERTY]").toString()).build();
@@ -521,6 +549,8 @@ public final Metadata getMetadata(GetMetadataRequest request) {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   GetMetadataRequest request =
    *       GetMetadataRequest.newBuilder().setName(MetadataName.of("[PROPERTY]").toString()).build();
@@ -543,6 +573,8 @@ public final UnaryCallable getMetadataCallable() {
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   RunRealtimeReportRequest request =
    *       RunRealtimeReportRequest.newBuilder()
@@ -576,6 +608,8 @@ public final RunRealtimeReportResponse runRealtimeReport(RunRealtimeReportReques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   RunRealtimeReportRequest request =
    *       RunRealtimeReportRequest.newBuilder()
@@ -618,6 +652,8 @@ public final RunRealtimeReportResponse runRealtimeReport(RunRealtimeReportReques
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   CheckCompatibilityRequest request =
    *       CheckCompatibilityRequest.newBuilder()
@@ -655,6 +691,8 @@ public final CheckCompatibilityResponse checkCompatibility(CheckCompatibilityReq
    * 

Sample code: * *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   CheckCompatibilityRequest request =
    *       CheckCompatibilityRequest.newBuilder()
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
index 1b53659a..bc1d0cee 100644
--- 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
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -49,6 +49,8 @@
  * 

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

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BetaAnalyticsDataSettings.Builder betaAnalyticsDataSettingsBuilder =
  *     BetaAnalyticsDataSettings.newBuilder();
  * betaAnalyticsDataSettingsBuilder
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
index 44439dd3..9fce29c0 100644
--- 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
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -24,6 +24,8 @@
  * 

Sample for BetaAnalyticsDataClient: * *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
  *   RunReportRequest request =
  *       RunReportRequest.newBuilder()
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
index 96b8e57b..1f39e741 100644
--- 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
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-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
index 4606ba3a..be447b8f 100644
--- 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
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -72,6 +72,8 @@
  * 

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

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
  * BetaAnalyticsDataStubSettings.Builder betaAnalyticsDataSettingsBuilder =
  *     BetaAnalyticsDataStubSettings.newBuilder();
  * betaAnalyticsDataSettingsBuilder
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
index c1606ff0..b12e6e4e 100644
--- 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
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-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
index 5994aba8..586ca680 100644
--- 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
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-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
index 5a705d40..25470ad6 100644
--- 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
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-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
index 2d49aa0c..584e549e 100644
--- 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
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/google-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
index 618d05c2..ef40e48e 100644
--- 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
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-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
index 893069af..3e3757a4 100644
--- 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
@@ -104,6 +104,8 @@ private BatchRunPivotReportsRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index dad592ab..870058c6 100644
--- 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
@@ -104,6 +104,8 @@ private BatchRunPivotReportsResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index bb6c60c9..b2fa5e94 100644
--- 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
@@ -103,6 +103,8 @@ private BatchRunReportsRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index 53855a60..6ea58ea2 100644
--- 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
@@ -103,6 +103,8 @@ private BatchRunReportsResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index d76d84c4..7486453c 100644
--- 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
@@ -158,6 +158,8 @@ private CheckCompatibilityRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index d4bdc8c6..f0b227ba 100644
--- 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
@@ -110,6 +110,8 @@ private CheckCompatibilityResponse(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index cfbf8c85..01718c73 100644
--- 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
@@ -114,6 +114,8 @@ private Cohort(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index a7be7e46..8fb6d206 100644
--- 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
@@ -84,6 +84,8 @@ private CohortReportSettings(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index 85ac27e7..afa54f35 100644
--- 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
@@ -138,6 +138,8 @@ private CohortSpec(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index 89faa7b5..01288a51 100644
--- 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
@@ -99,6 +99,8 @@ private CohortsRange(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index ae0a3ce8..5627b500 100644
--- 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
@@ -105,6 +105,8 @@ private DateRange(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index e689caf8..ca2201ab 100644
--- 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
@@ -108,6 +108,8 @@ private Dimension(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index bfe2a8d6..52282ece 100644
--- 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
@@ -106,6 +106,8 @@ private DimensionCompatibility(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index ee7cefb8..1f39bcb5 100644
--- 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
@@ -152,6 +152,8 @@ private DimensionExpression(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -277,6 +279,8 @@ private CaseExpression(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -1025,6 +1029,8 @@ private ConcatenateExpression(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -2683,8 +2689,9 @@ public Builder mergeLowerCase(
       } else {
         if (oneExpressionCase_ == 4) {
           lowerCaseBuilder_.mergeFrom(value);
+        } else {
+          lowerCaseBuilder_.setMessage(value);
         }
-        lowerCaseBuilder_.setMessage(value);
       }
       oneExpressionCase_ = 4;
       return this;
@@ -2908,8 +2915,9 @@ public Builder mergeUpperCase(
       } else {
         if (oneExpressionCase_ == 5) {
           upperCaseBuilder_.mergeFrom(value);
+        } else {
+          upperCaseBuilder_.setMessage(value);
         }
-        upperCaseBuilder_.setMessage(value);
       }
       oneExpressionCase_ = 5;
       return this;
@@ -3149,8 +3157,9 @@ public Builder mergeConcatenate(
       } else {
         if (oneExpressionCase_ == 6) {
           concatenateBuilder_.mergeFrom(value);
+        } else {
+          concatenateBuilder_.setMessage(value);
         }
-        concatenateBuilder_.setMessage(value);
       }
       oneExpressionCase_ = 6;
       return this;
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
index 6b833e2e..4b1356ab 100644
--- 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
@@ -91,6 +91,8 @@ private DimensionHeader(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index f839aa91..16328792 100644
--- 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
@@ -129,6 +129,8 @@ private DimensionMetadata(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index 524b4c88..de0488c7 100644
--- 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
@@ -86,6 +86,8 @@ private DimensionValue(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index ea691b3e..1c439269 100644
--- 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
@@ -166,6 +166,8 @@ private Filter(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -340,6 +342,8 @@ private StringFilter(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -1528,6 +1532,8 @@ private InListFilter(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -2427,6 +2433,8 @@ private NumericFilter(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -3615,6 +3623,8 @@ private BetweenFilter(
         }
       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
         throw e.setUnfinishedMessage(this);
+      } catch (com.google.protobuf.UninitializedMessageException e) {
+        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
       } catch (java.io.IOException e) {
         throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
       } finally {
@@ -5510,8 +5520,9 @@ public Builder mergeStringFilter(com.google.analytics.data.v1beta.Filter.StringF
       } else {
         if (oneFilterCase_ == 3) {
           stringFilterBuilder_.mergeFrom(value);
+        } else {
+          stringFilterBuilder_.setMessage(value);
         }
-        stringFilterBuilder_.setMessage(value);
       }
       oneFilterCase_ = 3;
       return this;
@@ -5721,8 +5732,9 @@ public Builder mergeInListFilter(com.google.analytics.data.v1beta.Filter.InListF
       } else {
         if (oneFilterCase_ == 4) {
           inListFilterBuilder_.mergeFrom(value);
+        } else {
+          inListFilterBuilder_.setMessage(value);
         }
-        inListFilterBuilder_.setMessage(value);
       }
       oneFilterCase_ = 4;
       return this;
@@ -5932,8 +5944,9 @@ public Builder mergeNumericFilter(com.google.analytics.data.v1beta.Filter.Numeri
       } else {
         if (oneFilterCase_ == 5) {
           numericFilterBuilder_.mergeFrom(value);
+        } else {
+          numericFilterBuilder_.setMessage(value);
         }
-        numericFilterBuilder_.setMessage(value);
       }
       oneFilterCase_ = 5;
       return this;
@@ -6143,8 +6156,9 @@ public Builder mergeBetweenFilter(com.google.analytics.data.v1beta.Filter.Betwee
       } else {
         if (oneFilterCase_ == 6) {
           betweenFilterBuilder_.mergeFrom(value);
+        } else {
+          betweenFilterBuilder_.setMessage(value);
         }
-        betweenFilterBuilder_.setMessage(value);
       }
       oneFilterCase_ = 6;
       return this;
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
index 2f6047b4..bdbc736c 100644
--- 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
@@ -151,6 +151,8 @@ private FilterExpression(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -994,8 +996,9 @@ public Builder mergeAndGroup(com.google.analytics.data.v1beta.FilterExpressionLi
       } else {
         if (exprCase_ == 1) {
           andGroupBuilder_.mergeFrom(value);
+        } else {
+          andGroupBuilder_.setMessage(value);
         }
-        andGroupBuilder_.setMessage(value);
       }
       exprCase_ = 1;
       return this;
@@ -1204,8 +1207,9 @@ public Builder mergeOrGroup(com.google.analytics.data.v1beta.FilterExpressionLis
       } else {
         if (exprCase_ == 2) {
           orGroupBuilder_.mergeFrom(value);
+        } else {
+          orGroupBuilder_.setMessage(value);
         }
-        orGroupBuilder_.setMessage(value);
       }
       exprCase_ = 2;
       return this;
@@ -1413,8 +1417,9 @@ public Builder mergeNotExpression(com.google.analytics.data.v1beta.FilterExpress
       } else {
         if (exprCase_ == 3) {
           notExpressionBuilder_.mergeFrom(value);
+        } else {
+          notExpressionBuilder_.setMessage(value);
         }
-        notExpressionBuilder_.setMessage(value);
       }
       exprCase_ = 3;
       return this;
@@ -1631,8 +1636,9 @@ public Builder mergeFilter(com.google.analytics.data.v1beta.Filter value) {
       } else {
         if (exprCase_ == 4) {
           filterBuilder_.mergeFrom(value);
+        } else {
+          filterBuilder_.setMessage(value);
         }
-        filterBuilder_.setMessage(value);
       }
       exprCase_ = 4;
       return this;
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
index b98c33ca..bc5d8d6f 100644
--- 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
@@ -95,6 +95,8 @@ private FilterExpressionList(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index ba989de0..f91837b8 100644
--- 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
@@ -88,6 +88,8 @@ private GetMetadataRequest(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index 9aa44745..6dbfe59f 100644
--- 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
@@ -116,6 +116,8 @@ private Metadata(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index 969799f2..0fe36b44 100644
--- 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
@@ -1,5 +1,5 @@
 /*
- * Copyright 2021 Google LLC
+ * Copyright 2022 Google LLC
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
diff --git a/proto-google-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
index b7f45f6d..4f0b200e 100644
--- 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
@@ -103,6 +103,8 @@ private Metric(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index 730006c6..4ddddcda 100644
--- 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
@@ -105,6 +105,8 @@ private MetricCompatibility(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index dbc42080..dd6797f6 100644
--- 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
@@ -99,6 +99,8 @@ private MetricHeader(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index 0e1d42d9..f2baaf5b 100644
--- 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
@@ -171,6 +171,8 @@ private MetricMetadata(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index af070afd..3cbd35f6 100644
--- 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
@@ -86,6 +86,8 @@ private MetricValue(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
diff --git a/proto-google-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
index c930f8ad..ddadc997 100644
--- 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
@@ -102,6 +102,8 @@ private MinuteRange(
       }
     } catch (com.google.protobuf.InvalidProtocolBufferException e) {
       throw e.setUnfinishedMessage(this);
+    } catch (com.google.protobuf.UninitializedMessageException e) {
+      throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
     } catch (java.io.IOException e) {
       throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
     } finally {
@@ -137,8 +139,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    * 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`).
+   * (`startMinutesAgo <= 29`), and Google Analytics 360 properties can request
+   * up to the last 60 minutes of event data (`startMinutesAgo <= 59`).
    * 
* * optional int32 start_minutes_ago = 1; @@ -158,8 +160,8 @@ public boolean hasStartMinutesAgo() { * 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`). + * (`startMinutesAgo <= 29`), and Google Analytics 360 properties can request + * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). *
* * optional int32 start_minutes_ago = 1; @@ -183,8 +185,8 @@ public int getStartMinutesAgo() { * 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`). + * (`endMinutesAgo <= 29`), and Google Analytics 360 properties can request + * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). *
* * optional int32 end_minutes_ago = 2; @@ -205,8 +207,8 @@ public boolean hasEndMinutesAgo() { * 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`). + * (`endMinutesAgo <= 29`), and Google Analytics 360 properties can request + * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). *
* * optional int32 end_minutes_ago = 2; @@ -651,8 +653,8 @@ public Builder mergeFrom( * 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`). + * (`startMinutesAgo <= 29`), and Google Analytics 360 properties can request + * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). *
* * optional int32 start_minutes_ago = 1; @@ -672,8 +674,8 @@ public boolean hasStartMinutesAgo() { * 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`). + * (`startMinutesAgo <= 29`), and Google Analytics 360 properties can request + * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). *
* * optional int32 start_minutes_ago = 1; @@ -693,8 +695,8 @@ public int getStartMinutesAgo() { * 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`). + * (`startMinutesAgo <= 29`), and Google Analytics 360 properties can request + * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). *
* * optional int32 start_minutes_ago = 1; @@ -717,8 +719,8 @@ public Builder setStartMinutesAgo(int value) { * 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`). + * (`startMinutesAgo <= 29`), and Google Analytics 360 properties can request + * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). *
* * optional int32 start_minutes_ago = 1; @@ -743,8 +745,8 @@ public Builder clearStartMinutesAgo() { * 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`). + * (`endMinutesAgo <= 29`), and Google Analytics 360 properties can request + * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). *
* * optional int32 end_minutes_ago = 2; @@ -765,8 +767,8 @@ public boolean hasEndMinutesAgo() { * 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`). + * (`endMinutesAgo <= 29`), and Google Analytics 360 properties can request + * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). *
* * optional int32 end_minutes_ago = 2; @@ -787,8 +789,8 @@ public int getEndMinutesAgo() { * 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`). + * (`endMinutesAgo <= 29`), and Google Analytics 360 properties can request + * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). *
* * optional int32 end_minutes_ago = 2; @@ -812,8 +814,8 @@ public Builder setEndMinutesAgo(int value) { * 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`). + * (`endMinutesAgo <= 29`), and Google Analytics 360 properties can request + * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). *
* * optional int32 end_minutes_ago = 2; 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 index 3726076c..64a24d0e 100644 --- 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 @@ -32,8 +32,8 @@ public interface MinuteRangeOrBuilder * 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`). + * (`startMinutesAgo <= 29`), and Google Analytics 360 properties can request + * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). *
* * optional int32 start_minutes_ago = 1; @@ -50,8 +50,8 @@ public interface MinuteRangeOrBuilder * 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`). + * (`startMinutesAgo <= 29`), and Google Analytics 360 properties can request + * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). *
* * optional int32 start_minutes_ago = 1; @@ -70,8 +70,8 @@ public interface MinuteRangeOrBuilder * 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`). + * (`endMinutesAgo <= 29`), and Google Analytics 360 properties can request + * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). *
* * optional int32 end_minutes_ago = 2; @@ -89,8 +89,8 @@ public interface MinuteRangeOrBuilder * 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`). + * (`endMinutesAgo <= 29`), and Google Analytics 360 properties can request + * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). *
* * optional int32 end_minutes_ago = 2; 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 index 027ae1aa..a3863b5a 100644 --- 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 @@ -70,14 +70,14 @@ private NumericValue( break; case 8: { - oneValueCase_ = 1; oneValue_ = input.readInt64(); + oneValueCase_ = 1; break; } case 17: { - oneValueCase_ = 2; oneValue_ = input.readDouble(); + oneValueCase_ = 2; break; } default: @@ -91,6 +91,8 @@ private NumericValue( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-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 index e7d417c4..0c1ec818 100644 --- 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 @@ -144,6 +144,8 @@ private OrderBy( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -267,6 +269,8 @@ private MetricOrderBy( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -953,6 +957,8 @@ private DimensionOrderBy( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2055,6 +2061,8 @@ private PivotOrderBy( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -2227,6 +2235,8 @@ private PivotSelection( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); @@ -4910,8 +4920,9 @@ public Builder mergeMetric(com.google.analytics.data.v1beta.OrderBy.MetricOrderB } else { if (oneOrderByCase_ == 1) { metricBuilder_.mergeFrom(value); + } else { + metricBuilder_.setMessage(value); } - metricBuilder_.setMessage(value); } oneOrderByCase_ = 1; return this; @@ -5120,8 +5131,9 @@ public Builder mergeDimension(com.google.analytics.data.v1beta.OrderBy.Dimension } else { if (oneOrderByCase_ == 2) { dimensionBuilder_.mergeFrom(value); + } else { + dimensionBuilder_.setMessage(value); } - dimensionBuilder_.setMessage(value); } oneOrderByCase_ = 2; return this; @@ -5332,8 +5344,9 @@ public Builder mergePivot(com.google.analytics.data.v1beta.OrderBy.PivotOrderBy } else { if (oneOrderByCase_ == 3) { pivotBuilder_.mergeFrom(value); + } else { + pivotBuilder_.setMessage(value); } - pivotBuilder_.setMessage(value); } oneOrderByCase_ = 3; return this; 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 index d3a2e672..9917b4f6 100644 --- 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 @@ -140,6 +140,8 @@ private Pivot( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-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 index c6c5b916..2052de33 100644 --- 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 @@ -94,6 +94,8 @@ private PivotDimensionHeader( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-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 index 6391c40b..de283d5e 100644 --- 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 @@ -101,6 +101,8 @@ private PivotHeader( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-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 index 5836d2c1..ea83a8f6 100644 --- 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 @@ -161,6 +161,8 @@ private PropertyQuota( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-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 index 87c4fd23..1ad1d455 100644 --- 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 @@ -89,6 +89,8 @@ private QuotaStatus( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-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 index e7d0f6d7..d04a9ce2 100644 --- 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 @@ -129,6 +129,8 @@ private ResponseMetaData( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -326,6 +328,8 @@ private SchemaRestrictionResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { @@ -568,6 +572,8 @@ private ActiveMetricRestriction( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(this); 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 index d76dc002..88f8faac 100644 --- 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 @@ -140,6 +140,8 @@ private Row( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-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 index 3830daad..a75a6e88 100644 --- 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 @@ -205,6 +205,8 @@ private RunPivotReportRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-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 index 7eff2522..475def98 100644 --- 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 @@ -186,6 +186,8 @@ private RunPivotReportResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-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 index 32dfaf3a..2fdc5925 100644 --- 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 @@ -208,6 +208,8 @@ private RunRealtimeReportRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-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 index 7a86dd3a..299b42e9 100644 --- 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 @@ -185,6 +185,8 @@ private RunRealtimeReportResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-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 index 4462e42b..a9921b3f 100644 --- 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 @@ -241,6 +241,8 @@ private RunReportRequest( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-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 index f2cdbdee..934ed440 100644 --- 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 @@ -202,6 +202,8 @@ private RunReportResponse( } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { diff --git a/proto-google-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 index 7f9b1450..a33d4553 100644 --- 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 @@ -52,8 +52,8 @@ message MinuteRange { // // 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`). + // (`startMinutesAgo <= 29`), and Google Analytics 360 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. @@ -63,8 +63,8 @@ message MinuteRange { // // 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`). + // (`endMinutesAgo <= 29`), and Google Analytics 360 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 From 1969feecac73306525a79e39b7098fdb2a5a05d2 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 17 May 2022 06:16:32 -0700 Subject: [PATCH 107/225] feat: add `runFunnelReport` method to the Alpha version of the Data API (#490) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add `runFunnelReport` method to the Alpha version of the Data API PiperOrigin-RevId: 446813357 Source-Link: https://github.com/googleapis/googleapis/commit/6d3ae1aca71340d9d92ccade8147a98bb5de4309 Source-Link: https://github.com/googleapis/googleapis-gen/commit/1cfc0eb66874f05c4182d422e1c89bd5e2f2abe7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWNmYzBlYjY2ODc0ZjA1YzQxODJkNDIyZTFjODliZDVlMmYyYWJlNyJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Ignore changes in v1alpha API * Delete clirr-ignored-differences.xml * Update clirr-ignored-differences.xml Ignore v1Alpha changes * Update clirr-ignored-differences.xml Ignore v1alpha changes. * Update clirr-ignored-differences.xml Ignore deleted fields in v1alpha. * Update clirr-ignored-differences.xml * Update clirr-ignored-differences.xml * Update clirr-ignored-differences.xml * Update clirr-ignored-differences.xml * Update clirr-ignored-differences.xml * Create clirr-ignored-differences.xml * Update pom.xml Remove unused dependencies. * Update pom.xml Co-authored-by: Owl Bot Co-authored-by: ikuleshov --- google-analytics-data-bom/pom.xml | 10 + .../clirr-ignored-differences.xml | 17 +- google-analytics-data/pom.xml | 9 + .../v1alpha/AlphaAnalyticsDataClient.java | 272 ++ .../v1alpha/AlphaAnalyticsDataSettings.java | 187 + .../data/v1alpha/gapic_metadata.json | 21 + .../analytics/data/v1alpha/package-info.java | 51 + .../v1alpha/stub/AlphaAnalyticsDataStub.java | 42 + .../stub/AlphaAnalyticsDataStubSettings.java | 282 ++ ...GrpcAlphaAnalyticsDataCallableFactory.java | 115 + .../stub/GrpcAlphaAnalyticsDataStub.java | 167 + .../v1alpha/AlphaAnalyticsDataClientTest.java | 151 + .../data/v1alpha/MockAlphaAnalyticsData.java | 59 + .../v1alpha/MockAlphaAnalyticsDataImpl.java | 81 + .../clirr-ignored-differences.xml | 45 + grpc-google-analytics-data-v1alpha/pom.xml | 65 + .../data/v1alpha/AlphaAnalyticsDataGrpc.java | 398 ++ pom.xml | 12 + .../clirr-ignored-differences.xml | 45 + proto-google-analytics-data-v1alpha/pom.xml | 34 + .../data/v1alpha/AnalyticsDataApiProto.java | 136 + .../analytics/data/v1alpha/BetweenFilter.java | 1013 +++++ .../data/v1alpha/BetweenFilterOrBuilder.java | 95 + .../analytics/data/v1alpha/DateRange.java | 1059 +++++ .../data/v1alpha/DateRangeOrBuilder.java | 118 + .../analytics/data/v1alpha/Dimension.java | 999 +++++ .../data/v1alpha/DimensionExpression.java | 3355 +++++++++++++++ .../v1alpha/DimensionExpressionOrBuilder.java | 142 + .../data/v1alpha/DimensionHeader.java | 644 +++ .../v1alpha/DimensionHeaderOrBuilder.java | 50 + .../data/v1alpha/DimensionOrBuilder.java | 106 + .../data/v1alpha/DimensionValue.java | 767 ++++ .../data/v1alpha/DimensionValueOrBuilder.java | 64 + .../data/v1alpha/EventCriteriaScoping.java | 162 + .../data/v1alpha/EventExclusionDuration.java | 162 + .../analytics/data/v1alpha/EventSegment.java | 1035 +++++ .../v1alpha/EventSegmentConditionGroup.java | 960 +++++ .../EventSegmentConditionGroupOrBuilder.java | 99 + .../data/v1alpha/EventSegmentCriteria.java | 1054 +++++ .../EventSegmentCriteriaOrBuilder.java | 94 + .../data/v1alpha/EventSegmentExclusion.java | 949 +++++ .../EventSegmentExclusionOrBuilder.java | 95 + .../data/v1alpha/EventSegmentOrBuilder.java | 96 + .../google/analytics/data/v1alpha/Filter.java | 1947 +++++++++ .../data/v1alpha/FilterExpression.java | 1782 ++++++++ .../data/v1alpha/FilterExpressionList.java | 964 +++++ .../FilterExpressionListOrBuilder.java | 77 + .../v1alpha/FilterExpressionOrBuilder.java | 170 + .../data/v1alpha/FilterOrBuilder.java | 194 + .../google/analytics/data/v1alpha/Funnel.java | 1058 +++++ .../data/v1alpha/FunnelBreakdown.java | 908 ++++ .../v1alpha/FunnelBreakdownOrBuilder.java | 95 + .../data/v1alpha/FunnelEventFilter.java | 1062 +++++ .../v1alpha/FunnelEventFilterOrBuilder.java | 117 + .../analytics/data/v1alpha/FunnelFilter.java | 1941 +++++++++ .../data/v1alpha/FunnelFilterExpression.java | 2140 ++++++++++ .../v1alpha/FunnelFilterExpressionList.java | 976 +++++ .../FunnelFilterExpressionListOrBuilder.java | 78 + .../FunnelFilterExpressionOrBuilder.java | 211 + .../data/v1alpha/FunnelFilterOrBuilder.java | 192 + .../data/v1alpha/FunnelNextAction.java | 930 +++++ .../v1alpha/FunnelNextActionOrBuilder.java | 98 + .../data/v1alpha/FunnelOrBuilder.java | 92 + .../data/v1alpha/FunnelParameterFilter.java | 2437 +++++++++++ .../FunnelParameterFilterExpression.java | 1892 +++++++++ .../FunnelParameterFilterExpressionList.java | 1036 +++++ ...arameterFilterExpressionListOrBuilder.java | 85 + ...nelParameterFilterExpressionOrBuilder.java | 177 + .../FunnelParameterFilterOrBuilder.java | 286 ++ .../data/v1alpha/FunnelResponseMetadata.java | 1111 +++++ .../FunnelResponseMetadataOrBuilder.java | 108 + .../analytics/data/v1alpha/FunnelStep.java | 1429 +++++++ .../data/v1alpha/FunnelStepOrBuilder.java | 164 + .../data/v1alpha/FunnelSubReport.java | 2327 +++++++++++ .../v1alpha/FunnelSubReportOrBuilder.java | 236 ++ .../analytics/data/v1alpha/InListFilter.java | 840 ++++ .../data/v1alpha/InListFilterOrBuilder.java | 93 + .../analytics/data/v1alpha/MetricHeader.java | 792 ++++ .../data/v1alpha/MetricHeaderOrBuilder.java | 75 + .../analytics/data/v1alpha/MetricType.java | 398 ++ .../analytics/data/v1alpha/MetricValue.java | 766 ++++ .../data/v1alpha/MetricValueOrBuilder.java | 64 + .../analytics/data/v1alpha/NumericFilter.java | 1117 +++++ .../data/v1alpha/NumericFilterOrBuilder.java | 85 + .../analytics/data/v1alpha/NumericValue.java | 805 ++++ .../data/v1alpha/NumericValueOrBuilder.java | 77 + .../analytics/data/v1alpha/PropertyQuota.java | 2038 +++++++++ .../data/v1alpha/PropertyQuotaOrBuilder.java | 238 ++ .../analytics/data/v1alpha/QuotaStatus.java | 636 +++ .../data/v1alpha/QuotaStatusOrBuilder.java | 51 + .../data/v1alpha/ReportingApiProto.java | 1111 +++++ .../google/analytics/data/v1alpha/Row.java | 1543 +++++++ .../analytics/data/v1alpha/RowOrBuilder.java | 134 + .../data/v1alpha/RunFunnelReportRequest.java | 3672 +++++++++++++++++ .../RunFunnelReportRequestOrBuilder.java | 447 ++ .../data/v1alpha/RunFunnelReportResponse.java | 1615 ++++++++ .../RunFunnelReportResponseOrBuilder.java | 189 + .../data/v1alpha/SamplingMetadata.java | 676 +++ .../v1alpha/SamplingMetadataOrBuilder.java | 58 + .../analytics/data/v1alpha/Segment.java | 1695 ++++++++ .../data/v1alpha/SegmentEventFilter.java | 1066 +++++ .../v1alpha/SegmentEventFilterOrBuilder.java | 117 + .../analytics/data/v1alpha/SegmentFilter.java | 2225 ++++++++++ .../data/v1alpha/SegmentFilterExpression.java | 2144 ++++++++++ .../v1alpha/SegmentFilterExpressionList.java | 979 +++++ .../SegmentFilterExpressionListOrBuilder.java | 78 + .../SegmentFilterExpressionOrBuilder.java | 211 + .../data/v1alpha/SegmentFilterOrBuilder.java | 227 + .../data/v1alpha/SegmentFilterScoping.java | 657 +++ .../SegmentFilterScopingOrBuilder.java | 70 + .../data/v1alpha/SegmentOrBuilder.java | 169 + .../data/v1alpha/SegmentParameterFilter.java | 2723 ++++++++++++ .../SegmentParameterFilterExpression.java | 1912 +++++++++ .../SegmentParameterFilterExpressionList.java | 1041 +++++ ...arameterFilterExpressionListOrBuilder.java | 85 + ...entParameterFilterExpressionOrBuilder.java | 183 + .../SegmentParameterFilterOrBuilder.java | 322 ++ .../SegmentParameterFilterScoping.java | 724 ++++ ...egmentParameterFilterScopingOrBuilder.java | 90 + .../data/v1alpha/SessionCriteriaScoping.java | 186 + .../v1alpha/SessionExclusionDuration.java | 186 + .../data/v1alpha/SessionSegment.java | 1041 +++++ .../v1alpha/SessionSegmentConditionGroup.java | 1028 +++++ ...SessionSegmentConditionGroupOrBuilder.java | 117 + .../data/v1alpha/SessionSegmentCriteria.java | 1054 +++++ .../SessionSegmentCriteriaOrBuilder.java | 94 + .../data/v1alpha/SessionSegmentExclusion.java | 963 +++++ .../SessionSegmentExclusionOrBuilder.java | 100 + .../data/v1alpha/SessionSegmentOrBuilder.java | 99 + .../analytics/data/v1alpha/StringFilter.java | 1129 +++++ .../data/v1alpha/StringFilterOrBuilder.java | 88 + .../data/v1alpha/UserCriteriaScoping.java | 210 + .../data/v1alpha/UserExclusionDuration.java | 186 + .../analytics/data/v1alpha/UserSegment.java | 1025 +++++ .../v1alpha/UserSegmentConditionGroup.java | 1020 +++++ .../UserSegmentConditionGroupOrBuilder.java | 117 + .../data/v1alpha/UserSegmentCriteria.java | 1682 ++++++++ .../v1alpha/UserSegmentCriteriaOrBuilder.java | 168 + .../data/v1alpha/UserSegmentExclusion.java | 945 +++++ .../UserSegmentExclusionOrBuilder.java | 95 + .../data/v1alpha/UserSegmentOrBuilder.java | 96 + .../v1alpha/UserSegmentSequenceGroup.java | 1587 +++++++ .../UserSegmentSequenceGroupOrBuilder.java | 178 + .../data/v1alpha/UserSequenceStep.java | 1096 +++++ .../v1alpha/UserSequenceStepOrBuilder.java | 126 + .../data/v1alpha/analytics_data_api.proto | 166 + .../google/analytics/data/v1alpha/data.proto | 1230 ++++++ versions.txt | 2 + 148 files changed, 91888 insertions(+), 1 deletion(-) create mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java create mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java create mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json create mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java create mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java create mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java create mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataCallableFactory.java create mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java create mode 100644 google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java create mode 100644 google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsData.java create mode 100644 google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java create mode 100644 grpc-google-analytics-data-v1alpha/clirr-ignored-differences.xml create mode 100644 grpc-google-analytics-data-v1alpha/pom.xml create mode 100644 grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java create mode 100644 proto-google-analytics-data-v1alpha/clirr-ignored-differences.xml create mode 100644 proto-google-analytics-data-v1alpha/pom.xml create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilter.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilterOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRangeOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpressionOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeaderOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValueOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventCriteriaScoping.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventExclusionDuration.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegment.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroup.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroupOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteria.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteriaOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusion.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusionOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionList.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionListOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Funnel.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdown.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdownOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilter.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilterOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilter.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpression.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionList.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionListOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextActionOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilter.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpression.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionList.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionListOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadataOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStep.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStepOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReport.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReportOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilter.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilterOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeaderOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValueOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilter.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilterOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValueOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotaOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatus.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatusOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RowOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequestOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponse.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponseOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadata.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadataOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Segment.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilter.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilterOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilter.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpression.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionList.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionListOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScoping.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScopingOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilter.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpression.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionList.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionListOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScoping.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScopingOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionCriteriaScoping.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionExclusionDuration.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegment.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroup.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroupOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteria.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteriaOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusion.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusionOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilter.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilterOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserCriteriaScoping.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserExclusionDuration.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegment.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroup.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroupOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteria.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteriaOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusion.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusionOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroup.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroupOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStep.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStepOrBuilder.java create mode 100644 proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto create mode 100644 proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index f6da1d32..cee94a05 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -63,11 +63,21 @@ grpc-google-analytics-data-v1beta 0.11.10 + + com.google.api.grpc + grpc-google-analytics-data-v1alpha + 0.11.10 + com.google.api.grpc proto-google-analytics-data-v1beta 0.11.10 + + com.google.api.grpc + proto-google-analytics-data-v1alpha + 0.11.10 + diff --git a/google-analytics-data/clirr-ignored-differences.xml b/google-analytics-data/clirr-ignored-differences.xml index 163361e7..a3466b5a 100644 --- a/google-analytics-data/clirr-ignored-differences.xml +++ b/google-analytics-data/clirr-ignored-differences.xml @@ -3,6 +3,21 @@ 8001 - com/google/analytics/data/v1alpha/** + com/google/analytics/data/v1alpha/* + + + 7006 + com/google/analytics/data/v1alpha/* + * + + + 7002 + com/google/analytics/data/v1alpha/* + * + + + 7005 + com/google/analytics/data/v1alpha/* + * diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 2462e75d..ae68608d 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -42,6 +42,10 @@ proto-google-common-protos + + com.google.api.grpc + proto-google-analytics-data-v1alpha + com.google.api.grpc proto-google-analytics-data-v1beta @@ -76,6 +80,11 @@ grpc-google-analytics-data-v1beta test + + com.google.api.grpc + grpc-google-analytics-data-v1alpha + test + com.google.api diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java new file mode 100644 index 00000000..37078f50 --- /dev/null +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java @@ -0,0 +1,272 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha; + +import com.google.analytics.data.v1alpha.stub.AlphaAnalyticsDataStub; +import com.google.analytics.data.v1alpha.stub.AlphaAnalyticsDataStubSettings; +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
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+ *   RunFunnelReportRequest request =
+ *       RunFunnelReportRequest.newBuilder()
+ *           .setProperty("property-993141291")
+ *           .addAllDateRanges(new ArrayList())
+ *           .setFunnel(Funnel.newBuilder().build())
+ *           .setFunnelBreakdown(FunnelBreakdown.newBuilder().build())
+ *           .setFunnelNextAction(FunnelNextAction.newBuilder().build())
+ *           .addAllSegments(new ArrayList())
+ *           .setLimit(102976443)
+ *           .setDimensionFilter(FilterExpression.newBuilder().build())
+ *           .setReturnPropertyQuota(true)
+ *           .build();
+ *   RunFunnelReportResponse response = alphaAnalyticsDataClient.runFunnelReport(request);
+ * }
+ * }
+ * + *

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

To customize credentials: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * AlphaAnalyticsDataSettings alphaAnalyticsDataSettings =
+ *     AlphaAnalyticsDataSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * AlphaAnalyticsDataClient alphaAnalyticsDataClient =
+ *     AlphaAnalyticsDataClient.create(alphaAnalyticsDataSettings);
+ * }
+ * + *

To customize the endpoint: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * AlphaAnalyticsDataSettings alphaAnalyticsDataSettings =
+ *     AlphaAnalyticsDataSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AlphaAnalyticsDataClient alphaAnalyticsDataClient =
+ *     AlphaAnalyticsDataClient.create(alphaAnalyticsDataSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class AlphaAnalyticsDataClient implements BackgroundResource { + private final AlphaAnalyticsDataSettings settings; + private final AlphaAnalyticsDataStub stub; + + /** Constructs an instance of AlphaAnalyticsDataClient with default settings. */ + public static final AlphaAnalyticsDataClient create() throws IOException { + return create(AlphaAnalyticsDataSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AlphaAnalyticsDataClient, 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 AlphaAnalyticsDataClient create(AlphaAnalyticsDataSettings settings) + throws IOException { + return new AlphaAnalyticsDataClient(settings); + } + + /** + * Constructs an instance of AlphaAnalyticsDataClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(AlphaAnalyticsDataSettings). + */ + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public static final AlphaAnalyticsDataClient create(AlphaAnalyticsDataStub stub) { + return new AlphaAnalyticsDataClient(stub); + } + + /** + * Constructs an instance of AlphaAnalyticsDataClient, 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 AlphaAnalyticsDataClient(AlphaAnalyticsDataSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AlphaAnalyticsDataStubSettings) settings.getStubSettings()).createStub(); + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + protected AlphaAnalyticsDataClient(AlphaAnalyticsDataStub stub) { + this.settings = null; + this.stub = stub; + } + + public final AlphaAnalyticsDataSettings getSettings() { + return settings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public AlphaAnalyticsDataStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a customized funnel report of your Google Analytics event data. The data returned from + * the API is as a table with columns for the requested dimensions and metrics. + * + *

Funnel exploration lets you visualize the steps your users take to complete a task and + * quickly see how well they are succeeding or failing at each step. For example, how do prospects + * become shoppers and then become buyers? How do one time buyers become repeat buyers? With this + * information, you can improve inefficient or abandoned customer journeys. To learn more, see + * [GA4 Funnel Explorations](https://support.google.com/analytics/answer/9327974). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+   *   RunFunnelReportRequest request =
+   *       RunFunnelReportRequest.newBuilder()
+   *           .setProperty("property-993141291")
+   *           .addAllDateRanges(new ArrayList())
+   *           .setFunnel(Funnel.newBuilder().build())
+   *           .setFunnelBreakdown(FunnelBreakdown.newBuilder().build())
+   *           .setFunnelNextAction(FunnelNextAction.newBuilder().build())
+   *           .addAllSegments(new ArrayList())
+   *           .setLimit(102976443)
+   *           .setDimensionFilter(FilterExpression.newBuilder().build())
+   *           .setReturnPropertyQuota(true)
+   *           .build();
+   *   RunFunnelReportResponse response = alphaAnalyticsDataClient.runFunnelReport(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 RunFunnelReportResponse runFunnelReport(RunFunnelReportRequest request) { + return runFunnelReportCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a customized funnel report of your Google Analytics event data. The data returned from + * the API is as a table with columns for the requested dimensions and metrics. + * + *

Funnel exploration lets you visualize the steps your users take to complete a task and + * quickly see how well they are succeeding or failing at each step. For example, how do prospects + * become shoppers and then become buyers? How do one time buyers become repeat buyers? With this + * information, you can improve inefficient or abandoned customer journeys. To learn more, see + * [GA4 Funnel Explorations](https://support.google.com/analytics/answer/9327974). + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+   *   RunFunnelReportRequest request =
+   *       RunFunnelReportRequest.newBuilder()
+   *           .setProperty("property-993141291")
+   *           .addAllDateRanges(new ArrayList())
+   *           .setFunnel(Funnel.newBuilder().build())
+   *           .setFunnelBreakdown(FunnelBreakdown.newBuilder().build())
+   *           .setFunnelNextAction(FunnelNextAction.newBuilder().build())
+   *           .addAllSegments(new ArrayList())
+   *           .setLimit(102976443)
+   *           .setDimensionFilter(FilterExpression.newBuilder().build())
+   *           .setReturnPropertyQuota(true)
+   *           .build();
+   *   ApiFuture future =
+   *       alphaAnalyticsDataClient.runFunnelReportCallable().futureCall(request);
+   *   // Do something.
+   *   RunFunnelReportResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + runFunnelReportCallable() { + return stub.runFunnelReportCallable(); + } + + @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/v1alpha/AlphaAnalyticsDataSettings.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java new file mode 100644 index 00000000..12452b95 --- /dev/null +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java @@ -0,0 +1,187 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha; + +import com.google.analytics.data.v1alpha.stub.AlphaAnalyticsDataStubSettings; +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 AlphaAnalyticsDataClient}. + * + *

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 runFunnelReport to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * AlphaAnalyticsDataSettings.Builder alphaAnalyticsDataSettingsBuilder =
+ *     AlphaAnalyticsDataSettings.newBuilder();
+ * alphaAnalyticsDataSettingsBuilder
+ *     .runFunnelReportSettings()
+ *     .setRetrySettings(
+ *         alphaAnalyticsDataSettingsBuilder
+ *             .runFunnelReportSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * AlphaAnalyticsDataSettings alphaAnalyticsDataSettings =
+ *     alphaAnalyticsDataSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class AlphaAnalyticsDataSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to runFunnelReport. */ + public UnaryCallSettings + runFunnelReportSettings() { + return ((AlphaAnalyticsDataStubSettings) getStubSettings()).runFunnelReportSettings(); + } + + public static final AlphaAnalyticsDataSettings create(AlphaAnalyticsDataStubSettings stub) + throws IOException { + return new AlphaAnalyticsDataSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AlphaAnalyticsDataStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AlphaAnalyticsDataStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AlphaAnalyticsDataStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AlphaAnalyticsDataStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AlphaAnalyticsDataStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AlphaAnalyticsDataStubSettings.defaultTransportChannelProvider(); + } + + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AlphaAnalyticsDataStubSettings.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 AlphaAnalyticsDataSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AlphaAnalyticsDataSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AlphaAnalyticsDataStubSettings.newBuilder(clientContext)); + } + + protected Builder(AlphaAnalyticsDataSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AlphaAnalyticsDataStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AlphaAnalyticsDataStubSettings.newBuilder()); + } + + public AlphaAnalyticsDataStubSettings.Builder getStubSettingsBuilder() { + return ((AlphaAnalyticsDataStubSettings.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 runFunnelReport. */ + public UnaryCallSettings.Builder + runFunnelReportSettings() { + return getStubSettingsBuilder().runFunnelReportSettings(); + } + + @Override + public AlphaAnalyticsDataSettings build() throws IOException { + return new AlphaAnalyticsDataSettings(this); + } + } +} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json new file mode 100644 index 00000000..270aa547 --- /dev/null +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json @@ -0,0 +1,21 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.analytics.data.v1alpha", + "libraryPackage": "com.google.analytics.data.v1alpha", + "services": { + "AlphaAnalyticsData": { + "clients": { + "grpc": { + "libraryClient": "AlphaAnalyticsDataClient", + "rpcs": { + "RunFunnelReport": { + "methods": ["runFunnelReport", "runFunnelReportCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java new file mode 100644 index 00000000..67b78cb9 --- /dev/null +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * A client to Google Analytics Data API + * + *

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

======================= AlphaAnalyticsDataClient ======================= + * + *

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

Sample for AlphaAnalyticsDataClient: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
+ *   RunFunnelReportRequest request =
+ *       RunFunnelReportRequest.newBuilder()
+ *           .setProperty("property-993141291")
+ *           .addAllDateRanges(new ArrayList())
+ *           .setFunnel(Funnel.newBuilder().build())
+ *           .setFunnelBreakdown(FunnelBreakdown.newBuilder().build())
+ *           .setFunnelNextAction(FunnelNextAction.newBuilder().build())
+ *           .addAllSegments(new ArrayList())
+ *           .setLimit(102976443)
+ *           .setDimensionFilter(FilterExpression.newBuilder().build())
+ *           .setReturnPropertyQuota(true)
+ *           .build();
+ *   RunFunnelReportResponse response = alphaAnalyticsDataClient.runFunnelReport(request);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.analytics.data.v1alpha; + +import javax.annotation.Generated; diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java new file mode 100644 index 00000000..18da5c70 --- /dev/null +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.data.v1alpha.stub; + +import com.google.analytics.data.v1alpha.RunFunnelReportRequest; +import com.google.analytics.data.v1alpha.RunFunnelReportResponse; +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 AlphaAnalyticsData service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class AlphaAnalyticsDataStub implements BackgroundResource { + + public UnaryCallable runFunnelReportCallable() { + throw new UnsupportedOperationException("Not implemented: runFunnelReportCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java new file mode 100644 index 00000000..b0a94da0 --- /dev/null +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java @@ -0,0 +1,282 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha.stub; + +import com.google.analytics.data.v1alpha.RunFunnelReportRequest; +import com.google.analytics.data.v1alpha.RunFunnelReportResponse; +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 AlphaAnalyticsDataStub}. + * + *

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 runFunnelReport to 30 seconds: + * + *

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * AlphaAnalyticsDataStubSettings.Builder alphaAnalyticsDataSettingsBuilder =
+ *     AlphaAnalyticsDataStubSettings.newBuilder();
+ * alphaAnalyticsDataSettingsBuilder
+ *     .runFunnelReportSettings()
+ *     .setRetrySettings(
+ *         alphaAnalyticsDataSettingsBuilder
+ *             .runFunnelReportSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setTotalTimeout(Duration.ofSeconds(30))
+ *             .build());
+ * AlphaAnalyticsDataStubSettings alphaAnalyticsDataSettings =
+ *     alphaAnalyticsDataSettingsBuilder.build();
+ * }
+ */ +@BetaApi +@Generated("by gapic-generator-java") +public class AlphaAnalyticsDataStubSettings 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 + runFunnelReportSettings; + + /** Returns the object with the settings used for calls to runFunnelReport. */ + public UnaryCallSettings + runFunnelReportSettings() { + return runFunnelReportSettings; + } + + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") + public AlphaAnalyticsDataStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAlphaAnalyticsDataStub.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(AlphaAnalyticsDataStubSettings.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 AlphaAnalyticsDataStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + runFunnelReportSettings = settingsBuilder.runFunnelReportSettings().build(); + } + + /** Builder for AlphaAnalyticsDataStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + runFunnelReportSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeout(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ofMillis(60000L)) + .setTotalTimeout(Duration.ofMillis(60000L)) + .build(); + definitions.put("no_retry_1_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + runFunnelReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(runFunnelReportSettings); + initDefaults(this); + } + + protected Builder(AlphaAnalyticsDataStubSettings settings) { + super(settings); + + runFunnelReportSettings = settings.runFunnelReportSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of(runFunnelReportSettings); + } + + 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 + .runFunnelReportSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_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 runFunnelReport. */ + public UnaryCallSettings.Builder + runFunnelReportSettings() { + return runFunnelReportSettings; + } + + @Override + public AlphaAnalyticsDataStubSettings build() throws IOException { + return new AlphaAnalyticsDataStubSettings(this); + } + } +} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataCallableFactory.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataCallableFactory.java new file mode 100644 index 00000000..ee9bed88 --- /dev/null +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha.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 AlphaAnalyticsData service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAlphaAnalyticsDataCallableFactory 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/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java new file mode 100644 index 00000000..528c5508 --- /dev/null +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java @@ -0,0 +1,167 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha.stub; + +import com.google.analytics.data.v1alpha.RunFunnelReportRequest; +import com.google.analytics.data.v1alpha.RunFunnelReportResponse; +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 AlphaAnalyticsData service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { + private static final MethodDescriptor + runFunnelReportMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.analytics.data.v1alpha.AlphaAnalyticsData/RunFunnelReport") + .setRequestMarshaller( + ProtoUtils.marshaller(RunFunnelReportRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RunFunnelReportResponse.getDefaultInstance())) + .build(); + + private final UnaryCallable + runFunnelReportCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAlphaAnalyticsDataStub create(AlphaAnalyticsDataStubSettings settings) + throws IOException { + return new GrpcAlphaAnalyticsDataStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAlphaAnalyticsDataStub create(ClientContext clientContext) + throws IOException { + return new GrpcAlphaAnalyticsDataStub( + AlphaAnalyticsDataStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAlphaAnalyticsDataStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAlphaAnalyticsDataStub( + AlphaAnalyticsDataStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAlphaAnalyticsDataStub, 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 GrpcAlphaAnalyticsDataStub( + AlphaAnalyticsDataStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAlphaAnalyticsDataCallableFactory()); + } + + /** + * Constructs an instance of GrpcAlphaAnalyticsDataStub, 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 GrpcAlphaAnalyticsDataStub( + AlphaAnalyticsDataStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + runFunnelReportTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(runFunnelReportMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("property", String.valueOf(request.getProperty())); + return params.build(); + }) + .build(); + + this.runFunnelReportCallable = + callableFactory.createUnaryCallable( + runFunnelReportTransportSettings, settings.runFunnelReportSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable runFunnelReportCallable() { + return runFunnelReportCallable; + } + + @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/v1alpha/AlphaAnalyticsDataClientTest.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java new file mode 100644 index 00000000..b198eeeb --- /dev/null +++ b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java @@ -0,0 +1,151 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha; + +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 AlphaAnalyticsDataClientTest { + private static MockAlphaAnalyticsData mockAlphaAnalyticsData; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AlphaAnalyticsDataClient client; + + @BeforeClass + public static void startStaticServer() { + mockAlphaAnalyticsData = new MockAlphaAnalyticsData(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), Arrays.asList(mockAlphaAnalyticsData)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AlphaAnalyticsDataSettings settings = + AlphaAnalyticsDataSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AlphaAnalyticsDataClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void runFunnelReportTest() throws Exception { + RunFunnelReportResponse expectedResponse = + RunFunnelReportResponse.newBuilder() + .setFunnelTable(FunnelSubReport.newBuilder().build()) + .setFunnelVisualization(FunnelSubReport.newBuilder().build()) + .setPropertyQuota(PropertyQuota.newBuilder().build()) + .setKind("kind3292052") + .build(); + mockAlphaAnalyticsData.addResponse(expectedResponse); + + RunFunnelReportRequest request = + RunFunnelReportRequest.newBuilder() + .setProperty("property-993141291") + .addAllDateRanges(new ArrayList()) + .setFunnel(Funnel.newBuilder().build()) + .setFunnelBreakdown(FunnelBreakdown.newBuilder().build()) + .setFunnelNextAction(FunnelNextAction.newBuilder().build()) + .addAllSegments(new ArrayList()) + .setLimit(102976443) + .setDimensionFilter(FilterExpression.newBuilder().build()) + .setReturnPropertyQuota(true) + .build(); + + RunFunnelReportResponse actualResponse = client.runFunnelReport(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAlphaAnalyticsData.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RunFunnelReportRequest actualRequest = ((RunFunnelReportRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); + Assert.assertEquals(request.getDateRangesList(), actualRequest.getDateRangesList()); + Assert.assertEquals(request.getFunnel(), actualRequest.getFunnel()); + Assert.assertEquals(request.getFunnelBreakdown(), actualRequest.getFunnelBreakdown()); + Assert.assertEquals(request.getFunnelNextAction(), actualRequest.getFunnelNextAction()); + Assert.assertEquals( + request.getFunnelVisualizationType(), actualRequest.getFunnelVisualizationType()); + Assert.assertEquals(request.getSegmentsList(), actualRequest.getSegmentsList()); + Assert.assertEquals(request.getLimit(), actualRequest.getLimit()); + Assert.assertEquals(request.getDimensionFilter(), actualRequest.getDimensionFilter()); + Assert.assertEquals(request.getReturnPropertyQuota(), actualRequest.getReturnPropertyQuota()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void runFunnelReportExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAlphaAnalyticsData.addException(exception); + + try { + RunFunnelReportRequest request = + RunFunnelReportRequest.newBuilder() + .setProperty("property-993141291") + .addAllDateRanges(new ArrayList()) + .setFunnel(Funnel.newBuilder().build()) + .setFunnelBreakdown(FunnelBreakdown.newBuilder().build()) + .setFunnelNextAction(FunnelNextAction.newBuilder().build()) + .addAllSegments(new ArrayList()) + .setLimit(102976443) + .setDimensionFilter(FilterExpression.newBuilder().build()) + .setReturnPropertyQuota(true) + .build(); + client.runFunnelReport(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsData.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsData.java new file mode 100644 index 00000000..9acf21d4 --- /dev/null +++ b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsData.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha; + +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 MockAlphaAnalyticsData implements MockGrpcService { + private final MockAlphaAnalyticsDataImpl serviceImpl; + + public MockAlphaAnalyticsData() { + serviceImpl = new MockAlphaAnalyticsDataImpl(); + } + + @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/v1alpha/MockAlphaAnalyticsDataImpl.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java new file mode 100644 index 00000000..c5e60e4c --- /dev/null +++ b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java @@ -0,0 +1,81 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha; + +import com.google.analytics.data.v1alpha.AlphaAnalyticsDataGrpc.AlphaAnalyticsDataImplBase; +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 MockAlphaAnalyticsDataImpl extends AlphaAnalyticsDataImplBase { + private List requests; + private Queue responses; + + public MockAlphaAnalyticsDataImpl() { + 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 runFunnelReport( + RunFunnelReportRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RunFunnelReportResponse) { + requests.add(request); + responseObserver.onNext(((RunFunnelReportResponse) 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 RunFunnelReport, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RunFunnelReportResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/grpc-google-analytics-data-v1alpha/clirr-ignored-differences.xml b/grpc-google-analytics-data-v1alpha/clirr-ignored-differences.xml new file mode 100644 index 00000000..a2d53f48 --- /dev/null +++ b/grpc-google-analytics-data-v1alpha/clirr-ignored-differences.xml @@ -0,0 +1,45 @@ + + + + + 8001 + com/google/analytics/data/v1alpha/** + + + 7006 + com/google/analytics/data/v1alpha/** + * + * + + + 7002 + com/google/analytics/data/v1alpha/** + * + + + 7005 + com/google/analytics/data/v1alpha/** + * + * + + + 6011 + com/google/analytics/data/v1alpha/** + * + + + 6003 + com/google/analytics/data/v1alpha/** + * + + + 6001 + com/google/analytics/data/v1alpha/** + * + + + 7012 + com/google/analytics/data/v1alpha/** + * + + diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml new file mode 100644 index 00000000..921a9180 --- /dev/null +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -0,0 +1,65 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-analytics-data-v1alpha + 0.11.10 + grpc-google-analytics-data-v1alpha + GRPC library for google-analytics-data + + com.google.analytics + google-analytics-data-parent + 0.11.10 + + + + 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-v1alpha + + + com.google.guava + guava + + + + + + java9 + + [9,) + + + + javax.annotation + javax.annotation-api + + + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + diff --git a/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java b/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java new file mode 100644 index 00000000..d5b8dad6 --- /dev/null +++ b/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java @@ -0,0 +1,398 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Google Analytics reporting data service.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler", + comments = "Source: google/analytics/data/v1alpha/analytics_data_api.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AlphaAnalyticsDataGrpc { + + private AlphaAnalyticsDataGrpc() {} + + public static final String SERVICE_NAME = "google.analytics.data.v1alpha.AlphaAnalyticsData"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.data.v1alpha.RunFunnelReportRequest, + com.google.analytics.data.v1alpha.RunFunnelReportResponse> + getRunFunnelReportMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunFunnelReport", + requestType = com.google.analytics.data.v1alpha.RunFunnelReportRequest.class, + responseType = com.google.analytics.data.v1alpha.RunFunnelReportResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.data.v1alpha.RunFunnelReportRequest, + com.google.analytics.data.v1alpha.RunFunnelReportResponse> + getRunFunnelReportMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.data.v1alpha.RunFunnelReportRequest, + com.google.analytics.data.v1alpha.RunFunnelReportResponse> + getRunFunnelReportMethod; + if ((getRunFunnelReportMethod = AlphaAnalyticsDataGrpc.getRunFunnelReportMethod) == null) { + synchronized (AlphaAnalyticsDataGrpc.class) { + if ((getRunFunnelReportMethod = AlphaAnalyticsDataGrpc.getRunFunnelReportMethod) == null) { + AlphaAnalyticsDataGrpc.getRunFunnelReportMethod = + getRunFunnelReportMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunFunnelReport")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.data.v1alpha.RunFunnelReportRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.data.v1alpha.RunFunnelReportResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AlphaAnalyticsDataMethodDescriptorSupplier("RunFunnelReport")) + .build(); + } + } + } + return getRunFunnelReportMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AlphaAnalyticsDataStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AlphaAnalyticsDataStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlphaAnalyticsDataStub(channel, callOptions); + } + }; + return AlphaAnalyticsDataStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AlphaAnalyticsDataBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AlphaAnalyticsDataBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlphaAnalyticsDataBlockingStub(channel, callOptions); + } + }; + return AlphaAnalyticsDataBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AlphaAnalyticsDataFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AlphaAnalyticsDataFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlphaAnalyticsDataFutureStub(channel, callOptions); + } + }; + return AlphaAnalyticsDataFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Google Analytics reporting data service.
+   * 
+ */ + public abstract static class AlphaAnalyticsDataImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Returns a customized funnel report of your Google Analytics event data. The
+     * data returned from the API is as a table with columns for the requested
+     * dimensions and metrics.
+     * Funnel exploration lets you visualize the steps your users take to complete
+     * a task and quickly see how well they are succeeding or failing at each
+     * step. For example, how do prospects become shoppers and then become buyers?
+     * How do one time buyers become repeat buyers? With this information, you can
+     * improve inefficient or abandoned customer journeys. To learn more, see [GA4
+     * Funnel Explorations](https://support.google.com/analytics/answer/9327974).
+     * 
+ */ + public void runFunnelReport( + com.google.analytics.data.v1alpha.RunFunnelReportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRunFunnelReportMethod(), responseObserver); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getRunFunnelReportMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.data.v1alpha.RunFunnelReportRequest, + com.google.analytics.data.v1alpha.RunFunnelReportResponse>( + this, METHODID_RUN_FUNNEL_REPORT))) + .build(); + } + } + + /** + * + * + *
+   * Google Analytics reporting data service.
+   * 
+ */ + public static final class AlphaAnalyticsDataStub + extends io.grpc.stub.AbstractAsyncStub { + private AlphaAnalyticsDataStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AlphaAnalyticsDataStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlphaAnalyticsDataStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a customized funnel report of your Google Analytics event data. The
+     * data returned from the API is as a table with columns for the requested
+     * dimensions and metrics.
+     * Funnel exploration lets you visualize the steps your users take to complete
+     * a task and quickly see how well they are succeeding or failing at each
+     * step. For example, how do prospects become shoppers and then become buyers?
+     * How do one time buyers become repeat buyers? With this information, you can
+     * improve inefficient or abandoned customer journeys. To learn more, see [GA4
+     * Funnel Explorations](https://support.google.com/analytics/answer/9327974).
+     * 
+ */ + public void runFunnelReport( + com.google.analytics.data.v1alpha.RunFunnelReportRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunFunnelReportMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Google Analytics reporting data service.
+   * 
+ */ + public static final class AlphaAnalyticsDataBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AlphaAnalyticsDataBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AlphaAnalyticsDataBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlphaAnalyticsDataBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a customized funnel report of your Google Analytics event data. The
+     * data returned from the API is as a table with columns for the requested
+     * dimensions and metrics.
+     * Funnel exploration lets you visualize the steps your users take to complete
+     * a task and quickly see how well they are succeeding or failing at each
+     * step. For example, how do prospects become shoppers and then become buyers?
+     * How do one time buyers become repeat buyers? With this information, you can
+     * improve inefficient or abandoned customer journeys. To learn more, see [GA4
+     * Funnel Explorations](https://support.google.com/analytics/answer/9327974).
+     * 
+ */ + public com.google.analytics.data.v1alpha.RunFunnelReportResponse runFunnelReport( + com.google.analytics.data.v1alpha.RunFunnelReportRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunFunnelReportMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Google Analytics reporting data service.
+   * 
+ */ + public static final class AlphaAnalyticsDataFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AlphaAnalyticsDataFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AlphaAnalyticsDataFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AlphaAnalyticsDataFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Returns a customized funnel report of your Google Analytics event data. The
+     * data returned from the API is as a table with columns for the requested
+     * dimensions and metrics.
+     * Funnel exploration lets you visualize the steps your users take to complete
+     * a task and quickly see how well they are succeeding or failing at each
+     * step. For example, how do prospects become shoppers and then become buyers?
+     * How do one time buyers become repeat buyers? With this information, you can
+     * improve inefficient or abandoned customer journeys. To learn more, see [GA4
+     * Funnel Explorations](https://support.google.com/analytics/answer/9327974).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.data.v1alpha.RunFunnelReportResponse> + runFunnelReport(com.google.analytics.data.v1alpha.RunFunnelReportRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunFunnelReportMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_RUN_FUNNEL_REPORT = 0; + + 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 AlphaAnalyticsDataImplBase serviceImpl; + private final int methodId; + + MethodHandlers(AlphaAnalyticsDataImplBase 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_FUNNEL_REPORT: + serviceImpl.runFunnelReport( + (com.google.analytics.data.v1alpha.RunFunnelReportRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.data.v1alpha.RunFunnelReportResponse>) + 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 AlphaAnalyticsDataBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AlphaAnalyticsDataBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AlphaAnalyticsData"); + } + } + + private static final class AlphaAnalyticsDataFileDescriptorSupplier + extends AlphaAnalyticsDataBaseDescriptorSupplier { + AlphaAnalyticsDataFileDescriptorSupplier() {} + } + + private static final class AlphaAnalyticsDataMethodDescriptorSupplier + extends AlphaAnalyticsDataBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final String methodName; + + AlphaAnalyticsDataMethodDescriptorSupplier(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 (AlphaAnalyticsDataGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AlphaAnalyticsDataFileDescriptorSupplier()) + .addMethod(getRunFunnelReportMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/pom.xml b/pom.xml index f8b7efe5..7c72eb5e 100644 --- a/pom.xml +++ b/pom.xml @@ -63,6 +63,16 @@ google-analytics-data 0.11.10 + + com.google.api.grpc + proto-google-analytics-data-v1alpha + 0.11.10 + + + com.google.api.grpc + grpc-google-analytics-data-v1alpha + 0.11.10 + com.google.api.grpc proto-google-analytics-data-v1beta @@ -104,7 +114,9 @@ google-analytics-data grpc-google-analytics-data-v1beta + grpc-google-analytics-data-v1alpha proto-google-analytics-data-v1beta + proto-google-analytics-data-v1alpha google-analytics-data-bom diff --git a/proto-google-analytics-data-v1alpha/clirr-ignored-differences.xml b/proto-google-analytics-data-v1alpha/clirr-ignored-differences.xml new file mode 100644 index 00000000..a2d53f48 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/clirr-ignored-differences.xml @@ -0,0 +1,45 @@ + + + + + 8001 + com/google/analytics/data/v1alpha/** + + + 7006 + com/google/analytics/data/v1alpha/** + * + * + + + 7002 + com/google/analytics/data/v1alpha/** + * + + + 7005 + com/google/analytics/data/v1alpha/** + * + * + + + 6011 + com/google/analytics/data/v1alpha/** + * + + + 6003 + com/google/analytics/data/v1alpha/** + * + + + 6001 + com/google/analytics/data/v1alpha/** + * + + + 7012 + com/google/analytics/data/v1alpha/** + * + + diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml new file mode 100644 index 00000000..99eeea6d --- /dev/null +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -0,0 +1,34 @@ + + 4.0.0 + com.google.api.grpc + proto-google-analytics-data-v1alpha + 0.11.10 + proto-google-analytics-data-v1alpha + Proto library for google-analytics-data + + com.google.analytics + google-analytics-data-parent + 0.11.10 + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + + + + + org.codehaus.mojo + flatten-maven-plugin + + + + diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java new file mode 100644 index 00000000..3f89bffd --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java @@ -0,0 +1,136 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/analytics_data_api.proto + +package com.google.analytics.data.v1alpha; + +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_v1alpha_RunFunnelReportRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n6google/analytics/data/v1alpha/analytic" + + "s_data_api.proto\022\035google.analytics.data." + + "v1alpha\032(google/analytics/data/v1alpha/d" + + "ata.proto\032\034google/api/annotations.proto\032" + + "\027google/api/client.proto\"\313\005\n\026RunFunnelRe" + + "portRequest\022\020\n\010property\030\001 \001(\t\022=\n\013date_ra" + + "nges\030\002 \003(\0132(.google.analytics.data.v1alp" + + "ha.DateRange\0225\n\006funnel\030\003 \001(\0132%.google.an" + + "alytics.data.v1alpha.Funnel\022H\n\020funnel_br" + + "eakdown\030\004 \001(\0132..google.analytics.data.v1" + + "alpha.FunnelBreakdown\022K\n\022funnel_next_act" + + "ion\030\005 \001(\0132/.google.analytics.data.v1alph" + + "a.FunnelNextAction\022p\n\031funnel_visualizati" + + "on_type\030\006 \001(\0162M.google.analytics.data.v1" + + "alpha.RunFunnelReportRequest.FunnelVisua" + + "lizationType\0228\n\010segments\030\007 \003(\0132&.google." + + "analytics.data.v1alpha.Segment\022\r\n\005limit\030" + + "\t \001(\003\022I\n\020dimension_filter\030\n \001(\0132/.google" + + ".analytics.data.v1alpha.FilterExpression" + + "\022\035\n\025return_property_quota\030\014 \001(\010\"m\n\027Funne" + + "lVisualizationType\022)\n%FUNNEL_VISUALIZATI" + + "ON_TYPE_UNSPECIFIED\020\000\022\023\n\017STANDARD_FUNNEL" + + "\020\001\022\022\n\016TRENDED_FUNNEL\020\002\"\201\002\n\027RunFunnelRepo" + + "rtResponse\022D\n\014funnel_table\030\001 \001(\0132..googl" + + "e.analytics.data.v1alpha.FunnelSubReport" + + "\022L\n\024funnel_visualization\030\002 \001(\0132..google." + + "analytics.data.v1alpha.FunnelSubReport\022D" + + "\n\016property_quota\030\003 \001(\0132,.google.analytic" + + "s.data.v1alpha.PropertyQuota\022\014\n\004kind\030\004 \001" + + "(\t2\324\002\n\022AlphaAnalyticsData\022\275\001\n\017RunFunnelR" + + "eport\0225.google.analytics.data.v1alpha.Ru" + + "nFunnelReportRequest\0326.google.analytics." + + "data.v1alpha.RunFunnelReportResponse\";\202\323" + + "\344\223\0025\"0/v1alpha/{property=properties/*}:r" + + "unFunnelReport:\001*\032~\312A\034analyticsdata.goog" + + "leapis.com\322A\\https://www.googleapis.com/" + + "auth/analytics,https://www.googleapis.co" + + "m/auth/analytics.readonlyB\177\n!com.google." + + "analytics.data.v1alphaB\025AnalyticsDataApi" + + "ProtoP\001ZAgoogle.golang.org/genproto/goog" + + "leapis/analytics/data/v1alpha;datab\006prot" + + "o3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor(), + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + }); + internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_descriptor, + new java.lang.String[] { + "Property", + "DateRanges", + "Funnel", + "FunnelBreakdown", + "FunnelNextAction", + "FunnelVisualizationType", + "Segments", + "Limit", + "DimensionFilter", + "ReturnPropertyQuota", + }); + internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor, + new java.lang.String[] { + "FunnelTable", "FunnelVisualization", "PropertyQuota", "Kind", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.oauthScopes); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilter.java new file mode 100644 index 00000000..d8bf74b5 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilter.java @@ -0,0 +1,1013 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * To express that the result needs to be between two numbers (inclusive).
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.BetweenFilter} + */ +public final class BetweenFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.NumericValue.Builder subBuilder = null; + if (fromValue_ != null) { + subBuilder = fromValue_.toBuilder(); + } + fromValue_ = + input.readMessage( + com.google.analytics.data.v1alpha.NumericValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(fromValue_); + fromValue_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.analytics.data.v1alpha.NumericValue.Builder subBuilder = null; + if (toValue_ != null) { + subBuilder = toValue_.toBuilder(); + } + toValue_ = + input.readMessage( + com.google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_BetweenFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.BetweenFilter.class, + com.google.analytics.data.v1alpha.BetweenFilter.Builder.class); + } + + public static final int FROM_VALUE_FIELD_NUMBER = 1; + private com.google.analytics.data.v1alpha.NumericValue fromValue_; + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.NumericValue from_value = 1; + * + * @return The fromValue. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericValue getFromValue() { + return fromValue_ == null + ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() + : fromValue_; + } + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericValue from_value = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericValueOrBuilder getFromValueOrBuilder() { + return getFromValue(); + } + + public static final int TO_VALUE_FIELD_NUMBER = 2; + private com.google.analytics.data.v1alpha.NumericValue toValue_; + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.NumericValue to_value = 2; + * + * @return The toValue. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericValue getToValue() { + return toValue_ == null + ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() + : toValue_; + } + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericValue to_value = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.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.v1alpha.BetweenFilter)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.BetweenFilter other = + (com.google.analytics.data.v1alpha.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.v1alpha.BetweenFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.BetweenFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.BetweenFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.BetweenFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.BetweenFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.BetweenFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.BetweenFilter) + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_BetweenFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.BetweenFilter.class, + com.google.analytics.data.v1alpha.BetweenFilter.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilter getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilter build() { + com.google.analytics.data.v1alpha.BetweenFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilter buildPartial() { + com.google.analytics.data.v1alpha.BetweenFilter result = + new com.google.analytics.data.v1alpha.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.v1alpha.BetweenFilter) { + return mergeFrom((com.google.analytics.data.v1alpha.BetweenFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.BetweenFilter other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.BetweenFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.BetweenFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.data.v1alpha.NumericValue fromValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericValue, + com.google.analytics.data.v1alpha.NumericValue.Builder, + com.google.analytics.data.v1alpha.NumericValueOrBuilder> + fromValueBuilder_; + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.NumericValue from_value = 1; + * + * @return The fromValue. + */ + public com.google.analytics.data.v1alpha.NumericValue getFromValue() { + if (fromValueBuilder_ == null) { + return fromValue_ == null + ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() + : fromValue_; + } else { + return fromValueBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericValue from_value = 1; + */ + public Builder setFromValue(com.google.analytics.data.v1alpha.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.v1alpha.NumericValue from_value = 1; + */ + public Builder setFromValue( + com.google.analytics.data.v1alpha.NumericValue.Builder builderForValue) { + if (fromValueBuilder_ == null) { + fromValue_ = builderForValue.build(); + onChanged(); + } else { + fromValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericValue from_value = 1; + */ + public Builder mergeFromValue(com.google.analytics.data.v1alpha.NumericValue value) { + if (fromValueBuilder_ == null) { + if (fromValue_ != null) { + fromValue_ = + com.google.analytics.data.v1alpha.NumericValue.newBuilder(fromValue_) + .mergeFrom(value) + .buildPartial(); + } else { + fromValue_ = value; + } + onChanged(); + } else { + fromValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.NumericValue from_value = 1; + */ + public com.google.analytics.data.v1alpha.NumericValue.Builder getFromValueBuilder() { + + onChanged(); + return getFromValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericValue from_value = 1; + */ + public com.google.analytics.data.v1alpha.NumericValueOrBuilder getFromValueOrBuilder() { + if (fromValueBuilder_ != null) { + return fromValueBuilder_.getMessageOrBuilder(); + } else { + return fromValue_ == null + ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() + : fromValue_; + } + } + /** + * + * + *
+     * Begins with this number.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericValue from_value = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericValue, + com.google.analytics.data.v1alpha.NumericValue.Builder, + com.google.analytics.data.v1alpha.NumericValueOrBuilder> + getFromValueFieldBuilder() { + if (fromValueBuilder_ == null) { + fromValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericValue, + com.google.analytics.data.v1alpha.NumericValue.Builder, + com.google.analytics.data.v1alpha.NumericValueOrBuilder>( + getFromValue(), getParentForChildren(), isClean()); + fromValue_ = null; + } + return fromValueBuilder_; + } + + private com.google.analytics.data.v1alpha.NumericValue toValue_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericValue, + com.google.analytics.data.v1alpha.NumericValue.Builder, + com.google.analytics.data.v1alpha.NumericValueOrBuilder> + toValueBuilder_; + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.NumericValue to_value = 2; + * + * @return The toValue. + */ + public com.google.analytics.data.v1alpha.NumericValue getToValue() { + if (toValueBuilder_ == null) { + return toValue_ == null + ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() + : toValue_; + } else { + return toValueBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericValue to_value = 2; + */ + public Builder setToValue(com.google.analytics.data.v1alpha.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.v1alpha.NumericValue to_value = 2; + */ + public Builder setToValue( + com.google.analytics.data.v1alpha.NumericValue.Builder builderForValue) { + if (toValueBuilder_ == null) { + toValue_ = builderForValue.build(); + onChanged(); + } else { + toValueBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericValue to_value = 2; + */ + public Builder mergeToValue(com.google.analytics.data.v1alpha.NumericValue value) { + if (toValueBuilder_ == null) { + if (toValue_ != null) { + toValue_ = + com.google.analytics.data.v1alpha.NumericValue.newBuilder(toValue_) + .mergeFrom(value) + .buildPartial(); + } else { + toValue_ = value; + } + onChanged(); + } else { + toValueBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.NumericValue to_value = 2; + */ + public com.google.analytics.data.v1alpha.NumericValue.Builder getToValueBuilder() { + + onChanged(); + return getToValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericValue to_value = 2; + */ + public com.google.analytics.data.v1alpha.NumericValueOrBuilder getToValueOrBuilder() { + if (toValueBuilder_ != null) { + return toValueBuilder_.getMessageOrBuilder(); + } else { + return toValue_ == null + ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() + : toValue_; + } + } + /** + * + * + *
+     * Ends with this number.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericValue to_value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericValue, + com.google.analytics.data.v1alpha.NumericValue.Builder, + com.google.analytics.data.v1alpha.NumericValueOrBuilder> + getToValueFieldBuilder() { + if (toValueBuilder_ == null) { + toValueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericValue, + com.google.analytics.data.v1alpha.NumericValue.Builder, + com.google.analytics.data.v1alpha.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.v1alpha.BetweenFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.BetweenFilter) + private static final com.google.analytics.data.v1alpha.BetweenFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.BetweenFilter(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.BetweenFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilterOrBuilder.java new file mode 100644 index 00000000..ec16ff09 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilterOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface BetweenFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.BetweenFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericValue from_value = 1; + * + * @return Whether the fromValue field is set. + */ + boolean hasFromValue(); + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericValue from_value = 1; + * + * @return The fromValue. + */ + com.google.analytics.data.v1alpha.NumericValue getFromValue(); + /** + * + * + *
+   * Begins with this number.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericValue from_value = 1; + */ + com.google.analytics.data.v1alpha.NumericValueOrBuilder getFromValueOrBuilder(); + + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericValue to_value = 2; + * + * @return Whether the toValue field is set. + */ + boolean hasToValue(); + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericValue to_value = 2; + * + * @return The toValue. + */ + com.google.analytics.data.v1alpha.NumericValue getToValue(); + /** + * + * + *
+   * Ends with this number.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericValue to_value = 2; + */ + com.google.analytics.data.v1alpha.NumericValueOrBuilder getToValueOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java new file mode 100644 index 00000000..c2fda774 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java @@ -0,0 +1,1059 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests
+ * are allowed up to 4 date ranges.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.DateRange} + */ +public final class DateRange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DateRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DateRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DateRange.class, + com.google.analytics.data.v1alpha.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.v1alpha.DateRange)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.DateRange other = + (com.google.analytics.data.v1alpha.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.v1alpha.DateRange parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DateRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DateRange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DateRange parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DateRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DateRange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DateRange) + com.google.analytics.data.v1alpha.DateRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DateRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DateRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DateRange.class, + com.google.analytics.data.v1alpha.DateRange.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DateRange_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DateRange getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.DateRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DateRange build() { + com.google.analytics.data.v1alpha.DateRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DateRange buildPartial() { + com.google.analytics.data.v1alpha.DateRange result = + new com.google.analytics.data.v1alpha.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.v1alpha.DateRange) { + return mergeFrom((com.google.analytics.data.v1alpha.DateRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.DateRange other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.DateRange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.DateRange) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DateRange) + private static final com.google.analytics.data.v1alpha.DateRange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DateRange(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DateRange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRangeOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRangeOrBuilder.java new file mode 100644 index 00000000..f111e6c0 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRangeOrBuilder.java @@ -0,0 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface DateRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java new file mode 100644 index 00000000..1f4b3d48 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java @@ -0,0 +1,999 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * 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, the city could be "Paris" or "New York".
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.Dimension} + */ +public final class Dimension extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.Builder subBuilder = null; + if (dimensionExpression_ != null) { + subBuilder = dimensionExpression_.toBuilder(); + } + dimensionExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Dimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Dimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.Dimension.class, + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; + * + * @return The dimensionExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression getDimensionExpression() { + return dimensionExpression_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.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.v1alpha.Dimension)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.Dimension other = + (com.google.analytics.data.v1alpha.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.v1alpha.Dimension parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.Dimension parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.Dimension parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.Dimension parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.Dimension parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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, the city could be "Paris" or "New York".
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.Dimension} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Dimension) + com.google.analytics.data.v1alpha.DimensionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Dimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Dimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.Dimension.class, + com.google.analytics.data.v1alpha.Dimension.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Dimension_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Dimension getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.Dimension.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Dimension build() { + com.google.analytics.data.v1alpha.Dimension result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Dimension buildPartial() { + com.google.analytics.data.v1alpha.Dimension result = + new com.google.analytics.data.v1alpha.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.v1alpha.Dimension) { + return mergeFrom((com.google.analytics.data.v1alpha.Dimension) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.Dimension other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.Dimension parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimensionExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.DimensionExpression, + com.google.analytics.data.v1alpha.DimensionExpression.Builder, + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; + * + * @return The dimensionExpression. + */ + public com.google.analytics.data.v1alpha.DimensionExpression getDimensionExpression() { + if (dimensionExpressionBuilder_ == null) { + return dimensionExpression_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; + */ + public Builder setDimensionExpression( + com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; + */ + public Builder setDimensionExpression( + com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; + */ + public Builder mergeDimensionExpression( + com.google.analytics.data.v1alpha.DimensionExpression value) { + if (dimensionExpressionBuilder_ == null) { + if (dimensionExpression_ != null) { + dimensionExpression_ = + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; + */ + public com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; + */ + public com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder + getDimensionExpressionOrBuilder() { + if (dimensionExpressionBuilder_ != null) { + return dimensionExpressionBuilder_.getMessageOrBuilder(); + } else { + return dimensionExpression_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.DimensionExpression, + com.google.analytics.data.v1alpha.DimensionExpression.Builder, + com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder> + getDimensionExpressionFieldBuilder() { + if (dimensionExpressionBuilder_ == null) { + dimensionExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.DimensionExpression, + com.google.analytics.data.v1alpha.DimensionExpression.Builder, + com.google.analytics.data.v1alpha.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.v1alpha.Dimension) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Dimension) + private static final com.google.analytics.data.v1alpha.Dimension DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Dimension(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.Dimension getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java new file mode 100644 index 00000000..2defd65d --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java @@ -0,0 +1,3355 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * 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.v1alpha.DimensionExpression} + */ +public final class DimensionExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression.Builder + subBuilder = null; + if (oneExpressionCase_ == 4) { + subBuilder = + ((com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_) + .toBuilder(); + } + oneExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_); + oneExpression_ = subBuilder.buildPartial(); + } + oneExpressionCase_ = 4; + break; + } + case 42: + { + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder + subBuilder = null; + if (oneExpressionCase_ == 5) { + subBuilder = + ((com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_) + .toBuilder(); + } + oneExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_); + oneExpression_ = subBuilder.buildPartial(); + } + oneExpressionCase_ = 5; + break; + } + case 50: + { + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder + subBuilder = null; + if (oneExpressionCase_ == 6) { + subBuilder = + ((com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) + oneExpression_) + .toBuilder(); + } + oneExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionExpression.class, + com.google.analytics.data.v1alpha.DimensionExpression.Builder.class); + } + + public interface CaseExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression} + */ + public static final class CaseExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.class, + com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression other = + (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression.CaseExpression} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.class, + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder.class); + } + + // Construct using + // com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression + getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression build() { + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression buildPartial() { + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression result = + new com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression) { + return mergeFrom( + (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression other) { + if (other + == com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + private static final com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConcatenateExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression} + */ + public static final class ConcatenateExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + dimensionNames_ = dimensionNames_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.class, + com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression other = + (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.class, + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder + .class); + } + + // Construct using + // com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression + getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression build() { + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression + buildPartial() { + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression result = + new com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression) { + return mergeFrom( + (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression other) { + if (other + == com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) + private static final com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; + * + * @return The lowerCase. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getLowerCase() { + if (oneExpressionCase_ == 4) { + return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_; + } + return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression + .getDefaultInstance(); + } + /** + * + * + *
+   * Used to convert a dimension value to lower case.
+   * 
+ * + * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder + getLowerCaseOrBuilder() { + if (oneExpressionCase_ == 4) { + return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_; + } + return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression + .getDefaultInstance(); + } + + public static final int UPPER_CASE_FIELD_NUMBER = 5; + /** + * + * + *
+   * Used to convert a dimension value to upper case.
+   * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; + * + * @return The upperCase. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getUpperCase() { + if (oneExpressionCase_ == 5) { + return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_; + } + return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression + .getDefaultInstance(); + } + /** + * + * + *
+   * Used to convert a dimension value to upper case.
+   * 
+ * + * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder + getUpperCaseOrBuilder() { + if (oneExpressionCase_ == 5) { + return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_; + } + return com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; + * + * + * @return The concatenate. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression + getConcatenate() { + if (oneExpressionCase_ == 6) { + return (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) + oneExpression_; + } + return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression + .getDefaultInstance(); + } + /** + * + * + *
+   * Used to combine dimension values to a single dimension.
+   * For example, dimension "country, city": concatenate(country, ", ", city).
+   * 
+ * + * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder + getConcatenateOrBuilder() { + if (oneExpressionCase_ == 6) { + return (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) + oneExpression_; + } + return com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression) oneExpression_); + } + if (oneExpressionCase_ == 5) { + output.writeMessage( + 5, (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_); + } + if (oneExpressionCase_ == 6) { + output.writeMessage( + 6, + (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression) + oneExpression_); + } + if (oneExpressionCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_); + } + if (oneExpressionCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, + (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.DimensionExpression other = + (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionExpression) + com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionExpression.class, + com.google.analytics.data.v1alpha.DimensionExpression.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.DimensionExpression.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression build() { + com.google.analytics.data.v1alpha.DimensionExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression buildPartial() { + com.google.analytics.data.v1alpha.DimensionExpression result = + new com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression) { + return mergeFrom((com.google.analytics.data.v1alpha.DimensionExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.DimensionExpression other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression, + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder> + lowerCaseBuilder_; + /** + * + * + *
+     * Used to convert a dimension value to lower case.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; + * + * + * @return The lowerCase. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getLowerCase() { + if (lowerCaseBuilder_ == null) { + if (oneExpressionCase_ == 4) { + return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_; + } + return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression + .getDefaultInstance(); + } else { + if (oneExpressionCase_ == 4) { + return lowerCaseBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Used to convert a dimension value to lower case.
+     * 
+ * + * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; + * + */ + public Builder setLowerCase( + com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; + * + */ + public Builder setLowerCase( + com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; + * + */ + public Builder mergeLowerCase( + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression value) { + if (lowerCaseBuilder_ == null) { + if (oneExpressionCase_ == 4 + && oneExpression_ + != com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression + .getDefaultInstance()) { + oneExpression_ = + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.newBuilder( + (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + oneExpression_ = value; + } + onChanged(); + } else { + if (oneExpressionCase_ == 4) { + lowerCaseBuilder_.mergeFrom(value); + } else { + lowerCaseBuilder_.setMessage(value); + } + } + oneExpressionCase_ = 4; + return this; + } + /** + * + * + *
+     * Used to convert a dimension value to lower case.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; + * + */ + public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder + getLowerCaseBuilder() { + return getLowerCaseFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Used to convert a dimension value to lower case.
+     * 
+ * + * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder + getLowerCaseOrBuilder() { + if ((oneExpressionCase_ == 4) && (lowerCaseBuilder_ != null)) { + return lowerCaseBuilder_.getMessageOrBuilder(); + } else { + if (oneExpressionCase_ == 4) { + return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_; + } + return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Used to convert a dimension value to lower case.
+     * 
+ * + * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression, + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder> + getLowerCaseFieldBuilder() { + if (lowerCaseBuilder_ == null) { + if (!(oneExpressionCase_ == 4)) { + oneExpression_ = + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression + .getDefaultInstance(); + } + lowerCaseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression, + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder>( + (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_, + getParentForChildren(), + isClean()); + oneExpression_ = null; + } + oneExpressionCase_ = 4; + onChanged(); + ; + return lowerCaseBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression, + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder> + upperCaseBuilder_; + /** + * + * + *
+     * Used to convert a dimension value to upper case.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; + * + * + * @return The upperCase. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getUpperCase() { + if (upperCaseBuilder_ == null) { + if (oneExpressionCase_ == 5) { + return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_; + } + return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression + .getDefaultInstance(); + } else { + if (oneExpressionCase_ == 5) { + return upperCaseBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Used to convert a dimension value to upper case.
+     * 
+ * + * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; + * + */ + public Builder setUpperCase( + com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; + * + */ + public Builder setUpperCase( + com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; + * + */ + public Builder mergeUpperCase( + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression value) { + if (upperCaseBuilder_ == null) { + if (oneExpressionCase_ == 5 + && oneExpression_ + != com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression + .getDefaultInstance()) { + oneExpression_ = + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.newBuilder( + (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + oneExpression_ = value; + } + onChanged(); + } else { + if (oneExpressionCase_ == 5) { + upperCaseBuilder_.mergeFrom(value); + } else { + upperCaseBuilder_.setMessage(value); + } + } + oneExpressionCase_ = 5; + return this; + } + /** + * + * + *
+     * Used to convert a dimension value to upper case.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; + * + */ + public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder + getUpperCaseBuilder() { + return getUpperCaseFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Used to convert a dimension value to upper case.
+     * 
+ * + * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder + getUpperCaseOrBuilder() { + if ((oneExpressionCase_ == 5) && (upperCaseBuilder_ != null)) { + return upperCaseBuilder_.getMessageOrBuilder(); + } else { + if (oneExpressionCase_ == 5) { + return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_; + } + return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Used to convert a dimension value to upper case.
+     * 
+ * + * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression, + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder> + getUpperCaseFieldBuilder() { + if (upperCaseBuilder_ == null) { + if (!(oneExpressionCase_ == 5)) { + oneExpression_ = + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression + .getDefaultInstance(); + } + upperCaseBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression, + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder>( + (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) + oneExpression_, + getParentForChildren(), + isClean()); + oneExpression_ = null; + } + oneExpressionCase_ = 5; + onChanged(); + ; + return upperCaseBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression, + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder, + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder> + concatenateBuilder_; + /** + * + * + *
+     * Used to combine dimension values to a single dimension.
+     * For example, dimension "country, city": concatenate(country, ", ", city).
+     * 
+ * + * + * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; + * + * + * @return The concatenate. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression + getConcatenate() { + if (concatenateBuilder_ == null) { + if (oneExpressionCase_ == 6) { + return (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) + oneExpression_; + } + return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression + .getDefaultInstance(); + } else { + if (oneExpressionCase_ == 6) { + return concatenateBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Used to combine dimension values to a single dimension.
+     * For example, dimension "country, city": concatenate(country, ", ", city).
+     * 
+ * + * + * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; + * + */ + public Builder setConcatenate( + com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; + * + */ + public Builder setConcatenate( + com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; + * + */ + public Builder mergeConcatenate( + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression value) { + if (concatenateBuilder_ == null) { + if (oneExpressionCase_ == 6 + && oneExpression_ + != com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression + .getDefaultInstance()) { + oneExpression_ = + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression + .newBuilder( + (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) + oneExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + oneExpression_ = value; + } + onChanged(); + } else { + if (oneExpressionCase_ == 6) { + concatenateBuilder_.mergeFrom(value); + } 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.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; + * + */ + public com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder + getConcatenateOrBuilder() { + if ((oneExpressionCase_ == 6) && (concatenateBuilder_ != null)) { + return concatenateBuilder_.getMessageOrBuilder(); + } else { + if (oneExpressionCase_ == 6) { + return (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) + oneExpression_; + } + return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression + .getDefaultInstance(); + } + } + /** + * + * + *
+     * Used to combine dimension values to a single dimension.
+     * For example, dimension "country, city": concatenate(country, ", ", city).
+     * 
+ * + * + * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression, + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder, + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder> + getConcatenateFieldBuilder() { + if (concatenateBuilder_ == null) { + if (!(oneExpressionCase_ == 6)) { + oneExpression_ = + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression + .getDefaultInstance(); + } + concatenateBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression, + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder, + com.google.analytics.data.v1alpha.DimensionExpression + .ConcatenateExpressionOrBuilder>( + (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionExpression) + private static final com.google.analytics.data.v1alpha.DimensionExpression DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionExpression(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpressionOrBuilder.java new file mode 100644 index 00000000..78304cc0 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpressionOrBuilder.java @@ -0,0 +1,142 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface DimensionExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.DimensionExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Used to convert a dimension value to lower case.
+   * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; + * + * @return The lowerCase. + */ + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getLowerCase(); + /** + * + * + *
+   * Used to convert a dimension value to lower case.
+   * 
+ * + * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; + */ + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder + getLowerCaseOrBuilder(); + + /** + * + * + *
+   * Used to convert a dimension value to upper case.
+   * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; + * + * @return The upperCase. + */ + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getUpperCase(); + /** + * + * + *
+   * Used to convert a dimension value to upper case.
+   * 
+ * + * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; + */ + com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder + getUpperCaseOrBuilder(); + + /** + * + * + *
+   * Used to combine dimension values to a single dimension.
+   * For example, dimension "country, city": concatenate(country, ", ", city).
+   * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; + * + * + * @return The concatenate. + */ + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression getConcatenate(); + /** + * + * + *
+   * Used to combine dimension values to a single dimension.
+   * For example, dimension "country, city": concatenate(country, ", ", city).
+   * 
+ * + * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; + * + */ + com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder + getConcatenateOrBuilder(); + + public com.google.analytics.data.v1alpha.DimensionExpression.OneExpressionCase + getOneExpressionCase(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java new file mode 100644 index 00000000..418da030 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java @@ -0,0 +1,644 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * 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.v1alpha.DimensionHeader} + */ +public final class DimensionHeader extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionHeader.class, + com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.DimensionHeader other = + (com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionHeader} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionHeader) + com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionHeader.class, + com.google.analytics.data.v1alpha.DimensionHeader.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionHeader getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionHeader build() { + com.google.analytics.data.v1alpha.DimensionHeader result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionHeader buildPartial() { + com.google.analytics.data.v1alpha.DimensionHeader result = + new com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader) { + return mergeFrom((com.google.analytics.data.v1alpha.DimensionHeader) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.DimensionHeader other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionHeader) + private static final com.google.analytics.data.v1alpha.DimensionHeader DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionHeader(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeaderOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeaderOrBuilder.java new file mode 100644 index 00000000..e514389a --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeaderOrBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface DimensionHeaderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionOrBuilder.java new file mode 100644 index 00000000..06c69152 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface DimensionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; + * + * @return The dimensionExpression. + */ + com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; + */ + com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder getDimensionExpressionOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java new file mode 100644 index 00000000..b878cc79 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java @@ -0,0 +1,767 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * The value of a dimension.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.DimensionValue} + */ +public final class DimensionValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionValue.class, + com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.DimensionValue other = + (com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionValue) + com.google.analytics.data.v1alpha.DimensionValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.DimensionValue.class, + com.google.analytics.data.v1alpha.DimensionValue.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionValue getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.DimensionValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionValue build() { + com.google.analytics.data.v1alpha.DimensionValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionValue buildPartial() { + com.google.analytics.data.v1alpha.DimensionValue result = + new com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue) { + return mergeFrom((com.google.analytics.data.v1alpha.DimensionValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.DimensionValue other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionValue) + private static final com.google.analytics.data.v1alpha.DimensionValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionValue(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValueOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValueOrBuilder.java new file mode 100644 index 00000000..2813f66c --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValueOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/data/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface DimensionValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.DimensionValue.OneValueCase getOneValueCase(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventCriteriaScoping.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventCriteriaScoping.java new file mode 100644 index 00000000..555eb191 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventCriteriaScoping.java @@ -0,0 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Scoping specifies which events are considered when evaluating if an event
+ * meets a criteria.
+ * 
+ * + * Protobuf enum {@code google.analytics.data.v1alpha.EventCriteriaScoping} + */ +public enum EventCriteriaScoping implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified criteria scoping. Do not specify.
+   * 
+ * + * EVENT_CRITERIA_SCOPING_UNSPECIFIED = 0; + */ + EVENT_CRITERIA_SCOPING_UNSPECIFIED(0), + /** + * + * + *
+   * If the criteria is satisfied within one event, the event matches the
+   * criteria.
+   * 
+ * + * EVENT_CRITERIA_WITHIN_SAME_EVENT = 1; + */ + EVENT_CRITERIA_WITHIN_SAME_EVENT(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified criteria scoping. Do not specify.
+   * 
+ * + * EVENT_CRITERIA_SCOPING_UNSPECIFIED = 0; + */ + public static final int EVENT_CRITERIA_SCOPING_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * If the criteria is satisfied within one event, the event matches the
+   * criteria.
+   * 
+ * + * EVENT_CRITERIA_WITHIN_SAME_EVENT = 1; + */ + public static final int EVENT_CRITERIA_WITHIN_SAME_EVENT_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EventCriteriaScoping 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 EventCriteriaScoping forNumber(int value) { + switch (value) { + case 0: + return EVENT_CRITERIA_SCOPING_UNSPECIFIED; + case 1: + return EVENT_CRITERIA_WITHIN_SAME_EVENT; + 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 EventCriteriaScoping findValueByNumber(int number) { + return EventCriteriaScoping.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.v1alpha.ReportingApiProto.getDescriptor() + .getEnumTypes() + .get(4); + } + + private static final EventCriteriaScoping[] VALUES = values(); + + public static EventCriteriaScoping 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 EventCriteriaScoping(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.EventCriteriaScoping) +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventExclusionDuration.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventExclusionDuration.java new file mode 100644 index 00000000..c9a8ba35 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventExclusionDuration.java @@ -0,0 +1,162 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Enumerates options for how long an exclusion will last if an event
+ * matches the `eventExclusionCriteria`.
+ * 
+ * + * Protobuf enum {@code google.analytics.data.v1alpha.EventExclusionDuration} + */ +public enum EventExclusionDuration implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified exclusion duration. Do not specify.
+   * 
+ * + * EVENT_EXCLUSION_DURATION_UNSPECIFIED = 0; + */ + EVENT_EXCLUSION_DURATION_UNSPECIFIED(0), + /** + * + * + *
+   * Permanently exclude events from the segment if the event ever meets
+   * the `eventExclusionCriteria` condition.
+   * 
+ * + * EVENT_EXCLUSION_PERMANENT = 1; + */ + EVENT_EXCLUSION_PERMANENT(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified exclusion duration. Do not specify.
+   * 
+ * + * EVENT_EXCLUSION_DURATION_UNSPECIFIED = 0; + */ + public static final int EVENT_EXCLUSION_DURATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Permanently exclude events from the segment if the event ever meets
+   * the `eventExclusionCriteria` condition.
+   * 
+ * + * EVENT_EXCLUSION_PERMANENT = 1; + */ + public static final int EVENT_EXCLUSION_PERMANENT_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EventExclusionDuration 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 EventExclusionDuration forNumber(int value) { + switch (value) { + case 0: + return EVENT_EXCLUSION_DURATION_UNSPECIFIED; + case 1: + return EVENT_EXCLUSION_PERMANENT; + 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 EventExclusionDuration findValueByNumber(int number) { + return EventExclusionDuration.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.v1alpha.ReportingApiProto.getDescriptor() + .getEnumTypes() + .get(5); + } + + private static final EventExclusionDuration[] VALUES = values(); + + public static EventExclusionDuration 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 EventExclusionDuration(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.EventExclusionDuration) +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegment.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegment.java new file mode 100644 index 00000000..e0291152 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegment.java @@ -0,0 +1,1035 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Event segments are subsets of events that were triggered on your site or app.
+ * for example, all purchase events made in a particular location; app_exception
+ * events that occurred on a specific operating system.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.EventSegment} + */ +public final class EventSegment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.EventSegment) + EventSegmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventSegment.newBuilder() to construct. + private EventSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EventSegment() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EventSegment(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EventSegment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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.v1alpha.EventSegmentCriteria.Builder subBuilder = null; + if (eventInclusionCriteria_ != null) { + subBuilder = eventInclusionCriteria_.toBuilder(); + } + eventInclusionCriteria_ = + input.readMessage( + com.google.analytics.data.v1alpha.EventSegmentCriteria.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(eventInclusionCriteria_); + eventInclusionCriteria_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder subBuilder = null; + if (exclusion_ != null) { + subBuilder = exclusion_.toBuilder(); + } + exclusion_ = + input.readMessage( + com.google.analytics.data.v1alpha.EventSegmentExclusion.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(exclusion_); + exclusion_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.EventSegment.class, + com.google.analytics.data.v1alpha.EventSegment.Builder.class); + } + + public static final int EVENT_INCLUSION_CRITERIA_FIELD_NUMBER = 1; + private com.google.analytics.data.v1alpha.EventSegmentCriteria eventInclusionCriteria_; + /** + * + * + *
+   * Defines which events are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; + * + * @return Whether the eventInclusionCriteria field is set. + */ + @java.lang.Override + public boolean hasEventInclusionCriteria() { + return eventInclusionCriteria_ != null; + } + /** + * + * + *
+   * Defines which events are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; + * + * @return The eventInclusionCriteria. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentCriteria getEventInclusionCriteria() { + return eventInclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance() + : eventInclusionCriteria_; + } + /** + * + * + *
+   * Defines which events are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder + getEventInclusionCriteriaOrBuilder() { + return getEventInclusionCriteria(); + } + + public static final int EXCLUSION_FIELD_NUMBER = 2; + private com.google.analytics.data.v1alpha.EventSegmentExclusion exclusion_; + /** + * + * + *
+   * Defines which events are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; + * + * @return Whether the exclusion field is set. + */ + @java.lang.Override + public boolean hasExclusion() { + return exclusion_ != null; + } + /** + * + * + *
+   * Defines which events are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; + * + * @return The exclusion. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentExclusion getExclusion() { + return exclusion_ == null + ? com.google.analytics.data.v1alpha.EventSegmentExclusion.getDefaultInstance() + : exclusion_; + } + /** + * + * + *
+   * Defines which events are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder getExclusionOrBuilder() { + return getExclusion(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (eventInclusionCriteria_ != null) { + output.writeMessage(1, getEventInclusionCriteria()); + } + if (exclusion_ != null) { + output.writeMessage(2, getExclusion()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (eventInclusionCriteria_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEventInclusionCriteria()); + } + if (exclusion_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.EventSegment)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.EventSegment other = + (com.google.analytics.data.v1alpha.EventSegment) obj; + + if (hasEventInclusionCriteria() != other.hasEventInclusionCriteria()) return false; + if (hasEventInclusionCriteria()) { + if (!getEventInclusionCriteria().equals(other.getEventInclusionCriteria())) return false; + } + if (hasExclusion() != other.hasExclusion()) return false; + if (hasExclusion()) { + if (!getExclusion().equals(other.getExclusion())) return false; + } + if (!unknownFields.equals(other.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 (hasEventInclusionCriteria()) { + hash = (37 * hash) + EVENT_INCLUSION_CRITERIA_FIELD_NUMBER; + hash = (53 * hash) + getEventInclusionCriteria().hashCode(); + } + if (hasExclusion()) { + hash = (37 * hash) + EXCLUSION_FIELD_NUMBER; + hash = (53 * hash) + getExclusion().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.EventSegment parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.EventSegment 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.v1alpha.EventSegment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.EventSegment parseFrom( + 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.v1alpha.EventSegment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.EventSegment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.EventSegment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.EventSegment parseFrom( + java.io.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.v1alpha.EventSegment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.EventSegment parseDelimitedFrom( + java.io.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.v1alpha.EventSegment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.EventSegment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.EventSegment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Event segments are subsets of events that were triggered on your site or app.
+   * for example, all purchase events made in a particular location; app_exception
+   * events that occurred on a specific operating system.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.EventSegment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.EventSegment) + com.google.analytics.data.v1alpha.EventSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.EventSegment.class, + com.google.analytics.data.v1alpha.EventSegment.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.EventSegment.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 (eventInclusionCriteriaBuilder_ == null) { + eventInclusionCriteria_ = null; + } else { + eventInclusionCriteria_ = null; + eventInclusionCriteriaBuilder_ = null; + } + if (exclusionBuilder_ == null) { + exclusion_ = null; + } else { + exclusion_ = null; + exclusionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegment_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegment getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.EventSegment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegment build() { + com.google.analytics.data.v1alpha.EventSegment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegment buildPartial() { + com.google.analytics.data.v1alpha.EventSegment result = + new com.google.analytics.data.v1alpha.EventSegment(this); + if (eventInclusionCriteriaBuilder_ == null) { + result.eventInclusionCriteria_ = eventInclusionCriteria_; + } else { + result.eventInclusionCriteria_ = eventInclusionCriteriaBuilder_.build(); + } + if (exclusionBuilder_ == null) { + result.exclusion_ = exclusion_; + } else { + result.exclusion_ = exclusionBuilder_.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.v1alpha.EventSegment) { + return mergeFrom((com.google.analytics.data.v1alpha.EventSegment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.EventSegment other) { + if (other == com.google.analytics.data.v1alpha.EventSegment.getDefaultInstance()) return this; + if (other.hasEventInclusionCriteria()) { + mergeEventInclusionCriteria(other.getEventInclusionCriteria()); + } + if (other.hasExclusion()) { + mergeExclusion(other.getExclusion()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.EventSegment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.EventSegment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.data.v1alpha.EventSegmentCriteria eventInclusionCriteria_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.EventSegmentCriteria, + com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder> + eventInclusionCriteriaBuilder_; + /** + * + * + *
+     * Defines which events are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; + * + * + * @return Whether the eventInclusionCriteria field is set. + */ + public boolean hasEventInclusionCriteria() { + return eventInclusionCriteriaBuilder_ != null || eventInclusionCriteria_ != null; + } + /** + * + * + *
+     * Defines which events are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; + * + * + * @return The eventInclusionCriteria. + */ + public com.google.analytics.data.v1alpha.EventSegmentCriteria getEventInclusionCriteria() { + if (eventInclusionCriteriaBuilder_ == null) { + return eventInclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance() + : eventInclusionCriteria_; + } else { + return eventInclusionCriteriaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Defines which events are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; + * + */ + public Builder setEventInclusionCriteria( + com.google.analytics.data.v1alpha.EventSegmentCriteria value) { + if (eventInclusionCriteriaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventInclusionCriteria_ = value; + onChanged(); + } else { + eventInclusionCriteriaBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Defines which events are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; + * + */ + public Builder setEventInclusionCriteria( + com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder builderForValue) { + if (eventInclusionCriteriaBuilder_ == null) { + eventInclusionCriteria_ = builderForValue.build(); + onChanged(); + } else { + eventInclusionCriteriaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Defines which events are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; + * + */ + public Builder mergeEventInclusionCriteria( + com.google.analytics.data.v1alpha.EventSegmentCriteria value) { + if (eventInclusionCriteriaBuilder_ == null) { + if (eventInclusionCriteria_ != null) { + eventInclusionCriteria_ = + com.google.analytics.data.v1alpha.EventSegmentCriteria.newBuilder( + eventInclusionCriteria_) + .mergeFrom(value) + .buildPartial(); + } else { + eventInclusionCriteria_ = value; + } + onChanged(); + } else { + eventInclusionCriteriaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Defines which events are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; + * + */ + public Builder clearEventInclusionCriteria() { + if (eventInclusionCriteriaBuilder_ == null) { + eventInclusionCriteria_ = null; + onChanged(); + } else { + eventInclusionCriteria_ = null; + eventInclusionCriteriaBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Defines which events are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; + * + */ + public com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder + getEventInclusionCriteriaBuilder() { + + onChanged(); + return getEventInclusionCriteriaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Defines which events are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; + * + */ + public com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder + getEventInclusionCriteriaOrBuilder() { + if (eventInclusionCriteriaBuilder_ != null) { + return eventInclusionCriteriaBuilder_.getMessageOrBuilder(); + } else { + return eventInclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance() + : eventInclusionCriteria_; + } + } + /** + * + * + *
+     * Defines which events are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.EventSegmentCriteria, + com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder> + getEventInclusionCriteriaFieldBuilder() { + if (eventInclusionCriteriaBuilder_ == null) { + eventInclusionCriteriaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.EventSegmentCriteria, + com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder>( + getEventInclusionCriteria(), getParentForChildren(), isClean()); + eventInclusionCriteria_ = null; + } + return eventInclusionCriteriaBuilder_; + } + + private com.google.analytics.data.v1alpha.EventSegmentExclusion exclusion_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.EventSegmentExclusion, + com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder, + com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder> + exclusionBuilder_; + /** + * + * + *
+     * Defines which events are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; + * + * @return Whether the exclusion field is set. + */ + public boolean hasExclusion() { + return exclusionBuilder_ != null || exclusion_ != null; + } + /** + * + * + *
+     * Defines which events are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; + * + * @return The exclusion. + */ + public com.google.analytics.data.v1alpha.EventSegmentExclusion getExclusion() { + if (exclusionBuilder_ == null) { + return exclusion_ == null + ? com.google.analytics.data.v1alpha.EventSegmentExclusion.getDefaultInstance() + : exclusion_; + } else { + return exclusionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Defines which events are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; + */ + public Builder setExclusion(com.google.analytics.data.v1alpha.EventSegmentExclusion value) { + if (exclusionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exclusion_ = value; + onChanged(); + } else { + exclusionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Defines which events are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; + */ + public Builder setExclusion( + com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder builderForValue) { + if (exclusionBuilder_ == null) { + exclusion_ = builderForValue.build(); + onChanged(); + } else { + exclusionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Defines which events are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; + */ + public Builder mergeExclusion(com.google.analytics.data.v1alpha.EventSegmentExclusion value) { + if (exclusionBuilder_ == null) { + if (exclusion_ != null) { + exclusion_ = + com.google.analytics.data.v1alpha.EventSegmentExclusion.newBuilder(exclusion_) + .mergeFrom(value) + .buildPartial(); + } else { + exclusion_ = value; + } + onChanged(); + } else { + exclusionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Defines which events are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; + */ + public Builder clearExclusion() { + if (exclusionBuilder_ == null) { + exclusion_ = null; + onChanged(); + } else { + exclusion_ = null; + exclusionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Defines which events are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; + */ + public com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder getExclusionBuilder() { + + onChanged(); + return getExclusionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Defines which events are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; + */ + public com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder + getExclusionOrBuilder() { + if (exclusionBuilder_ != null) { + return exclusionBuilder_.getMessageOrBuilder(); + } else { + return exclusion_ == null + ? com.google.analytics.data.v1alpha.EventSegmentExclusion.getDefaultInstance() + : exclusion_; + } + } + /** + * + * + *
+     * Defines which events are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.EventSegmentExclusion, + com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder, + com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder> + getExclusionFieldBuilder() { + if (exclusionBuilder_ == null) { + exclusionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.EventSegmentExclusion, + com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder, + com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder>( + getExclusion(), getParentForChildren(), isClean()); + exclusion_ = null; + } + return exclusionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.EventSegment) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.EventSegment) + private static final com.google.analytics.data.v1alpha.EventSegment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.EventSegment(); + } + + public static com.google.analytics.data.v1alpha.EventSegment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventSegment(input, extensionRegistry); + } + }; + + public static 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.v1alpha.EventSegment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroup.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroup.java new file mode 100644 index 00000000..a504fc57 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroup.java @@ -0,0 +1,960 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Conditions tell Analytics what data to include in or exclude from the
+ * segment.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentConditionGroup} + */ +public final class EventSegmentConditionGroup extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.EventSegmentConditionGroup) + EventSegmentConditionGroupOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventSegmentConditionGroup.newBuilder() to construct. + private EventSegmentConditionGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EventSegmentConditionGroup() { + conditionScoping_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EventSegmentConditionGroup(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EventSegmentConditionGroup( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder 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(); + + conditionScoping_ = rawValue; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder subBuilder = null; + if (segmentFilterExpression_ != null) { + subBuilder = segmentFilterExpression_.toBuilder(); + } + segmentFilterExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(segmentFilterExpression_); + segmentFilterExpression_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.class, + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder.class); + } + + public static final int CONDITION_SCOPING_FIELD_NUMBER = 1; + private int conditionScoping_; + /** + * + * + *
+   * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
+   * Optional. If unspecified, a `conditionScoping` of
+   * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; + * + * @return The enum numeric value on the wire for conditionScoping. + */ + @java.lang.Override + public int getConditionScopingValue() { + return conditionScoping_; + } + /** + * + * + *
+   * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
+   * Optional. If unspecified, a `conditionScoping` of
+   * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; + * + * @return The conditionScoping. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EventCriteriaScoping getConditionScoping() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.EventCriteriaScoping result = + com.google.analytics.data.v1alpha.EventCriteriaScoping.valueOf(conditionScoping_); + return result == null + ? com.google.analytics.data.v1alpha.EventCriteriaScoping.UNRECOGNIZED + : result; + } + + public static final int SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER = 2; + private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_; + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return Whether the segmentFilterExpression field is set. + */ + @java.lang.Override + public boolean hasSegmentFilterExpression() { + return segmentFilterExpression_ != null; + } + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return The segmentFilterExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() { + return segmentFilterExpression_ == null + ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() + : segmentFilterExpression_; + } + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder + getSegmentFilterExpressionOrBuilder() { + return getSegmentFilterExpression(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (conditionScoping_ + != com.google.analytics.data.v1alpha.EventCriteriaScoping.EVENT_CRITERIA_SCOPING_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, conditionScoping_); + } + if (segmentFilterExpression_ != null) { + output.writeMessage(2, getSegmentFilterExpression()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (conditionScoping_ + != com.google.analytics.data.v1alpha.EventCriteriaScoping.EVENT_CRITERIA_SCOPING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, conditionScoping_); + } + if (segmentFilterExpression_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSegmentFilterExpression()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.EventSegmentConditionGroup)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.EventSegmentConditionGroup other = + (com.google.analytics.data.v1alpha.EventSegmentConditionGroup) obj; + + if (conditionScoping_ != other.conditionScoping_) return false; + if (hasSegmentFilterExpression() != other.hasSegmentFilterExpression()) return false; + if (hasSegmentFilterExpression()) { + if (!getSegmentFilterExpression().equals(other.getSegmentFilterExpression())) return false; + } + if (!unknownFields.equals(other.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) + CONDITION_SCOPING_FIELD_NUMBER; + hash = (53 * hash) + conditionScoping_; + if (hasSegmentFilterExpression()) { + hash = (37 * hash) + SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getSegmentFilterExpression().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup 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.v1alpha.EventSegmentConditionGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup parseFrom( + 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.v1alpha.EventSegmentConditionGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup parseFrom( + java.io.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.v1alpha.EventSegmentConditionGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup parseDelimitedFrom( + java.io.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.v1alpha.EventSegmentConditionGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.EventSegmentConditionGroup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Conditions tell Analytics what data to include in or exclude from the
+   * segment.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentConditionGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.EventSegmentConditionGroup) + com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.class, + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.EventSegmentConditionGroup.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(); + conditionScoping_ = 0; + + if (segmentFilterExpressionBuilder_ == null) { + segmentFilterExpression_ = null; + } else { + segmentFilterExpression_ = null; + segmentFilterExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentConditionGroup + getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.EventSegmentConditionGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentConditionGroup build() { + com.google.analytics.data.v1alpha.EventSegmentConditionGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentConditionGroup buildPartial() { + com.google.analytics.data.v1alpha.EventSegmentConditionGroup result = + new com.google.analytics.data.v1alpha.EventSegmentConditionGroup(this); + result.conditionScoping_ = conditionScoping_; + if (segmentFilterExpressionBuilder_ == null) { + result.segmentFilterExpression_ = segmentFilterExpression_; + } else { + result.segmentFilterExpression_ = segmentFilterExpressionBuilder_.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.v1alpha.EventSegmentConditionGroup) { + return mergeFrom((com.google.analytics.data.v1alpha.EventSegmentConditionGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.EventSegmentConditionGroup other) { + if (other + == com.google.analytics.data.v1alpha.EventSegmentConditionGroup.getDefaultInstance()) + return this; + if (other.conditionScoping_ != 0) { + setConditionScopingValue(other.getConditionScopingValue()); + } + if (other.hasSegmentFilterExpression()) { + mergeSegmentFilterExpression(other.getSegmentFilterExpression()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.EventSegmentConditionGroup parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.EventSegmentConditionGroup) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int conditionScoping_ = 0; + /** + * + * + *
+     * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
+     * Optional. If unspecified, a `conditionScoping` of
+     * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; + * + * @return The enum numeric value on the wire for conditionScoping. + */ + @java.lang.Override + public int getConditionScopingValue() { + return conditionScoping_; + } + /** + * + * + *
+     * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
+     * Optional. If unspecified, a `conditionScoping` of
+     * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; + * + * @param value The enum numeric value on the wire for conditionScoping to set. + * @return This builder for chaining. + */ + public Builder setConditionScopingValue(int value) { + + conditionScoping_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
+     * Optional. If unspecified, a `conditionScoping` of
+     * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; + * + * @return The conditionScoping. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EventCriteriaScoping getConditionScoping() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.EventCriteriaScoping result = + com.google.analytics.data.v1alpha.EventCriteriaScoping.valueOf(conditionScoping_); + return result == null + ? com.google.analytics.data.v1alpha.EventCriteriaScoping.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
+     * Optional. If unspecified, a `conditionScoping` of
+     * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; + * + * @param value The conditionScoping to set. + * @return This builder for chaining. + */ + public Builder setConditionScoping( + com.google.analytics.data.v1alpha.EventCriteriaScoping value) { + if (value == null) { + throw new NullPointerException(); + } + + conditionScoping_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
+     * Optional. If unspecified, a `conditionScoping` of
+     * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; + * + * @return This builder for chaining. + */ + public Builder clearConditionScoping() { + + conditionScoping_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> + segmentFilterExpressionBuilder_; + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return Whether the segmentFilterExpression field is set. + */ + public boolean hasSegmentFilterExpression() { + return segmentFilterExpressionBuilder_ != null || segmentFilterExpression_ != null; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return The segmentFilterExpression. + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() { + if (segmentFilterExpressionBuilder_ == null) { + return segmentFilterExpression_ == null + ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() + : segmentFilterExpression_; + } else { + return segmentFilterExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public Builder setSegmentFilterExpression( + com.google.analytics.data.v1alpha.SegmentFilterExpression value) { + if (segmentFilterExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + segmentFilterExpression_ = value; + onChanged(); + } else { + segmentFilterExpressionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public Builder setSegmentFilterExpression( + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) { + if (segmentFilterExpressionBuilder_ == null) { + segmentFilterExpression_ = builderForValue.build(); + onChanged(); + } else { + segmentFilterExpressionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public Builder mergeSegmentFilterExpression( + com.google.analytics.data.v1alpha.SegmentFilterExpression value) { + if (segmentFilterExpressionBuilder_ == null) { + if (segmentFilterExpression_ != null) { + segmentFilterExpression_ = + com.google.analytics.data.v1alpha.SegmentFilterExpression.newBuilder( + segmentFilterExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + segmentFilterExpression_ = value; + } + onChanged(); + } else { + segmentFilterExpressionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public Builder clearSegmentFilterExpression() { + if (segmentFilterExpressionBuilder_ == null) { + segmentFilterExpression_ = null; + onChanged(); + } else { + segmentFilterExpression_ = null; + segmentFilterExpressionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder + getSegmentFilterExpressionBuilder() { + + onChanged(); + return getSegmentFilterExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder + getSegmentFilterExpressionOrBuilder() { + if (segmentFilterExpressionBuilder_ != null) { + return segmentFilterExpressionBuilder_.getMessageOrBuilder(); + } else { + return segmentFilterExpression_ == null + ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() + : segmentFilterExpression_; + } + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> + getSegmentFilterExpressionFieldBuilder() { + if (segmentFilterExpressionBuilder_ == null) { + segmentFilterExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder>( + getSegmentFilterExpression(), getParentForChildren(), isClean()); + segmentFilterExpression_ = null; + } + return segmentFilterExpressionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.EventSegmentConditionGroup) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.EventSegmentConditionGroup) + private static final com.google.analytics.data.v1alpha.EventSegmentConditionGroup + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.EventSegmentConditionGroup(); + } + + public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventSegmentConditionGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventSegmentConditionGroup(input, extensionRegistry); + } + }; + + public static 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.v1alpha.EventSegmentConditionGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroupOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroupOrBuilder.java new file mode 100644 index 00000000..33e74cfd --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroupOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface EventSegmentConditionGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.EventSegmentConditionGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
+   * Optional. If unspecified, a `conditionScoping` of
+   * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; + * + * @return The enum numeric value on the wire for conditionScoping. + */ + int getConditionScopingValue(); + /** + * + * + *
+   * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
+   * Optional. If unspecified, a `conditionScoping` of
+   * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; + * + * @return The conditionScoping. + */ + com.google.analytics.data.v1alpha.EventCriteriaScoping getConditionScoping(); + + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return Whether the segmentFilterExpression field is set. + */ + boolean hasSegmentFilterExpression(); + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return The segmentFilterExpression. + */ + com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression(); + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder + getSegmentFilterExpressionOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteria.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteria.java new file mode 100644 index 00000000..960c6a2a --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteria.java @@ -0,0 +1,1054 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * An event matches a criteria if the event meet the conditions in the
+ * criteria.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentCriteria} + */ +public final class EventSegmentCriteria extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.EventSegmentCriteria) + EventSegmentCriteriaOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventSegmentCriteria.newBuilder() to construct. + private EventSegmentCriteria(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EventSegmentCriteria() { + andConditionGroups_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EventSegmentCriteria(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EventSegmentCriteria( + 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)) { + andConditionGroups_ = + new java.util.ArrayList< + com.google.analytics.data.v1alpha.EventSegmentConditionGroup>(); + mutable_bitField0_ |= 0x00000001; + } + andConditionGroups_.add( + input.readMessage( + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + andConditionGroups_ = java.util.Collections.unmodifiableList(andConditionGroups_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.EventSegmentCriteria.class, + com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder.class); + } + + public static final int AND_CONDITION_GROUPS_FIELD_NUMBER = 1; + private java.util.List + andConditionGroups_; + /** + * + * + *
+   * An event matches this criteria if the event matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + @java.lang.Override + public java.util.List + getAndConditionGroupsList() { + return andConditionGroups_; + } + /** + * + * + *
+   * An event matches this criteria if the event matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder> + getAndConditionGroupsOrBuilderList() { + return andConditionGroups_; + } + /** + * + * + *
+   * An event matches this criteria if the event matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + @java.lang.Override + public int getAndConditionGroupsCount() { + return andConditionGroups_.size(); + } + /** + * + * + *
+   * An event matches this criteria if the event matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentConditionGroup getAndConditionGroups( + int index) { + return andConditionGroups_.get(index); + } + /** + * + * + *
+   * An event matches this criteria if the event matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder + getAndConditionGroupsOrBuilder(int index) { + return andConditionGroups_.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 < andConditionGroups_.size(); i++) { + output.writeMessage(1, andConditionGroups_.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 < andConditionGroups_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, andConditionGroups_.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.v1alpha.EventSegmentCriteria)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.EventSegmentCriteria other = + (com.google.analytics.data.v1alpha.EventSegmentCriteria) obj; + + if (!getAndConditionGroupsList().equals(other.getAndConditionGroupsList())) return false; + if (!unknownFields.equals(other.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 (getAndConditionGroupsCount() > 0) { + hash = (37 * hash) + AND_CONDITION_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getAndConditionGroupsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.EventSegmentCriteria parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.EventSegmentCriteria 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.v1alpha.EventSegmentCriteria parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.EventSegmentCriteria parseFrom( + 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.v1alpha.EventSegmentCriteria parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.EventSegmentCriteria parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.EventSegmentCriteria parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.EventSegmentCriteria parseFrom( + java.io.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.v1alpha.EventSegmentCriteria parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.EventSegmentCriteria parseDelimitedFrom( + java.io.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.v1alpha.EventSegmentCriteria parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.EventSegmentCriteria parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.EventSegmentCriteria prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 event matches a criteria if the event meet the conditions in the
+   * criteria.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentCriteria} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.EventSegmentCriteria) + com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.EventSegmentCriteria.class, + com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.EventSegmentCriteria.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAndConditionGroupsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (andConditionGroupsBuilder_ == null) { + andConditionGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + andConditionGroupsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentCriteria getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentCriteria build() { + com.google.analytics.data.v1alpha.EventSegmentCriteria result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentCriteria buildPartial() { + com.google.analytics.data.v1alpha.EventSegmentCriteria result = + new com.google.analytics.data.v1alpha.EventSegmentCriteria(this); + int from_bitField0_ = bitField0_; + if (andConditionGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + andConditionGroups_ = java.util.Collections.unmodifiableList(andConditionGroups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.andConditionGroups_ = andConditionGroups_; + } else { + result.andConditionGroups_ = andConditionGroupsBuilder_.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.v1alpha.EventSegmentCriteria) { + return mergeFrom((com.google.analytics.data.v1alpha.EventSegmentCriteria) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.EventSegmentCriteria other) { + if (other == com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance()) + return this; + if (andConditionGroupsBuilder_ == null) { + if (!other.andConditionGroups_.isEmpty()) { + if (andConditionGroups_.isEmpty()) { + andConditionGroups_ = other.andConditionGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.addAll(other.andConditionGroups_); + } + onChanged(); + } + } else { + if (!other.andConditionGroups_.isEmpty()) { + if (andConditionGroupsBuilder_.isEmpty()) { + andConditionGroupsBuilder_.dispose(); + andConditionGroupsBuilder_ = null; + andConditionGroups_ = other.andConditionGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + andConditionGroupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAndConditionGroupsFieldBuilder() + : null; + } else { + andConditionGroupsBuilder_.addAllMessages(other.andConditionGroups_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.EventSegmentCriteria parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.EventSegmentCriteria) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + andConditionGroups_ = java.util.Collections.emptyList(); + + private void ensureAndConditionGroupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + andConditionGroups_ = + new java.util.ArrayList( + andConditionGroups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.EventSegmentConditionGroup, + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder, + com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder> + andConditionGroupsBuilder_; + + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public java.util.List + getAndConditionGroupsList() { + if (andConditionGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(andConditionGroups_); + } else { + return andConditionGroupsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public int getAndConditionGroupsCount() { + if (andConditionGroupsBuilder_ == null) { + return andConditionGroups_.size(); + } else { + return andConditionGroupsBuilder_.getCount(); + } + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public com.google.analytics.data.v1alpha.EventSegmentConditionGroup getAndConditionGroups( + int index) { + if (andConditionGroupsBuilder_ == null) { + return andConditionGroups_.get(index); + } else { + return andConditionGroupsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder setAndConditionGroups( + int index, com.google.analytics.data.v1alpha.EventSegmentConditionGroup value) { + if (andConditionGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.set(index, value); + onChanged(); + } else { + andConditionGroupsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder setAndConditionGroups( + int index, + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder builderForValue) { + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + andConditionGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder addAndConditionGroups( + com.google.analytics.data.v1alpha.EventSegmentConditionGroup value) { + if (andConditionGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.add(value); + onChanged(); + } else { + andConditionGroupsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder addAndConditionGroups( + int index, com.google.analytics.data.v1alpha.EventSegmentConditionGroup value) { + if (andConditionGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.add(index, value); + onChanged(); + } else { + andConditionGroupsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder addAndConditionGroups( + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder builderForValue) { + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.add(builderForValue.build()); + onChanged(); + } else { + andConditionGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder addAndConditionGroups( + int index, + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder builderForValue) { + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + andConditionGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder addAllAndConditionGroups( + java.lang.Iterable + values) { + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, andConditionGroups_); + onChanged(); + } else { + andConditionGroupsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder clearAndConditionGroups() { + if (andConditionGroupsBuilder_ == null) { + andConditionGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + andConditionGroupsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder removeAndConditionGroups(int index) { + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.remove(index); + onChanged(); + } else { + andConditionGroupsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder + getAndConditionGroupsBuilder(int index) { + return getAndConditionGroupsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder + getAndConditionGroupsOrBuilder(int index) { + if (andConditionGroupsBuilder_ == null) { + return andConditionGroups_.get(index); + } else { + return andConditionGroupsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder> + getAndConditionGroupsOrBuilderList() { + if (andConditionGroupsBuilder_ != null) { + return andConditionGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(andConditionGroups_); + } + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder + addAndConditionGroupsBuilder() { + return getAndConditionGroupsFieldBuilder() + .addBuilder( + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.getDefaultInstance()); + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder + addAndConditionGroupsBuilder(int index) { + return getAndConditionGroupsFieldBuilder() + .addBuilder( + index, + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.getDefaultInstance()); + } + /** + * + * + *
+     * An event matches this criteria if the event matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + public java.util.List + getAndConditionGroupsBuilderList() { + return getAndConditionGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.EventSegmentConditionGroup, + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder, + com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder> + getAndConditionGroupsFieldBuilder() { + if (andConditionGroupsBuilder_ == null) { + andConditionGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.EventSegmentConditionGroup, + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder, + com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder>( + andConditionGroups_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + andConditionGroups_ = null; + } + return andConditionGroupsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.EventSegmentCriteria) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.EventSegmentCriteria) + private static final com.google.analytics.data.v1alpha.EventSegmentCriteria DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.EventSegmentCriteria(); + } + + public static com.google.analytics.data.v1alpha.EventSegmentCriteria getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventSegmentCriteria parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventSegmentCriteria(input, extensionRegistry); + } + }; + + public static 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.v1alpha.EventSegmentCriteria getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteriaOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteriaOrBuilder.java new file mode 100644 index 00000000..c694e414 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteriaOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface EventSegmentCriteriaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.EventSegmentCriteria) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * An event matches this criteria if the event matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + java.util.List + getAndConditionGroupsList(); + /** + * + * + *
+   * An event matches this criteria if the event matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + com.google.analytics.data.v1alpha.EventSegmentConditionGroup getAndConditionGroups(int index); + /** + * + * + *
+   * An event matches this criteria if the event matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + int getAndConditionGroupsCount(); + /** + * + * + *
+   * An event matches this criteria if the event matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + java.util.List + getAndConditionGroupsOrBuilderList(); + /** + * + * + *
+   * An event matches this criteria if the event matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; + * + */ + com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder + getAndConditionGroupsOrBuilder(int index); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusion.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusion.java new file mode 100644 index 00000000..952466f7 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusion.java @@ -0,0 +1,949 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Specifies which events are excluded in this segment.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentExclusion} + */ +public final class EventSegmentExclusion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.EventSegmentExclusion) + EventSegmentExclusionOrBuilder { + private static final long serialVersionUID = 0L; + // Use EventSegmentExclusion.newBuilder() to construct. + private EventSegmentExclusion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private EventSegmentExclusion() { + eventExclusionDuration_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new EventSegmentExclusion(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private EventSegmentExclusion( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder 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(); + + eventExclusionDuration_ = rawValue; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder subBuilder = null; + if (eventExclusionCriteria_ != null) { + subBuilder = eventExclusionCriteria_.toBuilder(); + } + eventExclusionCriteria_ = + input.readMessage( + com.google.analytics.data.v1alpha.EventSegmentCriteria.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(eventExclusionCriteria_); + eventExclusionCriteria_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.EventSegmentExclusion.class, + com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder.class); + } + + public static final int EVENT_EXCLUSION_DURATION_FIELD_NUMBER = 1; + private int eventExclusionDuration_; + /** + * + * + *
+   * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
+   * Optional. If unspecified, an `eventExclusionDuration` of
+   * `EVENT_EXCLUSION_PERMANENT` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; + * + * + * @return The enum numeric value on the wire for eventExclusionDuration. + */ + @java.lang.Override + public int getEventExclusionDurationValue() { + return eventExclusionDuration_; + } + /** + * + * + *
+   * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
+   * Optional. If unspecified, an `eventExclusionDuration` of
+   * `EVENT_EXCLUSION_PERMANENT` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; + * + * + * @return The eventExclusionDuration. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EventExclusionDuration getEventExclusionDuration() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.EventExclusionDuration result = + com.google.analytics.data.v1alpha.EventExclusionDuration.valueOf(eventExclusionDuration_); + return result == null + ? com.google.analytics.data.v1alpha.EventExclusionDuration.UNRECOGNIZED + : result; + } + + public static final int EVENT_EXCLUSION_CRITERIA_FIELD_NUMBER = 2; + private com.google.analytics.data.v1alpha.EventSegmentCriteria eventExclusionCriteria_; + /** + * + * + *
+   * If an event meets this condition, the event is excluded from membership
+   * in the segment for the `eventExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; + * + * @return Whether the eventExclusionCriteria field is set. + */ + @java.lang.Override + public boolean hasEventExclusionCriteria() { + return eventExclusionCriteria_ != null; + } + /** + * + * + *
+   * If an event meets this condition, the event is excluded from membership
+   * in the segment for the `eventExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; + * + * @return The eventExclusionCriteria. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentCriteria getEventExclusionCriteria() { + return eventExclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance() + : eventExclusionCriteria_; + } + /** + * + * + *
+   * If an event meets this condition, the event is excluded from membership
+   * in the segment for the `eventExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder + getEventExclusionCriteriaOrBuilder() { + return getEventExclusionCriteria(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (eventExclusionDuration_ + != com.google.analytics.data.v1alpha.EventExclusionDuration + .EVENT_EXCLUSION_DURATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, eventExclusionDuration_); + } + if (eventExclusionCriteria_ != null) { + output.writeMessage(2, getEventExclusionCriteria()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (eventExclusionDuration_ + != com.google.analytics.data.v1alpha.EventExclusionDuration + .EVENT_EXCLUSION_DURATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, eventExclusionDuration_); + } + if (eventExclusionCriteria_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEventExclusionCriteria()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.EventSegmentExclusion)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.EventSegmentExclusion other = + (com.google.analytics.data.v1alpha.EventSegmentExclusion) obj; + + if (eventExclusionDuration_ != other.eventExclusionDuration_) return false; + if (hasEventExclusionCriteria() != other.hasEventExclusionCriteria()) return false; + if (hasEventExclusionCriteria()) { + if (!getEventExclusionCriteria().equals(other.getEventExclusionCriteria())) return false; + } + if (!unknownFields.equals(other.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) + EVENT_EXCLUSION_DURATION_FIELD_NUMBER; + hash = (53 * hash) + eventExclusionDuration_; + if (hasEventExclusionCriteria()) { + hash = (37 * hash) + EVENT_EXCLUSION_CRITERIA_FIELD_NUMBER; + hash = (53 * hash) + getEventExclusionCriteria().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.EventSegmentExclusion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.EventSegmentExclusion 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.v1alpha.EventSegmentExclusion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.EventSegmentExclusion parseFrom( + 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.v1alpha.EventSegmentExclusion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.EventSegmentExclusion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.EventSegmentExclusion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.EventSegmentExclusion parseFrom( + java.io.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.v1alpha.EventSegmentExclusion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.EventSegmentExclusion parseDelimitedFrom( + java.io.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.v1alpha.EventSegmentExclusion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.EventSegmentExclusion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.EventSegmentExclusion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Specifies which events are excluded in this segment.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentExclusion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.EventSegmentExclusion) + com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.EventSegmentExclusion.class, + com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.EventSegmentExclusion.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(); + eventExclusionDuration_ = 0; + + if (eventExclusionCriteriaBuilder_ == null) { + eventExclusionCriteria_ = null; + } else { + eventExclusionCriteria_ = null; + eventExclusionCriteriaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentExclusion getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.EventSegmentExclusion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentExclusion build() { + com.google.analytics.data.v1alpha.EventSegmentExclusion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentExclusion buildPartial() { + com.google.analytics.data.v1alpha.EventSegmentExclusion result = + new com.google.analytics.data.v1alpha.EventSegmentExclusion(this); + result.eventExclusionDuration_ = eventExclusionDuration_; + if (eventExclusionCriteriaBuilder_ == null) { + result.eventExclusionCriteria_ = eventExclusionCriteria_; + } else { + result.eventExclusionCriteria_ = eventExclusionCriteriaBuilder_.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.v1alpha.EventSegmentExclusion) { + return mergeFrom((com.google.analytics.data.v1alpha.EventSegmentExclusion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.EventSegmentExclusion other) { + if (other == com.google.analytics.data.v1alpha.EventSegmentExclusion.getDefaultInstance()) + return this; + if (other.eventExclusionDuration_ != 0) { + setEventExclusionDurationValue(other.getEventExclusionDurationValue()); + } + if (other.hasEventExclusionCriteria()) { + mergeEventExclusionCriteria(other.getEventExclusionCriteria()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.EventSegmentExclusion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.EventSegmentExclusion) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int eventExclusionDuration_ = 0; + /** + * + * + *
+     * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
+     * Optional. If unspecified, an `eventExclusionDuration` of
+     * `EVENT_EXCLUSION_PERMANENT` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; + * + * + * @return The enum numeric value on the wire for eventExclusionDuration. + */ + @java.lang.Override + public int getEventExclusionDurationValue() { + return eventExclusionDuration_; + } + /** + * + * + *
+     * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
+     * Optional. If unspecified, an `eventExclusionDuration` of
+     * `EVENT_EXCLUSION_PERMANENT` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; + * + * + * @param value The enum numeric value on the wire for eventExclusionDuration to set. + * @return This builder for chaining. + */ + public Builder setEventExclusionDurationValue(int value) { + + eventExclusionDuration_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
+     * Optional. If unspecified, an `eventExclusionDuration` of
+     * `EVENT_EXCLUSION_PERMANENT` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; + * + * + * @return The eventExclusionDuration. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EventExclusionDuration getEventExclusionDuration() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.EventExclusionDuration result = + com.google.analytics.data.v1alpha.EventExclusionDuration.valueOf(eventExclusionDuration_); + return result == null + ? com.google.analytics.data.v1alpha.EventExclusionDuration.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
+     * Optional. If unspecified, an `eventExclusionDuration` of
+     * `EVENT_EXCLUSION_PERMANENT` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; + * + * + * @param value The eventExclusionDuration to set. + * @return This builder for chaining. + */ + public Builder setEventExclusionDuration( + com.google.analytics.data.v1alpha.EventExclusionDuration value) { + if (value == null) { + throw new NullPointerException(); + } + + eventExclusionDuration_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
+     * Optional. If unspecified, an `eventExclusionDuration` of
+     * `EVENT_EXCLUSION_PERMANENT` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearEventExclusionDuration() { + + eventExclusionDuration_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.data.v1alpha.EventSegmentCriteria eventExclusionCriteria_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.EventSegmentCriteria, + com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder> + eventExclusionCriteriaBuilder_; + /** + * + * + *
+     * If an event meets this condition, the event is excluded from membership
+     * in the segment for the `eventExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; + * + * + * @return Whether the eventExclusionCriteria field is set. + */ + public boolean hasEventExclusionCriteria() { + return eventExclusionCriteriaBuilder_ != null || eventExclusionCriteria_ != null; + } + /** + * + * + *
+     * If an event meets this condition, the event is excluded from membership
+     * in the segment for the `eventExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; + * + * + * @return The eventExclusionCriteria. + */ + public com.google.analytics.data.v1alpha.EventSegmentCriteria getEventExclusionCriteria() { + if (eventExclusionCriteriaBuilder_ == null) { + return eventExclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance() + : eventExclusionCriteria_; + } else { + return eventExclusionCriteriaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * If an event meets this condition, the event is excluded from membership
+     * in the segment for the `eventExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; + * + */ + public Builder setEventExclusionCriteria( + com.google.analytics.data.v1alpha.EventSegmentCriteria value) { + if (eventExclusionCriteriaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventExclusionCriteria_ = value; + onChanged(); + } else { + eventExclusionCriteriaBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * If an event meets this condition, the event is excluded from membership
+     * in the segment for the `eventExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; + * + */ + public Builder setEventExclusionCriteria( + com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder builderForValue) { + if (eventExclusionCriteriaBuilder_ == null) { + eventExclusionCriteria_ = builderForValue.build(); + onChanged(); + } else { + eventExclusionCriteriaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * If an event meets this condition, the event is excluded from membership
+     * in the segment for the `eventExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; + * + */ + public Builder mergeEventExclusionCriteria( + com.google.analytics.data.v1alpha.EventSegmentCriteria value) { + if (eventExclusionCriteriaBuilder_ == null) { + if (eventExclusionCriteria_ != null) { + eventExclusionCriteria_ = + com.google.analytics.data.v1alpha.EventSegmentCriteria.newBuilder( + eventExclusionCriteria_) + .mergeFrom(value) + .buildPartial(); + } else { + eventExclusionCriteria_ = value; + } + onChanged(); + } else { + eventExclusionCriteriaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * If an event meets this condition, the event is excluded from membership
+     * in the segment for the `eventExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; + * + */ + public Builder clearEventExclusionCriteria() { + if (eventExclusionCriteriaBuilder_ == null) { + eventExclusionCriteria_ = null; + onChanged(); + } else { + eventExclusionCriteria_ = null; + eventExclusionCriteriaBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * If an event meets this condition, the event is excluded from membership
+     * in the segment for the `eventExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; + * + */ + public com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder + getEventExclusionCriteriaBuilder() { + + onChanged(); + return getEventExclusionCriteriaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If an event meets this condition, the event is excluded from membership
+     * in the segment for the `eventExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; + * + */ + public com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder + getEventExclusionCriteriaOrBuilder() { + if (eventExclusionCriteriaBuilder_ != null) { + return eventExclusionCriteriaBuilder_.getMessageOrBuilder(); + } else { + return eventExclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance() + : eventExclusionCriteria_; + } + } + /** + * + * + *
+     * If an event meets this condition, the event is excluded from membership
+     * in the segment for the `eventExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.EventSegmentCriteria, + com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder> + getEventExclusionCriteriaFieldBuilder() { + if (eventExclusionCriteriaBuilder_ == null) { + eventExclusionCriteriaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.EventSegmentCriteria, + com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder>( + getEventExclusionCriteria(), getParentForChildren(), isClean()); + eventExclusionCriteria_ = null; + } + return eventExclusionCriteriaBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.EventSegmentExclusion) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.EventSegmentExclusion) + private static final com.google.analytics.data.v1alpha.EventSegmentExclusion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.EventSegmentExclusion(); + } + + public static com.google.analytics.data.v1alpha.EventSegmentExclusion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EventSegmentExclusion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EventSegmentExclusion(input, extensionRegistry); + } + }; + + public static 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.v1alpha.EventSegmentExclusion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusionOrBuilder.java new file mode 100644 index 00000000..4965e733 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusionOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface EventSegmentExclusionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.EventSegmentExclusion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
+   * Optional. If unspecified, an `eventExclusionDuration` of
+   * `EVENT_EXCLUSION_PERMANENT` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; + * + * + * @return The enum numeric value on the wire for eventExclusionDuration. + */ + int getEventExclusionDurationValue(); + /** + * + * + *
+   * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
+   * Optional. If unspecified, an `eventExclusionDuration` of
+   * `EVENT_EXCLUSION_PERMANENT` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; + * + * + * @return The eventExclusionDuration. + */ + com.google.analytics.data.v1alpha.EventExclusionDuration getEventExclusionDuration(); + + /** + * + * + *
+   * If an event meets this condition, the event is excluded from membership
+   * in the segment for the `eventExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; + * + * @return Whether the eventExclusionCriteria field is set. + */ + boolean hasEventExclusionCriteria(); + /** + * + * + *
+   * If an event meets this condition, the event is excluded from membership
+   * in the segment for the `eventExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; + * + * @return The eventExclusionCriteria. + */ + com.google.analytics.data.v1alpha.EventSegmentCriteria getEventExclusionCriteria(); + /** + * + * + *
+   * If an event meets this condition, the event is excluded from membership
+   * in the segment for the `eventExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; + */ + com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder + getEventExclusionCriteriaOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentOrBuilder.java new file mode 100644 index 00000000..9c0a76f6 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/data/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface EventSegmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.EventSegment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Defines which events are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; + * + * @return Whether the eventInclusionCriteria field is set. + */ + boolean hasEventInclusionCriteria(); + /** + * + * + *
+   * Defines which events are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; + * + * @return The eventInclusionCriteria. + */ + com.google.analytics.data.v1alpha.EventSegmentCriteria getEventInclusionCriteria(); + /** + * + * + *
+   * Defines which events are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; + */ + com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder + getEventInclusionCriteriaOrBuilder(); + + /** + * + * + *
+   * Defines which events are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; + * + * @return Whether the exclusion field is set. + */ + boolean hasExclusion(); + /** + * + * + *
+   * Defines which events are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; + * + * @return The exclusion. + */ + com.google.analytics.data.v1alpha.EventSegmentExclusion getExclusion(); + /** + * + * + *
+   * Defines which events are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; + */ + com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder getExclusionOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java new file mode 100644 index 00000000..1facc0d4 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java @@ -0,0 +1,1947 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * An expression to filter dimension or metric values.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.Filter} + */ +public final class Filter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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 18: + { + com.google.analytics.data.v1alpha.StringFilter.Builder subBuilder = null; + if (oneFilterCase_ == 2) { + subBuilder = + ((com.google.analytics.data.v1alpha.StringFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.StringFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 2; + break; + } + case 26: + { + com.google.analytics.data.v1alpha.InListFilter.Builder subBuilder = null; + if (oneFilterCase_ == 3) { + subBuilder = + ((com.google.analytics.data.v1alpha.InListFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.InListFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 3; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.NumericFilter.Builder subBuilder = null; + if (oneFilterCase_ == 4) { + subBuilder = + ((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.NumericFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 4; + break; + } + case 42: + { + com.google.analytics.data.v1alpha.BetweenFilter.Builder subBuilder = null; + if (oneFilterCase_ == 5) { + subBuilder = + ((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.BetweenFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 5; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.Filter.class, + com.google.analytics.data.v1alpha.Filter.Builder.class); + } + + 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(2), + IN_LIST_FILTER(3), + NUMERIC_FILTER(4), + BETWEEN_FILTER(5), + 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 2: + return STRING_FILTER; + case 3: + return IN_LIST_FILTER; + case 4: + return NUMERIC_FILTER; + case 5: + 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 = 2; + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 2; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 2; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { + if (oneFilterCase_ == 2) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { + if (oneFilterCase_ == 2) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + + public static final int IN_LIST_FILTER_FIELD_NUMBER = 3; + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { + if (oneFilterCase_ == 3) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + + public static final int NUMERIC_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + + public static final int BETWEEN_FILTER_FIELD_NUMBER = 5; + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.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_ == 2) { + output.writeMessage(2, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + } + if (oneFilterCase_ == 3) { + output.writeMessage(3, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + } + if (oneFilterCase_ == 4) { + output.writeMessage(4, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + } + if (oneFilterCase_ == 5) { + output.writeMessage(5, (com.google.analytics.data.v1alpha.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_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + } + if (oneFilterCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + } + if (oneFilterCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + } + if (oneFilterCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.analytics.data.v1alpha.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.v1alpha.Filter)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.Filter other = (com.google.analytics.data.v1alpha.Filter) obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; + switch (oneFilterCase_) { + case 2: + if (!getStringFilter().equals(other.getStringFilter())) return false; + break; + case 3: + if (!getInListFilter().equals(other.getInListFilter())) return false; + break; + case 4: + if (!getNumericFilter().equals(other.getNumericFilter())) return false; + break; + case 5: + 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 2: + hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getStringFilter().hashCode(); + break; + case 3: + hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getInListFilter().hashCode(); + break; + case 4: + hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getNumericFilter().hashCode(); + break; + case 5: + 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.v1alpha.Filter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.Filter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.Filter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.Filter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.Filter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Filter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Filter) + com.google.analytics.data.v1alpha.FilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.Filter.class, + com.google.analytics.data.v1alpha.Filter.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Filter_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Filter getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Filter build() { + com.google.analytics.data.v1alpha.Filter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Filter buildPartial() { + com.google.analytics.data.v1alpha.Filter result = + new com.google.analytics.data.v1alpha.Filter(this); + result.fieldName_ = fieldName_; + if (oneFilterCase_ == 2) { + if (stringFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = stringFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 3) { + if (inListFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = inListFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 4) { + if (numericFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = numericFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 5) { + 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.v1alpha.Filter) { + return mergeFrom((com.google.analytics.data.v1alpha.Filter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.Filter other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.Filter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.StringFilter, + com.google.analytics.data.v1alpha.StringFilter.Builder, + com.google.analytics.data.v1alpha.StringFilterOrBuilder> + stringFilterBuilder_; + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 2; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 2; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 2; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 2) { + return stringFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 2; + */ + public Builder setStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + stringFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 2; + */ + public Builder setStringFilter( + com.google.analytics.data.v1alpha.StringFilter.Builder builderForValue) { + if (stringFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + stringFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 2; + */ + public Builder mergeStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2 + && oneFilter_ != com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.StringFilter.newBuilder( + (com.google.analytics.data.v1alpha.StringFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 2) { + stringFilterBuilder_.mergeFrom(value); + } else { + stringFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 2; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 2; + */ + public Builder clearStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 2) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 2) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + stringFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 2; + */ + public com.google.analytics.data.v1alpha.StringFilter.Builder getStringFilterBuilder() { + return getStringFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { + if ((oneFilterCase_ == 2) && (stringFilterBuilder_ != null)) { + return stringFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 2) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.StringFilter, + com.google.analytics.data.v1alpha.StringFilter.Builder, + com.google.analytics.data.v1alpha.StringFilterOrBuilder> + getStringFilterFieldBuilder() { + if (stringFilterBuilder_ == null) { + if (!(oneFilterCase_ == 2)) { + oneFilter_ = com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + stringFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.StringFilter, + com.google.analytics.data.v1alpha.StringFilter.Builder, + com.google.analytics.data.v1alpha.StringFilterOrBuilder>( + (com.google.analytics.data.v1alpha.StringFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 2; + onChanged(); + ; + return stringFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.InListFilter, + com.google.analytics.data.v1alpha.InListFilter.Builder, + com.google.analytics.data.v1alpha.InListFilterOrBuilder> + inListFilterBuilder_; + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 3; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 3) { + return inListFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; + */ + public Builder setInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + inListFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; + */ + public Builder setInListFilter( + com.google.analytics.data.v1alpha.InListFilter.Builder builderForValue) { + if (inListFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + inListFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; + */ + public Builder mergeInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3 + && oneFilter_ != com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.InListFilter.newBuilder( + (com.google.analytics.data.v1alpha.InListFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 3) { + inListFilterBuilder_.mergeFrom(value); + } else { + inListFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 3; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; + */ + public Builder clearInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 3) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + inListFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; + */ + public com.google.analytics.data.v1alpha.InListFilter.Builder getInListFilterBuilder() { + return getInListFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { + if ((oneFilterCase_ == 3) && (inListFilterBuilder_ != null)) { + return inListFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 3) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.InListFilter, + com.google.analytics.data.v1alpha.InListFilter.Builder, + com.google.analytics.data.v1alpha.InListFilterOrBuilder> + getInListFilterFieldBuilder() { + if (inListFilterBuilder_ == null) { + if (!(oneFilterCase_ == 3)) { + oneFilter_ = com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + inListFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.InListFilter, + com.google.analytics.data.v1alpha.InListFilter.Builder, + com.google.analytics.data.v1alpha.InListFilterOrBuilder>( + (com.google.analytics.data.v1alpha.InListFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 3; + onChanged(); + ; + return inListFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericFilter, + com.google.analytics.data.v1alpha.NumericFilter.Builder, + com.google.analytics.data.v1alpha.NumericFilterOrBuilder> + numericFilterBuilder_; + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 4) { + return numericFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; + */ + public Builder setNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { + if (numericFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + numericFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; + */ + public Builder setNumericFilter( + com.google.analytics.data.v1alpha.NumericFilter.Builder builderForValue) { + if (numericFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + numericFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; + */ + public Builder mergeNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4 + && oneFilter_ != com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.NumericFilter.newBuilder( + (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 4) { + numericFilterBuilder_.mergeFrom(value); + } else { + numericFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; + */ + public Builder clearNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + numericFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; + */ + public com.google.analytics.data.v1alpha.NumericFilter.Builder getNumericFilterBuilder() { + return getNumericFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { + if ((oneFilterCase_ == 4) && (numericFilterBuilder_ != null)) { + return numericFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericFilter, + com.google.analytics.data.v1alpha.NumericFilter.Builder, + com.google.analytics.data.v1alpha.NumericFilterOrBuilder> + getNumericFilterFieldBuilder() { + if (numericFilterBuilder_ == null) { + if (!(oneFilterCase_ == 4)) { + oneFilter_ = com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + numericFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericFilter, + com.google.analytics.data.v1alpha.NumericFilter.Builder, + com.google.analytics.data.v1alpha.NumericFilterOrBuilder>( + (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 4; + onChanged(); + ; + return numericFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.BetweenFilter, + com.google.analytics.data.v1alpha.BetweenFilter.Builder, + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> + betweenFilterBuilder_; + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 5) { + return betweenFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; + */ + public Builder setBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + betweenFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; + */ + public Builder setBetweenFilter( + com.google.analytics.data.v1alpha.BetweenFilter.Builder builderForValue) { + if (betweenFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + betweenFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; + */ + public Builder mergeBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5 + && oneFilter_ != com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.BetweenFilter.newBuilder( + (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 5) { + betweenFilterBuilder_.mergeFrom(value); + } else { + betweenFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; + */ + public Builder clearBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + betweenFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; + */ + public com.google.analytics.data.v1alpha.BetweenFilter.Builder getBetweenFilterBuilder() { + return getBetweenFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { + if ((oneFilterCase_ == 5) && (betweenFilterBuilder_ != null)) { + return betweenFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.BetweenFilter, + com.google.analytics.data.v1alpha.BetweenFilter.Builder, + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> + getBetweenFilterFieldBuilder() { + if (betweenFilterBuilder_ == null) { + if (!(oneFilterCase_ == 5)) { + oneFilter_ = com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + betweenFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.BetweenFilter, + com.google.analytics.data.v1alpha.BetweenFilter.Builder, + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>( + (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 5; + 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.v1alpha.Filter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Filter) + private static final com.google.analytics.data.v1alpha.Filter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Filter(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.Filter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java new file mode 100644 index 00000000..07f68719 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java @@ -0,0 +1,1782 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * 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.v1alpha.FilterExpression} + */ +public final class FilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList.Builder subBuilder = null; + if (exprCase_ == 1) { + subBuilder = + ((com.google.analytics.data.v1alpha.FilterExpressionList) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FilterExpressionList.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 1; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.FilterExpressionList.Builder subBuilder = null; + if (exprCase_ == 2) { + subBuilder = + ((com.google.analytics.data.v1alpha.FilterExpressionList) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FilterExpressionList.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 2; + break; + } + case 26: + { + com.google.analytics.data.v1alpha.FilterExpression.Builder subBuilder = null; + if (exprCase_ == 3) { + subBuilder = + ((com.google.analytics.data.v1alpha.FilterExpression) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.FilterExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 3; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.Filter.Builder subBuilder = null; + if (exprCase_ == 4) { + subBuilder = ((com.google.analytics.data.v1alpha.Filter) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.Filter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FilterExpression.class, + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionList getAndGroup() { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * The FilterExpressions in and_group have an AND relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getAndGroupOrBuilder() { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); + } + + public static final int OR_GROUP_FIELD_NUMBER = 2; + /** + * + * + *
+   * The FilterExpressions in or_group have an OR relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionList getOrGroup() { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * The FilterExpressions in or_group have an OR relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getOrGroupOrBuilder() { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); + } + + public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.FilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpression getNotExpression() { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.FilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); + } + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getNotExpressionOrBuilder() { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.FilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); + } + + public static final int FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.data.v1alpha.Filter filter = 4; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return exprCase_ == 4; + } + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.data.v1alpha.Filter filter = 4; + * + * @return The filter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Filter getFilter() { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.Filter) expr_; + } + return com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); + } + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.data.v1alpha.Filter filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterOrBuilder getFilterOrBuilder() { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.Filter) expr_; + } + return com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList) expr_); + } + if (exprCase_ == 2) { + output.writeMessage(2, (com.google.analytics.data.v1alpha.FilterExpressionList) expr_); + } + if (exprCase_ == 3) { + output.writeMessage(3, (com.google.analytics.data.v1alpha.FilterExpression) expr_); + } + if (exprCase_ == 4) { + output.writeMessage(4, (com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList) expr_); + } + if (exprCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.data.v1alpha.FilterExpressionList) expr_); + } + if (exprCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.data.v1alpha.FilterExpression) expr_); + } + if (exprCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.FilterExpression other = + (com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.FilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FilterExpression) + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FilterExpression.class, + com.google.analytics.data.v1alpha.FilterExpression.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpression getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpression build() { + com.google.analytics.data.v1alpha.FilterExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpression buildPartial() { + com.google.analytics.data.v1alpha.FilterExpression result = + new com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression) { + return mergeFrom((com.google.analytics.data.v1alpha.FilterExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.FilterExpression other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList, + com.google.analytics.data.v1alpha.FilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder> + andGroupBuilder_; + /** + * + * + *
+     * The FilterExpressions in and_group have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionList getAndGroup() { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return andGroupBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FilterExpressions in and_group have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; + */ + public Builder setAndGroup(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; + */ + public Builder setAndGroup( + com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; + */ + public Builder mergeAndGroup(com.google.analytics.data.v1alpha.FilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1 + && expr_ + != com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.FilterExpressionList.newBuilder( + (com.google.analytics.data.v1alpha.FilterExpressionList) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + andGroupBuilder_.mergeFrom(value); + } else { + andGroupBuilder_.setMessage(value); + } + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * The FilterExpressions in and_group have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; + */ + public com.google.analytics.data.v1alpha.FilterExpressionList.Builder getAndGroupBuilder() { + return getAndGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The FilterExpressions in and_group have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getAndGroupOrBuilder() { + if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { + return andGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FilterExpressions in and_group have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FilterExpressionList, + com.google.analytics.data.v1alpha.FilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder> + getAndGroupFieldBuilder() { + if (andGroupBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); + } + andGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FilterExpressionList, + com.google.analytics.data.v1alpha.FilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder>( + (com.google.analytics.data.v1alpha.FilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged(); + ; + return andGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FilterExpressionList, + com.google.analytics.data.v1alpha.FilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder> + orGroupBuilder_; + /** + * + * + *
+     * The FilterExpressions in or_group have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionList getOrGroup() { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return orGroupBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FilterExpressions in or_group have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; + */ + public Builder setOrGroup(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; + */ + public Builder setOrGroup( + com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; + */ + public Builder mergeOrGroup(com.google.analytics.data.v1alpha.FilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2 + && expr_ + != com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.FilterExpressionList.newBuilder( + (com.google.analytics.data.v1alpha.FilterExpressionList) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + orGroupBuilder_.mergeFrom(value); + } else { + orGroupBuilder_.setMessage(value); + } + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * The FilterExpressions in or_group have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; + */ + public com.google.analytics.data.v1alpha.FilterExpressionList.Builder getOrGroupBuilder() { + return getOrGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The FilterExpressions in or_group have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getOrGroupOrBuilder() { + if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { + return orGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FilterExpressions in or_group have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FilterExpressionList, + com.google.analytics.data.v1alpha.FilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder> + getOrGroupFieldBuilder() { + if (orGroupBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); + } + orGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FilterExpressionList, + com.google.analytics.data.v1alpha.FilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder>( + (com.google.analytics.data.v1alpha.FilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged(); + ; + return orGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> + notExpressionBuilder_; + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.FilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpression getNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.FilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); + } else { + if (exprCase_ == 3) { + return notExpressionBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; + */ + public Builder setNotExpression(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression not_expression = 3; + */ + public Builder mergeNotExpression(com.google.analytics.data.v1alpha.FilterExpression value) { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3 + && expr_ != com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.FilterExpression.newBuilder( + (com.google.analytics.data.v1alpha.FilterExpression) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 3) { + notExpressionBuilder_.mergeFrom(value); + } else { + notExpressionBuilder_.setMessage(value); + } + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.FilterExpression not_expression = 3; + */ + public com.google.analytics.data.v1alpha.FilterExpression.Builder getNotExpressionBuilder() { + return getNotExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getNotExpressionOrBuilder() { + if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { + return notExpressionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.FilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FilterExpression is NOT of not_expression.
+     * 
+ * + * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> + getNotExpressionFieldBuilder() { + if (notExpressionBuilder_ == null) { + if (!(exprCase_ == 3)) { + expr_ = com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); + } + notExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>( + (com.google.analytics.data.v1alpha.FilterExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 3; + onChanged(); + ; + return notExpressionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.Filter, + com.google.analytics.data.v1alpha.Filter.Builder, + com.google.analytics.data.v1alpha.FilterOrBuilder> + filterBuilder_; + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.data.v1alpha.Filter filter = 4; + * + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return exprCase_ == 4; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.data.v1alpha.Filter filter = 4; + * + * @return The filter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Filter getFilter() { + if (filterBuilder_ == null) { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.Filter) expr_; + } + return com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); + } else { + if (exprCase_ == 4) { + return filterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.data.v1alpha.Filter filter = 4; + */ + public Builder setFilter(com.google.analytics.data.v1alpha.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. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.data.v1alpha.Filter filter = 4; + */ + public Builder setFilter(com.google.analytics.data.v1alpha.Filter.Builder builderForValue) { + if (filterBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.data.v1alpha.Filter filter = 4; + */ + public Builder mergeFilter(com.google.analytics.data.v1alpha.Filter value) { + if (filterBuilder_ == null) { + if (exprCase_ == 4 + && expr_ != com.google.analytics.data.v1alpha.Filter.getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.Filter.newBuilder( + (com.google.analytics.data.v1alpha.Filter) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 4) { + filterBuilder_.mergeFrom(value); + } else { + filterBuilder_.setMessage(value); + } + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.data.v1alpha.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. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.data.v1alpha.Filter filter = 4; + */ + public com.google.analytics.data.v1alpha.Filter.Builder getFilterBuilder() { + return getFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.data.v1alpha.Filter filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterOrBuilder getFilterOrBuilder() { + if ((exprCase_ == 4) && (filterBuilder_ != null)) { + return filterBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.Filter) expr_; + } + return com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
+     * 
+ * + * .google.analytics.data.v1alpha.Filter filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.Filter, + com.google.analytics.data.v1alpha.Filter.Builder, + com.google.analytics.data.v1alpha.FilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + if (!(exprCase_ == 4)) { + expr_ = com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); + } + filterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.Filter, + com.google.analytics.data.v1alpha.Filter.Builder, + com.google.analytics.data.v1alpha.FilterOrBuilder>( + (com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FilterExpression) + private static final com.google.analytics.data.v1alpha.FilterExpression DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FilterExpression(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionList.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionList.java new file mode 100644 index 00000000..edb891d4 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionList.java @@ -0,0 +1,964 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * A list of filter expressions.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FilterExpressionList} + */ +public final class FilterExpressionList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + 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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FilterExpressionList.class, + com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; + */ + @java.lang.Override + public java.util.List getExpressionsList() { + return expressions_; + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; + */ + @java.lang.Override + public java.util.List + getExpressionsOrBuilderList() { + return expressions_; + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; + */ + @java.lang.Override + public int getExpressionsCount() { + return expressions_.size(); + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpression getExpressions(int index) { + return expressions_.get(index); + } + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.FilterExpressionList other = + (com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.FilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FilterExpressionList) + com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FilterExpressionList.class, + com.google.analytics.data.v1alpha.FilterExpressionList.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionList getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionList build() { + com.google.analytics.data.v1alpha.FilterExpressionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionList buildPartial() { + com.google.analytics.data.v1alpha.FilterExpressionList result = + new com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList) { + return mergeFrom((com.google.analytics.data.v1alpha.FilterExpressionList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.FilterExpressionList other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> + expressionsBuilder_; + + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpression expressions = 1; + */ + public com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; + */ + public Builder setExpressions( + int index, com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; + */ + public Builder setExpressions( + int index, com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; + */ + public Builder addExpressions(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; + */ + public Builder addExpressions( + int index, com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; + */ + public Builder addExpressions( + com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; + */ + public Builder addExpressions( + int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.FilterExpression expressions = 1; + */ + public com.google.analytics.data.v1alpha.FilterExpression.Builder getExpressionsBuilder( + int index) { + return getExpressionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; + */ + public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpression expressions = 1; + */ + public com.google.analytics.data.v1alpha.FilterExpression.Builder addExpressionsBuilder() { + return getExpressionsFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; + */ + public com.google.analytics.data.v1alpha.FilterExpression.Builder addExpressionsBuilder( + int index) { + return getExpressionsFieldBuilder() + .addBuilder( + index, com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * A list of filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; + */ + public java.util.List + getExpressionsBuilderList() { + return getExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> + getExpressionsFieldBuilder() { + if (expressionsBuilder_ == null) { + expressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FilterExpressionList) + private static final com.google.analytics.data.v1alpha.FilterExpressionList DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FilterExpressionList(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionListOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionListOrBuilder.java new file mode 100644 index 00000000..e8c0264e --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionListOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/data/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface FilterExpressionListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FilterExpressionList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; + */ + java.util.List getExpressionsList(); + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; + */ + com.google.analytics.data.v1alpha.FilterExpression getExpressions(int index); + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; + */ + int getExpressionsCount(); + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; + */ + java.util.List + getExpressionsOrBuilderList(); + /** + * + * + *
+   * A list of filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; + */ + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getExpressionsOrBuilder(int index); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionOrBuilder.java new file mode 100644 index 00000000..68ef0917 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionOrBuilder.java @@ -0,0 +1,170 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface FilterExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FilterExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The FilterExpressions in and_group have an AND relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + com.google.analytics.data.v1alpha.FilterExpressionList getAndGroup(); + /** + * + * + *
+   * The FilterExpressions in and_group have an AND relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; + */ + com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getAndGroupOrBuilder(); + + /** + * + * + *
+   * The FilterExpressions in or_group have an OR relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + com.google.analytics.data.v1alpha.FilterExpressionList getOrGroup(); + /** + * + * + *
+   * The FilterExpressions in or_group have an OR relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; + */ + com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getOrGroupOrBuilder(); + + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + boolean hasNotExpression(); + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; + * + * @return The notExpression. + */ + com.google.analytics.data.v1alpha.FilterExpression getNotExpression(); + /** + * + * + *
+   * The FilterExpression is NOT of not_expression.
+   * 
+ * + * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; + */ + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getNotExpressionOrBuilder(); + + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.data.v1alpha.Filter filter = 4; + * + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.data.v1alpha.Filter filter = 4; + * + * @return The filter. + */ + com.google.analytics.data.v1alpha.Filter getFilter(); + /** + * + * + *
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
+   * 
+ * + * .google.analytics.data.v1alpha.Filter filter = 4; + */ + com.google.analytics.data.v1alpha.FilterOrBuilder getFilterOrBuilder(); + + public com.google.analytics.data.v1alpha.FilterExpression.ExprCase getExprCase(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java new file mode 100644 index 00000000..769dabb5 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java @@ -0,0 +1,194 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface FilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.StringFilter string_filter = 2; + * + * @return Whether the stringFilter field is set. + */ + boolean hasStringFilter(); + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 2; + * + * @return The stringFilter. + */ + com.google.analytics.data.v1alpha.StringFilter getStringFilter(); + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 2; + */ + com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder(); + + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; + * + * @return Whether the inListFilter field is set. + */ + boolean hasInListFilter(); + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; + * + * @return The inListFilter. + */ + com.google.analytics.data.v1alpha.InListFilter getInListFilter(); + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; + */ + com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder(); + + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; + * + * @return Whether the numericFilter field is set. + */ + boolean hasNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; + * + * @return The numericFilter. + */ + com.google.analytics.data.v1alpha.NumericFilter getNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; + */ + com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder(); + + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; + * + * @return Whether the betweenFilter field is set. + */ + boolean hasBetweenFilter(); + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; + * + * @return The betweenFilter. + */ + com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter(); + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; + */ + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder(); + + public com.google.analytics.data.v1alpha.Filter.OneFilterCase getOneFilterCase(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Funnel.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Funnel.java new file mode 100644 index 00000000..95c6463f --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Funnel.java @@ -0,0 +1,1058 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/data/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Configures the funnel in a funnel report request. A funnel reports on users
+ * as they pass through a sequence of steps.
+ * Funnel exploration lets you visualize the steps your users take to complete a
+ * task and quickly see how well they are succeeding or failing at each step.
+ * For example, how do prospects become shoppers and then become buyers? How do
+ * one time buyers become repeat buyers? With this information, you can improve
+ * inefficient or abandoned customer journeys.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.Funnel} + */ +public final class Funnel extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.Funnel) + FunnelOrBuilder { + private static final long serialVersionUID = 0L; + // Use Funnel.newBuilder() to construct. + private Funnel(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Funnel() { + steps_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Funnel(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Funnel( + 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: + { + isOpenFunnel_ = input.readBool(); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + steps_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + steps_.add( + input.readMessage( + com.google.analytics.data.v1alpha.FunnelStep.parser(), extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + steps_ = java.util.Collections.unmodifiableList(steps_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Funnel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Funnel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.Funnel.class, + com.google.analytics.data.v1alpha.Funnel.Builder.class); + } + + public static final int IS_OPEN_FUNNEL_FIELD_NUMBER = 1; + private boolean isOpenFunnel_; + /** + * + * + *
+   * In an open funnel, users can enter the funnel in any step, and in a closed
+   * funnel, users must enter the funnel in the first step. Optional. If
+   * unspecified, a closed funnel is used.
+   * 
+ * + * bool is_open_funnel = 1; + * + * @return The isOpenFunnel. + */ + @java.lang.Override + public boolean getIsOpenFunnel() { + return isOpenFunnel_; + } + + public static final int STEPS_FIELD_NUMBER = 2; + private java.util.List steps_; + /** + * + * + *
+   * The sequential steps of this funnel.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + @java.lang.Override + public java.util.List getStepsList() { + return steps_; + } + /** + * + * + *
+   * The sequential steps of this funnel.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + @java.lang.Override + public java.util.List + getStepsOrBuilderList() { + return steps_; + } + /** + * + * + *
+   * The sequential steps of this funnel.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + @java.lang.Override + public int getStepsCount() { + return steps_.size(); + } + /** + * + * + *
+   * The sequential steps of this funnel.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelStep getSteps(int index) { + return steps_.get(index); + } + /** + * + * + *
+   * The sequential steps of this funnel.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelStepOrBuilder getStepsOrBuilder(int index) { + return steps_.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 (isOpenFunnel_ != false) { + output.writeBool(1, isOpenFunnel_); + } + for (int i = 0; i < steps_.size(); i++) { + output.writeMessage(2, steps_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (isOpenFunnel_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isOpenFunnel_); + } + for (int i = 0; i < steps_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, steps_.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.v1alpha.Funnel)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.Funnel other = (com.google.analytics.data.v1alpha.Funnel) obj; + + if (getIsOpenFunnel() != other.getIsOpenFunnel()) return false; + if (!getStepsList().equals(other.getStepsList())) return false; + if (!unknownFields.equals(other.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) + IS_OPEN_FUNNEL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsOpenFunnel()); + if (getStepsCount() > 0) { + hash = (37 * hash) + STEPS_FIELD_NUMBER; + hash = (53 * hash) + getStepsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.Funnel parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.Funnel 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.v1alpha.Funnel parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.Funnel parseFrom( + 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.v1alpha.Funnel parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.Funnel parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.Funnel parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.Funnel parseFrom( + java.io.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.v1alpha.Funnel parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.Funnel parseDelimitedFrom( + java.io.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.v1alpha.Funnel parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.Funnel parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.Funnel prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 funnel in a funnel report request. A funnel reports on users
+   * as they pass through a sequence of steps.
+   * Funnel exploration lets you visualize the steps your users take to complete a
+   * task and quickly see how well they are succeeding or failing at each step.
+   * For example, how do prospects become shoppers and then become buyers? How do
+   * one time buyers become repeat buyers? With this information, you can improve
+   * inefficient or abandoned customer journeys.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.Funnel} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Funnel) + com.google.analytics.data.v1alpha.FunnelOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Funnel_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Funnel_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.Funnel.class, + com.google.analytics.data.v1alpha.Funnel.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.Funnel.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getStepsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + isOpenFunnel_ = false; + + if (stepsBuilder_ == null) { + steps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + stepsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Funnel_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Funnel getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.Funnel.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Funnel build() { + com.google.analytics.data.v1alpha.Funnel result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Funnel buildPartial() { + com.google.analytics.data.v1alpha.Funnel result = + new com.google.analytics.data.v1alpha.Funnel(this); + int from_bitField0_ = bitField0_; + result.isOpenFunnel_ = isOpenFunnel_; + if (stepsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + steps_ = java.util.Collections.unmodifiableList(steps_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.steps_ = steps_; + } else { + result.steps_ = stepsBuilder_.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.v1alpha.Funnel) { + return mergeFrom((com.google.analytics.data.v1alpha.Funnel) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.Funnel other) { + if (other == com.google.analytics.data.v1alpha.Funnel.getDefaultInstance()) return this; + if (other.getIsOpenFunnel() != false) { + setIsOpenFunnel(other.getIsOpenFunnel()); + } + if (stepsBuilder_ == null) { + if (!other.steps_.isEmpty()) { + if (steps_.isEmpty()) { + steps_ = other.steps_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureStepsIsMutable(); + steps_.addAll(other.steps_); + } + onChanged(); + } + } else { + if (!other.steps_.isEmpty()) { + if (stepsBuilder_.isEmpty()) { + stepsBuilder_.dispose(); + stepsBuilder_ = null; + steps_ = other.steps_; + bitField0_ = (bitField0_ & ~0x00000001); + stepsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getStepsFieldBuilder() + : null; + } else { + stepsBuilder_.addAllMessages(other.steps_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.Funnel parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.Funnel) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private boolean isOpenFunnel_; + /** + * + * + *
+     * In an open funnel, users can enter the funnel in any step, and in a closed
+     * funnel, users must enter the funnel in the first step. Optional. If
+     * unspecified, a closed funnel is used.
+     * 
+ * + * bool is_open_funnel = 1; + * + * @return The isOpenFunnel. + */ + @java.lang.Override + public boolean getIsOpenFunnel() { + return isOpenFunnel_; + } + /** + * + * + *
+     * In an open funnel, users can enter the funnel in any step, and in a closed
+     * funnel, users must enter the funnel in the first step. Optional. If
+     * unspecified, a closed funnel is used.
+     * 
+ * + * bool is_open_funnel = 1; + * + * @param value The isOpenFunnel to set. + * @return This builder for chaining. + */ + public Builder setIsOpenFunnel(boolean value) { + + isOpenFunnel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * In an open funnel, users can enter the funnel in any step, and in a closed
+     * funnel, users must enter the funnel in the first step. Optional. If
+     * unspecified, a closed funnel is used.
+     * 
+ * + * bool is_open_funnel = 1; + * + * @return This builder for chaining. + */ + public Builder clearIsOpenFunnel() { + + isOpenFunnel_ = false; + onChanged(); + return this; + } + + private java.util.List steps_ = + java.util.Collections.emptyList(); + + private void ensureStepsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + steps_ = new java.util.ArrayList(steps_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelStep, + com.google.analytics.data.v1alpha.FunnelStep.Builder, + com.google.analytics.data.v1alpha.FunnelStepOrBuilder> + stepsBuilder_; + + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public java.util.List getStepsList() { + if (stepsBuilder_ == null) { + return java.util.Collections.unmodifiableList(steps_); + } else { + return stepsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public int getStepsCount() { + if (stepsBuilder_ == null) { + return steps_.size(); + } else { + return stepsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public com.google.analytics.data.v1alpha.FunnelStep getSteps(int index) { + if (stepsBuilder_ == null) { + return steps_.get(index); + } else { + return stepsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public Builder setSteps(int index, com.google.analytics.data.v1alpha.FunnelStep value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.set(index, value); + onChanged(); + } else { + stepsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public Builder setSteps( + int index, com.google.analytics.data.v1alpha.FunnelStep.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.set(index, builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public Builder addSteps(com.google.analytics.data.v1alpha.FunnelStep value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.add(value); + onChanged(); + } else { + stepsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public Builder addSteps(int index, com.google.analytics.data.v1alpha.FunnelStep value) { + if (stepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStepsIsMutable(); + steps_.add(index, value); + onChanged(); + } else { + stepsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public Builder addSteps(com.google.analytics.data.v1alpha.FunnelStep.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public Builder addSteps( + int index, com.google.analytics.data.v1alpha.FunnelStep.Builder builderForValue) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(index, builderForValue.build()); + onChanged(); + } else { + stepsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public Builder addAllSteps( + java.lang.Iterable values) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, steps_); + onChanged(); + } else { + stepsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public Builder clearSteps() { + if (stepsBuilder_ == null) { + steps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + stepsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public Builder removeSteps(int index) { + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.remove(index); + onChanged(); + } else { + stepsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public com.google.analytics.data.v1alpha.FunnelStep.Builder getStepsBuilder(int index) { + return getStepsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public com.google.analytics.data.v1alpha.FunnelStepOrBuilder getStepsOrBuilder(int index) { + if (stepsBuilder_ == null) { + return steps_.get(index); + } else { + return stepsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public java.util.List + getStepsOrBuilderList() { + if (stepsBuilder_ != null) { + return stepsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(steps_); + } + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public com.google.analytics.data.v1alpha.FunnelStep.Builder addStepsBuilder() { + return getStepsFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.FunnelStep.getDefaultInstance()); + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public com.google.analytics.data.v1alpha.FunnelStep.Builder addStepsBuilder(int index) { + return getStepsFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.FunnelStep.getDefaultInstance()); + } + /** + * + * + *
+     * The sequential steps of this funnel.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + public java.util.List + getStepsBuilderList() { + return getStepsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelStep, + com.google.analytics.data.v1alpha.FunnelStep.Builder, + com.google.analytics.data.v1alpha.FunnelStepOrBuilder> + getStepsFieldBuilder() { + if (stepsBuilder_ == null) { + stepsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelStep, + com.google.analytics.data.v1alpha.FunnelStep.Builder, + com.google.analytics.data.v1alpha.FunnelStepOrBuilder>( + steps_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + steps_ = null; + } + return stepsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.Funnel) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Funnel) + private static final com.google.analytics.data.v1alpha.Funnel DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Funnel(); + } + + public static com.google.analytics.data.v1alpha.Funnel getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Funnel parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Funnel(input, extensionRegistry); + } + }; + + public static 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.v1alpha.Funnel getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdown.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdown.java new file mode 100644 index 00000000..8c6651c5 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdown.java @@ -0,0 +1,908 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Breakdowns add a dimension to the funnel table sub report response.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelBreakdown} + */ +public final class FunnelBreakdown extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelBreakdown) + FunnelBreakdownOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelBreakdown.newBuilder() to construct. + private FunnelBreakdown(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FunnelBreakdown() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelBreakdown(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelBreakdown( + 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.v1alpha.Dimension.Builder subBuilder = null; + if (breakdownDimension_ != null) { + subBuilder = breakdownDimension_.toBuilder(); + } + breakdownDimension_ = + input.readMessage( + com.google.analytics.data.v1alpha.Dimension.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(breakdownDimension_); + breakdownDimension_ = subBuilder.buildPartial(); + } + + break; + } + case 16: + { + bitField0_ |= 0x00000001; + limit_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelBreakdown_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelBreakdown.class, + com.google.analytics.data.v1alpha.FunnelBreakdown.Builder.class); + } + + private int bitField0_; + public static final int BREAKDOWN_DIMENSION_FIELD_NUMBER = 1; + private com.google.analytics.data.v1alpha.Dimension breakdownDimension_; + /** + * + * + *
+   * The dimension column added to the funnel table sub report response. The
+   * breakdown dimension breaks down each funnel step. A valid
+   * `breakdownDimension` is required if `funnelBreakdown` is specified.
+   * 
+ * + * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; + * + * @return Whether the breakdownDimension field is set. + */ + @java.lang.Override + public boolean hasBreakdownDimension() { + return breakdownDimension_ != null; + } + /** + * + * + *
+   * The dimension column added to the funnel table sub report response. The
+   * breakdown dimension breaks down each funnel step. A valid
+   * `breakdownDimension` is required if `funnelBreakdown` is specified.
+   * 
+ * + * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; + * + * @return The breakdownDimension. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Dimension getBreakdownDimension() { + return breakdownDimension_ == null + ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance() + : breakdownDimension_; + } + /** + * + * + *
+   * The dimension column added to the funnel table sub report response. The
+   * breakdown dimension breaks down each funnel step. A valid
+   * `breakdownDimension` is required if `funnelBreakdown` is specified.
+   * 
+ * + * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionOrBuilder getBreakdownDimensionOrBuilder() { + return getBreakdownDimension(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private long limit_; + /** + * + * + *
+   * The maximum number of distinct values of the breakdown dimension to return
+   * in the response. A `limit` of `5` is used if limit is not specified. Limit
+   * must exceed zero and cannot exceed 15.
+   * 
+ * + * optional int64 limit = 2; + * + * @return Whether the limit field is set. + */ + @java.lang.Override + public boolean hasLimit() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The maximum number of distinct values of the breakdown dimension to return
+   * in the response. A `limit` of `5` is used if limit is not specified. Limit
+   * must exceed zero and cannot exceed 15.
+   * 
+ * + * optional int64 limit = 2; + * + * @return The limit. + */ + @java.lang.Override + public long getLimit() { + return limit_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (breakdownDimension_ != null) { + output.writeMessage(1, getBreakdownDimension()); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(2, limit_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (breakdownDimension_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBreakdownDimension()); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, limit_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.FunnelBreakdown)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.FunnelBreakdown other = + (com.google.analytics.data.v1alpha.FunnelBreakdown) obj; + + if (hasBreakdownDimension() != other.hasBreakdownDimension()) return false; + if (hasBreakdownDimension()) { + if (!getBreakdownDimension().equals(other.getBreakdownDimension())) return false; + } + if (hasLimit() != other.hasLimit()) return false; + if (hasLimit()) { + if (getLimit() != other.getLimit()) return false; + } + if (!unknownFields.equals(other.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 (hasBreakdownDimension()) { + hash = (37 * hash) + BREAKDOWN_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getBreakdownDimension().hashCode(); + } + if (hasLimit()) { + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.FunnelBreakdown parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelBreakdown 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.v1alpha.FunnelBreakdown parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelBreakdown parseFrom( + 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.v1alpha.FunnelBreakdown parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelBreakdown parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.FunnelBreakdown parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelBreakdown parseFrom( + java.io.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.v1alpha.FunnelBreakdown parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelBreakdown parseDelimitedFrom( + java.io.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.v1alpha.FunnelBreakdown parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelBreakdown parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.FunnelBreakdown prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Breakdowns add a dimension to the funnel table sub report response.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelBreakdown} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelBreakdown) + com.google.analytics.data.v1alpha.FunnelBreakdownOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelBreakdown_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelBreakdown.class, + com.google.analytics.data.v1alpha.FunnelBreakdown.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.FunnelBreakdown.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 (breakdownDimensionBuilder_ == null) { + breakdownDimension_ = null; + } else { + breakdownDimension_ = null; + breakdownDimensionBuilder_ = null; + } + limit_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelBreakdown getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.FunnelBreakdown.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelBreakdown build() { + com.google.analytics.data.v1alpha.FunnelBreakdown result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelBreakdown buildPartial() { + com.google.analytics.data.v1alpha.FunnelBreakdown result = + new com.google.analytics.data.v1alpha.FunnelBreakdown(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (breakdownDimensionBuilder_ == null) { + result.breakdownDimension_ = breakdownDimension_; + } else { + result.breakdownDimension_ = breakdownDimensionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000001) != 0)) { + result.limit_ = limit_; + to_bitField0_ |= 0x00000001; + } + 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.v1alpha.FunnelBreakdown) { + return mergeFrom((com.google.analytics.data.v1alpha.FunnelBreakdown) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelBreakdown other) { + if (other == com.google.analytics.data.v1alpha.FunnelBreakdown.getDefaultInstance()) + return this; + if (other.hasBreakdownDimension()) { + mergeBreakdownDimension(other.getBreakdownDimension()); + } + if (other.hasLimit()) { + setLimit(other.getLimit()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.FunnelBreakdown parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.FunnelBreakdown) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.analytics.data.v1alpha.Dimension breakdownDimension_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.Dimension, + com.google.analytics.data.v1alpha.Dimension.Builder, + com.google.analytics.data.v1alpha.DimensionOrBuilder> + breakdownDimensionBuilder_; + /** + * + * + *
+     * The dimension column added to the funnel table sub report response. The
+     * breakdown dimension breaks down each funnel step. A valid
+     * `breakdownDimension` is required if `funnelBreakdown` is specified.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; + * + * @return Whether the breakdownDimension field is set. + */ + public boolean hasBreakdownDimension() { + return breakdownDimensionBuilder_ != null || breakdownDimension_ != null; + } + /** + * + * + *
+     * The dimension column added to the funnel table sub report response. The
+     * breakdown dimension breaks down each funnel step. A valid
+     * `breakdownDimension` is required if `funnelBreakdown` is specified.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; + * + * @return The breakdownDimension. + */ + public com.google.analytics.data.v1alpha.Dimension getBreakdownDimension() { + if (breakdownDimensionBuilder_ == null) { + return breakdownDimension_ == null + ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance() + : breakdownDimension_; + } else { + return breakdownDimensionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The dimension column added to the funnel table sub report response. The
+     * breakdown dimension breaks down each funnel step. A valid
+     * `breakdownDimension` is required if `funnelBreakdown` is specified.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; + */ + public Builder setBreakdownDimension(com.google.analytics.data.v1alpha.Dimension value) { + if (breakdownDimensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + breakdownDimension_ = value; + onChanged(); + } else { + breakdownDimensionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The dimension column added to the funnel table sub report response. The
+     * breakdown dimension breaks down each funnel step. A valid
+     * `breakdownDimension` is required if `funnelBreakdown` is specified.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; + */ + public Builder setBreakdownDimension( + com.google.analytics.data.v1alpha.Dimension.Builder builderForValue) { + if (breakdownDimensionBuilder_ == null) { + breakdownDimension_ = builderForValue.build(); + onChanged(); + } else { + breakdownDimensionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The dimension column added to the funnel table sub report response. The
+     * breakdown dimension breaks down each funnel step. A valid
+     * `breakdownDimension` is required if `funnelBreakdown` is specified.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; + */ + public Builder mergeBreakdownDimension(com.google.analytics.data.v1alpha.Dimension value) { + if (breakdownDimensionBuilder_ == null) { + if (breakdownDimension_ != null) { + breakdownDimension_ = + com.google.analytics.data.v1alpha.Dimension.newBuilder(breakdownDimension_) + .mergeFrom(value) + .buildPartial(); + } else { + breakdownDimension_ = value; + } + onChanged(); + } else { + breakdownDimensionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The dimension column added to the funnel table sub report response. The
+     * breakdown dimension breaks down each funnel step. A valid
+     * `breakdownDimension` is required if `funnelBreakdown` is specified.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; + */ + public Builder clearBreakdownDimension() { + if (breakdownDimensionBuilder_ == null) { + breakdownDimension_ = null; + onChanged(); + } else { + breakdownDimension_ = null; + breakdownDimensionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The dimension column added to the funnel table sub report response. The
+     * breakdown dimension breaks down each funnel step. A valid
+     * `breakdownDimension` is required if `funnelBreakdown` is specified.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; + */ + public com.google.analytics.data.v1alpha.Dimension.Builder getBreakdownDimensionBuilder() { + + onChanged(); + return getBreakdownDimensionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The dimension column added to the funnel table sub report response. The
+     * breakdown dimension breaks down each funnel step. A valid
+     * `breakdownDimension` is required if `funnelBreakdown` is specified.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; + */ + public com.google.analytics.data.v1alpha.DimensionOrBuilder getBreakdownDimensionOrBuilder() { + if (breakdownDimensionBuilder_ != null) { + return breakdownDimensionBuilder_.getMessageOrBuilder(); + } else { + return breakdownDimension_ == null + ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance() + : breakdownDimension_; + } + } + /** + * + * + *
+     * The dimension column added to the funnel table sub report response. The
+     * breakdown dimension breaks down each funnel step. A valid
+     * `breakdownDimension` is required if `funnelBreakdown` is specified.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.Dimension, + com.google.analytics.data.v1alpha.Dimension.Builder, + com.google.analytics.data.v1alpha.DimensionOrBuilder> + getBreakdownDimensionFieldBuilder() { + if (breakdownDimensionBuilder_ == null) { + breakdownDimensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.Dimension, + com.google.analytics.data.v1alpha.Dimension.Builder, + com.google.analytics.data.v1alpha.DimensionOrBuilder>( + getBreakdownDimension(), getParentForChildren(), isClean()); + breakdownDimension_ = null; + } + return breakdownDimensionBuilder_; + } + + private long limit_; + /** + * + * + *
+     * The maximum number of distinct values of the breakdown dimension to return
+     * in the response. A `limit` of `5` is used if limit is not specified. Limit
+     * must exceed zero and cannot exceed 15.
+     * 
+ * + * optional int64 limit = 2; + * + * @return Whether the limit field is set. + */ + @java.lang.Override + public boolean hasLimit() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The maximum number of distinct values of the breakdown dimension to return
+     * in the response. A `limit` of `5` is used if limit is not specified. Limit
+     * must exceed zero and cannot exceed 15.
+     * 
+ * + * optional int64 limit = 2; + * + * @return The limit. + */ + @java.lang.Override + public long getLimit() { + return limit_; + } + /** + * + * + *
+     * The maximum number of distinct values of the breakdown dimension to return
+     * in the response. A `limit` of `5` is used if limit is not specified. Limit
+     * must exceed zero and cannot exceed 15.
+     * 
+ * + * optional int64 limit = 2; + * + * @param value The limit to set. + * @return This builder for chaining. + */ + public Builder setLimit(long value) { + bitField0_ |= 0x00000001; + limit_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of distinct values of the breakdown dimension to return
+     * in the response. A `limit` of `5` is used if limit is not specified. Limit
+     * must exceed zero and cannot exceed 15.
+     * 
+ * + * optional int64 limit = 2; + * + * @return This builder for chaining. + */ + public Builder clearLimit() { + bitField0_ = (bitField0_ & ~0x00000001); + limit_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.FunnelBreakdown) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelBreakdown) + private static final com.google.analytics.data.v1alpha.FunnelBreakdown DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelBreakdown(); + } + + public static com.google.analytics.data.v1alpha.FunnelBreakdown getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunnelBreakdown parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FunnelBreakdown(input, extensionRegistry); + } + }; + + public static 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.v1alpha.FunnelBreakdown getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdownOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdownOrBuilder.java new file mode 100644 index 00000000..23f2d19e --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdownOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface FunnelBreakdownOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelBreakdown) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The dimension column added to the funnel table sub report response. The
+   * breakdown dimension breaks down each funnel step. A valid
+   * `breakdownDimension` is required if `funnelBreakdown` is specified.
+   * 
+ * + * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; + * + * @return Whether the breakdownDimension field is set. + */ + boolean hasBreakdownDimension(); + /** + * + * + *
+   * The dimension column added to the funnel table sub report response. The
+   * breakdown dimension breaks down each funnel step. A valid
+   * `breakdownDimension` is required if `funnelBreakdown` is specified.
+   * 
+ * + * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; + * + * @return The breakdownDimension. + */ + com.google.analytics.data.v1alpha.Dimension getBreakdownDimension(); + /** + * + * + *
+   * The dimension column added to the funnel table sub report response. The
+   * breakdown dimension breaks down each funnel step. A valid
+   * `breakdownDimension` is required if `funnelBreakdown` is specified.
+   * 
+ * + * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; + */ + com.google.analytics.data.v1alpha.DimensionOrBuilder getBreakdownDimensionOrBuilder(); + + /** + * + * + *
+   * The maximum number of distinct values of the breakdown dimension to return
+   * in the response. A `limit` of `5` is used if limit is not specified. Limit
+   * must exceed zero and cannot exceed 15.
+   * 
+ * + * optional int64 limit = 2; + * + * @return Whether the limit field is set. + */ + boolean hasLimit(); + /** + * + * + *
+   * The maximum number of distinct values of the breakdown dimension to return
+   * in the response. A `limit` of `5` is used if limit is not specified. Limit
+   * must exceed zero and cannot exceed 15.
+   * 
+ * + * optional int64 limit = 2; + * + * @return The limit. + */ + long getLimit(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilter.java new file mode 100644 index 00000000..f7453ba0 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilter.java @@ -0,0 +1,1062 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Creates a filter that matches events of a single event name. If a parameter
+ * filter expression is specified, only the subset of events that match both the
+ * single event name and the parameter filter expressions match this event
+ * filter.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelEventFilter} + */ +public final class FunnelEventFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelEventFilter) + FunnelEventFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelEventFilter.newBuilder() to construct. + private FunnelEventFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FunnelEventFilter() { + eventName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelEventFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelEventFilter( + 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; + eventName_ = s; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder subBuilder = + null; + if (((bitField0_ & 0x00000002) != 0)) { + subBuilder = funnelParameterFilterExpression_.toBuilder(); + } + funnelParameterFilterExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(funnelParameterFilterExpression_); + funnelParameterFilterExpression_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelEventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelEventFilter.class, + com.google.analytics.data.v1alpha.FunnelEventFilter.Builder.class); + } + + private int bitField0_; + public static final int EVENT_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object eventName_; + /** + * + * + *
+   * This filter matches events of this single event name. Event name is
+   * required.
+   * 
+ * + * optional string event_name = 1; + * + * @return Whether the eventName field is set. + */ + @java.lang.Override + public boolean hasEventName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * This filter matches events of this single event name. Event name is
+   * required.
+   * 
+ * + * optional string event_name = 1; + * + * @return The eventName. + */ + @java.lang.Override + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } + } + /** + * + * + *
+   * This filter matches events of this single event name. Event name is
+   * required.
+   * 
+ * + * optional string event_name = 1; + * + * @return The bytes for eventName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FUNNEL_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER = 2; + private com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + funnelParameterFilterExpression_; + /** + * + * + *
+   * If specified, this filter matches events that match both the single event
+   * name and the parameter filter expressions.
+   * Inside the parameter filter expression, only parameter filters are
+   * available.
+   * 
+ * + * + * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; + * + * + * @return Whether the funnelParameterFilterExpression field is set. + */ + @java.lang.Override + public boolean hasFunnelParameterFilterExpression() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * If specified, this filter matches events that match both the single event
+   * name and the parameter filter expressions.
+   * Inside the parameter filter expression, only parameter filters are
+   * available.
+   * 
+ * + * + * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; + * + * + * @return The funnelParameterFilterExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + getFunnelParameterFilterExpression() { + return funnelParameterFilterExpression_ == null + ? com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance() + : funnelParameterFilterExpression_; + } + /** + * + * + *
+   * If specified, this filter matches events that match both the single event
+   * name and the parameter filter expressions.
+   * Inside the parameter filter expression, only parameter filters are
+   * available.
+   * 
+ * + * + * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder + getFunnelParameterFilterExpressionOrBuilder() { + return funnelParameterFilterExpression_ == null + ? com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance() + : funnelParameterFilterExpression_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getFunnelParameterFilterExpression()); + } + 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, eventName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getFunnelParameterFilterExpression()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.FunnelEventFilter)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.FunnelEventFilter other = + (com.google.analytics.data.v1alpha.FunnelEventFilter) obj; + + if (hasEventName() != other.hasEventName()) return false; + if (hasEventName()) { + if (!getEventName().equals(other.getEventName())) return false; + } + if (hasFunnelParameterFilterExpression() != other.hasFunnelParameterFilterExpression()) + return false; + if (hasFunnelParameterFilterExpression()) { + if (!getFunnelParameterFilterExpression().equals(other.getFunnelParameterFilterExpression())) + return false; + } + if (!unknownFields.equals(other.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 (hasEventName()) { + hash = (37 * hash) + EVENT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEventName().hashCode(); + } + if (hasFunnelParameterFilterExpression()) { + hash = (37 * hash) + FUNNEL_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getFunnelParameterFilterExpression().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.FunnelEventFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelEventFilter 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.v1alpha.FunnelEventFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelEventFilter parseFrom( + 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.v1alpha.FunnelEventFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelEventFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.FunnelEventFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelEventFilter parseFrom( + java.io.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.v1alpha.FunnelEventFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelEventFilter parseDelimitedFrom( + java.io.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.v1alpha.FunnelEventFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelEventFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.FunnelEventFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Creates a filter that matches events of a single event name. If a parameter
+   * filter expression is specified, only the subset of events that match both the
+   * single event name and the parameter filter expressions match this event
+   * filter.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelEventFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelEventFilter) + com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelEventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelEventFilter.class, + com.google.analytics.data.v1alpha.FunnelEventFilter.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.FunnelEventFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getFunnelParameterFilterExpressionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + eventName_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (funnelParameterFilterExpressionBuilder_ == null) { + funnelParameterFilterExpression_ = null; + } else { + funnelParameterFilterExpressionBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelEventFilter getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelEventFilter build() { + com.google.analytics.data.v1alpha.FunnelEventFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelEventFilter buildPartial() { + com.google.analytics.data.v1alpha.FunnelEventFilter result = + new com.google.analytics.data.v1alpha.FunnelEventFilter(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.eventName_ = eventName_; + if (((from_bitField0_ & 0x00000002) != 0)) { + if (funnelParameterFilterExpressionBuilder_ == null) { + result.funnelParameterFilterExpression_ = funnelParameterFilterExpression_; + } else { + result.funnelParameterFilterExpression_ = funnelParameterFilterExpressionBuilder_.build(); + } + to_bitField0_ |= 0x00000002; + } + 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.v1alpha.FunnelEventFilter) { + return mergeFrom((com.google.analytics.data.v1alpha.FunnelEventFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelEventFilter other) { + if (other == com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance()) + return this; + if (other.hasEventName()) { + bitField0_ |= 0x00000001; + eventName_ = other.eventName_; + onChanged(); + } + if (other.hasFunnelParameterFilterExpression()) { + mergeFunnelParameterFilterExpression(other.getFunnelParameterFilterExpression()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.FunnelEventFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.FunnelEventFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object eventName_ = ""; + /** + * + * + *
+     * This filter matches events of this single event name. Event name is
+     * required.
+     * 
+ * + * optional string event_name = 1; + * + * @return Whether the eventName field is set. + */ + public boolean hasEventName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * This filter matches events of this single event name. Event name is
+     * required.
+     * 
+ * + * optional string event_name = 1; + * + * @return The eventName. + */ + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This filter matches events of this single event name. Event name is
+     * required.
+     * 
+ * + * optional string event_name = 1; + * + * @return The bytes for eventName. + */ + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This filter matches events of this single event name. Event name is
+     * required.
+     * 
+ * + * optional string event_name = 1; + * + * @param value The eventName to set. + * @return This builder for chaining. + */ + public Builder setEventName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + eventName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This filter matches events of this single event name. Event name is
+     * required.
+     * 
+ * + * optional string event_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearEventName() { + bitField0_ = (bitField0_ & ~0x00000001); + eventName_ = getDefaultInstance().getEventName(); + onChanged(); + return this; + } + /** + * + * + *
+     * This filter matches events of this single event name. Event name is
+     * required.
+     * 
+ * + * optional string event_name = 1; + * + * @param value The bytes for eventName to set. + * @return This builder for chaining. + */ + public Builder setEventNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bitField0_ |= 0x00000001; + eventName_ = value; + onChanged(); + return this; + } + + private com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + funnelParameterFilterExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> + funnelParameterFilterExpressionBuilder_; + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; + * + * + * @return Whether the funnelParameterFilterExpression field is set. + */ + public boolean hasFunnelParameterFilterExpression() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; + * + * + * @return The funnelParameterFilterExpression. + */ + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + getFunnelParameterFilterExpression() { + if (funnelParameterFilterExpressionBuilder_ == null) { + return funnelParameterFilterExpression_ == null + ? com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance() + : funnelParameterFilterExpression_; + } else { + return funnelParameterFilterExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; + * + */ + public Builder setFunnelParameterFilterExpression( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) { + if (funnelParameterFilterExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + funnelParameterFilterExpression_ = value; + onChanged(); + } else { + funnelParameterFilterExpressionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; + * + */ + public Builder setFunnelParameterFilterExpression( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder builderForValue) { + if (funnelParameterFilterExpressionBuilder_ == null) { + funnelParameterFilterExpression_ = builderForValue.build(); + onChanged(); + } else { + funnelParameterFilterExpressionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; + * + */ + public Builder mergeFunnelParameterFilterExpression( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) { + if (funnelParameterFilterExpressionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && funnelParameterFilterExpression_ != null + && funnelParameterFilterExpression_ + != com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + .getDefaultInstance()) { + funnelParameterFilterExpression_ = + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.newBuilder( + funnelParameterFilterExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + funnelParameterFilterExpression_ = value; + } + onChanged(); + } else { + funnelParameterFilterExpressionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; + * + */ + public Builder clearFunnelParameterFilterExpression() { + if (funnelParameterFilterExpressionBuilder_ == null) { + funnelParameterFilterExpression_ = null; + onChanged(); + } else { + funnelParameterFilterExpressionBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; + * + */ + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder + getFunnelParameterFilterExpressionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getFunnelParameterFilterExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; + * + */ + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder + getFunnelParameterFilterExpressionOrBuilder() { + if (funnelParameterFilterExpressionBuilder_ != null) { + return funnelParameterFilterExpressionBuilder_.getMessageOrBuilder(); + } else { + return funnelParameterFilterExpression_ == null + ? com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance() + : funnelParameterFilterExpression_; + } + } + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> + getFunnelParameterFilterExpressionFieldBuilder() { + if (funnelParameterFilterExpressionBuilder_ == null) { + funnelParameterFilterExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder>( + getFunnelParameterFilterExpression(), getParentForChildren(), isClean()); + funnelParameterFilterExpression_ = null; + } + return funnelParameterFilterExpressionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.FunnelEventFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelEventFilter) + private static final com.google.analytics.data.v1alpha.FunnelEventFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelEventFilter(); + } + + public static com.google.analytics.data.v1alpha.FunnelEventFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunnelEventFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FunnelEventFilter(input, extensionRegistry); + } + }; + + public static 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.v1alpha.FunnelEventFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilterOrBuilder.java new file mode 100644 index 00000000..962cfb0f --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilterOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface FunnelEventFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelEventFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * This filter matches events of this single event name. Event name is
+   * required.
+   * 
+ * + * optional string event_name = 1; + * + * @return Whether the eventName field is set. + */ + boolean hasEventName(); + /** + * + * + *
+   * This filter matches events of this single event name. Event name is
+   * required.
+   * 
+ * + * optional string event_name = 1; + * + * @return The eventName. + */ + java.lang.String getEventName(); + /** + * + * + *
+   * This filter matches events of this single event name. Event name is
+   * required.
+   * 
+ * + * optional string event_name = 1; + * + * @return The bytes for eventName. + */ + com.google.protobuf.ByteString getEventNameBytes(); + + /** + * + * + *
+   * If specified, this filter matches events that match both the single event
+   * name and the parameter filter expressions.
+   * Inside the parameter filter expression, only parameter filters are
+   * available.
+   * 
+ * + * + * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; + * + * + * @return Whether the funnelParameterFilterExpression field is set. + */ + boolean hasFunnelParameterFilterExpression(); + /** + * + * + *
+   * If specified, this filter matches events that match both the single event
+   * name and the parameter filter expressions.
+   * Inside the parameter filter expression, only parameter filters are
+   * available.
+   * 
+ * + * + * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; + * + * + * @return The funnelParameterFilterExpression. + */ + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + getFunnelParameterFilterExpression(); + /** + * + * + *
+   * If specified, this filter matches events that match both the single event
+   * name and the parameter filter expressions.
+   * Inside the parameter filter expression, only parameter filters are
+   * available.
+   * 
+ * + * + * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; + * + */ + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder + getFunnelParameterFilterExpressionOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilter.java new file mode 100644 index 00000000..a5a228dd --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilter.java @@ -0,0 +1,1941 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * An expression to filter dimension or metric values.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilter} + */ +public final class FunnelFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelFilter) + FunnelFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelFilter.newBuilder() to construct. + private FunnelFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FunnelFilter() { + fieldName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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 34: + { + com.google.analytics.data.v1alpha.StringFilter.Builder subBuilder = null; + if (oneFilterCase_ == 4) { + subBuilder = + ((com.google.analytics.data.v1alpha.StringFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.StringFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 4; + break; + } + case 42: + { + com.google.analytics.data.v1alpha.InListFilter.Builder subBuilder = null; + if (oneFilterCase_ == 5) { + subBuilder = + ((com.google.analytics.data.v1alpha.InListFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.InListFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 5; + break; + } + case 50: + { + com.google.analytics.data.v1alpha.NumericFilter.Builder subBuilder = null; + if (oneFilterCase_ == 6) { + subBuilder = + ((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.NumericFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 6; + break; + } + case 58: + { + com.google.analytics.data.v1alpha.BetweenFilter.Builder subBuilder = null; + if (oneFilterCase_ == 7) { + subBuilder = + ((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.BetweenFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 7; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelFilter.class, + com.google.analytics.data.v1alpha.FunnelFilter.Builder.class); + } + + 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(4), + IN_LIST_FILTER(5), + NUMERIC_FILTER(6), + BETWEEN_FILTER(7), + 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 4: + return STRING_FILTER; + case 5: + return IN_LIST_FILTER; + case 6: + return NUMERIC_FILTER; + case 7: + 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.
+   * 
+ * + * 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.
+   * 
+ * + * 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 = 4; + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + + public static final int IN_LIST_FILTER_FIELD_NUMBER = 5; + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + + public static final int NUMERIC_FILTER_FIELD_NUMBER = 6; + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 6; + } + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + + public static final int BETWEEN_FILTER_FIELD_NUMBER = 7; + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 7; + } + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { + if (oneFilterCase_ == 7) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { + if (oneFilterCase_ == 7) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.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_ == 4) { + output.writeMessage(4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + } + if (oneFilterCase_ == 5) { + output.writeMessage(5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + } + if (oneFilterCase_ == 6) { + output.writeMessage(6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + } + if (oneFilterCase_ == 7) { + output.writeMessage(7, (com.google.analytics.data.v1alpha.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_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + } + if (oneFilterCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + } + if (oneFilterCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + } + if (oneFilterCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.analytics.data.v1alpha.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.v1alpha.FunnelFilter)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.FunnelFilter other = + (com.google.analytics.data.v1alpha.FunnelFilter) obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; + switch (oneFilterCase_) { + case 4: + if (!getStringFilter().equals(other.getStringFilter())) return false; + break; + case 5: + if (!getInListFilter().equals(other.getInListFilter())) return false; + break; + case 6: + if (!getNumericFilter().equals(other.getNumericFilter())) return false; + break; + case 7: + 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 4: + hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getStringFilter().hashCode(); + break; + case 5: + hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getInListFilter().hashCode(); + break; + case 6: + hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getNumericFilter().hashCode(); + break; + case 7: + 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.v1alpha.FunnelFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelFilter 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.v1alpha.FunnelFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelFilter parseFrom( + 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.v1alpha.FunnelFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.FunnelFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelFilter parseFrom( + java.io.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.v1alpha.FunnelFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelFilter parseDelimitedFrom( + java.io.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.v1alpha.FunnelFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.FunnelFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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.v1alpha.FunnelFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelFilter) + com.google.analytics.data.v1alpha.FunnelFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelFilter.class, + com.google.analytics.data.v1alpha.FunnelFilter.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.FunnelFilter.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilter getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilter build() { + com.google.analytics.data.v1alpha.FunnelFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilter buildPartial() { + com.google.analytics.data.v1alpha.FunnelFilter result = + new com.google.analytics.data.v1alpha.FunnelFilter(this); + result.fieldName_ = fieldName_; + if (oneFilterCase_ == 4) { + if (stringFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = stringFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 5) { + if (inListFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = inListFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 6) { + if (numericFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = numericFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 7) { + 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.v1alpha.FunnelFilter) { + return mergeFrom((com.google.analytics.data.v1alpha.FunnelFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelFilter other) { + if (other == com.google.analytics.data.v1alpha.FunnelFilter.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.v1alpha.FunnelFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.FunnelFilter) 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * string field_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + + fieldName_ = getDefaultInstance().getFieldName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * 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.v1alpha.StringFilter, + com.google.analytics.data.v1alpha.StringFilter.Builder, + com.google.analytics.data.v1alpha.StringFilterOrBuilder> + stringFilterBuilder_; + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 4) { + return stringFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public Builder setStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + stringFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public Builder setStringFilter( + com.google.analytics.data.v1alpha.StringFilter.Builder builderForValue) { + if (stringFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + stringFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public Builder mergeStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 4 + && oneFilter_ != com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.StringFilter.newBuilder( + (com.google.analytics.data.v1alpha.StringFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 4) { + stringFilterBuilder_.mergeFrom(value); + } else { + stringFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public Builder clearStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + stringFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public com.google.analytics.data.v1alpha.StringFilter.Builder getStringFilterBuilder() { + return getStringFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { + if ((oneFilterCase_ == 4) && (stringFilterBuilder_ != null)) { + return stringFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.StringFilter, + com.google.analytics.data.v1alpha.StringFilter.Builder, + com.google.analytics.data.v1alpha.StringFilterOrBuilder> + getStringFilterFieldBuilder() { + if (stringFilterBuilder_ == null) { + if (!(oneFilterCase_ == 4)) { + oneFilter_ = com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + stringFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.StringFilter, + com.google.analytics.data.v1alpha.StringFilter.Builder, + com.google.analytics.data.v1alpha.StringFilterOrBuilder>( + (com.google.analytics.data.v1alpha.StringFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 4; + onChanged(); + ; + return stringFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.InListFilter, + com.google.analytics.data.v1alpha.InListFilter.Builder, + com.google.analytics.data.v1alpha.InListFilterOrBuilder> + inListFilterBuilder_; + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 5) { + return inListFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public Builder setInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + inListFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public Builder setInListFilter( + com.google.analytics.data.v1alpha.InListFilter.Builder builderForValue) { + if (inListFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + inListFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public Builder mergeInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 5 + && oneFilter_ != com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.InListFilter.newBuilder( + (com.google.analytics.data.v1alpha.InListFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 5) { + inListFilterBuilder_.mergeFrom(value); + } else { + inListFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public Builder clearInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + inListFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public com.google.analytics.data.v1alpha.InListFilter.Builder getInListFilterBuilder() { + return getInListFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { + if ((oneFilterCase_ == 5) && (inListFilterBuilder_ != null)) { + return inListFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.InListFilter, + com.google.analytics.data.v1alpha.InListFilter.Builder, + com.google.analytics.data.v1alpha.InListFilterOrBuilder> + getInListFilterFieldBuilder() { + if (inListFilterBuilder_ == null) { + if (!(oneFilterCase_ == 5)) { + oneFilter_ = com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + inListFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.InListFilter, + com.google.analytics.data.v1alpha.InListFilter.Builder, + com.google.analytics.data.v1alpha.InListFilterOrBuilder>( + (com.google.analytics.data.v1alpha.InListFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 5; + onChanged(); + ; + return inListFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericFilter, + com.google.analytics.data.v1alpha.NumericFilter.Builder, + com.google.analytics.data.v1alpha.NumericFilterOrBuilder> + numericFilterBuilder_; + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 6; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 6) { + return numericFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public Builder setNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { + if (numericFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + numericFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 6; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public Builder setNumericFilter( + com.google.analytics.data.v1alpha.NumericFilter.Builder builderForValue) { + if (numericFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + numericFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 6; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public Builder mergeNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 6 + && oneFilter_ != com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.NumericFilter.newBuilder( + (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 6) { + numericFilterBuilder_.mergeFrom(value); + } else { + numericFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 6; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public Builder clearNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 6) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 6) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + numericFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public com.google.analytics.data.v1alpha.NumericFilter.Builder getNumericFilterBuilder() { + return getNumericFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { + if ((oneFilterCase_ == 6) && (numericFilterBuilder_ != null)) { + return numericFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericFilter, + com.google.analytics.data.v1alpha.NumericFilter.Builder, + com.google.analytics.data.v1alpha.NumericFilterOrBuilder> + getNumericFilterFieldBuilder() { + if (numericFilterBuilder_ == null) { + if (!(oneFilterCase_ == 6)) { + oneFilter_ = com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + numericFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericFilter, + com.google.analytics.data.v1alpha.NumericFilter.Builder, + com.google.analytics.data.v1alpha.NumericFilterOrBuilder>( + (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 6; + onChanged(); + ; + return numericFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.BetweenFilter, + com.google.analytics.data.v1alpha.BetweenFilter.Builder, + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> + betweenFilterBuilder_; + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 7; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 7) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 7) { + return betweenFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public Builder setBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + betweenFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 7; + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public Builder setBetweenFilter( + com.google.analytics.data.v1alpha.BetweenFilter.Builder builderForValue) { + if (betweenFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + betweenFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 7; + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public Builder mergeBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 7 + && oneFilter_ != com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.BetweenFilter.newBuilder( + (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 7) { + betweenFilterBuilder_.mergeFrom(value); + } else { + betweenFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 7; + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public Builder clearBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 7) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 7) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + betweenFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public com.google.analytics.data.v1alpha.BetweenFilter.Builder getBetweenFilterBuilder() { + return getBetweenFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { + if ((oneFilterCase_ == 7) && (betweenFilterBuilder_ != null)) { + return betweenFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 7) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.BetweenFilter, + com.google.analytics.data.v1alpha.BetweenFilter.Builder, + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> + getBetweenFilterFieldBuilder() { + if (betweenFilterBuilder_ == null) { + if (!(oneFilterCase_ == 7)) { + oneFilter_ = com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + betweenFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.BetweenFilter, + com.google.analytics.data.v1alpha.BetweenFilter.Builder, + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>( + (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 7; + 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.v1alpha.FunnelFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelFilter) + private static final com.google.analytics.data.v1alpha.FunnelFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelFilter(); + } + + public static com.google.analytics.data.v1alpha.FunnelFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunnelFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FunnelFilter(input, extensionRegistry); + } + }; + + public static 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.v1alpha.FunnelFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpression.java new file mode 100644 index 00000000..db112542 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpression.java @@ -0,0 +1,2140 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Expresses combinations of funnel filters.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilterExpression} + */ +public final class FunnelFilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelFilterExpression) + FunnelFilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelFilterExpression.newBuilder() to construct. + private FunnelFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FunnelFilterExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelFilterExpression(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelFilterExpression( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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.v1alpha.FunnelFilterExpressionList.Builder subBuilder = + null; + if (exprCase_ == 1) { + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 1; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder subBuilder = + null; + if (exprCase_ == 2) { + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 2; + break; + } + case 26: + { + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder subBuilder = null; + if (exprCase_ == 3) { + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 3; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.FunnelFilter.Builder subBuilder = null; + if (exprCase_ == 4) { + subBuilder = ((com.google.analytics.data.v1alpha.FunnelFilter) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.FunnelFilter) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 4; + break; + } + case 42: + { + com.google.analytics.data.v1alpha.FunnelEventFilter.Builder subBuilder = null; + if (exprCase_ == 5) { + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelEventFilter) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelEventFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.FunnelEventFilter) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 5; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelFilterExpression.class, + com.google.analytics.data.v1alpha.FunnelFilterExpression.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), + FUNNEL_FILTER(4), + FUNNEL_EVENT_FILTER(5), + 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 FUNNEL_FILTER; + case 5: + return FUNNEL_EVENT_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 FunnelFilterExpression in `andGroup` have an AND relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+   * The FunnelFilterExpression in `andGroup` have an AND relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpressionList getAndGroup() { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * The FunnelFilterExpression in `andGroup` have an AND relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); + } + + public static final int OR_GROUP_FIELD_NUMBER = 2; + /** + * + * + *
+   * The FunnelFilterExpression in `orGroup` have an OR relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 2; + } + /** + * + * + *
+   * The FunnelFilterExpression in `orGroup` have an OR relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpressionList getOrGroup() { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * The FunnelFilterExpression in `orGroup` have an OR relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); + } + + public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; + /** + * + * + *
+   * The FunnelFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 3; + } + /** + * + * + *
+   * The FunnelFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpression getNotExpression() { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance(); + } + /** + * + * + *
+   * The FunnelFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance(); + } + + public static final int FUNNEL_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A primitive funnel filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * + * @return Whether the funnelFilter field is set. + */ + @java.lang.Override + public boolean hasFunnelFilter() { + return exprCase_ == 4; + } + /** + * + * + *
+   * A primitive funnel filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * + * @return The funnelFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilter getFunnelFilter() { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.FunnelFilter) expr_; + } + return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A primitive funnel filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterOrBuilder getFunnelFilterOrBuilder() { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.FunnelFilter) expr_; + } + return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance(); + } + + public static final int FUNNEL_EVENT_FILTER_FIELD_NUMBER = 5; + /** + * + * + *
+   * Creates a filter that matches events of a single event name. If a
+   * parameter filter expression is specified, only the subset of events that
+   * match both the single event name and the parameter filter expressions
+   * match this event filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; + * + * @return Whether the funnelEventFilter field is set. + */ + @java.lang.Override + public boolean hasFunnelEventFilter() { + return exprCase_ == 5; + } + /** + * + * + *
+   * Creates a filter that matches events of a single event name. If a
+   * parameter filter expression is specified, only the subset of events that
+   * match both the single event name and the parameter filter expressions
+   * match this event filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; + * + * @return The funnelEventFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelEventFilter getFunnelEventFilter() { + if (exprCase_ == 5) { + return (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_; + } + return com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Creates a filter that matches events of a single event name. If a
+   * parameter filter expression is specified, only the subset of events that
+   * match both the single event name and the parameter filter expressions
+   * match this event filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder + getFunnelEventFilterOrBuilder() { + if (exprCase_ == 5) { + return (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_; + } + return com.google.analytics.data.v1alpha.FunnelEventFilter.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.v1alpha.FunnelFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + output.writeMessage(2, (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_); + } + if (exprCase_ == 3) { + output.writeMessage(3, (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_); + } + if (exprCase_ == 4) { + output.writeMessage(4, (com.google.analytics.data.v1alpha.FunnelFilter) expr_); + } + if (exprCase_ == 5) { + output.writeMessage(5, (com.google.analytics.data.v1alpha.FunnelEventFilter) 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.v1alpha.FunnelFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_); + } + if (exprCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_); + } + if (exprCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.data.v1alpha.FunnelFilter) expr_); + } + if (exprCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.analytics.data.v1alpha.FunnelEventFilter) 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.v1alpha.FunnelFilterExpression)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.FunnelFilterExpression other = + (com.google.analytics.data.v1alpha.FunnelFilterExpression) 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 (!getFunnelFilter().equals(other.getFunnelFilter())) return false; + break; + case 5: + if (!getFunnelEventFilter().equals(other.getFunnelEventFilter())) 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) + FUNNEL_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFunnelFilter().hashCode(); + break; + case 5: + hash = (37 * hash) + FUNNEL_EVENT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFunnelEventFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpression 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.v1alpha.FunnelFilterExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpression parseFrom( + 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.v1alpha.FunnelFilterExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpression parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpression parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpression parseFrom( + java.io.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.v1alpha.FunnelFilterExpression parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpression parseDelimitedFrom( + java.io.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.v1alpha.FunnelFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.FunnelFilterExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Expresses combinations of funnel filters.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelFilterExpression) + com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelFilterExpression.class, + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.FunnelFilterExpression.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpression getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpression build() { + com.google.analytics.data.v1alpha.FunnelFilterExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpression buildPartial() { + com.google.analytics.data.v1alpha.FunnelFilterExpression result = + new com.google.analytics.data.v1alpha.FunnelFilterExpression(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 (funnelFilterBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = funnelFilterBuilder_.build(); + } + } + if (exprCase_ == 5) { + if (funnelEventFilterBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = funnelEventFilterBuilder_.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.v1alpha.FunnelFilterExpression) { + return mergeFrom((com.google.analytics.data.v1alpha.FunnelFilterExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelFilterExpression other) { + if (other == com.google.analytics.data.v1alpha.FunnelFilterExpression.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 FUNNEL_FILTER: + { + mergeFunnelFilter(other.getFunnelFilter()); + break; + } + case FUNNEL_EVENT_FILTER: + { + mergeFunnelEventFilter(other.getFunnelEventFilter()); + 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.v1alpha.FunnelFilterExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.FunnelFilterExpression) 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.v1alpha.FunnelFilterExpressionList, + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder> + andGroupBuilder_; + /** + * + * + *
+     * The FunnelFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+     * The FunnelFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpressionList getAndGroup() { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return andGroupBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FunnelFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; + */ + public Builder setAndGroup(com.google.analytics.data.v1alpha.FunnelFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + andGroupBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * The FunnelFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; + */ + public Builder setAndGroup( + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder builderForValue) { + if (andGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + andGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * The FunnelFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; + */ + public Builder mergeAndGroup( + com.google.analytics.data.v1alpha.FunnelFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1 + && expr_ + != com.google.analytics.data.v1alpha.FunnelFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.newBuilder( + (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + andGroupBuilder_.mergeFrom(value); + } else { + andGroupBuilder_.setMessage(value); + } + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * The FunnelFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList 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 FunnelFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; + */ + public com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder + getAndGroupBuilder() { + return getAndGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The FunnelFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { + return andGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FunnelFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelFilterExpressionList, + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder> + getAndGroupFieldBuilder() { + if (andGroupBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); + } + andGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelFilterExpressionList, + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder>( + (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged(); + ; + return andGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelFilterExpressionList, + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder> + orGroupBuilder_; + /** + * + * + *
+     * The FunnelFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 2; + } + /** + * + * + *
+     * The FunnelFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpressionList getOrGroup() { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return orGroupBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FunnelFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; + */ + public Builder setOrGroup(com.google.analytics.data.v1alpha.FunnelFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + orGroupBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * The FunnelFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; + */ + public Builder setOrGroup( + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder builderForValue) { + if (orGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + orGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * The FunnelFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; + */ + public Builder mergeOrGroup( + com.google.analytics.data.v1alpha.FunnelFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2 + && expr_ + != com.google.analytics.data.v1alpha.FunnelFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.newBuilder( + (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + orGroupBuilder_.mergeFrom(value); + } else { + orGroupBuilder_.setMessage(value); + } + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * The FunnelFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList 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 FunnelFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; + */ + public com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder + getOrGroupBuilder() { + return getOrGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The FunnelFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { + return orGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FunnelFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelFilterExpressionList, + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder> + getOrGroupFieldBuilder() { + if (orGroupBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); + } + orGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelFilterExpressionList, + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder>( + (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged(); + ; + return orGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelFilterExpression, + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder> + notExpressionBuilder_; + /** + * + * + *
+     * The FunnelFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 3; + } + /** + * + * + *
+     * The FunnelFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpression getNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance(); + } else { + if (exprCase_ == 3) { + return notExpressionBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FunnelFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.data.v1alpha.FunnelFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + notExpressionBuilder_.setMessage(value); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * The FunnelFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder builderForValue) { + if (notExpressionBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + notExpressionBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * The FunnelFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; + */ + public Builder mergeNotExpression( + com.google.analytics.data.v1alpha.FunnelFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3 + && expr_ + != com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.FunnelFilterExpression.newBuilder( + (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 3) { + notExpressionBuilder_.mergeFrom(value); + } else { + notExpressionBuilder_.setMessage(value); + } + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * The FunnelFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression 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 FunnelFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; + */ + public com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder + getNotExpressionBuilder() { + return getNotExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The FunnelFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { + return notExpressionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * The FunnelFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelFilterExpression, + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder> + getNotExpressionFieldBuilder() { + if (notExpressionBuilder_ == null) { + if (!(exprCase_ == 3)) { + expr_ = com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance(); + } + notExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelFilterExpression, + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder>( + (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 3; + onChanged(); + ; + return notExpressionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelFilter, + com.google.analytics.data.v1alpha.FunnelFilter.Builder, + com.google.analytics.data.v1alpha.FunnelFilterOrBuilder> + funnelFilterBuilder_; + /** + * + * + *
+     * A primitive funnel filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * + * @return Whether the funnelFilter field is set. + */ + @java.lang.Override + public boolean hasFunnelFilter() { + return exprCase_ == 4; + } + /** + * + * + *
+     * A primitive funnel filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * + * @return The funnelFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilter getFunnelFilter() { + if (funnelFilterBuilder_ == null) { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.FunnelFilter) expr_; + } + return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance(); + } else { + if (exprCase_ == 4) { + return funnelFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A primitive funnel filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + */ + public Builder setFunnelFilter(com.google.analytics.data.v1alpha.FunnelFilter value) { + if (funnelFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + funnelFilterBuilder_.setMessage(value); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive funnel filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + */ + public Builder setFunnelFilter( + com.google.analytics.data.v1alpha.FunnelFilter.Builder builderForValue) { + if (funnelFilterBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + funnelFilterBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive funnel filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + */ + public Builder mergeFunnelFilter(com.google.analytics.data.v1alpha.FunnelFilter value) { + if (funnelFilterBuilder_ == null) { + if (exprCase_ == 4 + && expr_ != com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.FunnelFilter.newBuilder( + (com.google.analytics.data.v1alpha.FunnelFilter) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 4) { + funnelFilterBuilder_.mergeFrom(value); + } else { + funnelFilterBuilder_.setMessage(value); + } + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive funnel filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + */ + public Builder clearFunnelFilter() { + if (funnelFilterBuilder_ == null) { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + } + funnelFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A primitive funnel filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + */ + public com.google.analytics.data.v1alpha.FunnelFilter.Builder getFunnelFilterBuilder() { + return getFunnelFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A primitive funnel filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterOrBuilder getFunnelFilterOrBuilder() { + if ((exprCase_ == 4) && (funnelFilterBuilder_ != null)) { + return funnelFilterBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.FunnelFilter) expr_; + } + return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A primitive funnel filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelFilter, + com.google.analytics.data.v1alpha.FunnelFilter.Builder, + com.google.analytics.data.v1alpha.FunnelFilterOrBuilder> + getFunnelFilterFieldBuilder() { + if (funnelFilterBuilder_ == null) { + if (!(exprCase_ == 4)) { + expr_ = com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance(); + } + funnelFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelFilter, + com.google.analytics.data.v1alpha.FunnelFilter.Builder, + com.google.analytics.data.v1alpha.FunnelFilterOrBuilder>( + (com.google.analytics.data.v1alpha.FunnelFilter) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 4; + onChanged(); + ; + return funnelFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelEventFilter, + com.google.analytics.data.v1alpha.FunnelEventFilter.Builder, + com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder> + funnelEventFilterBuilder_; + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; + * + * @return Whether the funnelEventFilter field is set. + */ + @java.lang.Override + public boolean hasFunnelEventFilter() { + return exprCase_ == 5; + } + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; + * + * @return The funnelEventFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelEventFilter getFunnelEventFilter() { + if (funnelEventFilterBuilder_ == null) { + if (exprCase_ == 5) { + return (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_; + } + return com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance(); + } else { + if (exprCase_ == 5) { + return funnelEventFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; + */ + public Builder setFunnelEventFilter(com.google.analytics.data.v1alpha.FunnelEventFilter value) { + if (funnelEventFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + funnelEventFilterBuilder_.setMessage(value); + } + exprCase_ = 5; + return this; + } + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; + */ + public Builder setFunnelEventFilter( + com.google.analytics.data.v1alpha.FunnelEventFilter.Builder builderForValue) { + if (funnelEventFilterBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + funnelEventFilterBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 5; + return this; + } + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; + */ + public Builder mergeFunnelEventFilter( + com.google.analytics.data.v1alpha.FunnelEventFilter value) { + if (funnelEventFilterBuilder_ == null) { + if (exprCase_ == 5 + && expr_ != com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.FunnelEventFilter.newBuilder( + (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 5) { + funnelEventFilterBuilder_.mergeFrom(value); + } else { + funnelEventFilterBuilder_.setMessage(value); + } + } + exprCase_ = 5; + return this; + } + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; + */ + public Builder clearFunnelEventFilter() { + if (funnelEventFilterBuilder_ == null) { + if (exprCase_ == 5) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 5) { + exprCase_ = 0; + expr_ = null; + } + funnelEventFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; + */ + public com.google.analytics.data.v1alpha.FunnelEventFilter.Builder + getFunnelEventFilterBuilder() { + return getFunnelEventFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder + getFunnelEventFilterOrBuilder() { + if ((exprCase_ == 5) && (funnelEventFilterBuilder_ != null)) { + return funnelEventFilterBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 5) { + return (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_; + } + return com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelEventFilter, + com.google.analytics.data.v1alpha.FunnelEventFilter.Builder, + com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder> + getFunnelEventFilterFieldBuilder() { + if (funnelEventFilterBuilder_ == null) { + if (!(exprCase_ == 5)) { + expr_ = com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance(); + } + funnelEventFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelEventFilter, + com.google.analytics.data.v1alpha.FunnelEventFilter.Builder, + com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder>( + (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 5; + onChanged(); + ; + return funnelEventFilterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.FunnelFilterExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelFilterExpression) + private static final com.google.analytics.data.v1alpha.FunnelFilterExpression DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelFilterExpression(); + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunnelFilterExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FunnelFilterExpression(input, extensionRegistry); + } + }; + + public static 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.v1alpha.FunnelFilterExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionList.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionList.java new file mode 100644 index 00000000..7f953c6e --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionList.java @@ -0,0 +1,976 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * A list of funnel filter expressions.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilterExpressionList} + */ +public final class FunnelFilterExpressionList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelFilterExpressionList) + FunnelFilterExpressionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelFilterExpressionList.newBuilder() to construct. + private FunnelFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FunnelFilterExpressionList() { + expressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelFilterExpressionList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelFilterExpressionList( + 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< + com.google.analytics.data.v1alpha.FunnelFilterExpression>(); + mutable_bitField0_ |= 0x00000001; + } + expressions_.add( + input.readMessage( + com.google.analytics.data.v1alpha.FunnelFilterExpression.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + 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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.class, + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder.class); + } + + public static final int EXPRESSIONS_FIELD_NUMBER = 1; + private java.util.List expressions_; + /** + * + * + *
+   * The list of funnel filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + @java.lang.Override + public java.util.List + getExpressionsList() { + return expressions_; + } + /** + * + * + *
+   * The list of funnel filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + @java.lang.Override + public java.util.List + getExpressionsOrBuilderList() { + return expressions_; + } + /** + * + * + *
+   * The list of funnel filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + @java.lang.Override + public int getExpressionsCount() { + return expressions_.size(); + } + /** + * + * + *
+   * The list of funnel filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpression getExpressions(int index) { + return expressions_.get(index); + } + /** + * + * + *
+   * The list of funnel filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder 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.v1alpha.FunnelFilterExpressionList)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.FunnelFilterExpressionList other = + (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) 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.v1alpha.FunnelFilterExpressionList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList 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.v1alpha.FunnelFilterExpressionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList parseFrom( + 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.v1alpha.FunnelFilterExpressionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList parseFrom( + java.io.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.v1alpha.FunnelFilterExpressionList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList parseDelimitedFrom( + java.io.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.v1alpha.FunnelFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.FunnelFilterExpressionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 funnel filter expressions.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelFilterExpressionList) + com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.class, + com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.FunnelFilterExpressionList.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpressionList + getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpressionList build() { + com.google.analytics.data.v1alpha.FunnelFilterExpressionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpressionList buildPartial() { + com.google.analytics.data.v1alpha.FunnelFilterExpressionList result = + new com.google.analytics.data.v1alpha.FunnelFilterExpressionList(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.v1alpha.FunnelFilterExpressionList) { + return mergeFrom((com.google.analytics.data.v1alpha.FunnelFilterExpressionList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelFilterExpressionList other) { + if (other + == com.google.analytics.data.v1alpha.FunnelFilterExpressionList.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.v1alpha.FunnelFilterExpressionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) 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.v1alpha.FunnelFilterExpression, + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder> + expressionsBuilder_; + + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public java.util.List + getExpressionsList() { + if (expressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(expressions_); + } else { + return expressionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public int getExpressionsCount() { + if (expressionsBuilder_ == null) { + return expressions_.size(); + } else { + return expressionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public com.google.analytics.data.v1alpha.FunnelFilterExpression getExpressions(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public Builder setExpressions( + int index, com.google.analytics.data.v1alpha.FunnelFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.set(index, value); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public Builder setExpressions( + int index, + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.set(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public Builder addExpressions(com.google.analytics.data.v1alpha.FunnelFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(value); + onChanged(); + } else { + expressionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public Builder addExpressions( + int index, com.google.analytics.data.v1alpha.FunnelFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(index, value); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public Builder addExpressions( + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public Builder addExpressions( + int index, + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression 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; + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public Builder clearExpressions() { + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + expressionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public Builder removeExpressions(int index) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.remove(index); + onChanged(); + } else { + expressionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder getExpressionsBuilder( + int index) { + return getExpressionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder + getExpressionsOrBuilder(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public java.util.List< + ? extends com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder> + getExpressionsOrBuilderList() { + if (expressionsBuilder_ != null) { + return expressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(expressions_); + } + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder + addExpressionsBuilder() { + return getExpressionsFieldBuilder() + .addBuilder( + com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder addExpressionsBuilder( + int index) { + return getExpressionsFieldBuilder() + .addBuilder( + index, com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * The list of funnel filter expressions.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + public java.util.List + getExpressionsBuilderList() { + return getExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelFilterExpression, + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder> + getExpressionsFieldBuilder() { + if (expressionsBuilder_ == null) { + expressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelFilterExpression, + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder>( + 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.v1alpha.FunnelFilterExpressionList) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelFilterExpressionList) + private static final com.google.analytics.data.v1alpha.FunnelFilterExpressionList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelFilterExpressionList(); + } + + public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunnelFilterExpressionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FunnelFilterExpressionList(input, extensionRegistry); + } + }; + + public static 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.v1alpha.FunnelFilterExpressionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionListOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionListOrBuilder.java new file mode 100644 index 00000000..d3a24d6d --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionListOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface FunnelFilterExpressionListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelFilterExpressionList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of funnel filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + java.util.List getExpressionsList(); + /** + * + * + *
+   * The list of funnel filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + com.google.analytics.data.v1alpha.FunnelFilterExpression getExpressions(int index); + /** + * + * + *
+   * The list of funnel filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + int getExpressionsCount(); + /** + * + * + *
+   * The list of funnel filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + java.util.List + getExpressionsOrBuilderList(); + /** + * + * + *
+   * The list of funnel filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; + */ + com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder getExpressionsOrBuilder( + int index); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionOrBuilder.java new file mode 100644 index 00000000..b731f681 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionOrBuilder.java @@ -0,0 +1,211 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface FunnelFilterExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelFilterExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The FunnelFilterExpression in `andGroup` have an AND relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + boolean hasAndGroup(); + /** + * + * + *
+   * The FunnelFilterExpression in `andGroup` have an AND relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + com.google.analytics.data.v1alpha.FunnelFilterExpressionList getAndGroup(); + /** + * + * + *
+   * The FunnelFilterExpression in `andGroup` have an AND relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; + */ + com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder getAndGroupOrBuilder(); + + /** + * + * + *
+   * The FunnelFilterExpression in `orGroup` have an OR relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + boolean hasOrGroup(); + /** + * + * + *
+   * The FunnelFilterExpression in `orGroup` have an OR relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + com.google.analytics.data.v1alpha.FunnelFilterExpressionList getOrGroup(); + /** + * + * + *
+   * The FunnelFilterExpression in `orGroup` have an OR relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; + */ + com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder getOrGroupOrBuilder(); + + /** + * + * + *
+   * The FunnelFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + boolean hasNotExpression(); + /** + * + * + *
+   * The FunnelFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + com.google.analytics.data.v1alpha.FunnelFilterExpression getNotExpression(); + /** + * + * + *
+   * The FunnelFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; + */ + com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder getNotExpressionOrBuilder(); + + /** + * + * + *
+   * A primitive funnel filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * + * @return Whether the funnelFilter field is set. + */ + boolean hasFunnelFilter(); + /** + * + * + *
+   * A primitive funnel filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * + * @return The funnelFilter. + */ + com.google.analytics.data.v1alpha.FunnelFilter getFunnelFilter(); + /** + * + * + *
+   * A primitive funnel filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + */ + com.google.analytics.data.v1alpha.FunnelFilterOrBuilder getFunnelFilterOrBuilder(); + + /** + * + * + *
+   * Creates a filter that matches events of a single event name. If a
+   * parameter filter expression is specified, only the subset of events that
+   * match both the single event name and the parameter filter expressions
+   * match this event filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; + * + * @return Whether the funnelEventFilter field is set. + */ + boolean hasFunnelEventFilter(); + /** + * + * + *
+   * Creates a filter that matches events of a single event name. If a
+   * parameter filter expression is specified, only the subset of events that
+   * match both the single event name and the parameter filter expressions
+   * match this event filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; + * + * @return The funnelEventFilter. + */ + com.google.analytics.data.v1alpha.FunnelEventFilter getFunnelEventFilter(); + /** + * + * + *
+   * Creates a filter that matches events of a single event name. If a
+   * parameter filter expression is specified, only the subset of events that
+   * match both the single event name and the parameter filter expressions
+   * match this event filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; + */ + com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder getFunnelEventFilterOrBuilder(); + + public com.google.analytics.data.v1alpha.FunnelFilterExpression.ExprCase getExprCase(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterOrBuilder.java new file mode 100644 index 00000000..003dbe0c --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterOrBuilder.java @@ -0,0 +1,192 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface FunnelFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The dimension name or metric name.
+   * 
+ * + * string field_name = 1; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * + * + *
+   * The dimension name or metric name.
+   * 
+ * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return Whether the stringFilter field is set. + */ + boolean hasStringFilter(); + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return The stringFilter. + */ + com.google.analytics.data.v1alpha.StringFilter getStringFilter(); + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder(); + + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return Whether the inListFilter field is set. + */ + boolean hasInListFilter(); + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return The inListFilter. + */ + com.google.analytics.data.v1alpha.InListFilter getInListFilter(); + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder(); + + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return Whether the numericFilter field is set. + */ + boolean hasNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return The numericFilter. + */ + com.google.analytics.data.v1alpha.NumericFilter getNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder(); + + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return Whether the betweenFilter field is set. + */ + boolean hasBetweenFilter(); + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return The betweenFilter. + */ + com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter(); + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder(); + + public com.google.analytics.data.v1alpha.FunnelFilter.OneFilterCase getOneFilterCase(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java new file mode 100644 index 00000000..75f16313 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java @@ -0,0 +1,930 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/data/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Next actions state the value for a dimension after the user has achieved
+ * a step but before the same user has achieved the next step. For example if
+ * the `nextActionDimension` is `eventName`, then `nextActionDimension` in the
+ * `i`th funnel step row will return first event after the event that qualified
+ * the user into the `i`th funnel step but before the user achieved the `i+1`th
+ * funnel step.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelNextAction} + */ +public final class FunnelNextAction extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelNextAction) + FunnelNextActionOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelNextAction.newBuilder() to construct. + private FunnelNextAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FunnelNextAction() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelNextAction(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelNextAction( + 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.v1alpha.Dimension.Builder subBuilder = null; + if (nextActionDimension_ != null) { + subBuilder = nextActionDimension_.toBuilder(); + } + nextActionDimension_ = + input.readMessage( + com.google.analytics.data.v1alpha.Dimension.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(nextActionDimension_); + nextActionDimension_ = subBuilder.buildPartial(); + } + + break; + } + case 16: + { + bitField0_ |= 0x00000001; + limit_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelNextAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelNextAction.class, + com.google.analytics.data.v1alpha.FunnelNextAction.Builder.class); + } + + private int bitField0_; + public static final int NEXT_ACTION_DIMENSION_FIELD_NUMBER = 1; + private com.google.analytics.data.v1alpha.Dimension nextActionDimension_; + /** + * + * + *
+   * The dimension column added to the funnel visualization sub report response.
+   * The next action dimension returns the next dimension value of this
+   * dimension after the user has attained the `i`th funnel step.
+   * `nextActionDimension` currently only supports the `eventName` dimension.
+   * 
+ * + * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; + * + * @return Whether the nextActionDimension field is set. + */ + @java.lang.Override + public boolean hasNextActionDimension() { + return nextActionDimension_ != null; + } + /** + * + * + *
+   * The dimension column added to the funnel visualization sub report response.
+   * The next action dimension returns the next dimension value of this
+   * dimension after the user has attained the `i`th funnel step.
+   * `nextActionDimension` currently only supports the `eventName` dimension.
+   * 
+ * + * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; + * + * @return The nextActionDimension. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Dimension getNextActionDimension() { + return nextActionDimension_ == null + ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance() + : nextActionDimension_; + } + /** + * + * + *
+   * The dimension column added to the funnel visualization sub report response.
+   * The next action dimension returns the next dimension value of this
+   * dimension after the user has attained the `i`th funnel step.
+   * `nextActionDimension` currently only supports the `eventName` dimension.
+   * 
+ * + * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionOrBuilder getNextActionDimensionOrBuilder() { + return getNextActionDimension(); + } + + public static final int LIMIT_FIELD_NUMBER = 2; + private long limit_; + /** + * + * + *
+   * The maximum number of distinct values of the breakdown dimension to return
+   * in the response. A `limit` of `5` is used if limit is not specified. Limit
+   * must exceed zero and cannot exceed 5.
+   * 
+ * + * optional int64 limit = 2; + * + * @return Whether the limit field is set. + */ + @java.lang.Override + public boolean hasLimit() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * The maximum number of distinct values of the breakdown dimension to return
+   * in the response. A `limit` of `5` is used if limit is not specified. Limit
+   * must exceed zero and cannot exceed 5.
+   * 
+ * + * optional int64 limit = 2; + * + * @return The limit. + */ + @java.lang.Override + public long getLimit() { + return limit_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (nextActionDimension_ != null) { + output.writeMessage(1, getNextActionDimension()); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt64(2, limit_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (nextActionDimension_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNextActionDimension()); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, limit_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.FunnelNextAction)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.FunnelNextAction other = + (com.google.analytics.data.v1alpha.FunnelNextAction) obj; + + if (hasNextActionDimension() != other.hasNextActionDimension()) return false; + if (hasNextActionDimension()) { + if (!getNextActionDimension().equals(other.getNextActionDimension())) return false; + } + if (hasLimit() != other.hasLimit()) return false; + if (hasLimit()) { + if (getLimit() != other.getLimit()) return false; + } + if (!unknownFields.equals(other.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 (hasNextActionDimension()) { + hash = (37 * hash) + NEXT_ACTION_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getNextActionDimension().hashCode(); + } + if (hasLimit()) { + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.FunnelNextAction parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelNextAction 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.v1alpha.FunnelNextAction parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelNextAction parseFrom( + 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.v1alpha.FunnelNextAction parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelNextAction parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.FunnelNextAction parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelNextAction parseFrom( + java.io.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.v1alpha.FunnelNextAction parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelNextAction parseDelimitedFrom( + java.io.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.v1alpha.FunnelNextAction parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelNextAction parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.FunnelNextAction prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Next actions state the value for a dimension after the user has achieved
+   * a step but before the same user has achieved the next step. For example if
+   * the `nextActionDimension` is `eventName`, then `nextActionDimension` in the
+   * `i`th funnel step row will return first event after the event that qualified
+   * the user into the `i`th funnel step but before the user achieved the `i+1`th
+   * funnel step.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelNextAction} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelNextAction) + com.google.analytics.data.v1alpha.FunnelNextActionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelNextAction_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelNextAction.class, + com.google.analytics.data.v1alpha.FunnelNextAction.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.FunnelNextAction.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 (nextActionDimensionBuilder_ == null) { + nextActionDimension_ = null; + } else { + nextActionDimension_ = null; + nextActionDimensionBuilder_ = null; + } + limit_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelNextAction getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.FunnelNextAction.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelNextAction build() { + com.google.analytics.data.v1alpha.FunnelNextAction result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelNextAction buildPartial() { + com.google.analytics.data.v1alpha.FunnelNextAction result = + new com.google.analytics.data.v1alpha.FunnelNextAction(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (nextActionDimensionBuilder_ == null) { + result.nextActionDimension_ = nextActionDimension_; + } else { + result.nextActionDimension_ = nextActionDimensionBuilder_.build(); + } + if (((from_bitField0_ & 0x00000001) != 0)) { + result.limit_ = limit_; + to_bitField0_ |= 0x00000001; + } + 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.v1alpha.FunnelNextAction) { + return mergeFrom((com.google.analytics.data.v1alpha.FunnelNextAction) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelNextAction other) { + if (other == com.google.analytics.data.v1alpha.FunnelNextAction.getDefaultInstance()) + return this; + if (other.hasNextActionDimension()) { + mergeNextActionDimension(other.getNextActionDimension()); + } + if (other.hasLimit()) { + setLimit(other.getLimit()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.FunnelNextAction parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.FunnelNextAction) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private com.google.analytics.data.v1alpha.Dimension nextActionDimension_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.Dimension, + com.google.analytics.data.v1alpha.Dimension.Builder, + com.google.analytics.data.v1alpha.DimensionOrBuilder> + nextActionDimensionBuilder_; + /** + * + * + *
+     * The dimension column added to the funnel visualization sub report response.
+     * The next action dimension returns the next dimension value of this
+     * dimension after the user has attained the `i`th funnel step.
+     * `nextActionDimension` currently only supports the `eventName` dimension.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; + * + * @return Whether the nextActionDimension field is set. + */ + public boolean hasNextActionDimension() { + return nextActionDimensionBuilder_ != null || nextActionDimension_ != null; + } + /** + * + * + *
+     * The dimension column added to the funnel visualization sub report response.
+     * The next action dimension returns the next dimension value of this
+     * dimension after the user has attained the `i`th funnel step.
+     * `nextActionDimension` currently only supports the `eventName` dimension.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; + * + * @return The nextActionDimension. + */ + public com.google.analytics.data.v1alpha.Dimension getNextActionDimension() { + if (nextActionDimensionBuilder_ == null) { + return nextActionDimension_ == null + ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance() + : nextActionDimension_; + } else { + return nextActionDimensionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The dimension column added to the funnel visualization sub report response.
+     * The next action dimension returns the next dimension value of this
+     * dimension after the user has attained the `i`th funnel step.
+     * `nextActionDimension` currently only supports the `eventName` dimension.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; + */ + public Builder setNextActionDimension(com.google.analytics.data.v1alpha.Dimension value) { + if (nextActionDimensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + nextActionDimension_ = value; + onChanged(); + } else { + nextActionDimensionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The dimension column added to the funnel visualization sub report response.
+     * The next action dimension returns the next dimension value of this
+     * dimension after the user has attained the `i`th funnel step.
+     * `nextActionDimension` currently only supports the `eventName` dimension.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; + */ + public Builder setNextActionDimension( + com.google.analytics.data.v1alpha.Dimension.Builder builderForValue) { + if (nextActionDimensionBuilder_ == null) { + nextActionDimension_ = builderForValue.build(); + onChanged(); + } else { + nextActionDimensionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The dimension column added to the funnel visualization sub report response.
+     * The next action dimension returns the next dimension value of this
+     * dimension after the user has attained the `i`th funnel step.
+     * `nextActionDimension` currently only supports the `eventName` dimension.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; + */ + public Builder mergeNextActionDimension(com.google.analytics.data.v1alpha.Dimension value) { + if (nextActionDimensionBuilder_ == null) { + if (nextActionDimension_ != null) { + nextActionDimension_ = + com.google.analytics.data.v1alpha.Dimension.newBuilder(nextActionDimension_) + .mergeFrom(value) + .buildPartial(); + } else { + nextActionDimension_ = value; + } + onChanged(); + } else { + nextActionDimensionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The dimension column added to the funnel visualization sub report response.
+     * The next action dimension returns the next dimension value of this
+     * dimension after the user has attained the `i`th funnel step.
+     * `nextActionDimension` currently only supports the `eventName` dimension.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; + */ + public Builder clearNextActionDimension() { + if (nextActionDimensionBuilder_ == null) { + nextActionDimension_ = null; + onChanged(); + } else { + nextActionDimension_ = null; + nextActionDimensionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The dimension column added to the funnel visualization sub report response.
+     * The next action dimension returns the next dimension value of this
+     * dimension after the user has attained the `i`th funnel step.
+     * `nextActionDimension` currently only supports the `eventName` dimension.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; + */ + public com.google.analytics.data.v1alpha.Dimension.Builder getNextActionDimensionBuilder() { + + onChanged(); + return getNextActionDimensionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The dimension column added to the funnel visualization sub report response.
+     * The next action dimension returns the next dimension value of this
+     * dimension after the user has attained the `i`th funnel step.
+     * `nextActionDimension` currently only supports the `eventName` dimension.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; + */ + public com.google.analytics.data.v1alpha.DimensionOrBuilder getNextActionDimensionOrBuilder() { + if (nextActionDimensionBuilder_ != null) { + return nextActionDimensionBuilder_.getMessageOrBuilder(); + } else { + return nextActionDimension_ == null + ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance() + : nextActionDimension_; + } + } + /** + * + * + *
+     * The dimension column added to the funnel visualization sub report response.
+     * The next action dimension returns the next dimension value of this
+     * dimension after the user has attained the `i`th funnel step.
+     * `nextActionDimension` currently only supports the `eventName` dimension.
+     * 
+ * + * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.Dimension, + com.google.analytics.data.v1alpha.Dimension.Builder, + com.google.analytics.data.v1alpha.DimensionOrBuilder> + getNextActionDimensionFieldBuilder() { + if (nextActionDimensionBuilder_ == null) { + nextActionDimensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.Dimension, + com.google.analytics.data.v1alpha.Dimension.Builder, + com.google.analytics.data.v1alpha.DimensionOrBuilder>( + getNextActionDimension(), getParentForChildren(), isClean()); + nextActionDimension_ = null; + } + return nextActionDimensionBuilder_; + } + + private long limit_; + /** + * + * + *
+     * The maximum number of distinct values of the breakdown dimension to return
+     * in the response. A `limit` of `5` is used if limit is not specified. Limit
+     * must exceed zero and cannot exceed 5.
+     * 
+ * + * optional int64 limit = 2; + * + * @return Whether the limit field is set. + */ + @java.lang.Override + public boolean hasLimit() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * The maximum number of distinct values of the breakdown dimension to return
+     * in the response. A `limit` of `5` is used if limit is not specified. Limit
+     * must exceed zero and cannot exceed 5.
+     * 
+ * + * optional int64 limit = 2; + * + * @return The limit. + */ + @java.lang.Override + public long getLimit() { + return limit_; + } + /** + * + * + *
+     * The maximum number of distinct values of the breakdown dimension to return
+     * in the response. A `limit` of `5` is used if limit is not specified. Limit
+     * must exceed zero and cannot exceed 5.
+     * 
+ * + * optional int64 limit = 2; + * + * @param value The limit to set. + * @return This builder for chaining. + */ + public Builder setLimit(long value) { + bitField0_ |= 0x00000001; + limit_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of distinct values of the breakdown dimension to return
+     * in the response. A `limit` of `5` is used if limit is not specified. Limit
+     * must exceed zero and cannot exceed 5.
+     * 
+ * + * optional int64 limit = 2; + * + * @return This builder for chaining. + */ + public Builder clearLimit() { + bitField0_ = (bitField0_ & ~0x00000001); + limit_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.FunnelNextAction) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelNextAction) + private static final com.google.analytics.data.v1alpha.FunnelNextAction DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelNextAction(); + } + + public static com.google.analytics.data.v1alpha.FunnelNextAction getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunnelNextAction parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FunnelNextAction(input, extensionRegistry); + } + }; + + public static 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.v1alpha.FunnelNextAction getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextActionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextActionOrBuilder.java new file mode 100644 index 00000000..398dd665 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextActionOrBuilder.java @@ -0,0 +1,98 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface FunnelNextActionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelNextAction) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The dimension column added to the funnel visualization sub report response.
+   * The next action dimension returns the next dimension value of this
+   * dimension after the user has attained the `i`th funnel step.
+   * `nextActionDimension` currently only supports the `eventName` dimension.
+   * 
+ * + * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; + * + * @return Whether the nextActionDimension field is set. + */ + boolean hasNextActionDimension(); + /** + * + * + *
+   * The dimension column added to the funnel visualization sub report response.
+   * The next action dimension returns the next dimension value of this
+   * dimension after the user has attained the `i`th funnel step.
+   * `nextActionDimension` currently only supports the `eventName` dimension.
+   * 
+ * + * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; + * + * @return The nextActionDimension. + */ + com.google.analytics.data.v1alpha.Dimension getNextActionDimension(); + /** + * + * + *
+   * The dimension column added to the funnel visualization sub report response.
+   * The next action dimension returns the next dimension value of this
+   * dimension after the user has attained the `i`th funnel step.
+   * `nextActionDimension` currently only supports the `eventName` dimension.
+   * 
+ * + * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; + */ + com.google.analytics.data.v1alpha.DimensionOrBuilder getNextActionDimensionOrBuilder(); + + /** + * + * + *
+   * The maximum number of distinct values of the breakdown dimension to return
+   * in the response. A `limit` of `5` is used if limit is not specified. Limit
+   * must exceed zero and cannot exceed 5.
+   * 
+ * + * optional int64 limit = 2; + * + * @return Whether the limit field is set. + */ + boolean hasLimit(); + /** + * + * + *
+   * The maximum number of distinct values of the breakdown dimension to return
+   * in the response. A `limit` of `5` is used if limit is not specified. Limit
+   * must exceed zero and cannot exceed 5.
+   * 
+ * + * optional int64 limit = 2; + * + * @return The limit. + */ + long getLimit(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelOrBuilder.java new file mode 100644 index 00000000..5cc16096 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelOrBuilder.java @@ -0,0 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface FunnelOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.Funnel) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * In an open funnel, users can enter the funnel in any step, and in a closed
+   * funnel, users must enter the funnel in the first step. Optional. If
+   * unspecified, a closed funnel is used.
+   * 
+ * + * bool is_open_funnel = 1; + * + * @return The isOpenFunnel. + */ + boolean getIsOpenFunnel(); + + /** + * + * + *
+   * The sequential steps of this funnel.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + java.util.List getStepsList(); + /** + * + * + *
+   * The sequential steps of this funnel.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + com.google.analytics.data.v1alpha.FunnelStep getSteps(int index); + /** + * + * + *
+   * The sequential steps of this funnel.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + int getStepsCount(); + /** + * + * + *
+   * The sequential steps of this funnel.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + java.util.List + getStepsOrBuilderList(); + /** + * + * + *
+   * The sequential steps of this funnel.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; + */ + com.google.analytics.data.v1alpha.FunnelStepOrBuilder getStepsOrBuilder(int index); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilter.java new file mode 100644 index 00000000..51fc8320 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilter.java @@ -0,0 +1,2437 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * An expression to filter parameter values in a funnel.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilter} + */ +public final class FunnelParameterFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelParameterFilter) + FunnelParameterFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelParameterFilter.newBuilder() to construct. + private FunnelParameterFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FunnelParameterFilter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelParameterFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelParameterFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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(); + oneParameterCase_ = 1; + oneParameter_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + oneParameterCase_ = 2; + oneParameter_ = s; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.StringFilter.Builder subBuilder = null; + if (oneFilterCase_ == 4) { + subBuilder = + ((com.google.analytics.data.v1alpha.StringFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.StringFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 4; + break; + } + case 42: + { + com.google.analytics.data.v1alpha.InListFilter.Builder subBuilder = null; + if (oneFilterCase_ == 5) { + subBuilder = + ((com.google.analytics.data.v1alpha.InListFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.InListFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 5; + break; + } + case 50: + { + com.google.analytics.data.v1alpha.NumericFilter.Builder subBuilder = null; + if (oneFilterCase_ == 6) { + subBuilder = + ((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.NumericFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 6; + break; + } + case 58: + { + com.google.analytics.data.v1alpha.BetweenFilter.Builder subBuilder = null; + if (oneFilterCase_ == 7) { + subBuilder = + ((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.BetweenFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 7; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelParameterFilter.class, + com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder.class); + } + + private int oneParameterCase_ = 0; + private java.lang.Object oneParameter_; + + public enum OneParameterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EVENT_PARAMETER_NAME(1), + ITEM_PARAMETER_NAME(2), + ONEPARAMETER_NOT_SET(0); + private final int value; + + private OneParameterCase(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 OneParameterCase valueOf(int value) { + return forNumber(value); + } + + public static OneParameterCase forNumber(int value) { + switch (value) { + case 1: + return EVENT_PARAMETER_NAME; + case 2: + return ITEM_PARAMETER_NAME; + case 0: + return ONEPARAMETER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneParameterCase getOneParameterCase() { + return OneParameterCase.forNumber(oneParameterCase_); + } + + 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(4), + IN_LIST_FILTER(5), + NUMERIC_FILTER(6), + BETWEEN_FILTER(7), + 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 4: + return STRING_FILTER; + case 5: + return IN_LIST_FILTER; + case 6: + return NUMERIC_FILTER; + case 7: + 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 EVENT_PARAMETER_NAME_FIELD_NUMBER = 1; + /** + * + * + *
+   * This filter will be evaluated on the specified event parameter. Event
+   * parameters are logged as parameters of the event. Event parameters
+   * include fields like "firebase_screen" & "currency".
+   * Event parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * 
+ * + * string event_parameter_name = 1; + * + * @return Whether the eventParameterName field is set. + */ + public boolean hasEventParameterName() { + return oneParameterCase_ == 1; + } + /** + * + * + *
+   * This filter will be evaluated on the specified event parameter. Event
+   * parameters are logged as parameters of the event. Event parameters
+   * include fields like "firebase_screen" & "currency".
+   * Event parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * 
+ * + * string event_parameter_name = 1; + * + * @return The eventParameterName. + */ + public java.lang.String getEventParameterName() { + java.lang.Object ref = ""; + if (oneParameterCase_ == 1) { + ref = oneParameter_; + } + if (ref instanceof java.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 (oneParameterCase_ == 1) { + oneParameter_ = s; + } + return s; + } + } + /** + * + * + *
+   * This filter will be evaluated on the specified event parameter. Event
+   * parameters are logged as parameters of the event. Event parameters
+   * include fields like "firebase_screen" & "currency".
+   * Event parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * 
+ * + * string event_parameter_name = 1; + * + * @return The bytes for eventParameterName. + */ + public com.google.protobuf.ByteString getEventParameterNameBytes() { + java.lang.Object ref = ""; + if (oneParameterCase_ == 1) { + ref = oneParameter_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (oneParameterCase_ == 1) { + oneParameter_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ITEM_PARAMETER_NAME_FIELD_NUMBER = 2; + /** + * + * + *
+   * This filter will be evaluated on the specified item parameter. Item
+   * parameters are logged as parameters in the item array. Item parameters
+   * include fields like "item_name" & "item_category".
+   * Item parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * Item parameters are only available in ecommerce events. To learn more
+   * about ecommerce events, see the [Measure ecommerce]
+   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+   * guide.
+   * 
+ * + * string item_parameter_name = 2; + * + * @return Whether the itemParameterName field is set. + */ + public boolean hasItemParameterName() { + return oneParameterCase_ == 2; + } + /** + * + * + *
+   * This filter will be evaluated on the specified item parameter. Item
+   * parameters are logged as parameters in the item array. Item parameters
+   * include fields like "item_name" & "item_category".
+   * Item parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * Item parameters are only available in ecommerce events. To learn more
+   * about ecommerce events, see the [Measure ecommerce]
+   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+   * guide.
+   * 
+ * + * string item_parameter_name = 2; + * + * @return The itemParameterName. + */ + public java.lang.String getItemParameterName() { + java.lang.Object ref = ""; + if (oneParameterCase_ == 2) { + ref = oneParameter_; + } + if (ref instanceof java.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 (oneParameterCase_ == 2) { + oneParameter_ = s; + } + return s; + } + } + /** + * + * + *
+   * This filter will be evaluated on the specified item parameter. Item
+   * parameters are logged as parameters in the item array. Item parameters
+   * include fields like "item_name" & "item_category".
+   * Item parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * Item parameters are only available in ecommerce events. To learn more
+   * about ecommerce events, see the [Measure ecommerce]
+   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+   * guide.
+   * 
+ * + * string item_parameter_name = 2; + * + * @return The bytes for itemParameterName. + */ + public com.google.protobuf.ByteString getItemParameterNameBytes() { + java.lang.Object ref = ""; + if (oneParameterCase_ == 2) { + ref = oneParameter_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (oneParameterCase_ == 2) { + oneParameter_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRING_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + + public static final int IN_LIST_FILTER_FIELD_NUMBER = 5; + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + + public static final int NUMERIC_FILTER_FIELD_NUMBER = 6; + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 6; + } + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + + public static final int BETWEEN_FILTER_FIELD_NUMBER = 7; + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 7; + } + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { + if (oneFilterCase_ == 7) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { + if (oneFilterCase_ == 7) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.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 (oneParameterCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oneParameter_); + } + if (oneParameterCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, oneParameter_); + } + if (oneFilterCase_ == 4) { + output.writeMessage(4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + } + if (oneFilterCase_ == 5) { + output.writeMessage(5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + } + if (oneFilterCase_ == 6) { + output.writeMessage(6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + } + if (oneFilterCase_ == 7) { + output.writeMessage(7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (oneParameterCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, oneParameter_); + } + if (oneParameterCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, oneParameter_); + } + if (oneFilterCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + } + if (oneFilterCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + } + if (oneFilterCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + } + if (oneFilterCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.analytics.data.v1alpha.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.v1alpha.FunnelParameterFilter)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.FunnelParameterFilter other = + (com.google.analytics.data.v1alpha.FunnelParameterFilter) obj; + + if (!getOneParameterCase().equals(other.getOneParameterCase())) return false; + switch (oneParameterCase_) { + case 1: + if (!getEventParameterName().equals(other.getEventParameterName())) return false; + break; + case 2: + if (!getItemParameterName().equals(other.getItemParameterName())) return false; + break; + case 0: + default: + } + if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; + switch (oneFilterCase_) { + case 4: + if (!getStringFilter().equals(other.getStringFilter())) return false; + break; + case 5: + if (!getInListFilter().equals(other.getInListFilter())) return false; + break; + case 6: + if (!getNumericFilter().equals(other.getNumericFilter())) return false; + break; + case 7: + 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(); + switch (oneParameterCase_) { + case 1: + hash = (37 * hash) + EVENT_PARAMETER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEventParameterName().hashCode(); + break; + case 2: + hash = (37 * hash) + ITEM_PARAMETER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getItemParameterName().hashCode(); + break; + case 0: + default: + } + switch (oneFilterCase_) { + case 4: + hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getStringFilter().hashCode(); + break; + case 5: + hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getInListFilter().hashCode(); + break; + case 6: + hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getNumericFilter().hashCode(); + break; + case 7: + 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.v1alpha.FunnelParameterFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilter 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.v1alpha.FunnelParameterFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilter parseFrom( + 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.v1alpha.FunnelParameterFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilter parseFrom( + java.io.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.v1alpha.FunnelParameterFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilter parseDelimitedFrom( + java.io.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.v1alpha.FunnelParameterFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.FunnelParameterFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 parameter values in a funnel.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelParameterFilter) + com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelParameterFilter.class, + com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.FunnelParameterFilter.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(); + oneParameterCase_ = 0; + oneParameter_ = null; + oneFilterCase_ = 0; + oneFilter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilter getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilter build() { + com.google.analytics.data.v1alpha.FunnelParameterFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilter buildPartial() { + com.google.analytics.data.v1alpha.FunnelParameterFilter result = + new com.google.analytics.data.v1alpha.FunnelParameterFilter(this); + if (oneParameterCase_ == 1) { + result.oneParameter_ = oneParameter_; + } + if (oneParameterCase_ == 2) { + result.oneParameter_ = oneParameter_; + } + if (oneFilterCase_ == 4) { + if (stringFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = stringFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 5) { + if (inListFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = inListFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 6) { + if (numericFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = numericFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 7) { + if (betweenFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = betweenFilterBuilder_.build(); + } + } + result.oneParameterCase_ = oneParameterCase_; + 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.v1alpha.FunnelParameterFilter) { + return mergeFrom((com.google.analytics.data.v1alpha.FunnelParameterFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelParameterFilter other) { + if (other == com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance()) + return this; + switch (other.getOneParameterCase()) { + case EVENT_PARAMETER_NAME: + { + oneParameterCase_ = 1; + oneParameter_ = other.oneParameter_; + onChanged(); + break; + } + case ITEM_PARAMETER_NAME: + { + oneParameterCase_ = 2; + oneParameter_ = other.oneParameter_; + onChanged(); + break; + } + case ONEPARAMETER_NOT_SET: + { + break; + } + } + 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.v1alpha.FunnelParameterFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.FunnelParameterFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int oneParameterCase_ = 0; + private java.lang.Object oneParameter_; + + public OneParameterCase getOneParameterCase() { + return OneParameterCase.forNumber(oneParameterCase_); + } + + public Builder clearOneParameter() { + oneParameterCase_ = 0; + oneParameter_ = null; + onChanged(); + 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; + } + + /** + * + * + *
+     * This filter will be evaluated on the specified event parameter. Event
+     * parameters are logged as parameters of the event. Event parameters
+     * include fields like "firebase_screen" & "currency".
+     * Event parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * 
+ * + * string event_parameter_name = 1; + * + * @return Whether the eventParameterName field is set. + */ + @java.lang.Override + public boolean hasEventParameterName() { + return oneParameterCase_ == 1; + } + /** + * + * + *
+     * This filter will be evaluated on the specified event parameter. Event
+     * parameters are logged as parameters of the event. Event parameters
+     * include fields like "firebase_screen" & "currency".
+     * Event parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * 
+ * + * string event_parameter_name = 1; + * + * @return The eventParameterName. + */ + @java.lang.Override + public java.lang.String getEventParameterName() { + java.lang.Object ref = ""; + if (oneParameterCase_ == 1) { + ref = oneParameter_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (oneParameterCase_ == 1) { + oneParameter_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This filter will be evaluated on the specified event parameter. Event
+     * parameters are logged as parameters of the event. Event parameters
+     * include fields like "firebase_screen" & "currency".
+     * Event parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * 
+ * + * string event_parameter_name = 1; + * + * @return The bytes for eventParameterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventParameterNameBytes() { + java.lang.Object ref = ""; + if (oneParameterCase_ == 1) { + ref = oneParameter_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (oneParameterCase_ == 1) { + oneParameter_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This filter will be evaluated on the specified event parameter. Event
+     * parameters are logged as parameters of the event. Event parameters
+     * include fields like "firebase_screen" & "currency".
+     * Event parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * 
+ * + * string event_parameter_name = 1; + * + * @param value The eventParameterName to set. + * @return This builder for chaining. + */ + public Builder setEventParameterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oneParameterCase_ = 1; + oneParameter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This filter will be evaluated on the specified event parameter. Event
+     * parameters are logged as parameters of the event. Event parameters
+     * include fields like "firebase_screen" & "currency".
+     * Event parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * 
+ * + * string event_parameter_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearEventParameterName() { + if (oneParameterCase_ == 1) { + oneParameterCase_ = 0; + oneParameter_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * This filter will be evaluated on the specified event parameter. Event
+     * parameters are logged as parameters of the event. Event parameters
+     * include fields like "firebase_screen" & "currency".
+     * Event parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * 
+ * + * string event_parameter_name = 1; + * + * @param value The bytes for eventParameterName to set. + * @return This builder for chaining. + */ + public Builder setEventParameterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + oneParameterCase_ = 1; + oneParameter_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * This filter will be evaluated on the specified item parameter. Item
+     * parameters are logged as parameters in the item array. Item parameters
+     * include fields like "item_name" & "item_category".
+     * Item parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * Item parameters are only available in ecommerce events. To learn more
+     * about ecommerce events, see the [Measure ecommerce]
+     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+     * guide.
+     * 
+ * + * string item_parameter_name = 2; + * + * @return Whether the itemParameterName field is set. + */ + @java.lang.Override + public boolean hasItemParameterName() { + return oneParameterCase_ == 2; + } + /** + * + * + *
+     * This filter will be evaluated on the specified item parameter. Item
+     * parameters are logged as parameters in the item array. Item parameters
+     * include fields like "item_name" & "item_category".
+     * Item parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * Item parameters are only available in ecommerce events. To learn more
+     * about ecommerce events, see the [Measure ecommerce]
+     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+     * guide.
+     * 
+ * + * string item_parameter_name = 2; + * + * @return The itemParameterName. + */ + @java.lang.Override + public java.lang.String getItemParameterName() { + java.lang.Object ref = ""; + if (oneParameterCase_ == 2) { + ref = oneParameter_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (oneParameterCase_ == 2) { + oneParameter_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This filter will be evaluated on the specified item parameter. Item
+     * parameters are logged as parameters in the item array. Item parameters
+     * include fields like "item_name" & "item_category".
+     * Item parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * Item parameters are only available in ecommerce events. To learn more
+     * about ecommerce events, see the [Measure ecommerce]
+     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+     * guide.
+     * 
+ * + * string item_parameter_name = 2; + * + * @return The bytes for itemParameterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getItemParameterNameBytes() { + java.lang.Object ref = ""; + if (oneParameterCase_ == 2) { + ref = oneParameter_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (oneParameterCase_ == 2) { + oneParameter_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This filter will be evaluated on the specified item parameter. Item
+     * parameters are logged as parameters in the item array. Item parameters
+     * include fields like "item_name" & "item_category".
+     * Item parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * Item parameters are only available in ecommerce events. To learn more
+     * about ecommerce events, see the [Measure ecommerce]
+     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+     * guide.
+     * 
+ * + * string item_parameter_name = 2; + * + * @param value The itemParameterName to set. + * @return This builder for chaining. + */ + public Builder setItemParameterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oneParameterCase_ = 2; + oneParameter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This filter will be evaluated on the specified item parameter. Item
+     * parameters are logged as parameters in the item array. Item parameters
+     * include fields like "item_name" & "item_category".
+     * Item parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * Item parameters are only available in ecommerce events. To learn more
+     * about ecommerce events, see the [Measure ecommerce]
+     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+     * guide.
+     * 
+ * + * string item_parameter_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearItemParameterName() { + if (oneParameterCase_ == 2) { + oneParameterCase_ = 0; + oneParameter_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * This filter will be evaluated on the specified item parameter. Item
+     * parameters are logged as parameters in the item array. Item parameters
+     * include fields like "item_name" & "item_category".
+     * Item parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * Item parameters are only available in ecommerce events. To learn more
+     * about ecommerce events, see the [Measure ecommerce]
+     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+     * guide.
+     * 
+ * + * string item_parameter_name = 2; + * + * @param value The bytes for itemParameterName to set. + * @return This builder for chaining. + */ + public Builder setItemParameterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + oneParameterCase_ = 2; + oneParameter_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.StringFilter, + com.google.analytics.data.v1alpha.StringFilter.Builder, + com.google.analytics.data.v1alpha.StringFilterOrBuilder> + stringFilterBuilder_; + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 4) { + return stringFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public Builder setStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + stringFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public Builder setStringFilter( + com.google.analytics.data.v1alpha.StringFilter.Builder builderForValue) { + if (stringFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + stringFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public Builder mergeStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 4 + && oneFilter_ != com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.StringFilter.newBuilder( + (com.google.analytics.data.v1alpha.StringFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 4) { + stringFilterBuilder_.mergeFrom(value); + } else { + stringFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public Builder clearStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + stringFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public com.google.analytics.data.v1alpha.StringFilter.Builder getStringFilterBuilder() { + return getStringFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { + if ((oneFilterCase_ == 4) && (stringFilterBuilder_ != null)) { + return stringFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.StringFilter, + com.google.analytics.data.v1alpha.StringFilter.Builder, + com.google.analytics.data.v1alpha.StringFilterOrBuilder> + getStringFilterFieldBuilder() { + if (stringFilterBuilder_ == null) { + if (!(oneFilterCase_ == 4)) { + oneFilter_ = com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + stringFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.StringFilter, + com.google.analytics.data.v1alpha.StringFilter.Builder, + com.google.analytics.data.v1alpha.StringFilterOrBuilder>( + (com.google.analytics.data.v1alpha.StringFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 4; + onChanged(); + ; + return stringFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.InListFilter, + com.google.analytics.data.v1alpha.InListFilter.Builder, + com.google.analytics.data.v1alpha.InListFilterOrBuilder> + inListFilterBuilder_; + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 5) { + return inListFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public Builder setInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + inListFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public Builder setInListFilter( + com.google.analytics.data.v1alpha.InListFilter.Builder builderForValue) { + if (inListFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + inListFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public Builder mergeInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 5 + && oneFilter_ != com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.InListFilter.newBuilder( + (com.google.analytics.data.v1alpha.InListFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 5) { + inListFilterBuilder_.mergeFrom(value); + } else { + inListFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public Builder clearInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + inListFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public com.google.analytics.data.v1alpha.InListFilter.Builder getInListFilterBuilder() { + return getInListFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { + if ((oneFilterCase_ == 5) && (inListFilterBuilder_ != null)) { + return inListFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.InListFilter, + com.google.analytics.data.v1alpha.InListFilter.Builder, + com.google.analytics.data.v1alpha.InListFilterOrBuilder> + getInListFilterFieldBuilder() { + if (inListFilterBuilder_ == null) { + if (!(oneFilterCase_ == 5)) { + oneFilter_ = com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + inListFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.InListFilter, + com.google.analytics.data.v1alpha.InListFilter.Builder, + com.google.analytics.data.v1alpha.InListFilterOrBuilder>( + (com.google.analytics.data.v1alpha.InListFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 5; + onChanged(); + ; + return inListFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericFilter, + com.google.analytics.data.v1alpha.NumericFilter.Builder, + com.google.analytics.data.v1alpha.NumericFilterOrBuilder> + numericFilterBuilder_; + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 6; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 6) { + return numericFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public Builder setNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { + if (numericFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + numericFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 6; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public Builder setNumericFilter( + com.google.analytics.data.v1alpha.NumericFilter.Builder builderForValue) { + if (numericFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + numericFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 6; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public Builder mergeNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 6 + && oneFilter_ != com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.NumericFilter.newBuilder( + (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 6) { + numericFilterBuilder_.mergeFrom(value); + } else { + numericFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 6; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public Builder clearNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 6) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 6) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + numericFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public com.google.analytics.data.v1alpha.NumericFilter.Builder getNumericFilterBuilder() { + return getNumericFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { + if ((oneFilterCase_ == 6) && (numericFilterBuilder_ != null)) { + return numericFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericFilter, + com.google.analytics.data.v1alpha.NumericFilter.Builder, + com.google.analytics.data.v1alpha.NumericFilterOrBuilder> + getNumericFilterFieldBuilder() { + if (numericFilterBuilder_ == null) { + if (!(oneFilterCase_ == 6)) { + oneFilter_ = com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + numericFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericFilter, + com.google.analytics.data.v1alpha.NumericFilter.Builder, + com.google.analytics.data.v1alpha.NumericFilterOrBuilder>( + (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 6; + onChanged(); + ; + return numericFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.BetweenFilter, + com.google.analytics.data.v1alpha.BetweenFilter.Builder, + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> + betweenFilterBuilder_; + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 7; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 7) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 7) { + return betweenFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public Builder setBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + betweenFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 7; + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public Builder setBetweenFilter( + com.google.analytics.data.v1alpha.BetweenFilter.Builder builderForValue) { + if (betweenFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + betweenFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 7; + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public Builder mergeBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 7 + && oneFilter_ != com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.BetweenFilter.newBuilder( + (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 7) { + betweenFilterBuilder_.mergeFrom(value); + } else { + betweenFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 7; + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public Builder clearBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 7) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 7) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + betweenFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public com.google.analytics.data.v1alpha.BetweenFilter.Builder getBetweenFilterBuilder() { + return getBetweenFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { + if ((oneFilterCase_ == 7) && (betweenFilterBuilder_ != null)) { + return betweenFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 7) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.BetweenFilter, + com.google.analytics.data.v1alpha.BetweenFilter.Builder, + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> + getBetweenFilterFieldBuilder() { + if (betweenFilterBuilder_ == null) { + if (!(oneFilterCase_ == 7)) { + oneFilter_ = com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + betweenFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.BetweenFilter, + com.google.analytics.data.v1alpha.BetweenFilter.Builder, + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>( + (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 7; + 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.v1alpha.FunnelParameterFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelParameterFilter) + private static final com.google.analytics.data.v1alpha.FunnelParameterFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelParameterFilter(); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunnelParameterFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FunnelParameterFilter(input, extensionRegistry); + } + }; + + public static 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.v1alpha.FunnelParameterFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpression.java new file mode 100644 index 00000000..8ac838fb --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpression.java @@ -0,0 +1,1892 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Expresses combinations of funnel filters on parameters.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilterExpression} + */ +public final class FunnelParameterFilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelParameterFilterExpression) + FunnelParameterFilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelParameterFilterExpression.newBuilder() to construct. + private FunnelParameterFilterExpression( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FunnelParameterFilterExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelParameterFilterExpression(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelParameterFilterExpression( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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.v1alpha.FunnelParameterFilterExpressionList.Builder + subBuilder = null; + if (exprCase_ == 1) { + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 1; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder + subBuilder = null; + if (exprCase_ == 2) { + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 2; + break; + } + case 26: + { + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder subBuilder = + null; + if (exprCase_ == 3) { + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 3; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder subBuilder = null; + if (exprCase_ == 4) { + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelParameterFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.FunnelParameterFilter) 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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.class, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.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), + FUNNEL_PARAMETER_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 FUNNEL_PARAMETER_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 FunnelParameterFilterExpression in `andGroup` have an AND
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+   * The FunnelParameterFilterExpression in `andGroup` have an AND
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getAndGroup() { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .getDefaultInstance(); + } + /** + * + * + *
+   * The FunnelParameterFilterExpression in `andGroup` have an AND
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .getDefaultInstance(); + } + + public static final int OR_GROUP_FIELD_NUMBER = 2; + /** + * + * + *
+   * The FunnelParameterFilterExpression in `orGroup` have an OR
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 2; + } + /** + * + * + *
+   * The FunnelParameterFilterExpression in `orGroup` have an OR
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getOrGroup() { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .getDefaultInstance(); + } + /** + * + * + *
+   * The FunnelParameterFilterExpression in `orGroup` have an OR
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .getDefaultInstance(); + } + + public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; + /** + * + * + *
+   * The FunnelParameterFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 3; + } + /** + * + * + *
+   * The FunnelParameterFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getNotExpression() { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance(); + } + /** + * + * + *
+   * The FunnelParameterFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance(); + } + + public static final int FUNNEL_PARAMETER_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A primitive funnel parameter filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; + * + * @return Whether the funnelParameterFilter field is set. + */ + @java.lang.Override + public boolean hasFunnelParameterFilter() { + return exprCase_ == 4; + } + /** + * + * + *
+   * A primitive funnel parameter filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; + * + * @return The funnelParameterFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilter getFunnelParameterFilter() { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_; + } + return com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A primitive funnel parameter filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder + getFunnelParameterFilterOrBuilder() { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_; + } + return com.google.analytics.data.v1alpha.FunnelParameterFilter.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.v1alpha.FunnelParameterFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + output.writeMessage( + 2, (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_); + } + if (exprCase_ == 3) { + output.writeMessage( + 3, (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_); + } + if (exprCase_ == 4) { + output.writeMessage(4, (com.google.analytics.data.v1alpha.FunnelParameterFilter) 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.v1alpha.FunnelParameterFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_); + } + if (exprCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_); + } + if (exprCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.data.v1alpha.FunnelParameterFilter) 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.v1alpha.FunnelParameterFilterExpression)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression other = + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) 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 (!getFunnelParameterFilter().equals(other.getFunnelParameterFilter())) 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) + FUNNEL_PARAMETER_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFunnelParameterFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression 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.v1alpha.FunnelParameterFilterExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression parseFrom( + 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.v1alpha.FunnelParameterFilterExpression parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression parseFrom( + java.io.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.v1alpha.FunnelParameterFilterExpression + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + parseDelimitedFrom( + java.io.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.v1alpha.FunnelParameterFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.FunnelParameterFilterExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Expresses combinations of funnel filters on parameters.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelParameterFilterExpression) + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.class, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder.class); + } + + // Construct using + // com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression build() { + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression buildPartial() { + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression result = + new com.google.analytics.data.v1alpha.FunnelParameterFilterExpression(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 (funnelParameterFilterBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = funnelParameterFilterBuilder_.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.v1alpha.FunnelParameterFilterExpression) { + return mergeFrom((com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression other) { + if (other + == com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.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 FUNNEL_PARAMETER_FILTER: + { + mergeFunnelParameterFilter(other.getFunnelParameterFilter()); + 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.v1alpha.FunnelParameterFilterExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) + 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.v1alpha.FunnelParameterFilterExpressionList, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder> + andGroupBuilder_; + /** + * + * + *
+     * The FunnelParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; + * + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+     * The FunnelParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; + * + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getAndGroup() { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return andGroupBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The FunnelParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; + * + */ + public Builder setAndGroup( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + andGroupBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * The FunnelParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; + * + */ + public Builder setAndGroup( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder + builderForValue) { + if (andGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + andGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * The FunnelParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; + * + */ + public Builder mergeAndGroup( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1 + && expr_ + != com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.newBuilder( + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + andGroupBuilder_.mergeFrom(value); + } else { + andGroupBuilder_.setMessage(value); + } + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * The FunnelParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList 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 FunnelParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; + * + */ + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder + getAndGroupBuilder() { + return getAndGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The FunnelParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { + return andGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The FunnelParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder> + getAndGroupFieldBuilder() { + if (andGroupBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .getDefaultInstance(); + } + andGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder>( + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged(); + ; + return andGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder> + orGroupBuilder_; + /** + * + * + *
+     * The FunnelParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 2; + } + /** + * + * + *
+     * The FunnelParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getOrGroup() { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return orGroupBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The FunnelParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; + */ + public Builder setOrGroup( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + orGroupBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * The FunnelParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; + */ + public Builder setOrGroup( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder + builderForValue) { + if (orGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + orGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * The FunnelParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; + */ + public Builder mergeOrGroup( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2 + && expr_ + != com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.newBuilder( + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + orGroupBuilder_.mergeFrom(value); + } else { + orGroupBuilder_.setMessage(value); + } + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * The FunnelParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList 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 FunnelParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; + */ + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder + getOrGroupBuilder() { + return getOrGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The FunnelParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { + return orGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The FunnelParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder> + getOrGroupFieldBuilder() { + if (orGroupBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .getDefaultInstance(); + } + orGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder>( + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged(); + ; + return orGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> + notExpressionBuilder_; + /** + * + * + *
+     * The FunnelParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; + * + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 3; + } + /** + * + * + *
+     * The FunnelParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; + * + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + .getDefaultInstance(); + } else { + if (exprCase_ == 3) { + return notExpressionBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The FunnelParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; + * + */ + public Builder setNotExpression( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + notExpressionBuilder_.setMessage(value); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * The FunnelParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; + * + */ + public Builder setNotExpression( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder builderForValue) { + if (notExpressionBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + notExpressionBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * The FunnelParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; + * + */ + public Builder mergeNotExpression( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3 + && expr_ + != com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + .getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.newBuilder( + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 3) { + notExpressionBuilder_.mergeFrom(value); + } else { + notExpressionBuilder_.setMessage(value); + } + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * The FunnelParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpression 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 FunnelParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; + * + */ + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder + getNotExpressionBuilder() { + return getNotExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The FunnelParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { + return notExpressionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The FunnelParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> + getNotExpressionFieldBuilder() { + if (notExpressionBuilder_ == null) { + if (!(exprCase_ == 3)) { + expr_ = + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + .getDefaultInstance(); + } + notExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder>( + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 3; + onChanged(); + ; + return notExpressionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilter, + com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder> + funnelParameterFilterBuilder_; + /** + * + * + *
+     * A primitive funnel parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; + * + * + * @return Whether the funnelParameterFilter field is set. + */ + @java.lang.Override + public boolean hasFunnelParameterFilter() { + return exprCase_ == 4; + } + /** + * + * + *
+     * A primitive funnel parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; + * + * + * @return The funnelParameterFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilter getFunnelParameterFilter() { + if (funnelParameterFilterBuilder_ == null) { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_; + } + return com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance(); + } else { + if (exprCase_ == 4) { + return funnelParameterFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A primitive funnel parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; + * + */ + public Builder setFunnelParameterFilter( + com.google.analytics.data.v1alpha.FunnelParameterFilter value) { + if (funnelParameterFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + funnelParameterFilterBuilder_.setMessage(value); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive funnel parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; + * + */ + public Builder setFunnelParameterFilter( + com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder builderForValue) { + if (funnelParameterFilterBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + funnelParameterFilterBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive funnel parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; + * + */ + public Builder mergeFunnelParameterFilter( + com.google.analytics.data.v1alpha.FunnelParameterFilter value) { + if (funnelParameterFilterBuilder_ == null) { + if (exprCase_ == 4 + && expr_ + != com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.FunnelParameterFilter.newBuilder( + (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 4) { + funnelParameterFilterBuilder_.mergeFrom(value); + } else { + funnelParameterFilterBuilder_.setMessage(value); + } + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive funnel parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; + * + */ + public Builder clearFunnelParameterFilter() { + if (funnelParameterFilterBuilder_ == null) { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + } + funnelParameterFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A primitive funnel parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; + * + */ + public com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder + getFunnelParameterFilterBuilder() { + return getFunnelParameterFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A primitive funnel parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder + getFunnelParameterFilterOrBuilder() { + if ((exprCase_ == 4) && (funnelParameterFilterBuilder_ != null)) { + return funnelParameterFilterBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_; + } + return com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A primitive funnel parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilter, + com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder> + getFunnelParameterFilterFieldBuilder() { + if (funnelParameterFilterBuilder_ == null) { + if (!(exprCase_ == 4)) { + expr_ = com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance(); + } + funnelParameterFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilter, + com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder>( + (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 4; + onChanged(); + ; + return funnelParameterFilterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.FunnelParameterFilterExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelParameterFilterExpression) + private static final com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelParameterFilterExpression(); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunnelParameterFilterExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FunnelParameterFilterExpression(input, extensionRegistry); + } + }; + + public static 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.v1alpha.FunnelParameterFilterExpression + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionList.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionList.java new file mode 100644 index 00000000..87989ee0 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionList.java @@ -0,0 +1,1036 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * A list of funnel parameter filter expressions.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilterExpressionList} + */ +public final class FunnelParameterFilterExpressionList + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) + FunnelParameterFilterExpressionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelParameterFilterExpressionList.newBuilder() to construct. + private FunnelParameterFilterExpressionList( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FunnelParameterFilterExpressionList() { + expressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelParameterFilterExpressionList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelParameterFilterExpressionList( + 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< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression>(); + mutable_bitField0_ |= 0x00000001; + } + expressions_.add( + input.readMessage( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + 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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.class, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder.class); + } + + public static final int EXPRESSIONS_FIELD_NUMBER = 1; + private java.util.List + expressions_; + /** + * + * + *
+   * The list of funnel parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + @java.lang.Override + public java.util.List + getExpressionsList() { + return expressions_; + } + /** + * + * + *
+   * The list of funnel parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> + getExpressionsOrBuilderList() { + return expressions_; + } + /** + * + * + *
+   * The list of funnel parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + @java.lang.Override + public int getExpressionsCount() { + return expressions_.size(); + } + /** + * + * + *
+   * The list of funnel parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getExpressions( + int index) { + return expressions_.get(index); + } + /** + * + * + *
+   * The list of funnel parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder + 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.v1alpha.FunnelParameterFilterExpressionList)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList other = + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) 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.v1alpha.FunnelParameterFilterExpressionList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList 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.v1alpha.FunnelParameterFilterExpressionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList parseFrom( + 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.v1alpha.FunnelParameterFilterExpressionList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList parseFrom( + java.io.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.v1alpha.FunnelParameterFilterExpressionList + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + parseDelimitedFrom( + java.io.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.v1alpha.FunnelParameterFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.FunnelParameterFilterExpressionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 funnel parameter filter expressions.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.class, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder.class); + } + + // Construct using + // com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList build() { + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList buildPartial() { + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList result = + new com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList(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.v1alpha.FunnelParameterFilterExpressionList) { + return mergeFrom( + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList other) { + if (other + == com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + .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.v1alpha.FunnelParameterFilterExpressionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) + 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< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression>(expressions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> + expressionsBuilder_; + + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public java.util.List + getExpressionsList() { + if (expressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(expressions_); + } else { + return expressionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public int getExpressionsCount() { + if (expressionsBuilder_ == null) { + return expressions_.size(); + } else { + return expressionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getExpressions( + int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public Builder setExpressions( + int index, com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.set(index, value); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public Builder setExpressions( + int index, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.set(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public Builder addExpressions( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(value); + onChanged(); + } else { + expressionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public Builder addExpressions( + int index, com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(index, value); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public Builder addExpressions( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public Builder addExpressions( + int index, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public Builder addAllExpressions( + java.lang.Iterable< + ? extends com.google.analytics.data.v1alpha.FunnelParameterFilterExpression> + values) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expressions_); + onChanged(); + } else { + expressionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public Builder clearExpressions() { + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + expressionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public Builder removeExpressions(int index) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.remove(index); + onChanged(); + } else { + expressionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder + getExpressionsBuilder(int index) { + return getExpressionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder + getExpressionsOrBuilder(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> + getExpressionsOrBuilderList() { + if (expressionsBuilder_ != null) { + return expressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(expressions_); + } + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder + addExpressionsBuilder() { + return getExpressionsFieldBuilder() + .addBuilder( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + .getDefaultInstance()); + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder + addExpressionsBuilder(int index) { + return getExpressionsFieldBuilder() + .addBuilder( + index, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression + .getDefaultInstance()); + } + /** + * + * + *
+     * The list of funnel parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + public java.util.List + getExpressionsBuilderList() { + return getExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> + getExpressionsFieldBuilder() { + if (expressionsBuilder_ == null) { + expressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder>( + 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.v1alpha.FunnelParameterFilterExpressionList) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) + private static final com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList(); + } + + public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunnelParameterFilterExpressionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FunnelParameterFilterExpressionList(input, extensionRegistry); + } + }; + + public static 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.v1alpha.FunnelParameterFilterExpressionList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionListOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionListOrBuilder.java new file mode 100644 index 00000000..483f0c53 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionListOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface FunnelParameterFilterExpressionListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of funnel parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + java.util.List + getExpressionsList(); + /** + * + * + *
+   * The list of funnel parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getExpressions(int index); + /** + * + * + *
+   * The list of funnel parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + int getExpressionsCount(); + /** + * + * + *
+   * The list of funnel parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + java.util.List< + ? extends com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> + getExpressionsOrBuilderList(); + /** + * + * + *
+   * The list of funnel parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; + * + */ + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder + getExpressionsOrBuilder(int index); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionOrBuilder.java new file mode 100644 index 00000000..a60e54a6 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface FunnelParameterFilterExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelParameterFilterExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The FunnelParameterFilterExpression in `andGroup` have an AND
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + boolean hasAndGroup(); + /** + * + * + *
+   * The FunnelParameterFilterExpression in `andGroup` have an AND
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getAndGroup(); + /** + * + * + *
+   * The FunnelParameterFilterExpression in `andGroup` have an AND
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; + */ + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder + getAndGroupOrBuilder(); + + /** + * + * + *
+   * The FunnelParameterFilterExpression in `orGroup` have an OR
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + boolean hasOrGroup(); + /** + * + * + *
+   * The FunnelParameterFilterExpression in `orGroup` have an OR
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getOrGroup(); + /** + * + * + *
+   * The FunnelParameterFilterExpression in `orGroup` have an OR
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; + */ + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder + getOrGroupOrBuilder(); + + /** + * + * + *
+   * The FunnelParameterFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + boolean hasNotExpression(); + /** + * + * + *
+   * The FunnelParameterFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getNotExpression(); + /** + * + * + *
+   * The FunnelParameterFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; + */ + com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder + getNotExpressionOrBuilder(); + + /** + * + * + *
+   * A primitive funnel parameter filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; + * + * @return Whether the funnelParameterFilter field is set. + */ + boolean hasFunnelParameterFilter(); + /** + * + * + *
+   * A primitive funnel parameter filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; + * + * @return The funnelParameterFilter. + */ + com.google.analytics.data.v1alpha.FunnelParameterFilter getFunnelParameterFilter(); + /** + * + * + *
+   * A primitive funnel parameter filter.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; + */ + com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder + getFunnelParameterFilterOrBuilder(); + + public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.ExprCase getExprCase(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterOrBuilder.java new file mode 100644 index 00000000..9b09f780 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterOrBuilder.java @@ -0,0 +1,286 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface FunnelParameterFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelParameterFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * This filter will be evaluated on the specified event parameter. Event
+   * parameters are logged as parameters of the event. Event parameters
+   * include fields like "firebase_screen" & "currency".
+   * Event parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * 
+ * + * string event_parameter_name = 1; + * + * @return Whether the eventParameterName field is set. + */ + boolean hasEventParameterName(); + /** + * + * + *
+   * This filter will be evaluated on the specified event parameter. Event
+   * parameters are logged as parameters of the event. Event parameters
+   * include fields like "firebase_screen" & "currency".
+   * Event parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * 
+ * + * string event_parameter_name = 1; + * + * @return The eventParameterName. + */ + java.lang.String getEventParameterName(); + /** + * + * + *
+   * This filter will be evaluated on the specified event parameter. Event
+   * parameters are logged as parameters of the event. Event parameters
+   * include fields like "firebase_screen" & "currency".
+   * Event parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * 
+ * + * string event_parameter_name = 1; + * + * @return The bytes for eventParameterName. + */ + com.google.protobuf.ByteString getEventParameterNameBytes(); + + /** + * + * + *
+   * This filter will be evaluated on the specified item parameter. Item
+   * parameters are logged as parameters in the item array. Item parameters
+   * include fields like "item_name" & "item_category".
+   * Item parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * Item parameters are only available in ecommerce events. To learn more
+   * about ecommerce events, see the [Measure ecommerce]
+   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+   * guide.
+   * 
+ * + * string item_parameter_name = 2; + * + * @return Whether the itemParameterName field is set. + */ + boolean hasItemParameterName(); + /** + * + * + *
+   * This filter will be evaluated on the specified item parameter. Item
+   * parameters are logged as parameters in the item array. Item parameters
+   * include fields like "item_name" & "item_category".
+   * Item parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * Item parameters are only available in ecommerce events. To learn more
+   * about ecommerce events, see the [Measure ecommerce]
+   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+   * guide.
+   * 
+ * + * string item_parameter_name = 2; + * + * @return The itemParameterName. + */ + java.lang.String getItemParameterName(); + /** + * + * + *
+   * This filter will be evaluated on the specified item parameter. Item
+   * parameters are logged as parameters in the item array. Item parameters
+   * include fields like "item_name" & "item_category".
+   * Item parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * Item parameters are only available in ecommerce events. To learn more
+   * about ecommerce events, see the [Measure ecommerce]
+   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+   * guide.
+   * 
+ * + * string item_parameter_name = 2; + * + * @return The bytes for itemParameterName. + */ + com.google.protobuf.ByteString getItemParameterNameBytes(); + + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return Whether the stringFilter field is set. + */ + boolean hasStringFilter(); + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return The stringFilter. + */ + com.google.analytics.data.v1alpha.StringFilter getStringFilter(); + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder(); + + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return Whether the inListFilter field is set. + */ + boolean hasInListFilter(); + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return The inListFilter. + */ + com.google.analytics.data.v1alpha.InListFilter getInListFilter(); + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder(); + + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return Whether the numericFilter field is set. + */ + boolean hasNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return The numericFilter. + */ + com.google.analytics.data.v1alpha.NumericFilter getNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder(); + + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return Whether the betweenFilter field is set. + */ + boolean hasBetweenFilter(); + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return The betweenFilter. + */ + com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter(); + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder(); + + public com.google.analytics.data.v1alpha.FunnelParameterFilter.OneParameterCase + getOneParameterCase(); + + public com.google.analytics.data.v1alpha.FunnelParameterFilter.OneFilterCase getOneFilterCase(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java new file mode 100644 index 00000000..716b8362 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java @@ -0,0 +1,1111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * The funnel report's response metadata carries additional information about
+ * the funnel report.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelResponseMetadata} + */ +public final class FunnelResponseMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelResponseMetadata) + FunnelResponseMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelResponseMetadata.newBuilder() to construct. + private FunnelResponseMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FunnelResponseMetadata() { + samplingMetadatas_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelResponseMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelResponseMetadata( + 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)) { + samplingMetadatas_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + samplingMetadatas_.add( + input.readMessage( + com.google.analytics.data.v1alpha.SamplingMetadata.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + samplingMetadatas_ = java.util.Collections.unmodifiableList(samplingMetadatas_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelResponseMetadata.class, + com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder.class); + } + + public static final int SAMPLING_METADATAS_FIELD_NUMBER = 1; + private java.util.List samplingMetadatas_; + /** + * + * + *
+   * If funnel report results are
+   * [sampled](https://support.google.com/analytics/answer/2637192), this
+   * describes what percentage of events were used in this funnel report. One
+   * `samplingMetadatas` is populated for each date range. Each
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
+   * However if the results are not sampled, this field will not be defined.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + @java.lang.Override + public java.util.List + getSamplingMetadatasList() { + return samplingMetadatas_; + } + /** + * + * + *
+   * If funnel report results are
+   * [sampled](https://support.google.com/analytics/answer/2637192), this
+   * describes what percentage of events were used in this funnel report. One
+   * `samplingMetadatas` is populated for each date range. Each
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
+   * However if the results are not sampled, this field will not be defined.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + @java.lang.Override + public java.util.List + getSamplingMetadatasOrBuilderList() { + return samplingMetadatas_; + } + /** + * + * + *
+   * If funnel report results are
+   * [sampled](https://support.google.com/analytics/answer/2637192), this
+   * describes what percentage of events were used in this funnel report. One
+   * `samplingMetadatas` is populated for each date range. Each
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
+   * However if the results are not sampled, this field will not be defined.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + @java.lang.Override + public int getSamplingMetadatasCount() { + return samplingMetadatas_.size(); + } + /** + * + * + *
+   * If funnel report results are
+   * [sampled](https://support.google.com/analytics/answer/2637192), this
+   * describes what percentage of events were used in this funnel report. One
+   * `samplingMetadatas` is populated for each date range. Each
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
+   * However if the results are not sampled, this field will not be defined.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(int index) { + return samplingMetadatas_.get(index); + } + /** + * + * + *
+   * If funnel report results are
+   * [sampled](https://support.google.com/analytics/answer/2637192), this
+   * describes what percentage of events were used in this funnel report. One
+   * `samplingMetadatas` is populated for each date range. Each
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
+   * However if the results are not sampled, this field will not be defined.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder getSamplingMetadatasOrBuilder( + int index) { + return samplingMetadatas_.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 < samplingMetadatas_.size(); i++) { + output.writeMessage(1, samplingMetadatas_.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 < samplingMetadatas_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, samplingMetadatas_.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.v1alpha.FunnelResponseMetadata)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.FunnelResponseMetadata other = + (com.google.analytics.data.v1alpha.FunnelResponseMetadata) obj; + + if (!getSamplingMetadatasList().equals(other.getSamplingMetadatasList())) return false; + if (!unknownFields.equals(other.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 (getSamplingMetadatasCount() > 0) { + hash = (37 * hash) + SAMPLING_METADATAS_FIELD_NUMBER; + hash = (53 * hash) + getSamplingMetadatasList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.FunnelResponseMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelResponseMetadata 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.v1alpha.FunnelResponseMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelResponseMetadata parseFrom( + 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.v1alpha.FunnelResponseMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelResponseMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.FunnelResponseMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelResponseMetadata parseFrom( + java.io.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.v1alpha.FunnelResponseMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelResponseMetadata parseDelimitedFrom( + java.io.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.v1alpha.FunnelResponseMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelResponseMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.FunnelResponseMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 funnel report's response metadata carries additional information about
+   * the funnel report.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelResponseMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelResponseMetadata) + com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelResponseMetadata.class, + com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.FunnelResponseMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSamplingMetadatasFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (samplingMetadatasBuilder_ == null) { + samplingMetadatas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + samplingMetadatasBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelResponseMetadata getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.FunnelResponseMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelResponseMetadata build() { + com.google.analytics.data.v1alpha.FunnelResponseMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelResponseMetadata buildPartial() { + com.google.analytics.data.v1alpha.FunnelResponseMetadata result = + new com.google.analytics.data.v1alpha.FunnelResponseMetadata(this); + int from_bitField0_ = bitField0_; + if (samplingMetadatasBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + samplingMetadatas_ = java.util.Collections.unmodifiableList(samplingMetadatas_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.samplingMetadatas_ = samplingMetadatas_; + } else { + result.samplingMetadatas_ = samplingMetadatasBuilder_.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.v1alpha.FunnelResponseMetadata) { + return mergeFrom((com.google.analytics.data.v1alpha.FunnelResponseMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelResponseMetadata other) { + if (other == com.google.analytics.data.v1alpha.FunnelResponseMetadata.getDefaultInstance()) + return this; + if (samplingMetadatasBuilder_ == null) { + if (!other.samplingMetadatas_.isEmpty()) { + if (samplingMetadatas_.isEmpty()) { + samplingMetadatas_ = other.samplingMetadatas_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.addAll(other.samplingMetadatas_); + } + onChanged(); + } + } else { + if (!other.samplingMetadatas_.isEmpty()) { + if (samplingMetadatasBuilder_.isEmpty()) { + samplingMetadatasBuilder_.dispose(); + samplingMetadatasBuilder_ = null; + samplingMetadatas_ = other.samplingMetadatas_; + bitField0_ = (bitField0_ & ~0x00000001); + samplingMetadatasBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSamplingMetadatasFieldBuilder() + : null; + } else { + samplingMetadatasBuilder_.addAllMessages(other.samplingMetadatas_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.FunnelResponseMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.FunnelResponseMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List samplingMetadatas_ = + java.util.Collections.emptyList(); + + private void ensureSamplingMetadatasIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + samplingMetadatas_ = + new java.util.ArrayList( + samplingMetadatas_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.SamplingMetadata, + com.google.analytics.data.v1alpha.SamplingMetadata.Builder, + com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder> + samplingMetadatasBuilder_; + + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public java.util.List + getSamplingMetadatasList() { + if (samplingMetadatasBuilder_ == null) { + return java.util.Collections.unmodifiableList(samplingMetadatas_); + } else { + return samplingMetadatasBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public int getSamplingMetadatasCount() { + if (samplingMetadatasBuilder_ == null) { + return samplingMetadatas_.size(); + } else { + return samplingMetadatasBuilder_.getCount(); + } + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(int index) { + if (samplingMetadatasBuilder_ == null) { + return samplingMetadatas_.get(index); + } else { + return samplingMetadatasBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public Builder setSamplingMetadatas( + int index, com.google.analytics.data.v1alpha.SamplingMetadata value) { + if (samplingMetadatasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.set(index, value); + onChanged(); + } else { + samplingMetadatasBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public Builder setSamplingMetadatas( + int index, com.google.analytics.data.v1alpha.SamplingMetadata.Builder builderForValue) { + if (samplingMetadatasBuilder_ == null) { + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.set(index, builderForValue.build()); + onChanged(); + } else { + samplingMetadatasBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public Builder addSamplingMetadatas(com.google.analytics.data.v1alpha.SamplingMetadata value) { + if (samplingMetadatasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.add(value); + onChanged(); + } else { + samplingMetadatasBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public Builder addSamplingMetadatas( + int index, com.google.analytics.data.v1alpha.SamplingMetadata value) { + if (samplingMetadatasBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.add(index, value); + onChanged(); + } else { + samplingMetadatasBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public Builder addSamplingMetadatas( + com.google.analytics.data.v1alpha.SamplingMetadata.Builder builderForValue) { + if (samplingMetadatasBuilder_ == null) { + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.add(builderForValue.build()); + onChanged(); + } else { + samplingMetadatasBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public Builder addSamplingMetadatas( + int index, com.google.analytics.data.v1alpha.SamplingMetadata.Builder builderForValue) { + if (samplingMetadatasBuilder_ == null) { + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.add(index, builderForValue.build()); + onChanged(); + } else { + samplingMetadatasBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public Builder addAllSamplingMetadatas( + java.lang.Iterable values) { + if (samplingMetadatasBuilder_ == null) { + ensureSamplingMetadatasIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, samplingMetadatas_); + onChanged(); + } else { + samplingMetadatasBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public Builder clearSamplingMetadatas() { + if (samplingMetadatasBuilder_ == null) { + samplingMetadatas_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + samplingMetadatasBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public Builder removeSamplingMetadatas(int index) { + if (samplingMetadatasBuilder_ == null) { + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.remove(index); + onChanged(); + } else { + samplingMetadatasBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public com.google.analytics.data.v1alpha.SamplingMetadata.Builder getSamplingMetadatasBuilder( + int index) { + return getSamplingMetadatasFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder + getSamplingMetadatasOrBuilder(int index) { + if (samplingMetadatasBuilder_ == null) { + return samplingMetadatas_.get(index); + } else { + return samplingMetadatasBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public java.util.List + getSamplingMetadatasOrBuilderList() { + if (samplingMetadatasBuilder_ != null) { + return samplingMetadatasBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(samplingMetadatas_); + } + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public com.google.analytics.data.v1alpha.SamplingMetadata.Builder + addSamplingMetadatasBuilder() { + return getSamplingMetadatasFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.SamplingMetadata.getDefaultInstance()); + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public com.google.analytics.data.v1alpha.SamplingMetadata.Builder addSamplingMetadatasBuilder( + int index) { + return getSamplingMetadatasFieldBuilder() + .addBuilder( + index, com.google.analytics.data.v1alpha.SamplingMetadata.getDefaultInstance()); + } + /** + * + * + *
+     * If funnel report results are
+     * [sampled](https://support.google.com/analytics/answer/2637192), this
+     * describes what percentage of events were used in this funnel report. One
+     * `samplingMetadatas` is populated for each date range. Each
+     * `samplingMetadatas` corresponds to a date range in order that date ranges
+     * were specified in the request.
+     * However if the results are not sampled, this field will not be defined.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + public java.util.List + getSamplingMetadatasBuilderList() { + return getSamplingMetadatasFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.SamplingMetadata, + com.google.analytics.data.v1alpha.SamplingMetadata.Builder, + com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder> + getSamplingMetadatasFieldBuilder() { + if (samplingMetadatasBuilder_ == null) { + samplingMetadatasBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.SamplingMetadata, + com.google.analytics.data.v1alpha.SamplingMetadata.Builder, + com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder>( + samplingMetadatas_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + samplingMetadatas_ = null; + } + return samplingMetadatasBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.FunnelResponseMetadata) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelResponseMetadata) + private static final com.google.analytics.data.v1alpha.FunnelResponseMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelResponseMetadata(); + } + + public static com.google.analytics.data.v1alpha.FunnelResponseMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunnelResponseMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FunnelResponseMetadata(input, extensionRegistry); + } + }; + + public static 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.v1alpha.FunnelResponseMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadataOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadataOrBuilder.java new file mode 100644 index 00000000..6c7319b0 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadataOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/data/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface FunnelResponseMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelResponseMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * If funnel report results are
+   * [sampled](https://support.google.com/analytics/answer/2637192), this
+   * describes what percentage of events were used in this funnel report. One
+   * `samplingMetadatas` is populated for each date range. Each
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
+   * However if the results are not sampled, this field will not be defined.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + java.util.List getSamplingMetadatasList(); + /** + * + * + *
+   * If funnel report results are
+   * [sampled](https://support.google.com/analytics/answer/2637192), this
+   * describes what percentage of events were used in this funnel report. One
+   * `samplingMetadatas` is populated for each date range. Each
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
+   * However if the results are not sampled, this field will not be defined.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(int index); + /** + * + * + *
+   * If funnel report results are
+   * [sampled](https://support.google.com/analytics/answer/2637192), this
+   * describes what percentage of events were used in this funnel report. One
+   * `samplingMetadatas` is populated for each date range. Each
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
+   * However if the results are not sampled, this field will not be defined.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + int getSamplingMetadatasCount(); + /** + * + * + *
+   * If funnel report results are
+   * [sampled](https://support.google.com/analytics/answer/2637192), this
+   * describes what percentage of events were used in this funnel report. One
+   * `samplingMetadatas` is populated for each date range. Each
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
+   * However if the results are not sampled, this field will not be defined.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + java.util.List + getSamplingMetadatasOrBuilderList(); + /** + * + * + *
+   * If funnel report results are
+   * [sampled](https://support.google.com/analytics/answer/2637192), this
+   * describes what percentage of events were used in this funnel report. One
+   * `samplingMetadatas` is populated for each date range. Each
+   * `samplingMetadatas` corresponds to a date range in order that date ranges
+   * were specified in the request.
+   * However if the results are not sampled, this field will not be defined.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; + */ + com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder getSamplingMetadatasOrBuilder( + int index); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStep.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStep.java new file mode 100644 index 00000000..e55b7100 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStep.java @@ -0,0 +1,1429 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Steps define the user journey you want to measure. Steps contain one or
+ * more conditions that your users must meet to be included in that step of
+ * the funnel journey.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelStep} + */ +public final class FunnelStep extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelStep) + FunnelStepOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelStep.newBuilder() to construct. + private FunnelStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FunnelStep() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelStep(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelStep( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 16: + { + isDirectlyFollowedBy_ = input.readBool(); + break; + } + case 26: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (((bitField0_ & 0x00000001) != 0)) { + subBuilder = withinDurationFromPriorStep_.toBuilder(); + } + withinDurationFromPriorStep_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(withinDurationFromPriorStep_); + withinDurationFromPriorStep_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000001; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder subBuilder = null; + if (filterExpression_ != null) { + subBuilder = filterExpression_.toBuilder(); + } + filterExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filterExpression_); + filterExpression_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelStep.class, + com.google.analytics.data.v1alpha.FunnelStep.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The distinctive name for this step. If unspecified, steps will be named
+   * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
+   * string value returned by the `funnelStepName` dimension. For example,
+   * specifying `name = Purchase` in the request's third funnel step will
+   * produce `3. Purchase` in the funnel report response.
+   * 
+ * + * 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 distinctive name for this step. If unspecified, steps will be named
+   * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
+   * string value returned by the `funnelStepName` dimension. For example,
+   * specifying `name = Purchase` in the request's third funnel step will
+   * produce `3. Purchase` in the funnel report response.
+   * 
+ * + * 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 IS_DIRECTLY_FOLLOWED_BY_FIELD_NUMBER = 2; + private boolean isDirectlyFollowedBy_; + /** + * + * + *
+   * If true, this step must directly follow the previous step. If false,
+   * there can be events between the previous step and this step. If
+   * unspecified, `isDirectlyFollowedBy` is treated as false.
+   * 
+ * + * bool is_directly_followed_by = 2; + * + * @return The isDirectlyFollowedBy. + */ + @java.lang.Override + public boolean getIsDirectlyFollowedBy() { + return isDirectlyFollowedBy_; + } + + public static final int WITHIN_DURATION_FROM_PRIOR_STEP_FIELD_NUMBER = 3; + private com.google.protobuf.Duration withinDurationFromPriorStep_; + /** + * + * + *
+   * If specified, this step must complete within this duration of the
+   * completion of the prior step. `withinDurationFromPriorStep` is inclusive
+   * of the endpoint at the microsecond granularity. For example a duration of
+   * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
+   * microsecond.
+   * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
+   * be separated by any time duration.
+   * 
+ * + * optional .google.protobuf.Duration within_duration_from_prior_step = 3; + * + * @return Whether the withinDurationFromPriorStep field is set. + */ + @java.lang.Override + public boolean hasWithinDurationFromPriorStep() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * If specified, this step must complete within this duration of the
+   * completion of the prior step. `withinDurationFromPriorStep` is inclusive
+   * of the endpoint at the microsecond granularity. For example a duration of
+   * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
+   * microsecond.
+   * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
+   * be separated by any time duration.
+   * 
+ * + * optional .google.protobuf.Duration within_duration_from_prior_step = 3; + * + * @return The withinDurationFromPriorStep. + */ + @java.lang.Override + public com.google.protobuf.Duration getWithinDurationFromPriorStep() { + return withinDurationFromPriorStep_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : withinDurationFromPriorStep_; + } + /** + * + * + *
+   * If specified, this step must complete within this duration of the
+   * completion of the prior step. `withinDurationFromPriorStep` is inclusive
+   * of the endpoint at the microsecond granularity. For example a duration of
+   * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
+   * microsecond.
+   * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
+   * be separated by any time duration.
+   * 
+ * + * optional .google.protobuf.Duration within_duration_from_prior_step = 3; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getWithinDurationFromPriorStepOrBuilder() { + return withinDurationFromPriorStep_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : withinDurationFromPriorStep_; + } + + public static final int FILTER_EXPRESSION_FIELD_NUMBER = 4; + private com.google.analytics.data.v1alpha.FunnelFilterExpression filterExpression_; + /** + * + * + *
+   * The condition that your users must meet to be included in this step of
+   * the funnel journey.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; + * + * @return Whether the filterExpression field is set. + */ + @java.lang.Override + public boolean hasFilterExpression() { + return filterExpression_ != null; + } + /** + * + * + *
+   * The condition that your users must meet to be included in this step of
+   * the funnel journey.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; + * + * @return The filterExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpression getFilterExpression() { + return filterExpression_ == null + ? com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance() + : filterExpression_; + } + /** + * + * + *
+   * The condition that your users must meet to be included in this step of
+   * the funnel journey.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder + getFilterExpressionOrBuilder() { + return getFilterExpression(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (isDirectlyFollowedBy_ != false) { + output.writeBool(2, isDirectlyFollowedBy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getWithinDurationFromPriorStep()); + } + if (filterExpression_ != null) { + output.writeMessage(4, getFilterExpression()); + } + 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 (isDirectlyFollowedBy_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isDirectlyFollowedBy_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getWithinDurationFromPriorStep()); + } + if (filterExpression_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFilterExpression()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.FunnelStep)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.FunnelStep other = + (com.google.analytics.data.v1alpha.FunnelStep) obj; + + if (!getName().equals(other.getName())) return false; + if (getIsDirectlyFollowedBy() != other.getIsDirectlyFollowedBy()) return false; + if (hasWithinDurationFromPriorStep() != other.hasWithinDurationFromPriorStep()) return false; + if (hasWithinDurationFromPriorStep()) { + if (!getWithinDurationFromPriorStep().equals(other.getWithinDurationFromPriorStep())) + return false; + } + if (hasFilterExpression() != other.hasFilterExpression()) return false; + if (hasFilterExpression()) { + if (!getFilterExpression().equals(other.getFilterExpression())) return false; + } + if (!unknownFields.equals(other.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) + IS_DIRECTLY_FOLLOWED_BY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsDirectlyFollowedBy()); + if (hasWithinDurationFromPriorStep()) { + hash = (37 * hash) + WITHIN_DURATION_FROM_PRIOR_STEP_FIELD_NUMBER; + hash = (53 * hash) + getWithinDurationFromPriorStep().hashCode(); + } + if (hasFilterExpression()) { + hash = (37 * hash) + FILTER_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getFilterExpression().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.FunnelStep parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelStep 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.v1alpha.FunnelStep parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelStep parseFrom( + 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.v1alpha.FunnelStep parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelStep parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.FunnelStep parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelStep parseFrom( + java.io.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.v1alpha.FunnelStep parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelStep parseDelimitedFrom( + java.io.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.v1alpha.FunnelStep parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelStep parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.FunnelStep prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Steps define the user journey you want to measure. Steps contain one or
+   * more conditions that your users must meet to be included in that step of
+   * the funnel journey.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelStep} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelStep) + com.google.analytics.data.v1alpha.FunnelStepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelStep.class, + com.google.analytics.data.v1alpha.FunnelStep.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.FunnelStep.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getWithinDurationFromPriorStepFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + isDirectlyFollowedBy_ = false; + + if (withinDurationFromPriorStepBuilder_ == null) { + withinDurationFromPriorStep_ = null; + } else { + withinDurationFromPriorStepBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + if (filterExpressionBuilder_ == null) { + filterExpression_ = null; + } else { + filterExpression_ = null; + filterExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelStep getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.FunnelStep.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelStep build() { + com.google.analytics.data.v1alpha.FunnelStep result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelStep buildPartial() { + com.google.analytics.data.v1alpha.FunnelStep result = + new com.google.analytics.data.v1alpha.FunnelStep(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + result.name_ = name_; + result.isDirectlyFollowedBy_ = isDirectlyFollowedBy_; + if (((from_bitField0_ & 0x00000001) != 0)) { + if (withinDurationFromPriorStepBuilder_ == null) { + result.withinDurationFromPriorStep_ = withinDurationFromPriorStep_; + } else { + result.withinDurationFromPriorStep_ = withinDurationFromPriorStepBuilder_.build(); + } + to_bitField0_ |= 0x00000001; + } + if (filterExpressionBuilder_ == null) { + result.filterExpression_ = filterExpression_; + } else { + result.filterExpression_ = filterExpressionBuilder_.build(); + } + 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.v1alpha.FunnelStep) { + return mergeFrom((com.google.analytics.data.v1alpha.FunnelStep) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelStep other) { + if (other == com.google.analytics.data.v1alpha.FunnelStep.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getIsDirectlyFollowedBy() != false) { + setIsDirectlyFollowedBy(other.getIsDirectlyFollowedBy()); + } + if (other.hasWithinDurationFromPriorStep()) { + mergeWithinDurationFromPriorStep(other.getWithinDurationFromPriorStep()); + } + if (other.hasFilterExpression()) { + mergeFilterExpression(other.getFilterExpression()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.FunnelStep parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.FunnelStep) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The distinctive name for this step. If unspecified, steps will be named
+     * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
+     * string value returned by the `funnelStepName` dimension. For example,
+     * specifying `name = Purchase` in the request's third funnel step will
+     * produce `3. Purchase` in the funnel report response.
+     * 
+ * + * 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 distinctive name for this step. If unspecified, steps will be named
+     * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
+     * string value returned by the `funnelStepName` dimension. For example,
+     * specifying `name = Purchase` in the request's third funnel step will
+     * produce `3. Purchase` in the funnel report response.
+     * 
+ * + * 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 distinctive name for this step. If unspecified, steps will be named
+     * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
+     * string value returned by the `funnelStepName` dimension. For example,
+     * specifying `name = Purchase` in the request's third funnel step will
+     * produce `3. Purchase` in the funnel report response.
+     * 
+ * + * 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 distinctive name for this step. If unspecified, steps will be named
+     * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
+     * string value returned by the `funnelStepName` dimension. For example,
+     * specifying `name = Purchase` in the request's third funnel step will
+     * produce `3. Purchase` in the funnel report response.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The distinctive name for this step. If unspecified, steps will be named
+     * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
+     * string value returned by the `funnelStepName` dimension. For example,
+     * specifying `name = Purchase` in the request's third funnel step will
+     * produce `3. Purchase` in the funnel report response.
+     * 
+ * + * 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 boolean isDirectlyFollowedBy_; + /** + * + * + *
+     * If true, this step must directly follow the previous step. If false,
+     * there can be events between the previous step and this step. If
+     * unspecified, `isDirectlyFollowedBy` is treated as false.
+     * 
+ * + * bool is_directly_followed_by = 2; + * + * @return The isDirectlyFollowedBy. + */ + @java.lang.Override + public boolean getIsDirectlyFollowedBy() { + return isDirectlyFollowedBy_; + } + /** + * + * + *
+     * If true, this step must directly follow the previous step. If false,
+     * there can be events between the previous step and this step. If
+     * unspecified, `isDirectlyFollowedBy` is treated as false.
+     * 
+ * + * bool is_directly_followed_by = 2; + * + * @param value The isDirectlyFollowedBy to set. + * @return This builder for chaining. + */ + public Builder setIsDirectlyFollowedBy(boolean value) { + + isDirectlyFollowedBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, this step must directly follow the previous step. If false,
+     * there can be events between the previous step and this step. If
+     * unspecified, `isDirectlyFollowedBy` is treated as false.
+     * 
+ * + * bool is_directly_followed_by = 2; + * + * @return This builder for chaining. + */ + public Builder clearIsDirectlyFollowedBy() { + + isDirectlyFollowedBy_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Duration withinDurationFromPriorStep_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + withinDurationFromPriorStepBuilder_; + /** + * + * + *
+     * If specified, this step must complete within this duration of the
+     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
+     * of the endpoint at the microsecond granularity. For example a duration of
+     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
+     * microsecond.
+     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
+     * be separated by any time duration.
+     * 
+ * + * optional .google.protobuf.Duration within_duration_from_prior_step = 3; + * + * @return Whether the withinDurationFromPriorStep field is set. + */ + public boolean hasWithinDurationFromPriorStep() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * If specified, this step must complete within this duration of the
+     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
+     * of the endpoint at the microsecond granularity. For example a duration of
+     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
+     * microsecond.
+     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
+     * be separated by any time duration.
+     * 
+ * + * optional .google.protobuf.Duration within_duration_from_prior_step = 3; + * + * @return The withinDurationFromPriorStep. + */ + public com.google.protobuf.Duration getWithinDurationFromPriorStep() { + if (withinDurationFromPriorStepBuilder_ == null) { + return withinDurationFromPriorStep_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : withinDurationFromPriorStep_; + } else { + return withinDurationFromPriorStepBuilder_.getMessage(); + } + } + /** + * + * + *
+     * If specified, this step must complete within this duration of the
+     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
+     * of the endpoint at the microsecond granularity. For example a duration of
+     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
+     * microsecond.
+     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
+     * be separated by any time duration.
+     * 
+ * + * optional .google.protobuf.Duration within_duration_from_prior_step = 3; + */ + public Builder setWithinDurationFromPriorStep(com.google.protobuf.Duration value) { + if (withinDurationFromPriorStepBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + withinDurationFromPriorStep_ = value; + onChanged(); + } else { + withinDurationFromPriorStepBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
+     * If specified, this step must complete within this duration of the
+     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
+     * of the endpoint at the microsecond granularity. For example a duration of
+     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
+     * microsecond.
+     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
+     * be separated by any time duration.
+     * 
+ * + * optional .google.protobuf.Duration within_duration_from_prior_step = 3; + */ + public Builder setWithinDurationFromPriorStep( + com.google.protobuf.Duration.Builder builderForValue) { + if (withinDurationFromPriorStepBuilder_ == null) { + withinDurationFromPriorStep_ = builderForValue.build(); + onChanged(); + } else { + withinDurationFromPriorStepBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
+     * If specified, this step must complete within this duration of the
+     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
+     * of the endpoint at the microsecond granularity. For example a duration of
+     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
+     * microsecond.
+     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
+     * be separated by any time duration.
+     * 
+ * + * optional .google.protobuf.Duration within_duration_from_prior_step = 3; + */ + public Builder mergeWithinDurationFromPriorStep(com.google.protobuf.Duration value) { + if (withinDurationFromPriorStepBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && withinDurationFromPriorStep_ != null + && withinDurationFromPriorStep_ != com.google.protobuf.Duration.getDefaultInstance()) { + withinDurationFromPriorStep_ = + com.google.protobuf.Duration.newBuilder(withinDurationFromPriorStep_) + .mergeFrom(value) + .buildPartial(); + } else { + withinDurationFromPriorStep_ = value; + } + onChanged(); + } else { + withinDurationFromPriorStepBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000001; + return this; + } + /** + * + * + *
+     * If specified, this step must complete within this duration of the
+     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
+     * of the endpoint at the microsecond granularity. For example a duration of
+     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
+     * microsecond.
+     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
+     * be separated by any time duration.
+     * 
+ * + * optional .google.protobuf.Duration within_duration_from_prior_step = 3; + */ + public Builder clearWithinDurationFromPriorStep() { + if (withinDurationFromPriorStepBuilder_ == null) { + withinDurationFromPriorStep_ = null; + onChanged(); + } else { + withinDurationFromPriorStepBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + /** + * + * + *
+     * If specified, this step must complete within this duration of the
+     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
+     * of the endpoint at the microsecond granularity. For example a duration of
+     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
+     * microsecond.
+     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
+     * be separated by any time duration.
+     * 
+ * + * optional .google.protobuf.Duration within_duration_from_prior_step = 3; + */ + public com.google.protobuf.Duration.Builder getWithinDurationFromPriorStepBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getWithinDurationFromPriorStepFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If specified, this step must complete within this duration of the
+     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
+     * of the endpoint at the microsecond granularity. For example a duration of
+     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
+     * microsecond.
+     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
+     * be separated by any time duration.
+     * 
+ * + * optional .google.protobuf.Duration within_duration_from_prior_step = 3; + */ + public com.google.protobuf.DurationOrBuilder getWithinDurationFromPriorStepOrBuilder() { + if (withinDurationFromPriorStepBuilder_ != null) { + return withinDurationFromPriorStepBuilder_.getMessageOrBuilder(); + } else { + return withinDurationFromPriorStep_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : withinDurationFromPriorStep_; + } + } + /** + * + * + *
+     * If specified, this step must complete within this duration of the
+     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
+     * of the endpoint at the microsecond granularity. For example a duration of
+     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
+     * microsecond.
+     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
+     * be separated by any time duration.
+     * 
+ * + * optional .google.protobuf.Duration within_duration_from_prior_step = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getWithinDurationFromPriorStepFieldBuilder() { + if (withinDurationFromPriorStepBuilder_ == null) { + withinDurationFromPriorStepBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getWithinDurationFromPriorStep(), getParentForChildren(), isClean()); + withinDurationFromPriorStep_ = null; + } + return withinDurationFromPriorStepBuilder_; + } + + private com.google.analytics.data.v1alpha.FunnelFilterExpression filterExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelFilterExpression, + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder> + filterExpressionBuilder_; + /** + * + * + *
+     * The condition that your users must meet to be included in this step of
+     * the funnel journey.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; + * + * @return Whether the filterExpression field is set. + */ + public boolean hasFilterExpression() { + return filterExpressionBuilder_ != null || filterExpression_ != null; + } + /** + * + * + *
+     * The condition that your users must meet to be included in this step of
+     * the funnel journey.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; + * + * @return The filterExpression. + */ + public com.google.analytics.data.v1alpha.FunnelFilterExpression getFilterExpression() { + if (filterExpressionBuilder_ == null) { + return filterExpression_ == null + ? com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance() + : filterExpression_; + } else { + return filterExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The condition that your users must meet to be included in this step of
+     * the funnel journey.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; + */ + public Builder setFilterExpression( + com.google.analytics.data.v1alpha.FunnelFilterExpression value) { + if (filterExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filterExpression_ = value; + onChanged(); + } else { + filterExpressionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The condition that your users must meet to be included in this step of
+     * the funnel journey.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; + */ + public Builder setFilterExpression( + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder builderForValue) { + if (filterExpressionBuilder_ == null) { + filterExpression_ = builderForValue.build(); + onChanged(); + } else { + filterExpressionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The condition that your users must meet to be included in this step of
+     * the funnel journey.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; + */ + public Builder mergeFilterExpression( + com.google.analytics.data.v1alpha.FunnelFilterExpression value) { + if (filterExpressionBuilder_ == null) { + if (filterExpression_ != null) { + filterExpression_ = + com.google.analytics.data.v1alpha.FunnelFilterExpression.newBuilder(filterExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + filterExpression_ = value; + } + onChanged(); + } else { + filterExpressionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The condition that your users must meet to be included in this step of
+     * the funnel journey.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; + */ + public Builder clearFilterExpression() { + if (filterExpressionBuilder_ == null) { + filterExpression_ = null; + onChanged(); + } else { + filterExpression_ = null; + filterExpressionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The condition that your users must meet to be included in this step of
+     * the funnel journey.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; + */ + public com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder + getFilterExpressionBuilder() { + + onChanged(); + return getFilterExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The condition that your users must meet to be included in this step of
+     * the funnel journey.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; + */ + public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder + getFilterExpressionOrBuilder() { + if (filterExpressionBuilder_ != null) { + return filterExpressionBuilder_.getMessageOrBuilder(); + } else { + return filterExpression_ == null + ? com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance() + : filterExpression_; + } + } + /** + * + * + *
+     * The condition that your users must meet to be included in this step of
+     * the funnel journey.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelFilterExpression, + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder> + getFilterExpressionFieldBuilder() { + if (filterExpressionBuilder_ == null) { + filterExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelFilterExpression, + com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, + com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder>( + getFilterExpression(), getParentForChildren(), isClean()); + filterExpression_ = null; + } + return filterExpressionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.FunnelStep) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelStep) + private static final com.google.analytics.data.v1alpha.FunnelStep DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelStep(); + } + + public static com.google.analytics.data.v1alpha.FunnelStep getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunnelStep parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FunnelStep(input, extensionRegistry); + } + }; + + public static 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.v1alpha.FunnelStep getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStepOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStepOrBuilder.java new file mode 100644 index 00000000..88c76d17 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStepOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/data/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface FunnelStepOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelStep) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The distinctive name for this step. If unspecified, steps will be named
+   * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
+   * string value returned by the `funnelStepName` dimension. For example,
+   * specifying `name = Purchase` in the request's third funnel step will
+   * produce `3. Purchase` in the funnel report response.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The distinctive name for this step. If unspecified, steps will be named
+   * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
+   * string value returned by the `funnelStepName` dimension. For example,
+   * specifying `name = Purchase` in the request's third funnel step will
+   * produce `3. Purchase` in the funnel report response.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * If true, this step must directly follow the previous step. If false,
+   * there can be events between the previous step and this step. If
+   * unspecified, `isDirectlyFollowedBy` is treated as false.
+   * 
+ * + * bool is_directly_followed_by = 2; + * + * @return The isDirectlyFollowedBy. + */ + boolean getIsDirectlyFollowedBy(); + + /** + * + * + *
+   * If specified, this step must complete within this duration of the
+   * completion of the prior step. `withinDurationFromPriorStep` is inclusive
+   * of the endpoint at the microsecond granularity. For example a duration of
+   * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
+   * microsecond.
+   * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
+   * be separated by any time duration.
+   * 
+ * + * optional .google.protobuf.Duration within_duration_from_prior_step = 3; + * + * @return Whether the withinDurationFromPriorStep field is set. + */ + boolean hasWithinDurationFromPriorStep(); + /** + * + * + *
+   * If specified, this step must complete within this duration of the
+   * completion of the prior step. `withinDurationFromPriorStep` is inclusive
+   * of the endpoint at the microsecond granularity. For example a duration of
+   * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
+   * microsecond.
+   * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
+   * be separated by any time duration.
+   * 
+ * + * optional .google.protobuf.Duration within_duration_from_prior_step = 3; + * + * @return The withinDurationFromPriorStep. + */ + com.google.protobuf.Duration getWithinDurationFromPriorStep(); + /** + * + * + *
+   * If specified, this step must complete within this duration of the
+   * completion of the prior step. `withinDurationFromPriorStep` is inclusive
+   * of the endpoint at the microsecond granularity. For example a duration of
+   * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
+   * microsecond.
+   * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
+   * be separated by any time duration.
+   * 
+ * + * optional .google.protobuf.Duration within_duration_from_prior_step = 3; + */ + com.google.protobuf.DurationOrBuilder getWithinDurationFromPriorStepOrBuilder(); + + /** + * + * + *
+   * The condition that your users must meet to be included in this step of
+   * the funnel journey.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; + * + * @return Whether the filterExpression field is set. + */ + boolean hasFilterExpression(); + /** + * + * + *
+   * The condition that your users must meet to be included in this step of
+   * the funnel journey.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; + * + * @return The filterExpression. + */ + com.google.analytics.data.v1alpha.FunnelFilterExpression getFilterExpression(); + /** + * + * + *
+   * The condition that your users must meet to be included in this step of
+   * the funnel journey.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; + */ + com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder getFilterExpressionOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReport.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReport.java new file mode 100644 index 00000000..f7d89e9b --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReport.java @@ -0,0 +1,2327 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Funnel sub reports contain the dimension and metric data values. For example,
+ * 12 users reached the second step of the funnel.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelSubReport} + */ +public final class FunnelSubReport extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelSubReport) + FunnelSubReportOrBuilder { + private static final long serialVersionUID = 0L; + // Use FunnelSubReport.newBuilder() to construct. + private FunnelSubReport(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private FunnelSubReport() { + dimensionHeaders_ = java.util.Collections.emptyList(); + metricHeaders_ = java.util.Collections.emptyList(); + rows_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new FunnelSubReport(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private FunnelSubReport( + 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.v1alpha.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.v1alpha.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.v1alpha.Row.parser(), extensionRegistry)); + break; + } + case 34: + { + com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder subBuilder = null; + if (metadata_ != null) { + subBuilder = metadata_.toBuilder(); + } + metadata_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelResponseMetadata.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(metadata_); + metadata_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + 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_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelSubReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelSubReport.class, + com.google.analytics.data.v1alpha.FunnelSubReport.Builder.class); + } + + public static final int DIMENSION_HEADERS_FIELD_NUMBER = 1; + private java.util.List dimensionHeaders_; + /** + * + * + *
+   * Describes dimension columns. Funnel reports always include the funnel step
+   * dimension in sub report responses. Additional dimensions like breakdowns,
+   * dates, and next actions may be present in the response if requested.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + @java.lang.Override + public java.util.List + getDimensionHeadersList() { + return dimensionHeaders_; + } + /** + * + * + *
+   * Describes dimension columns. Funnel reports always include the funnel step
+   * dimension in sub report responses. Additional dimensions like breakdowns,
+   * dates, and next actions may be present in the response if requested.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + @java.lang.Override + public java.util.List + getDimensionHeadersOrBuilderList() { + return dimensionHeaders_; + } + /** + * + * + *
+   * Describes dimension columns. Funnel reports always include the funnel step
+   * dimension in sub report responses. Additional dimensions like breakdowns,
+   * dates, and next actions may be present in the response if requested.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + @java.lang.Override + public int getDimensionHeadersCount() { + return dimensionHeaders_.size(); + } + /** + * + * + *
+   * Describes dimension columns. Funnel reports always include the funnel step
+   * dimension in sub report responses. Additional dimensions like breakdowns,
+   * dates, and next actions may be present in the response if requested.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index) { + return dimensionHeaders_.get(index); + } + /** + * + * + *
+   * Describes dimension columns. Funnel reports always include the funnel step
+   * dimension in sub report responses. Additional dimensions like breakdowns,
+   * dates, and next actions may be present in the response if requested.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
+   * report responses. The funnel table includes additional metrics like
+   * completion rate, abandonments, and abandonments rate.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + @java.lang.Override + public java.util.List getMetricHeadersList() { + return metricHeaders_; + } + /** + * + * + *
+   * Describes metric columns. Funnel reports always include active users in sub
+   * report responses. The funnel table includes additional metrics like
+   * completion rate, abandonments, and abandonments rate.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + @java.lang.Override + public java.util.List + getMetricHeadersOrBuilderList() { + return metricHeaders_; + } + /** + * + * + *
+   * Describes metric columns. Funnel reports always include active users in sub
+   * report responses. The funnel table includes additional metrics like
+   * completion rate, abandonments, and abandonments rate.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + @java.lang.Override + public int getMetricHeadersCount() { + return metricHeaders_.size(); + } + /** + * + * + *
+   * Describes metric columns. Funnel reports always include active users in sub
+   * report responses. The funnel table includes additional metrics like
+   * completion rate, abandonments, and abandonments rate.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricHeader getMetricHeaders(int index) { + return metricHeaders_.get(index); + } + /** + * + * + *
+   * Describes metric columns. Funnel reports always include active users in sub
+   * report responses. The funnel table includes additional metrics like
+   * completion rate, abandonments, and abandonments rate.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Row rows = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Row getRows(int index) { + return rows_.get(index); + } + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.RowOrBuilder getRowsOrBuilder(int index) { + return rows_.get(index); + } + + public static final int METADATA_FIELD_NUMBER = 4; + private com.google.analytics.data.v1alpha.FunnelResponseMetadata metadata_; + /** + * + * + *
+   * Metadata for the funnel report.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return metadata_ != null; + } + /** + * + * + *
+   * Metadata for the funnel report.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelResponseMetadata getMetadata() { + return metadata_ == null + ? com.google.analytics.data.v1alpha.FunnelResponseMetadata.getDefaultInstance() + : metadata_; + } + /** + * + * + *
+   * Metadata for the funnel report.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder getMetadataOrBuilder() { + return getMetadata(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + 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)); + } + if (metadata_ != null) { + output.writeMessage(4, getMetadata()); + } + 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)); + } + if (metadata_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.FunnelSubReport)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.FunnelSubReport other = + (com.google.analytics.data.v1alpha.FunnelSubReport) obj; + + if (!getDimensionHeadersList().equals(other.getDimensionHeadersList())) return false; + if (!getMetricHeadersList().equals(other.getMetricHeadersList())) return false; + if (!getRowsList().equals(other.getRowsList())) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + 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 (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.FunnelSubReport parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelSubReport 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.v1alpha.FunnelSubReport parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelSubReport parseFrom( + 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.v1alpha.FunnelSubReport parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.FunnelSubReport parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.FunnelSubReport parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelSubReport parseFrom( + java.io.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.v1alpha.FunnelSubReport parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelSubReport parseDelimitedFrom( + java.io.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.v1alpha.FunnelSubReport parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.FunnelSubReport parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.FunnelSubReport prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Funnel sub reports contain the dimension and metric data values. For example,
+   * 12 users reached the second step of the funnel.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.FunnelSubReport} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelSubReport) + com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelSubReport_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.FunnelSubReport.class, + com.google.analytics.data.v1alpha.FunnelSubReport.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.FunnelSubReport.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(); + } + } + + @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 (metadataBuilder_ == null) { + metadata_ = null; + } else { + metadata_ = null; + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelSubReport getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.FunnelSubReport.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelSubReport build() { + com.google.analytics.data.v1alpha.FunnelSubReport result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelSubReport buildPartial() { + com.google.analytics.data.v1alpha.FunnelSubReport result = + new com.google.analytics.data.v1alpha.FunnelSubReport(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 (metadataBuilder_ == null) { + result.metadata_ = metadata_; + } else { + result.metadata_ = metadataBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.data.v1alpha.FunnelSubReport) { + return mergeFrom((com.google.analytics.data.v1alpha.FunnelSubReport) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelSubReport other) { + if (other == com.google.analytics.data.v1alpha.FunnelSubReport.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 (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.data.v1alpha.FunnelSubReport parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.FunnelSubReport) 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.v1alpha.DimensionHeader, + com.google.analytics.data.v1alpha.DimensionHeader.Builder, + com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder> + dimensionHeadersBuilder_; + + /** + * + * + *
+     * Describes dimension columns. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.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. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public int getDimensionHeadersCount() { + if (dimensionHeadersBuilder_ == null) { + return dimensionHeaders_.size(); + } else { + return dimensionHeadersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Describes dimension columns. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index) { + if (dimensionHeadersBuilder_ == null) { + return dimensionHeaders_.get(index); + } else { + return dimensionHeadersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Describes dimension columns. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public Builder setDimensionHeaders( + int index, com.google.analytics.data.v1alpha.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. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public Builder setDimensionHeaders( + int index, com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.set(index, builderForValue.build()); + onChanged(); + } else { + dimensionHeadersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Describes dimension columns. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public Builder addDimensionHeaders(com.google.analytics.data.v1alpha.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. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public Builder addDimensionHeaders( + int index, com.google.analytics.data.v1alpha.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. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public Builder addDimensionHeaders( + com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(builderForValue.build()); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Describes dimension columns. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public Builder addDimensionHeaders( + int index, com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) { + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(index, builderForValue.build()); + onChanged(); + } else { + dimensionHeadersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Describes dimension columns. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.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. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.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. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.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. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public com.google.analytics.data.v1alpha.DimensionHeader.Builder getDimensionHeadersBuilder( + int index) { + return getDimensionHeadersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Describes dimension columns. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder( + int index) { + if (dimensionHeadersBuilder_ == null) { + return dimensionHeaders_.get(index); + } else { + return dimensionHeadersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Describes dimension columns. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.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. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder() { + return getDimensionHeadersFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance()); + } + /** + * + * + *
+     * Describes dimension columns. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder( + int index) { + return getDimensionHeadersFieldBuilder() + .addBuilder( + index, com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance()); + } + /** + * + * + *
+     * Describes dimension columns. Funnel reports always include the funnel step
+     * dimension in sub report responses. Additional dimensions like breakdowns,
+     * dates, and next actions may be present in the response if requested.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + public java.util.List + getDimensionHeadersBuilderList() { + return getDimensionHeadersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.DimensionHeader, + com.google.analytics.data.v1alpha.DimensionHeader.Builder, + com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder> + getDimensionHeadersFieldBuilder() { + if (dimensionHeadersBuilder_ == null) { + dimensionHeadersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.DimensionHeader, + com.google.analytics.data.v1alpha.DimensionHeader.Builder, + com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader, + com.google.analytics.data.v1alpha.MetricHeader.Builder, + com.google.analytics.data.v1alpha.MetricHeaderOrBuilder> + metricHeadersBuilder_; + + /** + * + * + *
+     * Describes metric columns. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public int getMetricHeadersCount() { + if (metricHeadersBuilder_ == null) { + return metricHeaders_.size(); + } else { + return metricHeadersBuilder_.getCount(); + } + } + /** + * + * + *
+     * Describes metric columns. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public com.google.analytics.data.v1alpha.MetricHeader getMetricHeaders(int index) { + if (metricHeadersBuilder_ == null) { + return metricHeaders_.get(index); + } else { + return metricHeadersBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Describes metric columns. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public Builder setMetricHeaders( + int index, com.google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public Builder setMetricHeaders( + int index, com.google.analytics.data.v1alpha.MetricHeader.Builder builderForValue) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.set(index, builderForValue.build()); + onChanged(); + } else { + metricHeadersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Describes metric columns. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders(com.google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders( + int index, com.google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders( + com.google.analytics.data.v1alpha.MetricHeader.Builder builderForValue) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(builderForValue.build()); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Describes metric columns. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public Builder addMetricHeaders( + int index, com.google.analytics.data.v1alpha.MetricHeader.Builder builderForValue) { + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(index, builderForValue.build()); + onChanged(); + } else { + metricHeadersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Describes metric columns. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public com.google.analytics.data.v1alpha.MetricHeader.Builder getMetricHeadersBuilder( + int index) { + return getMetricHeadersFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Describes metric columns. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersOrBuilder( + int index) { + if (metricHeadersBuilder_ == null) { + return metricHeaders_.get(index); + } else { + return metricHeadersBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Describes metric columns. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBuilder() { + return getMetricHeadersFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance()); + } + /** + * + * + *
+     * Describes metric columns. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBuilder( + int index) { + return getMetricHeadersFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance()); + } + /** + * + * + *
+     * Describes metric columns. Funnel reports always include active users in sub
+     * report responses. The funnel table includes additional metrics like
+     * completion rate, abandonments, and abandonments rate.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + public java.util.List + getMetricHeadersBuilderList() { + return getMetricHeadersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.MetricHeader, + com.google.analytics.data.v1alpha.MetricHeader.Builder, + com.google.analytics.data.v1alpha.MetricHeaderOrBuilder> + getMetricHeadersFieldBuilder() { + if (metricHeadersBuilder_ == null) { + metricHeadersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.MetricHeader, + com.google.analytics.data.v1alpha.MetricHeader.Builder, + com.google.analytics.data.v1alpha.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.v1alpha.Row, + com.google.analytics.data.v1alpha.Row.Builder, + com.google.analytics.data.v1alpha.RowOrBuilder> + rowsBuilder_; + + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Row rows = 3; + */ + public com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; + */ + public Builder setRows(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; + */ + public Builder setRows( + int index, com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; + */ + public Builder addRows(com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; + */ + public Builder addRows(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; + */ + public Builder addRows(com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; + */ + public Builder addRows( + int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Row rows = 3; + */ + public com.google.analytics.data.v1alpha.Row.Builder getRowsBuilder(int index) { + return getRowsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Row rows = 3; + */ + public com.google.analytics.data.v1alpha.Row.Builder addRowsBuilder() { + return getRowsFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.Row.getDefaultInstance()); + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public com.google.analytics.data.v1alpha.Row.Builder addRowsBuilder(int index) { + return getRowsFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.Row.getDefaultInstance()); + } + /** + * + * + *
+     * Rows of dimension value combinations and metric values in the report.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + public java.util.List getRowsBuilderList() { + return getRowsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.Row, + com.google.analytics.data.v1alpha.Row.Builder, + com.google.analytics.data.v1alpha.RowOrBuilder> + getRowsFieldBuilder() { + if (rowsBuilder_ == null) { + rowsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.Row, + com.google.analytics.data.v1alpha.Row.Builder, + com.google.analytics.data.v1alpha.RowOrBuilder>( + rows_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + rows_ = null; + } + return rowsBuilder_; + } + + private com.google.analytics.data.v1alpha.FunnelResponseMetadata metadata_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelResponseMetadata, + com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder, + com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder> + metadataBuilder_; + /** + * + * + *
+     * Metadata for the funnel report.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return metadataBuilder_ != null || metadata_ != null; + } + /** + * + * + *
+     * Metadata for the funnel report.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; + * + * @return The metadata. + */ + public com.google.analytics.data.v1alpha.FunnelResponseMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.analytics.data.v1alpha.FunnelResponseMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Metadata for the funnel report.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; + */ + public Builder setMetadata(com.google.analytics.data.v1alpha.FunnelResponseMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + onChanged(); + } else { + metadataBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Metadata for the funnel report.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; + */ + public Builder setMetadata( + com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + onChanged(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Metadata for the funnel report.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; + */ + public Builder mergeMetadata(com.google.analytics.data.v1alpha.FunnelResponseMetadata value) { + if (metadataBuilder_ == null) { + if (metadata_ != null) { + metadata_ = + com.google.analytics.data.v1alpha.FunnelResponseMetadata.newBuilder(metadata_) + .mergeFrom(value) + .buildPartial(); + } else { + metadata_ = value; + } + onChanged(); + } else { + metadataBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Metadata for the funnel report.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; + */ + public Builder clearMetadata() { + if (metadataBuilder_ == null) { + metadata_ = null; + onChanged(); + } else { + metadata_ = null; + metadataBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Metadata for the funnel report.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; + */ + public com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder getMetadataBuilder() { + + onChanged(); + return getMetadataFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Metadata for the funnel report.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; + */ + public com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder + getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.analytics.data.v1alpha.FunnelResponseMetadata.getDefaultInstance() + : metadata_; + } + } + /** + * + * + *
+     * Metadata for the funnel report.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelResponseMetadata, + com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder, + com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder> + getMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelResponseMetadata, + com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder, + com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.FunnelSubReport) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelSubReport) + private static final com.google.analytics.data.v1alpha.FunnelSubReport DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelSubReport(); + } + + public static com.google.analytics.data.v1alpha.FunnelSubReport getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FunnelSubReport parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new FunnelSubReport(input, extensionRegistry); + } + }; + + public static 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.v1alpha.FunnelSubReport getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReportOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReportOrBuilder.java new file mode 100644 index 00000000..086a14da --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReportOrBuilder.java @@ -0,0 +1,236 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface FunnelSubReportOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelSubReport) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Describes dimension columns. Funnel reports always include the funnel step
+   * dimension in sub report responses. Additional dimensions like breakdowns,
+   * dates, and next actions may be present in the response if requested.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + java.util.List getDimensionHeadersList(); + /** + * + * + *
+   * Describes dimension columns. Funnel reports always include the funnel step
+   * dimension in sub report responses. Additional dimensions like breakdowns,
+   * dates, and next actions may be present in the response if requested.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index); + /** + * + * + *
+   * Describes dimension columns. Funnel reports always include the funnel step
+   * dimension in sub report responses. Additional dimensions like breakdowns,
+   * dates, and next actions may be present in the response if requested.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + int getDimensionHeadersCount(); + /** + * + * + *
+   * Describes dimension columns. Funnel reports always include the funnel step
+   * dimension in sub report responses. Additional dimensions like breakdowns,
+   * dates, and next actions may be present in the response if requested.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + java.util.List + getDimensionHeadersOrBuilderList(); + /** + * + * + *
+   * Describes dimension columns. Funnel reports always include the funnel step
+   * dimension in sub report responses. Additional dimensions like breakdowns,
+   * dates, and next actions may be present in the response if requested.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; + */ + com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder( + int index); + + /** + * + * + *
+   * Describes metric columns. Funnel reports always include active users in sub
+   * report responses. The funnel table includes additional metrics like
+   * completion rate, abandonments, and abandonments rate.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + java.util.List getMetricHeadersList(); + /** + * + * + *
+   * Describes metric columns. Funnel reports always include active users in sub
+   * report responses. The funnel table includes additional metrics like
+   * completion rate, abandonments, and abandonments rate.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + com.google.analytics.data.v1alpha.MetricHeader getMetricHeaders(int index); + /** + * + * + *
+   * Describes metric columns. Funnel reports always include active users in sub
+   * report responses. The funnel table includes additional metrics like
+   * completion rate, abandonments, and abandonments rate.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + int getMetricHeadersCount(); + /** + * + * + *
+   * Describes metric columns. Funnel reports always include active users in sub
+   * report responses. The funnel table includes additional metrics like
+   * completion rate, abandonments, and abandonments rate.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + java.util.List + getMetricHeadersOrBuilderList(); + /** + * + * + *
+   * Describes metric columns. Funnel reports always include active users in sub
+   * report responses. The funnel table includes additional metrics like
+   * completion rate, abandonments, and abandonments rate.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; + */ + com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersOrBuilder(int index); + + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + java.util.List getRowsList(); + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + com.google.analytics.data.v1alpha.Row getRows(int index); + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + int getRowsCount(); + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + java.util.List getRowsOrBuilderList(); + /** + * + * + *
+   * Rows of dimension value combinations and metric values in the report.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Row rows = 3; + */ + com.google.analytics.data.v1alpha.RowOrBuilder getRowsOrBuilder(int index); + + /** + * + * + *
+   * Metadata for the funnel report.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + /** + * + * + *
+   * Metadata for the funnel report.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; + * + * @return The metadata. + */ + com.google.analytics.data.v1alpha.FunnelResponseMetadata getMetadata(); + /** + * + * + *
+   * Metadata for the funnel report.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; + */ + com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder getMetadataOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilter.java new file mode 100644 index 00000000..b25649d5 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilter.java @@ -0,0 +1,840 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * The result needs to be in a list of string values.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.InListFilter} + */ +public final class InListFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + values_ = values_.getUnmodifiableView(); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_InListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_InListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.InListFilter.class, + com.google.analytics.data.v1alpha.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.v1alpha.InListFilter)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.InListFilter other = + (com.google.analytics.data.v1alpha.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.v1alpha.InListFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.InListFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.InListFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.InListFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.InListFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.InListFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.InListFilter) + com.google.analytics.data.v1alpha.InListFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_InListFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_InListFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.InListFilter.class, + com.google.analytics.data.v1alpha.InListFilter.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_InListFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilter getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilter build() { + com.google.analytics.data.v1alpha.InListFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilter buildPartial() { + com.google.analytics.data.v1alpha.InListFilter result = + new com.google.analytics.data.v1alpha.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.v1alpha.InListFilter) { + return mergeFrom((com.google.analytics.data.v1alpha.InListFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.InListFilter other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.InListFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.InListFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.InListFilter) + private static final com.google.analytics.data.v1alpha.InListFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.InListFilter(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.InListFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilterOrBuilder.java new file mode 100644 index 00000000..b857975e --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilterOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface InListFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java new file mode 100644 index 00000000..b2605e77 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java @@ -0,0 +1,792 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * 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.v1alpha.MetricHeader} + */ +public final class MetricHeader extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.MetricHeader.class, + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricType type = 2; + * + * @return The type. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricType getType() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.MetricType result = + com.google.analytics.data.v1alpha.MetricType.valueOf(type_); + return result == null ? com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricHeader)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.MetricHeader other = + (com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricHeader} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.MetricHeader) + com.google.analytics.data.v1alpha.MetricHeaderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricHeader_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.MetricHeader.class, + com.google.analytics.data.v1alpha.MetricHeader.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricHeader getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricHeader build() { + com.google.analytics.data.v1alpha.MetricHeader result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricHeader buildPartial() { + com.google.analytics.data.v1alpha.MetricHeader result = + new com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader) { + return mergeFrom((com.google.analytics.data.v1alpha.MetricHeader) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.MetricHeader other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricType type = 2; + * + * @return The type. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricType getType() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.MetricType result = + com.google.analytics.data.v1alpha.MetricType.valueOf(type_); + return result == null ? com.google.analytics.data.v1alpha.MetricType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The metric's data type.
+     * 
+ * + * .google.analytics.data.v1alpha.MetricType type = 2; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.analytics.data.v1alpha.MetricType value) { + if (value == null) { + throw new NullPointerException(); + } + + type_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The metric's data type.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.MetricHeader) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.MetricHeader) + private static final com.google.analytics.data.v1alpha.MetricHeader DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.MetricHeader(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeaderOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeaderOrBuilder.java new file mode 100644 index 00000000..afb74089 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeaderOrBuilder.java @@ -0,0 +1,75 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface MetricHeaderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.MetricType type = 2; + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + /** + * + * + *
+   * The metric's data type.
+   * 
+ * + * .google.analytics.data.v1alpha.MetricType type = 2; + * + * @return The type. + */ + com.google.analytics.data.v1alpha.MetricType getType(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java new file mode 100644 index 00000000..96026dd4 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java @@ -0,0 +1,398 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * A metric's value type.
+ * 
+ * + * Protobuf enum {@code google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto.getDescriptor() + .getEnumTypes() + .get(6); + } + + 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.v1alpha.MetricType) +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java new file mode 100644 index 00000000..98b33c48 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java @@ -0,0 +1,766 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * The value of a metric.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.MetricValue} + */ +public final class MetricValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.MetricValue.class, + com.google.analytics.data.v1alpha.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.v1alpha.MetricValue)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.MetricValue other = + (com.google.analytics.data.v1alpha.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.v1alpha.MetricValue parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.MetricValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.MetricValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.MetricValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.MetricValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.MetricValue) + com.google.analytics.data.v1alpha.MetricValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.MetricValue.class, + com.google.analytics.data.v1alpha.MetricValue.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_MetricValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricValue getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.MetricValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricValue build() { + com.google.analytics.data.v1alpha.MetricValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricValue buildPartial() { + com.google.analytics.data.v1alpha.MetricValue result = + new com.google.analytics.data.v1alpha.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.v1alpha.MetricValue) { + return mergeFrom((com.google.analytics.data.v1alpha.MetricValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.MetricValue other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.MetricValue parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.MetricValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.MetricValue) + private static final com.google.analytics.data.v1alpha.MetricValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.MetricValue(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.MetricValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValueOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValueOrBuilder.java new file mode 100644 index 00000000..b5a984e9 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValueOrBuilder.java @@ -0,0 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/data/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface MetricValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.MetricValue.OneValueCase getOneValueCase(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilter.java new file mode 100644 index 00000000..63121287 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilter.java @@ -0,0 +1,1117 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Filters for numeric or date values.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.NumericFilter} + */ +public final class NumericFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.NumericValue.Builder subBuilder = null; + if (value_ != null) { + subBuilder = value_.toBuilder(); + } + value_ = + input.readMessage( + com.google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_NumericFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_NumericFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.NumericFilter.class, + com.google.analytics.data.v1alpha.NumericFilter.Builder.class); + } + + /** + * + * + *
+   * The operation applied to a numeric filter
+   * 
+ * + * Protobuf enum {@code google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.NumericFilter.Operation) + } + + public static final int OPERATION_FIELD_NUMBER = 1; + private int operation_; + /** + * + * + *
+   * The operation type for this filter.
+   * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.NumericFilter.Operation operation = 1; + * + * @return The operation. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilter.Operation getOperation() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.NumericFilter.Operation result = + com.google.analytics.data.v1alpha.NumericFilter.Operation.valueOf(operation_); + return result == null + ? com.google.analytics.data.v1alpha.NumericFilter.Operation.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.analytics.data.v1alpha.NumericValue value_; + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.NumericValue value = 2; + * + * @return The value. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericValue getValue() { + return value_ == null + ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() + : value_; + } + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericValue value = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.NumericFilter)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.NumericFilter other = + (com.google.analytics.data.v1alpha.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.v1alpha.NumericFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.NumericFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.NumericFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.NumericFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.NumericFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.NumericFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.NumericFilter) + com.google.analytics.data.v1alpha.NumericFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_NumericFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_NumericFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.NumericFilter.class, + com.google.analytics.data.v1alpha.NumericFilter.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_NumericFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilter getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilter build() { + com.google.analytics.data.v1alpha.NumericFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilter buildPartial() { + com.google.analytics.data.v1alpha.NumericFilter result = + new com.google.analytics.data.v1alpha.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.v1alpha.NumericFilter) { + return mergeFrom((com.google.analytics.data.v1alpha.NumericFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.NumericFilter other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.NumericFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.NumericFilter.Operation operation = 1; + * + * @return The operation. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilter.Operation getOperation() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.NumericFilter.Operation result = + com.google.analytics.data.v1alpha.NumericFilter.Operation.valueOf(operation_); + return result == null + ? com.google.analytics.data.v1alpha.NumericFilter.Operation.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter.Operation operation = 1; + * + * @param value The operation to set. + * @return This builder for chaining. + */ + public Builder setOperation(com.google.analytics.data.v1alpha.NumericFilter.Operation value) { + if (value == null) { + throw new NullPointerException(); + } + + operation_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The operation type for this filter.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter.Operation operation = 1; + * + * @return This builder for chaining. + */ + public Builder clearOperation() { + + operation_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.data.v1alpha.NumericValue value_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericValue, + com.google.analytics.data.v1alpha.NumericValue.Builder, + com.google.analytics.data.v1alpha.NumericValueOrBuilder> + valueBuilder_; + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.NumericValue value = 2; + * + * @return The value. + */ + public com.google.analytics.data.v1alpha.NumericValue getValue() { + if (valueBuilder_ == null) { + return value_ == null + ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() + : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericValue value = 2; + */ + public Builder setValue(com.google.analytics.data.v1alpha.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.v1alpha.NumericValue value = 2; + */ + public Builder setValue( + com.google.analytics.data.v1alpha.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.v1alpha.NumericValue value = 2; + */ + public Builder mergeValue(com.google.analytics.data.v1alpha.NumericValue value) { + if (valueBuilder_ == null) { + if (value_ != null) { + value_ = + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.NumericValue value = 2; + */ + public com.google.analytics.data.v1alpha.NumericValue.Builder getValueBuilder() { + + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericValue value = 2; + */ + public com.google.analytics.data.v1alpha.NumericValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null + ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() + : value_; + } + } + /** + * + * + *
+     * A numeric value or a date value.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericValue value = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericValue, + com.google.analytics.data.v1alpha.NumericValue.Builder, + com.google.analytics.data.v1alpha.NumericValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericValue, + com.google.analytics.data.v1alpha.NumericValue.Builder, + com.google.analytics.data.v1alpha.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.v1alpha.NumericFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.NumericFilter) + private static final com.google.analytics.data.v1alpha.NumericFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.NumericFilter(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.NumericFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilterOrBuilder.java new file mode 100644 index 00000000..d7653660 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilterOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface NumericFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.NumericFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation type for this filter.
+   * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.NumericFilter.Operation operation = 1; + * + * @return The operation. + */ + com.google.analytics.data.v1alpha.NumericFilter.Operation getOperation(); + + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericValue value = 2; + * + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericValue value = 2; + * + * @return The value. + */ + com.google.analytics.data.v1alpha.NumericValue getValue(); + /** + * + * + *
+   * A numeric value or a date value.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericValue value = 2; + */ + com.google.analytics.data.v1alpha.NumericValueOrBuilder getValueOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java new file mode 100644 index 00000000..6dc7d01d --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java @@ -0,0 +1,805 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * To represent a number.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.NumericValue} + */ +public final class NumericValue extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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: + { + oneValue_ = input.readInt64(); + oneValueCase_ = 1; + break; + } + case 17: + { + oneValue_ = input.readDouble(); + oneValueCase_ = 2; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_NumericValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_NumericValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.NumericValue.class, + com.google.analytics.data.v1alpha.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.v1alpha.NumericValue)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.NumericValue other = + (com.google.analytics.data.v1alpha.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.v1alpha.NumericValue parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.NumericValue parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.NumericValue parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.NumericValue parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.NumericValue parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.NumericValue} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.NumericValue) + com.google.analytics.data.v1alpha.NumericValueOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_NumericValue_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_NumericValue_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.NumericValue.class, + com.google.analytics.data.v1alpha.NumericValue.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_NumericValue_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericValue getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericValue build() { + com.google.analytics.data.v1alpha.NumericValue result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericValue buildPartial() { + com.google.analytics.data.v1alpha.NumericValue result = + new com.google.analytics.data.v1alpha.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.v1alpha.NumericValue) { + return mergeFrom((com.google.analytics.data.v1alpha.NumericValue) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.NumericValue other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.NumericValue parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.NumericValue) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.NumericValue) + private static final com.google.analytics.data.v1alpha.NumericValue DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.NumericValue(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.NumericValue getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValueOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValueOrBuilder.java new file mode 100644 index 00000000..fa7ace8c --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValueOrBuilder.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/data/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface NumericValueOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.NumericValue.OneValueCase getOneValueCase(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java new file mode 100644 index 00000000..975f743d --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java @@ -0,0 +1,2038 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * 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.v1alpha.PropertyQuota} + */ +public final class PropertyQuota extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.QuotaStatus.Builder subBuilder = null; + if (tokensPerDay_ != null) { + subBuilder = tokensPerDay_.toBuilder(); + } + tokensPerDay_ = + input.readMessage( + com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tokensPerDay_); + tokensPerDay_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.analytics.data.v1alpha.QuotaStatus.Builder subBuilder = null; + if (tokensPerHour_ != null) { + subBuilder = tokensPerHour_.toBuilder(); + } + tokensPerHour_ = + input.readMessage( + com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(tokensPerHour_); + tokensPerHour_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.analytics.data.v1alpha.QuotaStatus.Builder subBuilder = null; + if (concurrentRequests_ != null) { + subBuilder = concurrentRequests_.toBuilder(); + } + concurrentRequests_ = + input.readMessage( + com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(concurrentRequests_); + concurrentRequests_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.analytics.data.v1alpha.QuotaStatus.Builder subBuilder = null; + if (serverErrorsPerProjectPerHour_ != null) { + subBuilder = serverErrorsPerProjectPerHour_.toBuilder(); + } + serverErrorsPerProjectPerHour_ = + input.readMessage( + com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(serverErrorsPerProjectPerHour_); + serverErrorsPerProjectPerHour_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.analytics.data.v1alpha.QuotaStatus.Builder subBuilder = null; + if (potentiallyThresholdedRequestsPerHour_ != null) { + subBuilder = potentiallyThresholdedRequestsPerHour_.toBuilder(); + } + potentiallyThresholdedRequestsPerHour_ = + input.readMessage( + com.google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_PropertyQuota_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.PropertyQuota.class, + com.google.analytics.data.v1alpha.PropertyQuota.Builder.class); + } + + public static final int TOKENS_PER_DAY_FIELD_NUMBER = 1; + private com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; + * + * @return The tokensPerDay. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.QuotaStatus getTokensPerDay() { + return tokensPerDay_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerDayOrBuilder() { + return getTokensPerDay(); + } + + public static final int TOKENS_PER_HOUR_FIELD_NUMBER = 2; + private com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; + * + * @return The tokensPerHour. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.QuotaStatus getTokensPerHour() { + return tokensPerHour_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerHourOrBuilder() { + return getTokensPerHour(); + } + + public static final int CONCURRENT_REQUESTS_FIELD_NUMBER = 3; + private com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; + * + * @return The concurrentRequests. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.QuotaStatus getConcurrentRequests() { + return concurrentRequests_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getConcurrentRequestsOrBuilder() { + return getConcurrentRequests(); + } + + public static final int SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 4; + private com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; + * + * @return The serverErrorsPerProjectPerHour. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.QuotaStatus getServerErrorsPerProjectPerHour() { + return serverErrorsPerProjectPerHour_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder + getServerErrorsPerProjectPerHourOrBuilder() { + return getServerErrorsPerProjectPerHour(); + } + + public static final int POTENTIALLY_THRESHOLDED_REQUESTS_PER_HOUR_FIELD_NUMBER = 5; + private com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; + * + * + * @return The potentiallyThresholdedRequestsPerHour. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.QuotaStatus getPotentiallyThresholdedRequestsPerHour() { + return potentiallyThresholdedRequestsPerHour_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.PropertyQuota other = + (com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.PropertyQuota} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.PropertyQuota) + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_PropertyQuota_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.PropertyQuota.class, + com.google.analytics.data.v1alpha.PropertyQuota.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.PropertyQuota getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.PropertyQuota build() { + com.google.analytics.data.v1alpha.PropertyQuota result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.PropertyQuota buildPartial() { + com.google.analytics.data.v1alpha.PropertyQuota result = + new com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota) { + return mergeFrom((com.google.analytics.data.v1alpha.PropertyQuota) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.PropertyQuota other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.PropertyQuota) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.data.v1alpha.QuotaStatus tokensPerDay_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.QuotaStatus, + com.google.analytics.data.v1alpha.QuotaStatus.Builder, + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; + * + * @return The tokensPerDay. + */ + public com.google.analytics.data.v1alpha.QuotaStatus getTokensPerDay() { + if (tokensPerDayBuilder_ == null) { + return tokensPerDay_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; + */ + public Builder setTokensPerDay(com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; + */ + public Builder setTokensPerDay( + com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; + */ + public Builder mergeTokensPerDay(com.google.analytics.data.v1alpha.QuotaStatus value) { + if (tokensPerDayBuilder_ == null) { + if (tokensPerDay_ != null) { + tokensPerDay_ = + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; + */ + public com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; + */ + public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerDayOrBuilder() { + if (tokensPerDayBuilder_ != null) { + return tokensPerDayBuilder_.getMessageOrBuilder(); + } else { + return tokensPerDay_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.QuotaStatus, + com.google.analytics.data.v1alpha.QuotaStatus.Builder, + com.google.analytics.data.v1alpha.QuotaStatusOrBuilder> + getTokensPerDayFieldBuilder() { + if (tokensPerDayBuilder_ == null) { + tokensPerDayBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.QuotaStatus, + com.google.analytics.data.v1alpha.QuotaStatus.Builder, + com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>( + getTokensPerDay(), getParentForChildren(), isClean()); + tokensPerDay_ = null; + } + return tokensPerDayBuilder_; + } + + private com.google.analytics.data.v1alpha.QuotaStatus tokensPerHour_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.QuotaStatus, + com.google.analytics.data.v1alpha.QuotaStatus.Builder, + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; + * + * @return The tokensPerHour. + */ + public com.google.analytics.data.v1alpha.QuotaStatus getTokensPerHour() { + if (tokensPerHourBuilder_ == null) { + return tokensPerHour_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; + */ + public Builder setTokensPerHour(com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; + */ + public Builder setTokensPerHour( + com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; + */ + public Builder mergeTokensPerHour(com.google.analytics.data.v1alpha.QuotaStatus value) { + if (tokensPerHourBuilder_ == null) { + if (tokensPerHour_ != null) { + tokensPerHour_ = + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; + */ + public com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; + */ + public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerHourOrBuilder() { + if (tokensPerHourBuilder_ != null) { + return tokensPerHourBuilder_.getMessageOrBuilder(); + } else { + return tokensPerHour_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.QuotaStatus, + com.google.analytics.data.v1alpha.QuotaStatus.Builder, + com.google.analytics.data.v1alpha.QuotaStatusOrBuilder> + getTokensPerHourFieldBuilder() { + if (tokensPerHourBuilder_ == null) { + tokensPerHourBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.QuotaStatus, + com.google.analytics.data.v1alpha.QuotaStatus.Builder, + com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>( + getTokensPerHour(), getParentForChildren(), isClean()); + tokensPerHour_ = null; + } + return tokensPerHourBuilder_; + } + + private com.google.analytics.data.v1alpha.QuotaStatus concurrentRequests_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.QuotaStatus, + com.google.analytics.data.v1alpha.QuotaStatus.Builder, + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; + * + * @return The concurrentRequests. + */ + public com.google.analytics.data.v1alpha.QuotaStatus getConcurrentRequests() { + if (concurrentRequestsBuilder_ == null) { + return concurrentRequests_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; + */ + public Builder setConcurrentRequests(com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; + */ + public Builder setConcurrentRequests( + com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; + */ + public Builder mergeConcurrentRequests(com.google.analytics.data.v1alpha.QuotaStatus value) { + if (concurrentRequestsBuilder_ == null) { + if (concurrentRequests_ != null) { + concurrentRequests_ = + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; + */ + public com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; + */ + public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getConcurrentRequestsOrBuilder() { + if (concurrentRequestsBuilder_ != null) { + return concurrentRequestsBuilder_.getMessageOrBuilder(); + } else { + return concurrentRequests_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.QuotaStatus, + com.google.analytics.data.v1alpha.QuotaStatus.Builder, + com.google.analytics.data.v1alpha.QuotaStatusOrBuilder> + getConcurrentRequestsFieldBuilder() { + if (concurrentRequestsBuilder_ == null) { + concurrentRequestsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.QuotaStatus, + com.google.analytics.data.v1alpha.QuotaStatus.Builder, + com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>( + getConcurrentRequests(), getParentForChildren(), isClean()); + concurrentRequests_ = null; + } + return concurrentRequestsBuilder_; + } + + private com.google.analytics.data.v1alpha.QuotaStatus serverErrorsPerProjectPerHour_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.QuotaStatus, + com.google.analytics.data.v1alpha.QuotaStatus.Builder, + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; + * + * + * @return The serverErrorsPerProjectPerHour. + */ + public com.google.analytics.data.v1alpha.QuotaStatus getServerErrorsPerProjectPerHour() { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + return serverErrorsPerProjectPerHour_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public Builder setServerErrorsPerProjectPerHour( + com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public Builder setServerErrorsPerProjectPerHour( + com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public Builder mergeServerErrorsPerProjectPerHour( + com.google.analytics.data.v1alpha.QuotaStatus value) { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + if (serverErrorsPerProjectPerHour_ != null) { + serverErrorsPerProjectPerHour_ = + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; + * + */ + public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder + getServerErrorsPerProjectPerHourOrBuilder() { + if (serverErrorsPerProjectPerHourBuilder_ != null) { + return serverErrorsPerProjectPerHourBuilder_.getMessageOrBuilder(); + } else { + return serverErrorsPerProjectPerHour_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.QuotaStatus, + com.google.analytics.data.v1alpha.QuotaStatus.Builder, + com.google.analytics.data.v1alpha.QuotaStatusOrBuilder> + getServerErrorsPerProjectPerHourFieldBuilder() { + if (serverErrorsPerProjectPerHourBuilder_ == null) { + serverErrorsPerProjectPerHourBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.QuotaStatus, + com.google.analytics.data.v1alpha.QuotaStatus.Builder, + com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>( + getServerErrorsPerProjectPerHour(), getParentForChildren(), isClean()); + serverErrorsPerProjectPerHour_ = null; + } + return serverErrorsPerProjectPerHourBuilder_; + } + + private com.google.analytics.data.v1alpha.QuotaStatus potentiallyThresholdedRequestsPerHour_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.QuotaStatus, + com.google.analytics.data.v1alpha.QuotaStatus.Builder, + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; + * + * + * @return The potentiallyThresholdedRequestsPerHour. + */ + public com.google.analytics.data.v1alpha.QuotaStatus + getPotentiallyThresholdedRequestsPerHour() { + if (potentiallyThresholdedRequestsPerHourBuilder_ == null) { + return potentiallyThresholdedRequestsPerHour_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; + * + */ + public Builder setPotentiallyThresholdedRequestsPerHour( + com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; + * + */ + public Builder setPotentiallyThresholdedRequestsPerHour( + com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; + * + */ + public Builder mergePotentiallyThresholdedRequestsPerHour( + com.google.analytics.data.v1alpha.QuotaStatus value) { + if (potentiallyThresholdedRequestsPerHourBuilder_ == null) { + if (potentiallyThresholdedRequestsPerHour_ != null) { + potentiallyThresholdedRequestsPerHour_ = + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; + * + */ + public com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; + * + */ + public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder + getPotentiallyThresholdedRequestsPerHourOrBuilder() { + if (potentiallyThresholdedRequestsPerHourBuilder_ != null) { + return potentiallyThresholdedRequestsPerHourBuilder_.getMessageOrBuilder(); + } else { + return potentiallyThresholdedRequestsPerHour_ == null + ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.QuotaStatus, + com.google.analytics.data.v1alpha.QuotaStatus.Builder, + com.google.analytics.data.v1alpha.QuotaStatusOrBuilder> + getPotentiallyThresholdedRequestsPerHourFieldBuilder() { + if (potentiallyThresholdedRequestsPerHourBuilder_ == null) { + potentiallyThresholdedRequestsPerHourBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.QuotaStatus, + com.google.analytics.data.v1alpha.QuotaStatus.Builder, + com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.PropertyQuota) + private static final com.google.analytics.data.v1alpha.PropertyQuota DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.PropertyQuota(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotaOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotaOrBuilder.java new file mode 100644 index 00000000..3551dd0d --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotaOrBuilder.java @@ -0,0 +1,238 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface PropertyQuotaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; + * + * @return The tokensPerDay. + */ + com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; + */ + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; + * + * @return The tokensPerHour. + */ + com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; + */ + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; + * + * @return The concurrentRequests. + */ + com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; + */ + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; + * + * @return The serverErrorsPerProjectPerHour. + */ + com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; + */ + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; + * + * + * @return The potentiallyThresholdedRequestsPerHour. + */ + com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; + * + */ + com.google.analytics.data.v1alpha.QuotaStatusOrBuilder + getPotentiallyThresholdedRequestsPerHourOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatus.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatus.java new file mode 100644 index 00000000..24e81a62 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatus.java @@ -0,0 +1,636 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Current state for a particular quota group.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.QuotaStatus} + */ +public final class QuotaStatus extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_QuotaStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.QuotaStatus.class, + com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.QuotaStatus other = + (com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.QuotaStatus) + com.google.analytics.data.v1alpha.QuotaStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_QuotaStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.QuotaStatus.class, + com.google.analytics.data.v1alpha.QuotaStatus.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.QuotaStatus getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.QuotaStatus build() { + com.google.analytics.data.v1alpha.QuotaStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.QuotaStatus buildPartial() { + com.google.analytics.data.v1alpha.QuotaStatus result = + new com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus) { + return mergeFrom((com.google.analytics.data.v1alpha.QuotaStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.QuotaStatus other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.QuotaStatus) + private static final com.google.analytics.data.v1alpha.QuotaStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.QuotaStatus(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatusOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatusOrBuilder.java new file mode 100644 index 00000000..e95d0f78 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatusOrBuilder.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface QuotaStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java new file mode 100644 index 00000000..7ea0ea7d --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java @@ -0,0 +1,1111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +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_v1alpha_DateRange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_DateRange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_Dimension_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_Dimension_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_DimensionExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_FilterExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_FilterExpressionList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_Filter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_Filter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_StringFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_StringFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_InListFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_InListFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_NumericFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_NumericFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_BetweenFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_NumericValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_NumericValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_MetricHeader_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_Row_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_Row_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_DimensionValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_MetricValue_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_MetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_PropertyQuota_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_QuotaStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_FunnelBreakdown_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_FunnelNextAction_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_Funnel_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_Funnel_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_FunnelStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_FunnelSubReport_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_UserSegment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_UserSegment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_UserSequenceStep_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_SessionSegment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_EventSegment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_EventSegment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_Segment_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_Segment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_SegmentFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_SegmentEventFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_FunnelFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_FunnelFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_FunnelEventFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_data_v1alpha_SamplingMetadata_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/v1alpha/data.pro" + + "to\022\035google.analytics.data.v1alpha\032\036googl" + + "e/protobuf/duration.proto\"?\n\tDateRange\022\022" + + "\n\nstart_date\030\001 \001(\t\022\020\n\010end_date\030\002 \001(\t\022\014\n\004" + + "name\030\003 \001(\t\"k\n\tDimension\022\014\n\004name\030\001 \001(\t\022P\n" + + "\024dimension_expression\030\002 \001(\01322.google.ana" + + "lytics.data.v1alpha.DimensionExpression\"" + + "\251\003\n\023DimensionExpression\022W\n\nlower_case\030\004 " + + "\001(\0132A.google.analytics.data.v1alpha.Dime" + + "nsionExpression.CaseExpressionH\000\022W\n\nuppe" + + "r_case\030\005 \001(\0132A.google.analytics.data.v1a" + + "lpha.DimensionExpression.CaseExpressionH" + + "\000\022_\n\013concatenate\030\006 \001(\0132H.google.analytic" + + "s.data.v1alpha.DimensionExpression.Conca" + + "tenateExpressionH\000\032(\n\016CaseExpression\022\026\n\016" + + "dimension_name\030\001 \001(\t\032C\n\025ConcatenateExpre" + + "ssion\022\027\n\017dimension_names\030\001 \003(\t\022\021\n\tdelimi" + + "ter\030\002 \001(\tB\020\n\016one_expression\"\261\002\n\020FilterEx" + + "pression\022H\n\tand_group\030\001 \001(\01323.google.ana" + + "lytics.data.v1alpha.FilterExpressionList" + + "H\000\022G\n\010or_group\030\002 \001(\01323.google.analytics." + + "data.v1alpha.FilterExpressionListH\000\022I\n\016n" + + "ot_expression\030\003 \001(\0132/.google.analytics.d" + + "ata.v1alpha.FilterExpressionH\000\0227\n\006filter" + + "\030\004 \001(\0132%.google.analytics.data.v1alpha.F" + + "ilterH\000B\006\n\004expr\"\\\n\024FilterExpressionList\022" + + "D\n\013expressions\030\001 \003(\0132/.google.analytics." + + "data.v1alpha.FilterExpression\"\307\002\n\006Filter" + + "\022\022\n\nfield_name\030\001 \001(\t\022D\n\rstring_filter\030\002 " + + "\001(\0132+.google.analytics.data.v1alpha.Stri" + + "ngFilterH\000\022E\n\016in_list_filter\030\003 \001(\0132+.goo" + + "gle.analytics.data.v1alpha.InListFilterH" + + "\000\022F\n\016numeric_filter\030\004 \001(\0132,.google.analy" + + "tics.data.v1alpha.NumericFilterH\000\022F\n\016bet" + + "ween_filter\030\005 \001(\0132,.google.analytics.dat" + + "a.v1alpha.BetweenFilterH\000B\014\n\none_filter\"" + + "\210\002\n\014StringFilter\022I\n\nmatch_type\030\001 \001(\01625.g" + + "oogle.analytics.data.v1alpha.StringFilte" + + "r.MatchType\022\r\n\005value\030\002 \001(\t\022\026\n\016case_sensi" + + "tive\030\003 \001(\010\"\205\001\n\tMatchType\022\032\n\026MATCH_TYPE_U" + + "NSPECIFIED\020\000\022\t\n\005EXACT\020\001\022\017\n\013BEGINS_WITH\020\002" + + "\022\r\n\tENDS_WITH\020\003\022\014\n\010CONTAINS\020\004\022\017\n\013FULL_RE" + + "GEXP\020\005\022\022\n\016PARTIAL_REGEXP\020\006\"6\n\014InListFilt" + + "er\022\016\n\006values\030\001 \003(\t\022\026\n\016case_sensitive\030\002 \001" + + "(\010\"\236\002\n\rNumericFilter\022I\n\toperation\030\001 \001(\0162" + + "6.google.analytics.data.v1alpha.NumericF" + + "ilter.Operation\022:\n\005value\030\002 \001(\0132+.google." + + "analytics.data.v1alpha.NumericValue\"\205\001\n\t" + + "Operation\022\031\n\025OPERATION_UNSPECIFIED\020\000\022\t\n\005" + + "EQUAL\020\001\022\r\n\tLESS_THAN\020\002\022\026\n\022LESS_THAN_OR_E" + + "QUAL\020\003\022\020\n\014GREATER_THAN\020\004\022\031\n\025GREATER_THAN" + + "_OR_EQUAL\020\005\"\217\001\n\rBetweenFilter\022?\n\nfrom_va" + + "lue\030\001 \001(\0132+.google.analytics.data.v1alph" + + "a.NumericValue\022=\n\010to_value\030\002 \001(\0132+.googl" + + "e.analytics.data.v1alpha.NumericValue\"J\n" + + "\014NumericValue\022\025\n\013int64_value\030\001 \001(\003H\000\022\026\n\014" + + "double_value\030\002 \001(\001H\000B\013\n\tone_value\"\037\n\017Dim" + + "ensionHeader\022\014\n\004name\030\001 \001(\t\"U\n\014MetricHead" + + "er\022\014\n\004name\030\001 \001(\t\0227\n\004type\030\002 \001(\0162).google." + + "analytics.data.v1alpha.MetricType\"\221\001\n\003Ro" + + "w\022G\n\020dimension_values\030\001 \003(\0132-.google.ana" + + "lytics.data.v1alpha.DimensionValue\022A\n\rme" + + "tric_values\030\002 \003(\0132*.google.analytics.dat" + + "a.v1alpha.MetricValue\".\n\016DimensionValue\022" + + "\017\n\005value\030\001 \001(\tH\000B\013\n\tone_value\"+\n\013MetricV" + + "alue\022\017\n\005value\030\004 \001(\tH\000B\013\n\tone_value\"\230\003\n\rP" + + "ropertyQuota\022B\n\016tokens_per_day\030\001 \001(\0132*.g" + + "oogle.analytics.data.v1alpha.QuotaStatus" + + "\022C\n\017tokens_per_hour\030\002 \001(\0132*.google.analy" + + "tics.data.v1alpha.QuotaStatus\022G\n\023concurr" + + "ent_requests\030\003 \001(\0132*.google.analytics.da" + + "ta.v1alpha.QuotaStatus\022V\n\"server_errors_" + + "per_project_per_hour\030\004 \001(\0132*.google.anal" + + "ytics.data.v1alpha.QuotaStatus\022]\n)potent" + + "ially_thresholded_requests_per_hour\030\005 \001(" + + "\0132*.google.analytics.data.v1alpha.QuotaS" + + "tatus\"2\n\013QuotaStatus\022\020\n\010consumed\030\001 \001(\005\022\021" + + "\n\tremaining\030\002 \001(\005\"v\n\017FunnelBreakdown\022E\n\023" + + "breakdown_dimension\030\001 \001(\0132(.google.analy" + + "tics.data.v1alpha.Dimension\022\022\n\005limit\030\002 \001" + + "(\003H\000\210\001\001B\010\n\006_limit\"y\n\020FunnelNextAction\022G\n" + + "\025next_action_dimension\030\001 \001(\0132(.google.an" + + "alytics.data.v1alpha.Dimension\022\022\n\005limit\030" + + "\002 \001(\003H\000\210\001\001B\010\n\006_limit\"Z\n\006Funnel\022\026\n\016is_ope" + + "n_funnel\030\001 \001(\010\0228\n\005steps\030\002 \003(\0132).google.a" + + "nalytics.data.v1alpha.FunnelStep\"\372\001\n\nFun" + + "nelStep\022\014\n\004name\030\001 \001(\t\022\037\n\027is_directly_fol" + + "lowed_by\030\002 \001(\010\022G\n\037within_duration_from_p" + + "rior_step\030\003 \001(\0132\031.google.protobuf.Durati" + + "onH\000\210\001\001\022P\n\021filter_expression\030\004 \001(\01325.goo" + + "gle.analytics.data.v1alpha.FunnelFilterE" + + "xpressionB\"\n _within_duration_from_prior" + + "_step\"\234\002\n\017FunnelSubReport\022I\n\021dimension_h" + + "eaders\030\001 \003(\0132..google.analytics.data.v1a" + + "lpha.DimensionHeader\022C\n\016metric_headers\030\002" + + " \003(\0132+.google.analytics.data.v1alpha.Met" + + "ricHeader\0220\n\004rows\030\003 \003(\0132\".google.analyti" + + "cs.data.v1alpha.Row\022G\n\010metadata\030\004 \001(\01325." + + "google.analytics.data.v1alpha.FunnelResp" + + "onseMetadata\"\252\001\n\013UserSegment\022S\n\027user_inc" + + "lusion_criteria\030\001 \001(\01322.google.analytics" + + ".data.v1alpha.UserSegmentCriteria\022F\n\texc" + + "lusion\030\002 \001(\01323.google.analytics.data.v1a" + + "lpha.UserSegmentExclusion\"\303\001\n\023UserSegmen" + + "tCriteria\022V\n\024and_condition_groups\030\001 \003(\0132" + + "8.google.analytics.data.v1alpha.UserSegm" + + "entConditionGroup\022T\n\023and_sequence_groups" + + "\030\002 \003(\01327.google.analytics.data.v1alpha.U" + + "serSegmentSequenceGroup\"\305\001\n\031UserSegmentC" + + "onditionGroup\022M\n\021condition_scoping\030\001 \001(\016" + + "22.google.analytics.data.v1alpha.UserCri" + + "teriaScoping\022Y\n\031segment_filter_expressio" + + "n\030\002 \001(\01326.google.analytics.data.v1alpha." + + "SegmentFilterExpression\"\364\001\n\030UserSegmentS" + + "equenceGroup\022L\n\020sequence_scoping\030\001 \001(\01622" + + ".google.analytics.data.v1alpha.UserCrite" + + "riaScoping\022<\n\031sequence_maximum_duration\030" + + "\002 \001(\0132\031.google.protobuf.Duration\022L\n\023user" + + "_sequence_steps\030\003 \003(\0132/.google.analytics" + + ".data.v1alpha.UserSequenceStep\"\330\001\n\020UserS" + + "equenceStep\022\037\n\027is_directly_followed_by\030\001" + + " \001(\010\022H\n\014step_scoping\030\002 \001(\01622.google.anal" + + "ytics.data.v1alpha.UserCriteriaScoping\022Y" + + "\n\031segment_filter_expression\030\003 \001(\01326.goog" + + "le.analytics.data.v1alpha.SegmentFilterE" + + "xpression\"\302\001\n\024UserSegmentExclusion\022U\n\027us" + + "er_exclusion_duration\030\001 \001(\01624.google.ana" + + "lytics.data.v1alpha.UserExclusionDuratio" + + "n\022S\n\027user_exclusion_criteria\030\002 \001(\01322.goo" + + "gle.analytics.data.v1alpha.UserSegmentCr" + + "iteria\"\266\001\n\016SessionSegment\022Y\n\032session_inc" + + "lusion_criteria\030\001 \001(\01325.google.analytics" + + ".data.v1alpha.SessionSegmentCriteria\022I\n\t" + + "exclusion\030\002 \001(\01326.google.analytics.data." + + "v1alpha.SessionSegmentExclusion\"s\n\026Sessi" + + "onSegmentCriteria\022Y\n\024and_condition_group" + + "s\030\001 \003(\0132;.google.analytics.data.v1alpha." + + "SessionSegmentConditionGroup\"\313\001\n\034Session" + + "SegmentConditionGroup\022P\n\021condition_scopi" + + "ng\030\001 \001(\01625.google.analytics.data.v1alpha" + + ".SessionCriteriaScoping\022Y\n\031segment_filte" + + "r_expression\030\002 \001(\01326.google.analytics.da" + + "ta.v1alpha.SegmentFilterExpression\"\321\001\n\027S" + + "essionSegmentExclusion\022[\n\032session_exclus" + + "ion_duration\030\001 \001(\01627.google.analytics.da" + + "ta.v1alpha.SessionExclusionDuration\022Y\n\032s" + + "ession_exclusion_criteria\030\002 \001(\01325.google" + + ".analytics.data.v1alpha.SessionSegmentCr" + + "iteria\"\256\001\n\014EventSegment\022U\n\030event_inclusi" + + "on_criteria\030\001 \001(\01323.google.analytics.dat" + + "a.v1alpha.EventSegmentCriteria\022G\n\texclus" + + "ion\030\002 \001(\01324.google.analytics.data.v1alph" + + "a.EventSegmentExclusion\"o\n\024EventSegmentC" + + "riteria\022W\n\024and_condition_groups\030\001 \003(\01329." + + "google.analytics.data.v1alpha.EventSegme" + + "ntConditionGroup\"\307\001\n\032EventSegmentConditi" + + "onGroup\022N\n\021condition_scoping\030\001 \001(\01623.goo" + + "gle.analytics.data.v1alpha.EventCriteria" + + "Scoping\022Y\n\031segment_filter_expression\030\002 \001" + + "(\01326.google.analytics.data.v1alpha.Segme" + + "ntFilterExpression\"\307\001\n\025EventSegmentExclu" + + "sion\022W\n\030event_exclusion_duration\030\001 \001(\01625" + + ".google.analytics.data.v1alpha.EventExcl" + + "usionDuration\022U\n\030event_exclusion_criteri" + + "a\030\002 \001(\01323.google.analytics.data.v1alpha." + + "EventSegmentCriteria\"\200\002\n\007Segment\022\014\n\004name" + + "\030\001 \001(\t\022B\n\014user_segment\030\002 \001(\0132*.google.an" + + "alytics.data.v1alpha.UserSegmentH\000\022H\n\017se" + + "ssion_segment\030\003 \001(\0132-.google.analytics.d" + + "ata.v1alpha.SessionSegmentH\000\022D\n\revent_se" + + "gment\030\004 \001(\0132+.google.analytics.data.v1al" + + "pha.EventSegmentH\000B\023\n\021one_segment_scope\"" + + "\257\003\n\027SegmentFilterExpression\022O\n\tand_group" + + "\030\001 \001(\0132:.google.analytics.data.v1alpha.S" + + "egmentFilterExpressionListH\000\022N\n\010or_group" + + "\030\002 \001(\0132:.google.analytics.data.v1alpha.S" + + "egmentFilterExpressionListH\000\022P\n\016not_expr" + + "ession\030\003 \001(\01326.google.analytics.data.v1a" + + "lpha.SegmentFilterExpressionH\000\022F\n\016segmen" + + "t_filter\030\004 \001(\0132,.google.analytics.data.v" + + "1alpha.SegmentFilterH\000\022Q\n\024segment_event_" + + "filter\030\005 \001(\01321.google.analytics.data.v1a" + + "lpha.SegmentEventFilterH\000B\006\n\004expr\"j\n\033Seg" + + "mentFilterExpressionList\022K\n\013expressions\030" + + "\001 \003(\01326.google.analytics.data.v1alpha.Se" + + "gmentFilterExpression\"\233\003\n\rSegmentFilter\022" + + "\022\n\nfield_name\030\001 \001(\t\022D\n\rstring_filter\030\004 \001" + + "(\0132+.google.analytics.data.v1alpha.Strin" + + "gFilterH\000\022E\n\016in_list_filter\030\005 \001(\0132+.goog" + + "le.analytics.data.v1alpha.InListFilterH\000" + + "\022F\n\016numeric_filter\030\006 \001(\0132,.google.analyt" + + "ics.data.v1alpha.NumericFilterH\000\022F\n\016betw" + + "een_filter\030\007 \001(\0132,.google.analytics.data" + + ".v1alpha.BetweenFilterH\000\022K\n\016filter_scopi" + + "ng\030\010 \001(\01323.google.analytics.data.v1alpha" + + ".SegmentFilterScopingB\014\n\none_filter\"R\n\024S" + + "egmentFilterScoping\022!\n\024at_any_point_in_t" + + "ime\030\001 \001(\010H\000\210\001\001B\027\n\025_at_any_point_in_time\"" + + "\327\001\n\022SegmentEventFilter\022\027\n\nevent_name\030\001 \001" + + "(\tH\000\210\001\001\022q\n#segment_parameter_filter_expr" + + "ession\030\002 \001(\0132?.google.analytics.data.v1a" + + "lpha.SegmentParameterFilterExpressionH\001\210" + + "\001\001B\r\n\013_event_nameB&\n$_segment_parameter_" + + "filter_expression\"\223\003\n SegmentParameterFi" + + "lterExpression\022X\n\tand_group\030\001 \001(\0132C.goog" + + "le.analytics.data.v1alpha.SegmentParamet" + + "erFilterExpressionListH\000\022W\n\010or_group\030\002 \001" + + "(\0132C.google.analytics.data.v1alpha.Segme" + + "ntParameterFilterExpressionListH\000\022Y\n\016not" + + "_expression\030\003 \001(\0132?.google.analytics.dat" + + "a.v1alpha.SegmentParameterFilterExpressi" + + "onH\000\022Y\n\030segment_parameter_filter\030\004 \001(\01325" + + ".google.analytics.data.v1alpha.SegmentPa" + + "rameterFilterH\000B\006\n\004expr\"|\n$SegmentParame" + + "terFilterExpressionList\022T\n\013expressions\030\001" + + " \003(\0132?.google.analytics.data.v1alpha.Seg" + + "mentParameterFilterExpression\"\351\003\n\026Segmen" + + "tParameterFilter\022\036\n\024event_parameter_name" + + "\030\001 \001(\tH\000\022\035\n\023item_parameter_name\030\002 \001(\tH\000\022" + + "D\n\rstring_filter\030\004 \001(\0132+.google.analytic" + + "s.data.v1alpha.StringFilterH\001\022E\n\016in_list" + + "_filter\030\005 \001(\0132+.google.analytics.data.v1" + + "alpha.InListFilterH\001\022F\n\016numeric_filter\030\006" + + " \001(\0132,.google.analytics.data.v1alpha.Num" + + "ericFilterH\001\022F\n\016between_filter\030\007 \001(\0132,.g" + + "oogle.analytics.data.v1alpha.BetweenFilt" + + "erH\001\022T\n\016filter_scoping\030\010 \001(\0132<.google.an" + + "alytics.data.v1alpha.SegmentParameterFil" + + "terScopingB\017\n\rone_parameterB\014\n\none_filte" + + "r\"Y\n\035SegmentParameterFilterScoping\022 \n\023in" + + "_any_n_day_period\030\001 \001(\003H\000\210\001\001B\026\n\024_in_any_" + + "n_day_period\"\247\003\n\026FunnelFilterExpression\022" + + "N\n\tand_group\030\001 \001(\01329.google.analytics.da" + + "ta.v1alpha.FunnelFilterExpressionListH\000\022" + + "M\n\010or_group\030\002 \001(\01329.google.analytics.dat" + + "a.v1alpha.FunnelFilterExpressionListH\000\022O" + + "\n\016not_expression\030\003 \001(\01325.google.analytic" + + "s.data.v1alpha.FunnelFilterExpressionH\000\022" + + "D\n\rfunnel_filter\030\004 \001(\0132+.google.analytic" + + "s.data.v1alpha.FunnelFilterH\000\022O\n\023funnel_" + + "event_filter\030\005 \001(\01320.google.analytics.da" + + "ta.v1alpha.FunnelEventFilterH\000B\006\n\004expr\"h" + + "\n\032FunnelFilterExpressionList\022J\n\013expressi" + + "ons\030\001 \003(\01325.google.analytics.data.v1alph" + + "a.FunnelFilterExpression\"\315\002\n\014FunnelFilte" + + "r\022\022\n\nfield_name\030\001 \001(\t\022D\n\rstring_filter\030\004" + + " \001(\0132+.google.analytics.data.v1alpha.Str" + + "ingFilterH\000\022E\n\016in_list_filter\030\005 \001(\0132+.go" + + "ogle.analytics.data.v1alpha.InListFilter" + + "H\000\022F\n\016numeric_filter\030\006 \001(\0132,.google.anal" + + "ytics.data.v1alpha.NumericFilterH\000\022F\n\016be" + + "tween_filter\030\007 \001(\0132,.google.analytics.da" + + "ta.v1alpha.BetweenFilterH\000B\014\n\none_filter" + + "\"\323\001\n\021FunnelEventFilter\022\027\n\nevent_name\030\001 \001" + + "(\tH\000\210\001\001\022o\n\"funnel_parameter_filter_expre" + + "ssion\030\002 \001(\0132>.google.analytics.data.v1al" + + "pha.FunnelParameterFilterExpressionH\001\210\001\001" + + "B\r\n\013_event_nameB%\n#_funnel_parameter_fil" + + "ter_expression\"\215\003\n\037FunnelParameterFilter" + + "Expression\022W\n\tand_group\030\001 \001(\0132B.google.a" + + "nalytics.data.v1alpha.FunnelParameterFil" + + "terExpressionListH\000\022V\n\010or_group\030\002 \001(\0132B." + + "google.analytics.data.v1alpha.FunnelPara" + + "meterFilterExpressionListH\000\022X\n\016not_expre" + + "ssion\030\003 \001(\0132>.google.analytics.data.v1al" + + "pha.FunnelParameterFilterExpressionH\000\022W\n" + + "\027funnel_parameter_filter\030\004 \001(\01324.google." + + "analytics.data.v1alpha.FunnelParameterFi" + + "lterH\000B\006\n\004expr\"z\n#FunnelParameterFilterE" + + "xpressionList\022S\n\013expressions\030\001 \003(\0132>.goo" + + "gle.analytics.data.v1alpha.FunnelParamet" + + "erFilterExpression\"\222\003\n\025FunnelParameterFi" + + "lter\022\036\n\024event_parameter_name\030\001 \001(\tH\000\022\035\n\023" + + "item_parameter_name\030\002 \001(\tH\000\022D\n\rstring_fi" + + "lter\030\004 \001(\0132+.google.analytics.data.v1alp" + + "ha.StringFilterH\001\022E\n\016in_list_filter\030\005 \001(" + + "\0132+.google.analytics.data.v1alpha.InList" + + "FilterH\001\022F\n\016numeric_filter\030\006 \001(\0132,.googl" + + "e.analytics.data.v1alpha.NumericFilterH\001" + + "\022F\n\016between_filter\030\007 \001(\0132,.google.analyt" + + "ics.data.v1alpha.BetweenFilterH\001B\017\n\rone_" + + "parameterB\014\n\none_filter\"e\n\026FunnelRespons" + + "eMetadata\022K\n\022sampling_metadatas\030\001 \003(\0132/." + + "google.analytics.data.v1alpha.SamplingMe" + + "tadata\"K\n\020SamplingMetadata\022\032\n\022samples_re" + + "ad_count\030\001 \001(\003\022\033\n\023sampling_space_size\030\002 " + + "\001(\003*\257\001\n\023UserCriteriaScoping\022%\n!USER_CRIT" + + "ERIA_SCOPING_UNSPECIFIED\020\000\022#\n\037USER_CRITE" + + "RIA_WITHIN_SAME_EVENT\020\001\022%\n!USER_CRITERIA" + + "_WITHIN_SAME_SESSION\020\002\022%\n!USER_CRITERIA_" + + "ACROSS_ALL_SESSIONS\020\003*|\n\025UserExclusionDu" + + "ration\022\'\n#USER_EXCLUSION_DURATION_UNSPEC" + + "IFIED\020\000\022\034\n\030USER_EXCLUSION_TEMPORARY\020\001\022\034\n" + + "\030USER_EXCLUSION_PERMANENT\020\002*\224\001\n\026SessionC" + + "riteriaScoping\022(\n$SESSION_CRITERIA_SCOPI" + + "NG_UNSPECIFIED\020\000\022&\n\"SESSION_CRITERIA_WIT" + + "HIN_SAME_EVENT\020\001\022(\n$SESSION_CRITERIA_WIT" + + "HIN_SAME_SESSION\020\002*\210\001\n\030SessionExclusionD" + + "uration\022*\n&SESSION_EXCLUSION_DURATION_UN" + + "SPECIFIED\020\000\022\037\n\033SESSION_EXCLUSION_TEMPORA" + + "RY\020\001\022\037\n\033SESSION_EXCLUSION_PERMANENT\020\002*d\n" + + "\024EventCriteriaScoping\022&\n\"EVENT_CRITERIA_" + + "SCOPING_UNSPECIFIED\020\000\022$\n EVENT_CRITERIA_" + + "WITHIN_SAME_EVENT\020\001*a\n\026EventExclusionDur" + + "ation\022(\n$EVENT_EXCLUSION_DURATION_UNSPEC" + + "IFIED\020\000\022\035\n\031EVENT_EXCLUSION_PERMANENT\020\001*\201" + + "\002\n\nMetricType\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\014" + + "TYPE_SECONDS\020\004\022\025\n\021TYPE_MILLISECONDS\020\005\022\020\n" + + "\014TYPE_MINUTES\020\006\022\016\n\nTYPE_HOURS\020\007\022\021\n\rTYPE_" + + "STANDARD\020\010\022\021\n\rTYPE_CURRENCY\020\t\022\r\n\tTYPE_FE" + + "ET\020\n\022\016\n\nTYPE_MILES\020\013\022\017\n\013TYPE_METERS\020\014\022\023\n" + + "\017TYPE_KILOMETERS\020\rB{\n!com.google.analyti" + + "cs.data.v1alphaB\021ReportingApiProtoP\001ZAgo" + + "ogle.golang.org/genproto/googleapis/anal" + + "ytics/data/v1alpha;datab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.protobuf.DurationProto.getDescriptor(), + }); + internal_static_google_analytics_data_v1alpha_DateRange_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_analytics_data_v1alpha_DateRange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_DateRange_descriptor, + new java.lang.String[] { + "StartDate", "EndDate", "Name", + }); + internal_static_google_analytics_data_v1alpha_Dimension_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_analytics_data_v1alpha_Dimension_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_Dimension_descriptor, + new java.lang.String[] { + "Name", "DimensionExpression", + }); + internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_analytics_data_v1alpha_DimensionExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor, + new java.lang.String[] { + "LowerCase", "UpperCase", "Concatenate", "OneExpression", + }); + internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor = + internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor, + new java.lang.String[] { + "DimensionName", + }); + internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor = + internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor + .getNestedTypes() + .get(1); + internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor, + new java.lang.String[] { + "DimensionNames", "Delimiter", + }); + internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_analytics_data_v1alpha_FilterExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor, + new java.lang.String[] { + "AndGroup", "OrGroup", "NotExpression", "Filter", "Expr", + }); + internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_analytics_data_v1alpha_FilterExpressionList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor, + new java.lang.String[] { + "Expressions", + }); + internal_static_google_analytics_data_v1alpha_Filter_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_analytics_data_v1alpha_Filter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_Filter_descriptor, + new java.lang.String[] { + "FieldName", + "StringFilter", + "InListFilter", + "NumericFilter", + "BetweenFilter", + "OneFilter", + }); + internal_static_google_analytics_data_v1alpha_StringFilter_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_analytics_data_v1alpha_StringFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_StringFilter_descriptor, + new java.lang.String[] { + "MatchType", "Value", "CaseSensitive", + }); + internal_static_google_analytics_data_v1alpha_InListFilter_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_analytics_data_v1alpha_InListFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_InListFilter_descriptor, + new java.lang.String[] { + "Values", "CaseSensitive", + }); + internal_static_google_analytics_data_v1alpha_NumericFilter_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_analytics_data_v1alpha_NumericFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_NumericFilter_descriptor, + new java.lang.String[] { + "Operation", "Value", + }); + internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_analytics_data_v1alpha_BetweenFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor, + new java.lang.String[] { + "FromValue", "ToValue", + }); + internal_static_google_analytics_data_v1alpha_NumericValue_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_analytics_data_v1alpha_NumericValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_NumericValue_descriptor, + new java.lang.String[] { + "Int64Value", "DoubleValue", "OneValue", + }); + internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_analytics_data_v1alpha_MetricHeader_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor, + new java.lang.String[] { + "Name", "Type", + }); + internal_static_google_analytics_data_v1alpha_Row_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_analytics_data_v1alpha_Row_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_Row_descriptor, + new java.lang.String[] { + "DimensionValues", "MetricValues", + }); + internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_analytics_data_v1alpha_DimensionValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor, + new java.lang.String[] { + "Value", "OneValue", + }); + internal_static_google_analytics_data_v1alpha_MetricValue_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_analytics_data_v1alpha_MetricValue_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_MetricValue_descriptor, + new java.lang.String[] { + "Value", "OneValue", + }); + internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_analytics_data_v1alpha_PropertyQuota_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor, + new java.lang.String[] { + "TokensPerDay", + "TokensPerHour", + "ConcurrentRequests", + "ServerErrorsPerProjectPerHour", + "PotentiallyThresholdedRequestsPerHour", + }); + internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_analytics_data_v1alpha_QuotaStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor, + new java.lang.String[] { + "Consumed", "Remaining", + }); + internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_analytics_data_v1alpha_FunnelBreakdown_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor, + new java.lang.String[] { + "BreakdownDimension", "Limit", "Limit", + }); + internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_analytics_data_v1alpha_FunnelNextAction_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor, + new java.lang.String[] { + "NextActionDimension", "Limit", "Limit", + }); + internal_static_google_analytics_data_v1alpha_Funnel_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_analytics_data_v1alpha_Funnel_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_Funnel_descriptor, + new java.lang.String[] { + "IsOpenFunnel", "Steps", + }); + internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_analytics_data_v1alpha_FunnelStep_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor, + new java.lang.String[] { + "Name", + "IsDirectlyFollowedBy", + "WithinDurationFromPriorStep", + "FilterExpression", + "WithinDurationFromPriorStep", + }); + internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_analytics_data_v1alpha_FunnelSubReport_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor, + new java.lang.String[] { + "DimensionHeaders", "MetricHeaders", "Rows", "Metadata", + }); + internal_static_google_analytics_data_v1alpha_UserSegment_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_analytics_data_v1alpha_UserSegment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_UserSegment_descriptor, + new java.lang.String[] { + "UserInclusionCriteria", "Exclusion", + }); + internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor, + new java.lang.String[] { + "AndConditionGroups", "AndSequenceGroups", + }); + internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor, + new java.lang.String[] { + "ConditionScoping", "SegmentFilterExpression", + }); + internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor, + new java.lang.String[] { + "SequenceScoping", "SequenceMaximumDuration", "UserSequenceSteps", + }); + internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_analytics_data_v1alpha_UserSequenceStep_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor, + new java.lang.String[] { + "IsDirectlyFollowedBy", "StepScoping", "SegmentFilterExpression", + }); + internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor, + new java.lang.String[] { + "UserExclusionDuration", "UserExclusionCriteria", + }); + internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_analytics_data_v1alpha_SessionSegment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor, + new java.lang.String[] { + "SessionInclusionCriteria", "Exclusion", + }); + internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor, + new java.lang.String[] { + "AndConditionGroups", + }); + internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor, + new java.lang.String[] { + "ConditionScoping", "SegmentFilterExpression", + }); + internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor, + new java.lang.String[] { + "SessionExclusionDuration", "SessionExclusionCriteria", + }); + internal_static_google_analytics_data_v1alpha_EventSegment_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_analytics_data_v1alpha_EventSegment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_EventSegment_descriptor, + new java.lang.String[] { + "EventInclusionCriteria", "Exclusion", + }); + internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor, + new java.lang.String[] { + "AndConditionGroups", + }); + internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor, + new java.lang.String[] { + "ConditionScoping", "SegmentFilterExpression", + }); + internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor, + new java.lang.String[] { + "EventExclusionDuration", "EventExclusionCriteria", + }); + internal_static_google_analytics_data_v1alpha_Segment_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_analytics_data_v1alpha_Segment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_Segment_descriptor, + new java.lang.String[] { + "Name", "UserSegment", "SessionSegment", "EventSegment", "OneSegmentScope", + }); + internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor, + new java.lang.String[] { + "AndGroup", "OrGroup", "NotExpression", "SegmentFilter", "SegmentEventFilter", "Expr", + }); + internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor, + new java.lang.String[] { + "Expressions", + }); + internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_analytics_data_v1alpha_SegmentFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor, + new java.lang.String[] { + "FieldName", + "StringFilter", + "InListFilter", + "NumericFilter", + "BetweenFilter", + "FilterScoping", + "OneFilter", + }); + internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor, + new java.lang.String[] { + "AtAnyPointInTime", "AtAnyPointInTime", + }); + internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor = + getDescriptor().getMessageTypes().get(42); + internal_static_google_analytics_data_v1alpha_SegmentEventFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor, + new java.lang.String[] { + "EventName", + "SegmentParameterFilterExpression", + "EventName", + "SegmentParameterFilterExpression", + }); + internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor = + getDescriptor().getMessageTypes().get(43); + internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor, + new java.lang.String[] { + "AndGroup", "OrGroup", "NotExpression", "SegmentParameterFilter", "Expr", + }); + internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor = + getDescriptor().getMessageTypes().get(44); + internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor, + new java.lang.String[] { + "Expressions", + }); + internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor = + getDescriptor().getMessageTypes().get(45); + internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor, + new java.lang.String[] { + "EventParameterName", + "ItemParameterName", + "StringFilter", + "InListFilter", + "NumericFilter", + "BetweenFilter", + "FilterScoping", + "OneParameter", + "OneFilter", + }); + internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor = + getDescriptor().getMessageTypes().get(46); + internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor, + new java.lang.String[] { + "InAnyNDayPeriod", "InAnyNDayPeriod", + }); + internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor = + getDescriptor().getMessageTypes().get(47); + internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor, + new java.lang.String[] { + "AndGroup", "OrGroup", "NotExpression", "FunnelFilter", "FunnelEventFilter", "Expr", + }); + internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor = + getDescriptor().getMessageTypes().get(48); + internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor, + new java.lang.String[] { + "Expressions", + }); + internal_static_google_analytics_data_v1alpha_FunnelFilter_descriptor = + getDescriptor().getMessageTypes().get(49); + internal_static_google_analytics_data_v1alpha_FunnelFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_FunnelFilter_descriptor, + new java.lang.String[] { + "FieldName", + "StringFilter", + "InListFilter", + "NumericFilter", + "BetweenFilter", + "OneFilter", + }); + internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_google_analytics_data_v1alpha_FunnelEventFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor, + new java.lang.String[] { + "EventName", + "FunnelParameterFilterExpression", + "EventName", + "FunnelParameterFilterExpression", + }); + internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor, + new java.lang.String[] { + "AndGroup", "OrGroup", "NotExpression", "FunnelParameterFilter", "Expr", + }); + internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor, + new java.lang.String[] { + "Expressions", + }); + internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor, + new java.lang.String[] { + "EventParameterName", + "ItemParameterName", + "StringFilter", + "InListFilter", + "NumericFilter", + "BetweenFilter", + "OneParameter", + "OneFilter", + }); + internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor, + new java.lang.String[] { + "SamplingMetadatas", + }); + internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_google_analytics_data_v1alpha_SamplingMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor, + new java.lang.String[] { + "SamplesReadCount", "SamplingSpaceSize", + }); + com.google.protobuf.DurationProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java new file mode 100644 index 00000000..9e8d5452 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java @@ -0,0 +1,1543 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * 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.v1alpha.Row} + */ +public final class Row extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + 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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Row_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Row_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.Row.class, + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; + */ + @java.lang.Override + public java.util.List getMetricValuesList() { + return metricValues_; + } + /** + * + * + *
+   * List of requested visible metric values.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; + */ + @java.lang.Override + public java.util.List + getMetricValuesOrBuilderList() { + return metricValues_; + } + /** + * + * + *
+   * List of requested visible metric values.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; + */ + @java.lang.Override + public int getMetricValuesCount() { + return metricValues_.size(); + } + /** + * + * + *
+   * List of requested visible metric values.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.MetricValue getMetricValues(int index) { + return metricValues_.get(index); + } + /** + * + * + *
+   * List of requested visible metric values.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.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.v1alpha.Row)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.Row other = (com.google.analytics.data.v1alpha.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.v1alpha.Row parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.Row parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.Row parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.Row parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.Row parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Row} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Row) + com.google.analytics.data.v1alpha.RowOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Row_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Row_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.Row.class, + com.google.analytics.data.v1alpha.Row.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Row_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Row getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.Row.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Row build() { + com.google.analytics.data.v1alpha.Row result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Row buildPartial() { + com.google.analytics.data.v1alpha.Row result = + new com.google.analytics.data.v1alpha.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.v1alpha.Row) { + return mergeFrom((com.google.analytics.data.v1alpha.Row) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.Row other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.Row parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue, + com.google.analytics.data.v1alpha.DimensionValue.Builder, + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; + */ + public com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; + */ + public Builder setDimensionValues( + int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; + */ + public Builder setDimensionValues( + int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; + */ + public Builder addDimensionValues(com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; + */ + public Builder addDimensionValues( + int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; + */ + public Builder addDimensionValues( + com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; + */ + public Builder addDimensionValues( + int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; + */ + public com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; + */ + public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; + */ + public com.google.analytics.data.v1alpha.DimensionValue.Builder addDimensionValuesBuilder() { + return getDimensionValuesFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; + */ + public com.google.analytics.data.v1alpha.DimensionValue.Builder addDimensionValuesBuilder( + int index) { + return getDimensionValuesFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; + */ + public java.util.List + getDimensionValuesBuilderList() { + return getDimensionValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.DimensionValue, + com.google.analytics.data.v1alpha.DimensionValue.Builder, + com.google.analytics.data.v1alpha.DimensionValueOrBuilder> + getDimensionValuesFieldBuilder() { + if (dimensionValuesBuilder_ == null) { + dimensionValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.DimensionValue, + com.google.analytics.data.v1alpha.DimensionValue.Builder, + com.google.analytics.data.v1alpha.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.v1alpha.MetricValue, + com.google.analytics.data.v1alpha.MetricValue.Builder, + com.google.analytics.data.v1alpha.MetricValueOrBuilder> + metricValuesBuilder_; + + /** + * + * + *
+     * List of requested visible metric values.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricValue metric_values = 2; + */ + public com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; + */ + public Builder setMetricValues(int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; + */ + public Builder setMetricValues( + int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; + */ + public Builder addMetricValues(com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; + */ + public Builder addMetricValues(int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; + */ + public Builder addMetricValues( + com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; + */ + public Builder addMetricValues( + int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricValue metric_values = 2; + */ + public com.google.analytics.data.v1alpha.MetricValue.Builder getMetricValuesBuilder(int index) { + return getMetricValuesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of requested visible metric values.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; + */ + public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricValue metric_values = 2; + */ + public com.google.analytics.data.v1alpha.MetricValue.Builder addMetricValuesBuilder() { + return getMetricValuesFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.MetricValue.getDefaultInstance()); + } + /** + * + * + *
+     * List of requested visible metric values.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; + */ + public com.google.analytics.data.v1alpha.MetricValue.Builder addMetricValuesBuilder(int index) { + return getMetricValuesFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.MetricValue.getDefaultInstance()); + } + /** + * + * + *
+     * List of requested visible metric values.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; + */ + public java.util.List + getMetricValuesBuilderList() { + return getMetricValuesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.MetricValue, + com.google.analytics.data.v1alpha.MetricValue.Builder, + com.google.analytics.data.v1alpha.MetricValueOrBuilder> + getMetricValuesFieldBuilder() { + if (metricValuesBuilder_ == null) { + metricValuesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.MetricValue, + com.google.analytics.data.v1alpha.MetricValue.Builder, + com.google.analytics.data.v1alpha.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.v1alpha.Row) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Row) + private static final com.google.analytics.data.v1alpha.Row DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Row(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.Row getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RowOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RowOrBuilder.java new file mode 100644 index 00000000..822a7fd3 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RowOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface RowOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; + */ + com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; + */ + com.google.analytics.data.v1alpha.DimensionValueOrBuilder getDimensionValuesOrBuilder(int index); + + /** + * + * + *
+   * List of requested visible metric values.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; + */ + java.util.List getMetricValuesList(); + /** + * + * + *
+   * List of requested visible metric values.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; + */ + com.google.analytics.data.v1alpha.MetricValue getMetricValues(int index); + /** + * + * + *
+   * List of requested visible metric values.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; + */ + int getMetricValuesCount(); + /** + * + * + *
+   * List of requested visible metric values.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; + */ + java.util.List + getMetricValuesOrBuilderList(); + /** + * + * + *
+   * List of requested visible metric values.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; + */ + com.google.analytics.data.v1alpha.MetricValueOrBuilder getMetricValuesOrBuilder(int index); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java new file mode 100644 index 00000000..894352f3 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java @@ -0,0 +1,3672 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/analytics_data_api.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * The request for a funnel report.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.RunFunnelReportRequest} + */ +public final class RunFunnelReportRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.RunFunnelReportRequest) + RunFunnelReportRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunFunnelReportRequest.newBuilder() to construct. + private RunFunnelReportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunFunnelReportRequest() { + property_ = ""; + dateRanges_ = java.util.Collections.emptyList(); + funnelVisualizationType_ = 0; + segments_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunFunnelReportRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RunFunnelReportRequest( + 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)) { + dateRanges_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + dateRanges_.add( + input.readMessage( + com.google.analytics.data.v1alpha.DateRange.parser(), extensionRegistry)); + break; + } + case 26: + { + com.google.analytics.data.v1alpha.Funnel.Builder subBuilder = null; + if (funnel_ != null) { + subBuilder = funnel_.toBuilder(); + } + funnel_ = + input.readMessage( + com.google.analytics.data.v1alpha.Funnel.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(funnel_); + funnel_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.analytics.data.v1alpha.FunnelBreakdown.Builder subBuilder = null; + if (funnelBreakdown_ != null) { + subBuilder = funnelBreakdown_.toBuilder(); + } + funnelBreakdown_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelBreakdown.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(funnelBreakdown_); + funnelBreakdown_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.analytics.data.v1alpha.FunnelNextAction.Builder subBuilder = null; + if (funnelNextAction_ != null) { + subBuilder = funnelNextAction_.toBuilder(); + } + funnelNextAction_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelNextAction.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(funnelNextAction_); + funnelNextAction_ = subBuilder.buildPartial(); + } + + break; + } + case 48: + { + int rawValue = input.readEnum(); + + funnelVisualizationType_ = rawValue; + break; + } + case 58: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + segments_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + segments_.add( + input.readMessage( + com.google.analytics.data.v1alpha.Segment.parser(), extensionRegistry)); + break; + } + case 72: + { + limit_ = input.readInt64(); + break; + } + case 82: + { + com.google.analytics.data.v1alpha.FilterExpression.Builder subBuilder = null; + if (dimensionFilter_ != null) { + subBuilder = dimensionFilter_.toBuilder(); + } + dimensionFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.FilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(dimensionFilter_); + dimensionFilter_ = subBuilder.buildPartial(); + } + + break; + } + case 96: + { + 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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.RunFunnelReportRequest.class, + com.google.analytics.data.v1alpha.RunFunnelReportRequest.Builder.class); + } + + /** + * + * + *
+   * Controls the dimensions present in the funnel visualization sub report
+   * response.
+   * 
+ * + * Protobuf enum {@code + * google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType} + */ + public enum FunnelVisualizationType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified type.
+     * 
+ * + * FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED = 0; + */ + FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+     * A standard (stepped) funnel. The funnel visualization sub report in the
+     * response will not contain date.
+     * 
+ * + * STANDARD_FUNNEL = 1; + */ + STANDARD_FUNNEL(1), + /** + * + * + *
+     * A trended (line chart) funnel. The funnel visualization sub report in the
+     * response will contain the date dimension.
+     * 
+ * + * TRENDED_FUNNEL = 2; + */ + TRENDED_FUNNEL(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Unspecified type.
+     * 
+ * + * FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED = 0; + */ + public static final int FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * A standard (stepped) funnel. The funnel visualization sub report in the
+     * response will not contain date.
+     * 
+ * + * STANDARD_FUNNEL = 1; + */ + public static final int STANDARD_FUNNEL_VALUE = 1; + /** + * + * + *
+     * A trended (line chart) funnel. The funnel visualization sub report in the
+     * response will contain the date dimension.
+     * 
+ * + * TRENDED_FUNNEL = 2; + */ + public static final int TRENDED_FUNNEL_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 FunnelVisualizationType 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 FunnelVisualizationType forNumber(int value) { + switch (value) { + case 0: + return FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED; + case 1: + return STANDARD_FUNNEL; + case 2: + return TRENDED_FUNNEL; + 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 FunnelVisualizationType findValueByNumber(int number) { + return FunnelVisualizationType.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.v1alpha.RunFunnelReportRequest.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final FunnelVisualizationType[] VALUES = values(); + + public static FunnelVisualizationType 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 FunnelVisualizationType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType) + } + + 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 DATE_RANGES_FIELD_NUMBER = 2; + 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.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + @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.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + @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.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + @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.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.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.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangesOrBuilder(int index) { + return dateRanges_.get(index); + } + + public static final int FUNNEL_FIELD_NUMBER = 3; + private com.google.analytics.data.v1alpha.Funnel funnel_; + /** + * + * + *
+   * The configuration of this request's funnel. This funnel configuration is
+   * required.
+   * 
+ * + * .google.analytics.data.v1alpha.Funnel funnel = 3; + * + * @return Whether the funnel field is set. + */ + @java.lang.Override + public boolean hasFunnel() { + return funnel_ != null; + } + /** + * + * + *
+   * The configuration of this request's funnel. This funnel configuration is
+   * required.
+   * 
+ * + * .google.analytics.data.v1alpha.Funnel funnel = 3; + * + * @return The funnel. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Funnel getFunnel() { + return funnel_ == null + ? com.google.analytics.data.v1alpha.Funnel.getDefaultInstance() + : funnel_; + } + /** + * + * + *
+   * The configuration of this request's funnel. This funnel configuration is
+   * required.
+   * 
+ * + * .google.analytics.data.v1alpha.Funnel funnel = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelOrBuilder getFunnelOrBuilder() { + return getFunnel(); + } + + public static final int FUNNEL_BREAKDOWN_FIELD_NUMBER = 4; + private com.google.analytics.data.v1alpha.FunnelBreakdown funnelBreakdown_; + /** + * + * + *
+   * If specified, this breakdown adds a dimension to the funnel table sub
+   * report response. This breakdown dimension expands each funnel step to the
+   * unique values of the breakdown dimension. For example, a breakdown by the
+   * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
+   * `desktop`, and the total.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; + * + * @return Whether the funnelBreakdown field is set. + */ + @java.lang.Override + public boolean hasFunnelBreakdown() { + return funnelBreakdown_ != null; + } + /** + * + * + *
+   * If specified, this breakdown adds a dimension to the funnel table sub
+   * report response. This breakdown dimension expands each funnel step to the
+   * unique values of the breakdown dimension. For example, a breakdown by the
+   * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
+   * `desktop`, and the total.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; + * + * @return The funnelBreakdown. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelBreakdown getFunnelBreakdown() { + return funnelBreakdown_ == null + ? com.google.analytics.data.v1alpha.FunnelBreakdown.getDefaultInstance() + : funnelBreakdown_; + } + /** + * + * + *
+   * If specified, this breakdown adds a dimension to the funnel table sub
+   * report response. This breakdown dimension expands each funnel step to the
+   * unique values of the breakdown dimension. For example, a breakdown by the
+   * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
+   * `desktop`, and the total.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelBreakdownOrBuilder getFunnelBreakdownOrBuilder() { + return getFunnelBreakdown(); + } + + public static final int FUNNEL_NEXT_ACTION_FIELD_NUMBER = 5; + private com.google.analytics.data.v1alpha.FunnelNextAction funnelNextAction_; + /** + * + * + *
+   * If specified, next action adds a dimension to the funnel visualization sub
+   * report response. This next action dimension expands each funnel step to the
+   * unique values of the next action. For example a breakdown by the
+   * `eventName` dimension will create rows for several events (i.e.
+   * `session_start` & `click`) and the total.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; + * + * @return Whether the funnelNextAction field is set. + */ + @java.lang.Override + public boolean hasFunnelNextAction() { + return funnelNextAction_ != null; + } + /** + * + * + *
+   * If specified, next action adds a dimension to the funnel visualization sub
+   * report response. This next action dimension expands each funnel step to the
+   * unique values of the next action. For example a breakdown by the
+   * `eventName` dimension will create rows for several events (i.e.
+   * `session_start` & `click`) and the total.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; + * + * @return The funnelNextAction. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelNextAction getFunnelNextAction() { + return funnelNextAction_ == null + ? com.google.analytics.data.v1alpha.FunnelNextAction.getDefaultInstance() + : funnelNextAction_; + } + /** + * + * + *
+   * If specified, next action adds a dimension to the funnel visualization sub
+   * report response. This next action dimension expands each funnel step to the
+   * unique values of the next action. For example a breakdown by the
+   * `eventName` dimension will create rows for several events (i.e.
+   * `session_start` & `click`) and the total.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelNextActionOrBuilder + getFunnelNextActionOrBuilder() { + return getFunnelNextAction(); + } + + public static final int FUNNEL_VISUALIZATION_TYPE_FIELD_NUMBER = 6; + private int funnelVisualizationType_; + /** + * + * + *
+   * The funnel visualization type controls the dimensions present in the funnel
+   * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
+   * used.
+   * 
+ * + * + * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; + * + * + * @return The enum numeric value on the wire for funnelVisualizationType. + */ + @java.lang.Override + public int getFunnelVisualizationTypeValue() { + return funnelVisualizationType_; + } + /** + * + * + *
+   * The funnel visualization type controls the dimensions present in the funnel
+   * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
+   * used.
+   * 
+ * + * + * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; + * + * + * @return The funnelVisualizationType. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType + getFunnelVisualizationType() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType result = + com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType.valueOf( + funnelVisualizationType_); + return result == null + ? com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType + .UNRECOGNIZED + : result; + } + + public static final int SEGMENTS_FIELD_NUMBER = 7; + private java.util.List segments_; + /** + * + * + *
+   * The configurations of segments. Segments are subsets of a property's data.
+   * In a funnel report with segments, the funnel is evaluated in each segment.
+   * Each segment specified in this request
+   * produces a separate row in the response; in the response, each segment
+   * identified by its name.
+   * The segments parameter is optional. Requests are limited to 4 segments.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + @java.lang.Override + public java.util.List getSegmentsList() { + return segments_; + } + /** + * + * + *
+   * The configurations of segments. Segments are subsets of a property's data.
+   * In a funnel report with segments, the funnel is evaluated in each segment.
+   * Each segment specified in this request
+   * produces a separate row in the response; in the response, each segment
+   * identified by its name.
+   * The segments parameter is optional. Requests are limited to 4 segments.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + @java.lang.Override + public java.util.List + getSegmentsOrBuilderList() { + return segments_; + } + /** + * + * + *
+   * The configurations of segments. Segments are subsets of a property's data.
+   * In a funnel report with segments, the funnel is evaluated in each segment.
+   * Each segment specified in this request
+   * produces a separate row in the response; in the response, each segment
+   * identified by its name.
+   * The segments parameter is optional. Requests are limited to 4 segments.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + @java.lang.Override + public int getSegmentsCount() { + return segments_.size(); + } + /** + * + * + *
+   * The configurations of segments. Segments are subsets of a property's data.
+   * In a funnel report with segments, the funnel is evaluated in each segment.
+   * Each segment specified in this request
+   * produces a separate row in the response; in the response, each segment
+   * identified by its name.
+   * The segments parameter is optional. Requests are limited to 4 segments.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.Segment getSegments(int index) { + return segments_.get(index); + } + /** + * + * + *
+   * The configurations of segments. Segments are subsets of a property's data.
+   * In a funnel report with segments, the funnel is evaluated in each segment.
+   * Each segment specified in this request
+   * produces a separate row in the response; in the response, each segment
+   * identified by its name.
+   * The segments parameter is optional. Requests are limited to 4 segments.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentOrBuilder getSegmentsOrBuilder(int index) { + return segments_.get(index); + } + + public static final int LIMIT_FIELD_NUMBER = 9; + 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`.
+   * 
+ * + * int64 limit = 9; + * + * @return The limit. + */ + @java.lang.Override + public long getLimit() { + return limit_; + } + + public static final int DIMENSION_FILTER_FIELD_NUMBER = 10; + private com.google.analytics.data.v1alpha.FilterExpression dimensionFilter_; + /** + * + * + *
+   * Dimension filters allow you to ask for only specific dimension values in
+   * the report. To learn more, see [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; + * + * @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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; + * + * @return The dimensionFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() { + return dimensionFilter_ == null + ? com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance() + : dimensionFilter_; + } + /** + * + * + *
+   * Dimension filters allow you to ask for only specific dimension values in
+   * the report. To learn more, see [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getDimensionFilterOrBuilder() { + return getDimensionFilter(); + } + + public static final int RETURN_PROPERTY_QUOTA_FIELD_NUMBER = 12; + 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 = 12; + * + * @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 < dateRanges_.size(); i++) { + output.writeMessage(2, dateRanges_.get(i)); + } + if (funnel_ != null) { + output.writeMessage(3, getFunnel()); + } + if (funnelBreakdown_ != null) { + output.writeMessage(4, getFunnelBreakdown()); + } + if (funnelNextAction_ != null) { + output.writeMessage(5, getFunnelNextAction()); + } + if (funnelVisualizationType_ + != com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType + .FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, funnelVisualizationType_); + } + for (int i = 0; i < segments_.size(); i++) { + output.writeMessage(7, segments_.get(i)); + } + if (limit_ != 0L) { + output.writeInt64(9, limit_); + } + if (dimensionFilter_ != null) { + output.writeMessage(10, getDimensionFilter()); + } + if (returnPropertyQuota_ != false) { + output.writeBool(12, 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 < dateRanges_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dateRanges_.get(i)); + } + if (funnel_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFunnel()); + } + if (funnelBreakdown_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFunnelBreakdown()); + } + if (funnelNextAction_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFunnelNextAction()); + } + if (funnelVisualizationType_ + != com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType + .FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, funnelVisualizationType_); + } + for (int i = 0; i < segments_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, segments_.get(i)); + } + if (limit_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, limit_); + } + if (dimensionFilter_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDimensionFilter()); + } + if (returnPropertyQuota_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, 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.v1alpha.RunFunnelReportRequest)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.RunFunnelReportRequest other = + (com.google.analytics.data.v1alpha.RunFunnelReportRequest) obj; + + if (!getProperty().equals(other.getProperty())) return false; + if (!getDateRangesList().equals(other.getDateRangesList())) return false; + if (hasFunnel() != other.hasFunnel()) return false; + if (hasFunnel()) { + if (!getFunnel().equals(other.getFunnel())) return false; + } + if (hasFunnelBreakdown() != other.hasFunnelBreakdown()) return false; + if (hasFunnelBreakdown()) { + if (!getFunnelBreakdown().equals(other.getFunnelBreakdown())) return false; + } + if (hasFunnelNextAction() != other.hasFunnelNextAction()) return false; + if (hasFunnelNextAction()) { + if (!getFunnelNextAction().equals(other.getFunnelNextAction())) return false; + } + if (funnelVisualizationType_ != other.funnelVisualizationType_) return false; + if (!getSegmentsList().equals(other.getSegmentsList())) return false; + if (getLimit() != other.getLimit()) return false; + if (hasDimensionFilter() != other.hasDimensionFilter()) return false; + if (hasDimensionFilter()) { + if (!getDimensionFilter().equals(other.getDimensionFilter())) 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 (getDateRangesCount() > 0) { + hash = (37 * hash) + DATE_RANGES_FIELD_NUMBER; + hash = (53 * hash) + getDateRangesList().hashCode(); + } + if (hasFunnel()) { + hash = (37 * hash) + FUNNEL_FIELD_NUMBER; + hash = (53 * hash) + getFunnel().hashCode(); + } + if (hasFunnelBreakdown()) { + hash = (37 * hash) + FUNNEL_BREAKDOWN_FIELD_NUMBER; + hash = (53 * hash) + getFunnelBreakdown().hashCode(); + } + if (hasFunnelNextAction()) { + hash = (37 * hash) + FUNNEL_NEXT_ACTION_FIELD_NUMBER; + hash = (53 * hash) + getFunnelNextAction().hashCode(); + } + hash = (37 * hash) + FUNNEL_VISUALIZATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + funnelVisualizationType_; + if (getSegmentsCount() > 0) { + hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; + hash = (53 * hash) + getSegmentsList().hashCode(); + } + hash = (37 * hash) + LIMIT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); + if (hasDimensionFilter()) { + hash = (37 * hash) + DIMENSION_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getDimensionFilter().hashCode(); + } + 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.v1alpha.RunFunnelReportRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.RunFunnelReportRequest 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.v1alpha.RunFunnelReportRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.RunFunnelReportRequest parseFrom( + 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.v1alpha.RunFunnelReportRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.RunFunnelReportRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.RunFunnelReportRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.RunFunnelReportRequest parseFrom( + java.io.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.v1alpha.RunFunnelReportRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.RunFunnelReportRequest parseDelimitedFrom( + java.io.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.v1alpha.RunFunnelReportRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.RunFunnelReportRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.RunFunnelReportRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 a funnel report.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.RunFunnelReportRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.RunFunnelReportRequest) + com.google.analytics.data.v1alpha.RunFunnelReportRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.RunFunnelReportRequest.class, + com.google.analytics.data.v1alpha.RunFunnelReportRequest.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.RunFunnelReportRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDateRangesFieldBuilder(); + getSegmentsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + property_ = ""; + + if (dateRangesBuilder_ == null) { + dateRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + dateRangesBuilder_.clear(); + } + if (funnelBuilder_ == null) { + funnel_ = null; + } else { + funnel_ = null; + funnelBuilder_ = null; + } + if (funnelBreakdownBuilder_ == null) { + funnelBreakdown_ = null; + } else { + funnelBreakdown_ = null; + funnelBreakdownBuilder_ = null; + } + if (funnelNextActionBuilder_ == null) { + funnelNextAction_ = null; + } else { + funnelNextAction_ = null; + funnelNextActionBuilder_ = null; + } + funnelVisualizationType_ = 0; + + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + segmentsBuilder_.clear(); + } + limit_ = 0L; + + if (dimensionFilterBuilder_ == null) { + dimensionFilter_ = null; + } else { + dimensionFilter_ = null; + dimensionFilterBuilder_ = null; + } + returnPropertyQuota_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.RunFunnelReportRequest getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.RunFunnelReportRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.RunFunnelReportRequest build() { + com.google.analytics.data.v1alpha.RunFunnelReportRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.RunFunnelReportRequest buildPartial() { + com.google.analytics.data.v1alpha.RunFunnelReportRequest result = + new com.google.analytics.data.v1alpha.RunFunnelReportRequest(this); + int from_bitField0_ = bitField0_; + result.property_ = property_; + if (dateRangesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.dateRanges_ = dateRanges_; + } else { + result.dateRanges_ = dateRangesBuilder_.build(); + } + if (funnelBuilder_ == null) { + result.funnel_ = funnel_; + } else { + result.funnel_ = funnelBuilder_.build(); + } + if (funnelBreakdownBuilder_ == null) { + result.funnelBreakdown_ = funnelBreakdown_; + } else { + result.funnelBreakdown_ = funnelBreakdownBuilder_.build(); + } + if (funnelNextActionBuilder_ == null) { + result.funnelNextAction_ = funnelNextAction_; + } else { + result.funnelNextAction_ = funnelNextActionBuilder_.build(); + } + result.funnelVisualizationType_ = funnelVisualizationType_; + if (segmentsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + segments_ = java.util.Collections.unmodifiableList(segments_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.segments_ = segments_; + } else { + result.segments_ = segmentsBuilder_.build(); + } + result.limit_ = limit_; + if (dimensionFilterBuilder_ == null) { + result.dimensionFilter_ = dimensionFilter_; + } else { + result.dimensionFilter_ = dimensionFilterBuilder_.build(); + } + 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.v1alpha.RunFunnelReportRequest) { + return mergeFrom((com.google.analytics.data.v1alpha.RunFunnelReportRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.RunFunnelReportRequest other) { + if (other == com.google.analytics.data.v1alpha.RunFunnelReportRequest.getDefaultInstance()) + return this; + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + onChanged(); + } + if (dateRangesBuilder_ == null) { + if (!other.dateRanges_.isEmpty()) { + if (dateRanges_.isEmpty()) { + dateRanges_ = other.dateRanges_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDateRangesIsMutable(); + dateRanges_.addAll(other.dateRanges_); + } + onChanged(); + } + } else { + if (!other.dateRanges_.isEmpty()) { + if (dateRangesBuilder_.isEmpty()) { + dateRangesBuilder_.dispose(); + dateRangesBuilder_ = null; + dateRanges_ = other.dateRanges_; + bitField0_ = (bitField0_ & ~0x00000001); + dateRangesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDateRangesFieldBuilder() + : null; + } else { + dateRangesBuilder_.addAllMessages(other.dateRanges_); + } + } + } + if (other.hasFunnel()) { + mergeFunnel(other.getFunnel()); + } + if (other.hasFunnelBreakdown()) { + mergeFunnelBreakdown(other.getFunnelBreakdown()); + } + if (other.hasFunnelNextAction()) { + mergeFunnelNextAction(other.getFunnelNextAction()); + } + if (other.funnelVisualizationType_ != 0) { + setFunnelVisualizationTypeValue(other.getFunnelVisualizationTypeValue()); + } + if (segmentsBuilder_ == null) { + if (!other.segments_.isEmpty()) { + if (segments_.isEmpty()) { + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSegmentsIsMutable(); + segments_.addAll(other.segments_); + } + onChanged(); + } + } else { + if (!other.segments_.isEmpty()) { + if (segmentsBuilder_.isEmpty()) { + segmentsBuilder_.dispose(); + segmentsBuilder_ = null; + segments_ = other.segments_; + bitField0_ = (bitField0_ & ~0x00000002); + segmentsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getSegmentsFieldBuilder() + : null; + } else { + segmentsBuilder_.addAllMessages(other.segments_); + } + } + } + if (other.getLimit() != 0L) { + setLimit(other.getLimit()); + } + if (other.hasDimensionFilter()) { + mergeDimensionFilter(other.getDimensionFilter()); + } + 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.v1alpha.RunFunnelReportRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.RunFunnelReportRequest) 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 dateRanges_ = + java.util.Collections.emptyList(); + + private void ensureDateRangesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + dateRanges_ = + new java.util.ArrayList(dateRanges_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.DateRange, + com.google.analytics.data.v1alpha.DateRange.Builder, + com.google.analytics.data.v1alpha.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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + 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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + 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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + public com.google.analytics.data.v1alpha.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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + public Builder setDateRanges(int index, com.google.analytics.data.v1alpha.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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + public Builder setDateRanges( + int index, com.google.analytics.data.v1alpha.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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + public Builder addDateRanges(com.google.analytics.data.v1alpha.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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + public Builder addDateRanges(int index, com.google.analytics.data.v1alpha.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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + public Builder addDateRanges( + com.google.analytics.data.v1alpha.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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + public Builder addDateRanges( + int index, com.google.analytics.data.v1alpha.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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + 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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + public Builder clearDateRanges() { + if (dateRangesBuilder_ == null) { + dateRanges_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + 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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + 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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + public com.google.analytics.data.v1alpha.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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + public com.google.analytics.data.v1alpha.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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + 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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + public com.google.analytics.data.v1alpha.DateRange.Builder addDateRangesBuilder() { + return getDateRangesFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + public com.google.analytics.data.v1alpha.DateRange.Builder addDateRangesBuilder(int index) { + return getDateRangesFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.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.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + public java.util.List + getDateRangesBuilderList() { + return getDateRangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.DateRange, + com.google.analytics.data.v1alpha.DateRange.Builder, + com.google.analytics.data.v1alpha.DateRangeOrBuilder> + getDateRangesFieldBuilder() { + if (dateRangesBuilder_ == null) { + dateRangesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.DateRange, + com.google.analytics.data.v1alpha.DateRange.Builder, + com.google.analytics.data.v1alpha.DateRangeOrBuilder>( + dateRanges_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + dateRanges_ = null; + } + return dateRangesBuilder_; + } + + private com.google.analytics.data.v1alpha.Funnel funnel_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.Funnel, + com.google.analytics.data.v1alpha.Funnel.Builder, + com.google.analytics.data.v1alpha.FunnelOrBuilder> + funnelBuilder_; + /** + * + * + *
+     * The configuration of this request's funnel. This funnel configuration is
+     * required.
+     * 
+ * + * .google.analytics.data.v1alpha.Funnel funnel = 3; + * + * @return Whether the funnel field is set. + */ + public boolean hasFunnel() { + return funnelBuilder_ != null || funnel_ != null; + } + /** + * + * + *
+     * The configuration of this request's funnel. This funnel configuration is
+     * required.
+     * 
+ * + * .google.analytics.data.v1alpha.Funnel funnel = 3; + * + * @return The funnel. + */ + public com.google.analytics.data.v1alpha.Funnel getFunnel() { + if (funnelBuilder_ == null) { + return funnel_ == null + ? com.google.analytics.data.v1alpha.Funnel.getDefaultInstance() + : funnel_; + } else { + return funnelBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The configuration of this request's funnel. This funnel configuration is
+     * required.
+     * 
+ * + * .google.analytics.data.v1alpha.Funnel funnel = 3; + */ + public Builder setFunnel(com.google.analytics.data.v1alpha.Funnel value) { + if (funnelBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + funnel_ = value; + onChanged(); + } else { + funnelBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The configuration of this request's funnel. This funnel configuration is
+     * required.
+     * 
+ * + * .google.analytics.data.v1alpha.Funnel funnel = 3; + */ + public Builder setFunnel(com.google.analytics.data.v1alpha.Funnel.Builder builderForValue) { + if (funnelBuilder_ == null) { + funnel_ = builderForValue.build(); + onChanged(); + } else { + funnelBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The configuration of this request's funnel. This funnel configuration is
+     * required.
+     * 
+ * + * .google.analytics.data.v1alpha.Funnel funnel = 3; + */ + public Builder mergeFunnel(com.google.analytics.data.v1alpha.Funnel value) { + if (funnelBuilder_ == null) { + if (funnel_ != null) { + funnel_ = + com.google.analytics.data.v1alpha.Funnel.newBuilder(funnel_) + .mergeFrom(value) + .buildPartial(); + } else { + funnel_ = value; + } + onChanged(); + } else { + funnelBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The configuration of this request's funnel. This funnel configuration is
+     * required.
+     * 
+ * + * .google.analytics.data.v1alpha.Funnel funnel = 3; + */ + public Builder clearFunnel() { + if (funnelBuilder_ == null) { + funnel_ = null; + onChanged(); + } else { + funnel_ = null; + funnelBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The configuration of this request's funnel. This funnel configuration is
+     * required.
+     * 
+ * + * .google.analytics.data.v1alpha.Funnel funnel = 3; + */ + public com.google.analytics.data.v1alpha.Funnel.Builder getFunnelBuilder() { + + onChanged(); + return getFunnelFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The configuration of this request's funnel. This funnel configuration is
+     * required.
+     * 
+ * + * .google.analytics.data.v1alpha.Funnel funnel = 3; + */ + public com.google.analytics.data.v1alpha.FunnelOrBuilder getFunnelOrBuilder() { + if (funnelBuilder_ != null) { + return funnelBuilder_.getMessageOrBuilder(); + } else { + return funnel_ == null + ? com.google.analytics.data.v1alpha.Funnel.getDefaultInstance() + : funnel_; + } + } + /** + * + * + *
+     * The configuration of this request's funnel. This funnel configuration is
+     * required.
+     * 
+ * + * .google.analytics.data.v1alpha.Funnel funnel = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.Funnel, + com.google.analytics.data.v1alpha.Funnel.Builder, + com.google.analytics.data.v1alpha.FunnelOrBuilder> + getFunnelFieldBuilder() { + if (funnelBuilder_ == null) { + funnelBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.Funnel, + com.google.analytics.data.v1alpha.Funnel.Builder, + com.google.analytics.data.v1alpha.FunnelOrBuilder>( + getFunnel(), getParentForChildren(), isClean()); + funnel_ = null; + } + return funnelBuilder_; + } + + private com.google.analytics.data.v1alpha.FunnelBreakdown funnelBreakdown_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelBreakdown, + com.google.analytics.data.v1alpha.FunnelBreakdown.Builder, + com.google.analytics.data.v1alpha.FunnelBreakdownOrBuilder> + funnelBreakdownBuilder_; + /** + * + * + *
+     * If specified, this breakdown adds a dimension to the funnel table sub
+     * report response. This breakdown dimension expands each funnel step to the
+     * unique values of the breakdown dimension. For example, a breakdown by the
+     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
+     * `desktop`, and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; + * + * @return Whether the funnelBreakdown field is set. + */ + public boolean hasFunnelBreakdown() { + return funnelBreakdownBuilder_ != null || funnelBreakdown_ != null; + } + /** + * + * + *
+     * If specified, this breakdown adds a dimension to the funnel table sub
+     * report response. This breakdown dimension expands each funnel step to the
+     * unique values of the breakdown dimension. For example, a breakdown by the
+     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
+     * `desktop`, and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; + * + * @return The funnelBreakdown. + */ + public com.google.analytics.data.v1alpha.FunnelBreakdown getFunnelBreakdown() { + if (funnelBreakdownBuilder_ == null) { + return funnelBreakdown_ == null + ? com.google.analytics.data.v1alpha.FunnelBreakdown.getDefaultInstance() + : funnelBreakdown_; + } else { + return funnelBreakdownBuilder_.getMessage(); + } + } + /** + * + * + *
+     * If specified, this breakdown adds a dimension to the funnel table sub
+     * report response. This breakdown dimension expands each funnel step to the
+     * unique values of the breakdown dimension. For example, a breakdown by the
+     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
+     * `desktop`, and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; + */ + public Builder setFunnelBreakdown(com.google.analytics.data.v1alpha.FunnelBreakdown value) { + if (funnelBreakdownBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + funnelBreakdown_ = value; + onChanged(); + } else { + funnelBreakdownBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * If specified, this breakdown adds a dimension to the funnel table sub
+     * report response. This breakdown dimension expands each funnel step to the
+     * unique values of the breakdown dimension. For example, a breakdown by the
+     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
+     * `desktop`, and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; + */ + public Builder setFunnelBreakdown( + com.google.analytics.data.v1alpha.FunnelBreakdown.Builder builderForValue) { + if (funnelBreakdownBuilder_ == null) { + funnelBreakdown_ = builderForValue.build(); + onChanged(); + } else { + funnelBreakdownBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * If specified, this breakdown adds a dimension to the funnel table sub
+     * report response. This breakdown dimension expands each funnel step to the
+     * unique values of the breakdown dimension. For example, a breakdown by the
+     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
+     * `desktop`, and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; + */ + public Builder mergeFunnelBreakdown(com.google.analytics.data.v1alpha.FunnelBreakdown value) { + if (funnelBreakdownBuilder_ == null) { + if (funnelBreakdown_ != null) { + funnelBreakdown_ = + com.google.analytics.data.v1alpha.FunnelBreakdown.newBuilder(funnelBreakdown_) + .mergeFrom(value) + .buildPartial(); + } else { + funnelBreakdown_ = value; + } + onChanged(); + } else { + funnelBreakdownBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * If specified, this breakdown adds a dimension to the funnel table sub
+     * report response. This breakdown dimension expands each funnel step to the
+     * unique values of the breakdown dimension. For example, a breakdown by the
+     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
+     * `desktop`, and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; + */ + public Builder clearFunnelBreakdown() { + if (funnelBreakdownBuilder_ == null) { + funnelBreakdown_ = null; + onChanged(); + } else { + funnelBreakdown_ = null; + funnelBreakdownBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * If specified, this breakdown adds a dimension to the funnel table sub
+     * report response. This breakdown dimension expands each funnel step to the
+     * unique values of the breakdown dimension. For example, a breakdown by the
+     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
+     * `desktop`, and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; + */ + public com.google.analytics.data.v1alpha.FunnelBreakdown.Builder getFunnelBreakdownBuilder() { + + onChanged(); + return getFunnelBreakdownFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If specified, this breakdown adds a dimension to the funnel table sub
+     * report response. This breakdown dimension expands each funnel step to the
+     * unique values of the breakdown dimension. For example, a breakdown by the
+     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
+     * `desktop`, and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; + */ + public com.google.analytics.data.v1alpha.FunnelBreakdownOrBuilder + getFunnelBreakdownOrBuilder() { + if (funnelBreakdownBuilder_ != null) { + return funnelBreakdownBuilder_.getMessageOrBuilder(); + } else { + return funnelBreakdown_ == null + ? com.google.analytics.data.v1alpha.FunnelBreakdown.getDefaultInstance() + : funnelBreakdown_; + } + } + /** + * + * + *
+     * If specified, this breakdown adds a dimension to the funnel table sub
+     * report response. This breakdown dimension expands each funnel step to the
+     * unique values of the breakdown dimension. For example, a breakdown by the
+     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
+     * `desktop`, and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelBreakdown, + com.google.analytics.data.v1alpha.FunnelBreakdown.Builder, + com.google.analytics.data.v1alpha.FunnelBreakdownOrBuilder> + getFunnelBreakdownFieldBuilder() { + if (funnelBreakdownBuilder_ == null) { + funnelBreakdownBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelBreakdown, + com.google.analytics.data.v1alpha.FunnelBreakdown.Builder, + com.google.analytics.data.v1alpha.FunnelBreakdownOrBuilder>( + getFunnelBreakdown(), getParentForChildren(), isClean()); + funnelBreakdown_ = null; + } + return funnelBreakdownBuilder_; + } + + private com.google.analytics.data.v1alpha.FunnelNextAction funnelNextAction_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelNextAction, + com.google.analytics.data.v1alpha.FunnelNextAction.Builder, + com.google.analytics.data.v1alpha.FunnelNextActionOrBuilder> + funnelNextActionBuilder_; + /** + * + * + *
+     * If specified, next action adds a dimension to the funnel visualization sub
+     * report response. This next action dimension expands each funnel step to the
+     * unique values of the next action. For example a breakdown by the
+     * `eventName` dimension will create rows for several events (i.e.
+     * `session_start` & `click`) and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; + * + * @return Whether the funnelNextAction field is set. + */ + public boolean hasFunnelNextAction() { + return funnelNextActionBuilder_ != null || funnelNextAction_ != null; + } + /** + * + * + *
+     * If specified, next action adds a dimension to the funnel visualization sub
+     * report response. This next action dimension expands each funnel step to the
+     * unique values of the next action. For example a breakdown by the
+     * `eventName` dimension will create rows for several events (i.e.
+     * `session_start` & `click`) and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; + * + * @return The funnelNextAction. + */ + public com.google.analytics.data.v1alpha.FunnelNextAction getFunnelNextAction() { + if (funnelNextActionBuilder_ == null) { + return funnelNextAction_ == null + ? com.google.analytics.data.v1alpha.FunnelNextAction.getDefaultInstance() + : funnelNextAction_; + } else { + return funnelNextActionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * If specified, next action adds a dimension to the funnel visualization sub
+     * report response. This next action dimension expands each funnel step to the
+     * unique values of the next action. For example a breakdown by the
+     * `eventName` dimension will create rows for several events (i.e.
+     * `session_start` & `click`) and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; + */ + public Builder setFunnelNextAction(com.google.analytics.data.v1alpha.FunnelNextAction value) { + if (funnelNextActionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + funnelNextAction_ = value; + onChanged(); + } else { + funnelNextActionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * If specified, next action adds a dimension to the funnel visualization sub
+     * report response. This next action dimension expands each funnel step to the
+     * unique values of the next action. For example a breakdown by the
+     * `eventName` dimension will create rows for several events (i.e.
+     * `session_start` & `click`) and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; + */ + public Builder setFunnelNextAction( + com.google.analytics.data.v1alpha.FunnelNextAction.Builder builderForValue) { + if (funnelNextActionBuilder_ == null) { + funnelNextAction_ = builderForValue.build(); + onChanged(); + } else { + funnelNextActionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * If specified, next action adds a dimension to the funnel visualization sub
+     * report response. This next action dimension expands each funnel step to the
+     * unique values of the next action. For example a breakdown by the
+     * `eventName` dimension will create rows for several events (i.e.
+     * `session_start` & `click`) and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; + */ + public Builder mergeFunnelNextAction(com.google.analytics.data.v1alpha.FunnelNextAction value) { + if (funnelNextActionBuilder_ == null) { + if (funnelNextAction_ != null) { + funnelNextAction_ = + com.google.analytics.data.v1alpha.FunnelNextAction.newBuilder(funnelNextAction_) + .mergeFrom(value) + .buildPartial(); + } else { + funnelNextAction_ = value; + } + onChanged(); + } else { + funnelNextActionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * If specified, next action adds a dimension to the funnel visualization sub
+     * report response. This next action dimension expands each funnel step to the
+     * unique values of the next action. For example a breakdown by the
+     * `eventName` dimension will create rows for several events (i.e.
+     * `session_start` & `click`) and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; + */ + public Builder clearFunnelNextAction() { + if (funnelNextActionBuilder_ == null) { + funnelNextAction_ = null; + onChanged(); + } else { + funnelNextAction_ = null; + funnelNextActionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * If specified, next action adds a dimension to the funnel visualization sub
+     * report response. This next action dimension expands each funnel step to the
+     * unique values of the next action. For example a breakdown by the
+     * `eventName` dimension will create rows for several events (i.e.
+     * `session_start` & `click`) and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; + */ + public com.google.analytics.data.v1alpha.FunnelNextAction.Builder getFunnelNextActionBuilder() { + + onChanged(); + return getFunnelNextActionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If specified, next action adds a dimension to the funnel visualization sub
+     * report response. This next action dimension expands each funnel step to the
+     * unique values of the next action. For example a breakdown by the
+     * `eventName` dimension will create rows for several events (i.e.
+     * `session_start` & `click`) and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; + */ + public com.google.analytics.data.v1alpha.FunnelNextActionOrBuilder + getFunnelNextActionOrBuilder() { + if (funnelNextActionBuilder_ != null) { + return funnelNextActionBuilder_.getMessageOrBuilder(); + } else { + return funnelNextAction_ == null + ? com.google.analytics.data.v1alpha.FunnelNextAction.getDefaultInstance() + : funnelNextAction_; + } + } + /** + * + * + *
+     * If specified, next action adds a dimension to the funnel visualization sub
+     * report response. This next action dimension expands each funnel step to the
+     * unique values of the next action. For example a breakdown by the
+     * `eventName` dimension will create rows for several events (i.e.
+     * `session_start` & `click`) and the total.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelNextAction, + com.google.analytics.data.v1alpha.FunnelNextAction.Builder, + com.google.analytics.data.v1alpha.FunnelNextActionOrBuilder> + getFunnelNextActionFieldBuilder() { + if (funnelNextActionBuilder_ == null) { + funnelNextActionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelNextAction, + com.google.analytics.data.v1alpha.FunnelNextAction.Builder, + com.google.analytics.data.v1alpha.FunnelNextActionOrBuilder>( + getFunnelNextAction(), getParentForChildren(), isClean()); + funnelNextAction_ = null; + } + return funnelNextActionBuilder_; + } + + private int funnelVisualizationType_ = 0; + /** + * + * + *
+     * The funnel visualization type controls the dimensions present in the funnel
+     * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
+     * used.
+     * 
+ * + * + * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; + * + * + * @return The enum numeric value on the wire for funnelVisualizationType. + */ + @java.lang.Override + public int getFunnelVisualizationTypeValue() { + return funnelVisualizationType_; + } + /** + * + * + *
+     * The funnel visualization type controls the dimensions present in the funnel
+     * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
+     * used.
+     * 
+ * + * + * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; + * + * + * @param value The enum numeric value on the wire for funnelVisualizationType to set. + * @return This builder for chaining. + */ + public Builder setFunnelVisualizationTypeValue(int value) { + + funnelVisualizationType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The funnel visualization type controls the dimensions present in the funnel
+     * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
+     * used.
+     * 
+ * + * + * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; + * + * + * @return The funnelVisualizationType. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType + getFunnelVisualizationType() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType result = + com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType.valueOf( + funnelVisualizationType_); + return result == null + ? com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType + .UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The funnel visualization type controls the dimensions present in the funnel
+     * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
+     * used.
+     * 
+ * + * + * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; + * + * + * @param value The funnelVisualizationType to set. + * @return This builder for chaining. + */ + public Builder setFunnelVisualizationType( + com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType value) { + if (value == null) { + throw new NullPointerException(); + } + + funnelVisualizationType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The funnel visualization type controls the dimensions present in the funnel
+     * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
+     * used.
+     * 
+ * + * + * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; + * + * + * @return This builder for chaining. + */ + public Builder clearFunnelVisualizationType() { + + funnelVisualizationType_ = 0; + onChanged(); + return this; + } + + private java.util.List segments_ = + java.util.Collections.emptyList(); + + private void ensureSegmentsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + segments_ = new java.util.ArrayList(segments_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.Segment, + com.google.analytics.data.v1alpha.Segment.Builder, + com.google.analytics.data.v1alpha.SegmentOrBuilder> + segmentsBuilder_; + + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public java.util.List getSegmentsList() { + if (segmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(segments_); + } else { + return segmentsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public int getSegmentsCount() { + if (segmentsBuilder_ == null) { + return segments_.size(); + } else { + return segmentsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public com.google.analytics.data.v1alpha.Segment getSegments(int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public Builder setSegments(int index, com.google.analytics.data.v1alpha.Segment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.set(index, value); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public Builder setSegments( + int index, com.google.analytics.data.v1alpha.Segment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.set(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public Builder addSegments(com.google.analytics.data.v1alpha.Segment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(value); + onChanged(); + } else { + segmentsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public Builder addSegments(int index, com.google.analytics.data.v1alpha.Segment value) { + if (segmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSegmentsIsMutable(); + segments_.add(index, value); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public Builder addSegments(com.google.analytics.data.v1alpha.Segment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public Builder addSegments( + int index, com.google.analytics.data.v1alpha.Segment.Builder builderForValue) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(index, builderForValue.build()); + onChanged(); + } else { + segmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public Builder addAllSegments( + java.lang.Iterable values) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segments_); + onChanged(); + } else { + segmentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public Builder clearSegments() { + if (segmentsBuilder_ == null) { + segments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + segmentsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public Builder removeSegments(int index) { + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.remove(index); + onChanged(); + } else { + segmentsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public com.google.analytics.data.v1alpha.Segment.Builder getSegmentsBuilder(int index) { + return getSegmentsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public com.google.analytics.data.v1alpha.SegmentOrBuilder getSegmentsOrBuilder(int index) { + if (segmentsBuilder_ == null) { + return segments_.get(index); + } else { + return segmentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public java.util.List + getSegmentsOrBuilderList() { + if (segmentsBuilder_ != null) { + return segmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(segments_); + } + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public com.google.analytics.data.v1alpha.Segment.Builder addSegmentsBuilder() { + return getSegmentsFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.Segment.getDefaultInstance()); + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public com.google.analytics.data.v1alpha.Segment.Builder addSegmentsBuilder(int index) { + return getSegmentsFieldBuilder() + .addBuilder(index, com.google.analytics.data.v1alpha.Segment.getDefaultInstance()); + } + /** + * + * + *
+     * The configurations of segments. Segments are subsets of a property's data.
+     * In a funnel report with segments, the funnel is evaluated in each segment.
+     * Each segment specified in this request
+     * produces a separate row in the response; in the response, each segment
+     * identified by its name.
+     * The segments parameter is optional. Requests are limited to 4 segments.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + public java.util.List + getSegmentsBuilderList() { + return getSegmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.Segment, + com.google.analytics.data.v1alpha.Segment.Builder, + com.google.analytics.data.v1alpha.SegmentOrBuilder> + getSegmentsFieldBuilder() { + if (segmentsBuilder_ == null) { + segmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.Segment, + com.google.analytics.data.v1alpha.Segment.Builder, + com.google.analytics.data.v1alpha.SegmentOrBuilder>( + segments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + segments_ = null; + } + return segmentsBuilder_; + } + + 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`.
+     * 
+ * + * int64 limit = 9; + * + * @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`.
+     * 
+ * + * int64 limit = 9; + * + * @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`.
+     * 
+ * + * int64 limit = 9; + * + * @return This builder for chaining. + */ + public Builder clearLimit() { + + limit_ = 0L; + onChanged(); + return this; + } + + private com.google.analytics.data.v1alpha.FilterExpression dimensionFilter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> + dimensionFilterBuilder_; + /** + * + * + *
+     * Dimension filters allow you to ask for only specific dimension values in
+     * the report. To learn more, see [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; + * + * @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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; + * + * @return The dimensionFilter. + */ + public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() { + if (dimensionFilterBuilder_ == null) { + return dimensionFilter_ == null + ? com.google.analytics.data.v1alpha.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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; + */ + public Builder setDimensionFilter(com.google.analytics.data.v1alpha.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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; + */ + public Builder setDimensionFilter( + com.google.analytics.data.v1alpha.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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; + */ + public Builder mergeDimensionFilter(com.google.analytics.data.v1alpha.FilterExpression value) { + if (dimensionFilterBuilder_ == null) { + if (dimensionFilter_ != null) { + dimensionFilter_ = + com.google.analytics.data.v1alpha.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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; + */ + 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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; + */ + public com.google.analytics.data.v1alpha.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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; + */ + public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder + getDimensionFilterOrBuilder() { + if (dimensionFilterBuilder_ != null) { + return dimensionFilterBuilder_.getMessageOrBuilder(); + } else { + return dimensionFilter_ == null + ? com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance() + : dimensionFilter_; + } + } + /** + * + * + *
+     * Dimension filters allow you to ask for only specific dimension values in
+     * the report. To learn more, see [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> + getDimensionFilterFieldBuilder() { + if (dimensionFilterBuilder_ == null) { + dimensionFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FilterExpression, + com.google.analytics.data.v1alpha.FilterExpression.Builder, + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>( + getDimensionFilter(), getParentForChildren(), isClean()); + dimensionFilter_ = null; + } + return dimensionFilterBuilder_; + } + + 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 = 12; + * + * @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 = 12; + * + * @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 = 12; + * + * @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.v1alpha.RunFunnelReportRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.RunFunnelReportRequest) + private static final com.google.analytics.data.v1alpha.RunFunnelReportRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.RunFunnelReportRequest(); + } + + public static com.google.analytics.data.v1alpha.RunFunnelReportRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunFunnelReportRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunFunnelReportRequest(input, extensionRegistry); + } + }; + + public static 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.v1alpha.RunFunnelReportRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequestOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequestOrBuilder.java new file mode 100644 index 00000000..8bdda226 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequestOrBuilder.java @@ -0,0 +1,447 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/analytics_data_api.proto + +package com.google.analytics.data.v1alpha; + +public interface RunFunnelReportRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.RunFunnelReportRequest) + 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(); + + /** + * + * + *
+   * 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.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + 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.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + com.google.analytics.data.v1alpha.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.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + 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.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + 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.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; + */ + com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangesOrBuilder(int index); + + /** + * + * + *
+   * The configuration of this request's funnel. This funnel configuration is
+   * required.
+   * 
+ * + * .google.analytics.data.v1alpha.Funnel funnel = 3; + * + * @return Whether the funnel field is set. + */ + boolean hasFunnel(); + /** + * + * + *
+   * The configuration of this request's funnel. This funnel configuration is
+   * required.
+   * 
+ * + * .google.analytics.data.v1alpha.Funnel funnel = 3; + * + * @return The funnel. + */ + com.google.analytics.data.v1alpha.Funnel getFunnel(); + /** + * + * + *
+   * The configuration of this request's funnel. This funnel configuration is
+   * required.
+   * 
+ * + * .google.analytics.data.v1alpha.Funnel funnel = 3; + */ + com.google.analytics.data.v1alpha.FunnelOrBuilder getFunnelOrBuilder(); + + /** + * + * + *
+   * If specified, this breakdown adds a dimension to the funnel table sub
+   * report response. This breakdown dimension expands each funnel step to the
+   * unique values of the breakdown dimension. For example, a breakdown by the
+   * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
+   * `desktop`, and the total.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; + * + * @return Whether the funnelBreakdown field is set. + */ + boolean hasFunnelBreakdown(); + /** + * + * + *
+   * If specified, this breakdown adds a dimension to the funnel table sub
+   * report response. This breakdown dimension expands each funnel step to the
+   * unique values of the breakdown dimension. For example, a breakdown by the
+   * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
+   * `desktop`, and the total.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; + * + * @return The funnelBreakdown. + */ + com.google.analytics.data.v1alpha.FunnelBreakdown getFunnelBreakdown(); + /** + * + * + *
+   * If specified, this breakdown adds a dimension to the funnel table sub
+   * report response. This breakdown dimension expands each funnel step to the
+   * unique values of the breakdown dimension. For example, a breakdown by the
+   * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
+   * `desktop`, and the total.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; + */ + com.google.analytics.data.v1alpha.FunnelBreakdownOrBuilder getFunnelBreakdownOrBuilder(); + + /** + * + * + *
+   * If specified, next action adds a dimension to the funnel visualization sub
+   * report response. This next action dimension expands each funnel step to the
+   * unique values of the next action. For example a breakdown by the
+   * `eventName` dimension will create rows for several events (i.e.
+   * `session_start` & `click`) and the total.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; + * + * @return Whether the funnelNextAction field is set. + */ + boolean hasFunnelNextAction(); + /** + * + * + *
+   * If specified, next action adds a dimension to the funnel visualization sub
+   * report response. This next action dimension expands each funnel step to the
+   * unique values of the next action. For example a breakdown by the
+   * `eventName` dimension will create rows for several events (i.e.
+   * `session_start` & `click`) and the total.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; + * + * @return The funnelNextAction. + */ + com.google.analytics.data.v1alpha.FunnelNextAction getFunnelNextAction(); + /** + * + * + *
+   * If specified, next action adds a dimension to the funnel visualization sub
+   * report response. This next action dimension expands each funnel step to the
+   * unique values of the next action. For example a breakdown by the
+   * `eventName` dimension will create rows for several events (i.e.
+   * `session_start` & `click`) and the total.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; + */ + com.google.analytics.data.v1alpha.FunnelNextActionOrBuilder getFunnelNextActionOrBuilder(); + + /** + * + * + *
+   * The funnel visualization type controls the dimensions present in the funnel
+   * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
+   * used.
+   * 
+ * + * + * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; + * + * + * @return The enum numeric value on the wire for funnelVisualizationType. + */ + int getFunnelVisualizationTypeValue(); + /** + * + * + *
+   * The funnel visualization type controls the dimensions present in the funnel
+   * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
+   * used.
+   * 
+ * + * + * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; + * + * + * @return The funnelVisualizationType. + */ + com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType + getFunnelVisualizationType(); + + /** + * + * + *
+   * The configurations of segments. Segments are subsets of a property's data.
+   * In a funnel report with segments, the funnel is evaluated in each segment.
+   * Each segment specified in this request
+   * produces a separate row in the response; in the response, each segment
+   * identified by its name.
+   * The segments parameter is optional. Requests are limited to 4 segments.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + java.util.List getSegmentsList(); + /** + * + * + *
+   * The configurations of segments. Segments are subsets of a property's data.
+   * In a funnel report with segments, the funnel is evaluated in each segment.
+   * Each segment specified in this request
+   * produces a separate row in the response; in the response, each segment
+   * identified by its name.
+   * The segments parameter is optional. Requests are limited to 4 segments.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + com.google.analytics.data.v1alpha.Segment getSegments(int index); + /** + * + * + *
+   * The configurations of segments. Segments are subsets of a property's data.
+   * In a funnel report with segments, the funnel is evaluated in each segment.
+   * Each segment specified in this request
+   * produces a separate row in the response; in the response, each segment
+   * identified by its name.
+   * The segments parameter is optional. Requests are limited to 4 segments.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + int getSegmentsCount(); + /** + * + * + *
+   * The configurations of segments. Segments are subsets of a property's data.
+   * In a funnel report with segments, the funnel is evaluated in each segment.
+   * Each segment specified in this request
+   * produces a separate row in the response; in the response, each segment
+   * identified by its name.
+   * The segments parameter is optional. Requests are limited to 4 segments.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + java.util.List + getSegmentsOrBuilderList(); + /** + * + * + *
+   * The configurations of segments. Segments are subsets of a property's data.
+   * In a funnel report with segments, the funnel is evaluated in each segment.
+   * Each segment specified in this request
+   * produces a separate row in the response; in the response, each segment
+   * identified by its name.
+   * The segments parameter is optional. Requests are limited to 4 segments.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.Segment segments = 7; + */ + com.google.analytics.data.v1alpha.SegmentOrBuilder getSegmentsOrBuilder(int index); + + /** + * + * + *
+   * 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`.
+   * 
+ * + * int64 limit = 9; + * + * @return The limit. + */ + long getLimit(); + + /** + * + * + *
+   * Dimension filters allow you to ask for only specific dimension values in
+   * the report. To learn more, see [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; + * + * @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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; + * + * @return The dimensionFilter. + */ + com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter(); + /** + * + * + *
+   * Dimension filters allow you to ask for only specific dimension values in
+   * the report. To learn more, see [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; + */ + com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getDimensionFilterOrBuilder(); + + /** + * + * + *
+   * Toggles whether to return the current state of this Analytics Property's
+   * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
+   * 
+ * + * bool return_property_quota = 12; + * + * @return The returnPropertyQuota. + */ + boolean getReturnPropertyQuota(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponse.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponse.java new file mode 100644 index 00000000..226bd180 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponse.java @@ -0,0 +1,1615 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/analytics_data_api.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * The funnel report response contains two sub reports. The two sub reports are
+ * different combinations of dimensions and metrics.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.RunFunnelReportResponse} + */ +public final class RunFunnelReportResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.RunFunnelReportResponse) + RunFunnelReportResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use RunFunnelReportResponse.newBuilder() to construct. + private RunFunnelReportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private RunFunnelReportResponse() { + kind_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new RunFunnelReportResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private RunFunnelReportResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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.v1alpha.FunnelSubReport.Builder subBuilder = null; + if (funnelTable_ != null) { + subBuilder = funnelTable_.toBuilder(); + } + funnelTable_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelSubReport.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(funnelTable_); + funnelTable_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.analytics.data.v1alpha.FunnelSubReport.Builder subBuilder = null; + if (funnelVisualization_ != null) { + subBuilder = funnelVisualization_.toBuilder(); + } + funnelVisualization_ = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelSubReport.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(funnelVisualization_); + funnelVisualization_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.analytics.data.v1alpha.PropertyQuota.Builder subBuilder = null; + if (propertyQuota_ != null) { + subBuilder = propertyQuota_.toBuilder(); + } + propertyQuota_ = + input.readMessage( + com.google.analytics.data.v1alpha.PropertyQuota.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(propertyQuota_); + propertyQuota_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + 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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.RunFunnelReportResponse.class, + com.google.analytics.data.v1alpha.RunFunnelReportResponse.Builder.class); + } + + public static final int FUNNEL_TABLE_FIELD_NUMBER = 1; + private com.google.analytics.data.v1alpha.FunnelSubReport funnelTable_; + /** + * + * + *
+   * The funnel table is a report with the funnel step, segment, breakdown
+   * dimension, active users, completion rate, abandonments, and abandonments
+   * rate.
+   * The segment dimension is only present in this response if a segment was
+   * requested. The breakdown dimension is only present in this response if it
+   * was requested.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; + * + * @return Whether the funnelTable field is set. + */ + @java.lang.Override + public boolean hasFunnelTable() { + return funnelTable_ != null; + } + /** + * + * + *
+   * The funnel table is a report with the funnel step, segment, breakdown
+   * dimension, active users, completion rate, abandonments, and abandonments
+   * rate.
+   * The segment dimension is only present in this response if a segment was
+   * requested. The breakdown dimension is only present in this response if it
+   * was requested.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; + * + * @return The funnelTable. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelSubReport getFunnelTable() { + return funnelTable_ == null + ? com.google.analytics.data.v1alpha.FunnelSubReport.getDefaultInstance() + : funnelTable_; + } + /** + * + * + *
+   * The funnel table is a report with the funnel step, segment, breakdown
+   * dimension, active users, completion rate, abandonments, and abandonments
+   * rate.
+   * The segment dimension is only present in this response if a segment was
+   * requested. The breakdown dimension is only present in this response if it
+   * was requested.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder getFunnelTableOrBuilder() { + return getFunnelTable(); + } + + public static final int FUNNEL_VISUALIZATION_FIELD_NUMBER = 2; + private com.google.analytics.data.v1alpha.FunnelSubReport funnelVisualization_; + /** + * + * + *
+   * The funnel visualization is a report with the funnel step, segment, date,
+   * next action dimension, and active users.
+   * The segment dimension is only present in this response if a segment was
+   * requested. The date dimension is only present in this response if it was
+   * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
+   * is only present in the response if it was requested.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; + * + * @return Whether the funnelVisualization field is set. + */ + @java.lang.Override + public boolean hasFunnelVisualization() { + return funnelVisualization_ != null; + } + /** + * + * + *
+   * The funnel visualization is a report with the funnel step, segment, date,
+   * next action dimension, and active users.
+   * The segment dimension is only present in this response if a segment was
+   * requested. The date dimension is only present in this response if it was
+   * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
+   * is only present in the response if it was requested.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; + * + * @return The funnelVisualization. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelSubReport getFunnelVisualization() { + return funnelVisualization_ == null + ? com.google.analytics.data.v1alpha.FunnelSubReport.getDefaultInstance() + : funnelVisualization_; + } + /** + * + * + *
+   * The funnel visualization is a report with the funnel step, segment, date,
+   * next action dimension, and active users.
+   * The segment dimension is only present in this response if a segment was
+   * requested. The date dimension is only present in this response if it was
+   * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
+   * is only present in the response if it was requested.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder + getFunnelVisualizationOrBuilder() { + return getFunnelVisualization(); + } + + public static final int PROPERTY_QUOTA_FIELD_NUMBER = 3; + private com.google.analytics.data.v1alpha.PropertyQuota propertyQuota_; + /** + * + * + *
+   * This Analytics Property's quota state including this request.
+   * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; + * + * @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.v1alpha.PropertyQuota property_quota = 3; + * + * @return The propertyQuota. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota() { + return propertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : propertyQuota_; + } + /** + * + * + *
+   * This Analytics Property's quota state including this request.
+   * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { + return getPropertyQuota(); + } + + public static final int KIND_FIELD_NUMBER = 4; + private volatile java.lang.Object kind_; + /** + * + * + *
+   * Identifies what kind of resource this message is. This `kind` is always the
+   * fixed string "analyticsData#runFunnelReport". Useful to distinguish between
+   * response types in JSON.
+   * 
+ * + * string kind = 4; + * + * @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#runFunnelReport". Useful to distinguish between
+   * response types in JSON.
+   * 
+ * + * string kind = 4; + * + * @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 { + if (funnelTable_ != null) { + output.writeMessage(1, getFunnelTable()); + } + if (funnelVisualization_ != null) { + output.writeMessage(2, getFunnelVisualization()); + } + if (propertyQuota_ != null) { + output.writeMessage(3, getPropertyQuota()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kind_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (funnelTable_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFunnelTable()); + } + if (funnelVisualization_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFunnelVisualization()); + } + if (propertyQuota_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPropertyQuota()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, 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.v1alpha.RunFunnelReportResponse)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.RunFunnelReportResponse other = + (com.google.analytics.data.v1alpha.RunFunnelReportResponse) obj; + + if (hasFunnelTable() != other.hasFunnelTable()) return false; + if (hasFunnelTable()) { + if (!getFunnelTable().equals(other.getFunnelTable())) return false; + } + if (hasFunnelVisualization() != other.hasFunnelVisualization()) return false; + if (hasFunnelVisualization()) { + if (!getFunnelVisualization().equals(other.getFunnelVisualization())) 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 (hasFunnelTable()) { + hash = (37 * hash) + FUNNEL_TABLE_FIELD_NUMBER; + hash = (53 * hash) + getFunnelTable().hashCode(); + } + if (hasFunnelVisualization()) { + hash = (37 * hash) + FUNNEL_VISUALIZATION_FIELD_NUMBER; + hash = (53 * hash) + getFunnelVisualization().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.v1alpha.RunFunnelReportResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.RunFunnelReportResponse 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.v1alpha.RunFunnelReportResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.RunFunnelReportResponse parseFrom( + 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.v1alpha.RunFunnelReportResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.RunFunnelReportResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.RunFunnelReportResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.RunFunnelReportResponse parseFrom( + java.io.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.v1alpha.RunFunnelReportResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.RunFunnelReportResponse parseDelimitedFrom( + java.io.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.v1alpha.RunFunnelReportResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.RunFunnelReportResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.RunFunnelReportResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 funnel report response contains two sub reports. The two sub reports are
+   * different combinations of dimensions and metrics.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.RunFunnelReportResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.RunFunnelReportResponse) + com.google.analytics.data.v1alpha.RunFunnelReportResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.RunFunnelReportResponse.class, + com.google.analytics.data.v1alpha.RunFunnelReportResponse.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.RunFunnelReportResponse.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 (funnelTableBuilder_ == null) { + funnelTable_ = null; + } else { + funnelTable_ = null; + funnelTableBuilder_ = null; + } + if (funnelVisualizationBuilder_ == null) { + funnelVisualization_ = null; + } else { + funnelVisualization_ = null; + funnelVisualizationBuilder_ = 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.v1alpha.AnalyticsDataApiProto + .internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.RunFunnelReportResponse getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.RunFunnelReportResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.RunFunnelReportResponse build() { + com.google.analytics.data.v1alpha.RunFunnelReportResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.RunFunnelReportResponse buildPartial() { + com.google.analytics.data.v1alpha.RunFunnelReportResponse result = + new com.google.analytics.data.v1alpha.RunFunnelReportResponse(this); + if (funnelTableBuilder_ == null) { + result.funnelTable_ = funnelTable_; + } else { + result.funnelTable_ = funnelTableBuilder_.build(); + } + if (funnelVisualizationBuilder_ == null) { + result.funnelVisualization_ = funnelVisualization_; + } else { + result.funnelVisualization_ = funnelVisualizationBuilder_.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.v1alpha.RunFunnelReportResponse) { + return mergeFrom((com.google.analytics.data.v1alpha.RunFunnelReportResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.RunFunnelReportResponse other) { + if (other == com.google.analytics.data.v1alpha.RunFunnelReportResponse.getDefaultInstance()) + return this; + if (other.hasFunnelTable()) { + mergeFunnelTable(other.getFunnelTable()); + } + if (other.hasFunnelVisualization()) { + mergeFunnelVisualization(other.getFunnelVisualization()); + } + 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.v1alpha.RunFunnelReportResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.RunFunnelReportResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.data.v1alpha.FunnelSubReport funnelTable_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelSubReport, + com.google.analytics.data.v1alpha.FunnelSubReport.Builder, + com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder> + funnelTableBuilder_; + /** + * + * + *
+     * The funnel table is a report with the funnel step, segment, breakdown
+     * dimension, active users, completion rate, abandonments, and abandonments
+     * rate.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The breakdown dimension is only present in this response if it
+     * was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; + * + * @return Whether the funnelTable field is set. + */ + public boolean hasFunnelTable() { + return funnelTableBuilder_ != null || funnelTable_ != null; + } + /** + * + * + *
+     * The funnel table is a report with the funnel step, segment, breakdown
+     * dimension, active users, completion rate, abandonments, and abandonments
+     * rate.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The breakdown dimension is only present in this response if it
+     * was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; + * + * @return The funnelTable. + */ + public com.google.analytics.data.v1alpha.FunnelSubReport getFunnelTable() { + if (funnelTableBuilder_ == null) { + return funnelTable_ == null + ? com.google.analytics.data.v1alpha.FunnelSubReport.getDefaultInstance() + : funnelTable_; + } else { + return funnelTableBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The funnel table is a report with the funnel step, segment, breakdown
+     * dimension, active users, completion rate, abandonments, and abandonments
+     * rate.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The breakdown dimension is only present in this response if it
+     * was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; + */ + public Builder setFunnelTable(com.google.analytics.data.v1alpha.FunnelSubReport value) { + if (funnelTableBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + funnelTable_ = value; + onChanged(); + } else { + funnelTableBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The funnel table is a report with the funnel step, segment, breakdown
+     * dimension, active users, completion rate, abandonments, and abandonments
+     * rate.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The breakdown dimension is only present in this response if it
+     * was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; + */ + public Builder setFunnelTable( + com.google.analytics.data.v1alpha.FunnelSubReport.Builder builderForValue) { + if (funnelTableBuilder_ == null) { + funnelTable_ = builderForValue.build(); + onChanged(); + } else { + funnelTableBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The funnel table is a report with the funnel step, segment, breakdown
+     * dimension, active users, completion rate, abandonments, and abandonments
+     * rate.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The breakdown dimension is only present in this response if it
+     * was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; + */ + public Builder mergeFunnelTable(com.google.analytics.data.v1alpha.FunnelSubReport value) { + if (funnelTableBuilder_ == null) { + if (funnelTable_ != null) { + funnelTable_ = + com.google.analytics.data.v1alpha.FunnelSubReport.newBuilder(funnelTable_) + .mergeFrom(value) + .buildPartial(); + } else { + funnelTable_ = value; + } + onChanged(); + } else { + funnelTableBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The funnel table is a report with the funnel step, segment, breakdown
+     * dimension, active users, completion rate, abandonments, and abandonments
+     * rate.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The breakdown dimension is only present in this response if it
+     * was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; + */ + public Builder clearFunnelTable() { + if (funnelTableBuilder_ == null) { + funnelTable_ = null; + onChanged(); + } else { + funnelTable_ = null; + funnelTableBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The funnel table is a report with the funnel step, segment, breakdown
+     * dimension, active users, completion rate, abandonments, and abandonments
+     * rate.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The breakdown dimension is only present in this response if it
+     * was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; + */ + public com.google.analytics.data.v1alpha.FunnelSubReport.Builder getFunnelTableBuilder() { + + onChanged(); + return getFunnelTableFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The funnel table is a report with the funnel step, segment, breakdown
+     * dimension, active users, completion rate, abandonments, and abandonments
+     * rate.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The breakdown dimension is only present in this response if it
+     * was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; + */ + public com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder getFunnelTableOrBuilder() { + if (funnelTableBuilder_ != null) { + return funnelTableBuilder_.getMessageOrBuilder(); + } else { + return funnelTable_ == null + ? com.google.analytics.data.v1alpha.FunnelSubReport.getDefaultInstance() + : funnelTable_; + } + } + /** + * + * + *
+     * The funnel table is a report with the funnel step, segment, breakdown
+     * dimension, active users, completion rate, abandonments, and abandonments
+     * rate.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The breakdown dimension is only present in this response if it
+     * was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelSubReport, + com.google.analytics.data.v1alpha.FunnelSubReport.Builder, + com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder> + getFunnelTableFieldBuilder() { + if (funnelTableBuilder_ == null) { + funnelTableBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelSubReport, + com.google.analytics.data.v1alpha.FunnelSubReport.Builder, + com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder>( + getFunnelTable(), getParentForChildren(), isClean()); + funnelTable_ = null; + } + return funnelTableBuilder_; + } + + private com.google.analytics.data.v1alpha.FunnelSubReport funnelVisualization_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelSubReport, + com.google.analytics.data.v1alpha.FunnelSubReport.Builder, + com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder> + funnelVisualizationBuilder_; + /** + * + * + *
+     * The funnel visualization is a report with the funnel step, segment, date,
+     * next action dimension, and active users.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The date dimension is only present in this response if it was
+     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
+     * is only present in the response if it was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; + * + * @return Whether the funnelVisualization field is set. + */ + public boolean hasFunnelVisualization() { + return funnelVisualizationBuilder_ != null || funnelVisualization_ != null; + } + /** + * + * + *
+     * The funnel visualization is a report with the funnel step, segment, date,
+     * next action dimension, and active users.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The date dimension is only present in this response if it was
+     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
+     * is only present in the response if it was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; + * + * @return The funnelVisualization. + */ + public com.google.analytics.data.v1alpha.FunnelSubReport getFunnelVisualization() { + if (funnelVisualizationBuilder_ == null) { + return funnelVisualization_ == null + ? com.google.analytics.data.v1alpha.FunnelSubReport.getDefaultInstance() + : funnelVisualization_; + } else { + return funnelVisualizationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The funnel visualization is a report with the funnel step, segment, date,
+     * next action dimension, and active users.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The date dimension is only present in this response if it was
+     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
+     * is only present in the response if it was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; + */ + public Builder setFunnelVisualization(com.google.analytics.data.v1alpha.FunnelSubReport value) { + if (funnelVisualizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + funnelVisualization_ = value; + onChanged(); + } else { + funnelVisualizationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The funnel visualization is a report with the funnel step, segment, date,
+     * next action dimension, and active users.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The date dimension is only present in this response if it was
+     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
+     * is only present in the response if it was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; + */ + public Builder setFunnelVisualization( + com.google.analytics.data.v1alpha.FunnelSubReport.Builder builderForValue) { + if (funnelVisualizationBuilder_ == null) { + funnelVisualization_ = builderForValue.build(); + onChanged(); + } else { + funnelVisualizationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The funnel visualization is a report with the funnel step, segment, date,
+     * next action dimension, and active users.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The date dimension is only present in this response if it was
+     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
+     * is only present in the response if it was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; + */ + public Builder mergeFunnelVisualization( + com.google.analytics.data.v1alpha.FunnelSubReport value) { + if (funnelVisualizationBuilder_ == null) { + if (funnelVisualization_ != null) { + funnelVisualization_ = + com.google.analytics.data.v1alpha.FunnelSubReport.newBuilder(funnelVisualization_) + .mergeFrom(value) + .buildPartial(); + } else { + funnelVisualization_ = value; + } + onChanged(); + } else { + funnelVisualizationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The funnel visualization is a report with the funnel step, segment, date,
+     * next action dimension, and active users.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The date dimension is only present in this response if it was
+     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
+     * is only present in the response if it was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; + */ + public Builder clearFunnelVisualization() { + if (funnelVisualizationBuilder_ == null) { + funnelVisualization_ = null; + onChanged(); + } else { + funnelVisualization_ = null; + funnelVisualizationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The funnel visualization is a report with the funnel step, segment, date,
+     * next action dimension, and active users.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The date dimension is only present in this response if it was
+     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
+     * is only present in the response if it was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; + */ + public com.google.analytics.data.v1alpha.FunnelSubReport.Builder + getFunnelVisualizationBuilder() { + + onChanged(); + return getFunnelVisualizationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The funnel visualization is a report with the funnel step, segment, date,
+     * next action dimension, and active users.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The date dimension is only present in this response if it was
+     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
+     * is only present in the response if it was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; + */ + public com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder + getFunnelVisualizationOrBuilder() { + if (funnelVisualizationBuilder_ != null) { + return funnelVisualizationBuilder_.getMessageOrBuilder(); + } else { + return funnelVisualization_ == null + ? com.google.analytics.data.v1alpha.FunnelSubReport.getDefaultInstance() + : funnelVisualization_; + } + } + /** + * + * + *
+     * The funnel visualization is a report with the funnel step, segment, date,
+     * next action dimension, and active users.
+     * The segment dimension is only present in this response if a segment was
+     * requested. The date dimension is only present in this response if it was
+     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
+     * is only present in the response if it was requested.
+     * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelSubReport, + com.google.analytics.data.v1alpha.FunnelSubReport.Builder, + com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder> + getFunnelVisualizationFieldBuilder() { + if (funnelVisualizationBuilder_ == null) { + funnelVisualizationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.FunnelSubReport, + com.google.analytics.data.v1alpha.FunnelSubReport.Builder, + com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder>( + getFunnelVisualization(), getParentForChildren(), isClean()); + funnelVisualization_ = null; + } + return funnelVisualizationBuilder_; + } + + private com.google.analytics.data.v1alpha.PropertyQuota propertyQuota_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.PropertyQuota, + com.google.analytics.data.v1alpha.PropertyQuota.Builder, + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> + propertyQuotaBuilder_; + /** + * + * + *
+     * This Analytics Property's quota state including this request.
+     * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; + * + * @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.v1alpha.PropertyQuota property_quota = 3; + * + * @return The propertyQuota. + */ + public com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota() { + if (propertyQuotaBuilder_ == null) { + return propertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : propertyQuota_; + } else { + return propertyQuotaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * This Analytics Property's quota state including this request.
+     * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; + */ + public Builder setPropertyQuota(com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 3; + */ + public Builder setPropertyQuota( + com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 3; + */ + public Builder mergePropertyQuota(com.google.analytics.data.v1alpha.PropertyQuota value) { + if (propertyQuotaBuilder_ == null) { + if (propertyQuota_ != null) { + propertyQuota_ = + com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 3; + */ + 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.v1alpha.PropertyQuota property_quota = 3; + */ + public com.google.analytics.data.v1alpha.PropertyQuota.Builder getPropertyQuotaBuilder() { + + onChanged(); + return getPropertyQuotaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * This Analytics Property's quota state including this request.
+     * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; + */ + public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { + if (propertyQuotaBuilder_ != null) { + return propertyQuotaBuilder_.getMessageOrBuilder(); + } else { + return propertyQuota_ == null + ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() + : propertyQuota_; + } + } + /** + * + * + *
+     * This Analytics Property's quota state including this request.
+     * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.PropertyQuota, + com.google.analytics.data.v1alpha.PropertyQuota.Builder, + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> + getPropertyQuotaFieldBuilder() { + if (propertyQuotaBuilder_ == null) { + propertyQuotaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.PropertyQuota, + com.google.analytics.data.v1alpha.PropertyQuota.Builder, + com.google.analytics.data.v1alpha.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#runFunnelReport". Useful to distinguish between
+     * response types in JSON.
+     * 
+ * + * string kind = 4; + * + * @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#runFunnelReport". Useful to distinguish between
+     * response types in JSON.
+     * 
+ * + * string kind = 4; + * + * @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#runFunnelReport". Useful to distinguish between
+     * response types in JSON.
+     * 
+ * + * string kind = 4; + * + * @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#runFunnelReport". Useful to distinguish between
+     * response types in JSON.
+     * 
+ * + * string kind = 4; + * + * @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#runFunnelReport". Useful to distinguish between
+     * response types in JSON.
+     * 
+ * + * string kind = 4; + * + * @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.v1alpha.RunFunnelReportResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.RunFunnelReportResponse) + private static final com.google.analytics.data.v1alpha.RunFunnelReportResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.RunFunnelReportResponse(); + } + + public static com.google.analytics.data.v1alpha.RunFunnelReportResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RunFunnelReportResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new RunFunnelReportResponse(input, extensionRegistry); + } + }; + + public static 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.v1alpha.RunFunnelReportResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponseOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponseOrBuilder.java new file mode 100644 index 00000000..56815995 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponseOrBuilder.java @@ -0,0 +1,189 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/data/v1alpha/analytics_data_api.proto + +package com.google.analytics.data.v1alpha; + +public interface RunFunnelReportResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.RunFunnelReportResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The funnel table is a report with the funnel step, segment, breakdown
+   * dimension, active users, completion rate, abandonments, and abandonments
+   * rate.
+   * The segment dimension is only present in this response if a segment was
+   * requested. The breakdown dimension is only present in this response if it
+   * was requested.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; + * + * @return Whether the funnelTable field is set. + */ + boolean hasFunnelTable(); + /** + * + * + *
+   * The funnel table is a report with the funnel step, segment, breakdown
+   * dimension, active users, completion rate, abandonments, and abandonments
+   * rate.
+   * The segment dimension is only present in this response if a segment was
+   * requested. The breakdown dimension is only present in this response if it
+   * was requested.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; + * + * @return The funnelTable. + */ + com.google.analytics.data.v1alpha.FunnelSubReport getFunnelTable(); + /** + * + * + *
+   * The funnel table is a report with the funnel step, segment, breakdown
+   * dimension, active users, completion rate, abandonments, and abandonments
+   * rate.
+   * The segment dimension is only present in this response if a segment was
+   * requested. The breakdown dimension is only present in this response if it
+   * was requested.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; + */ + com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder getFunnelTableOrBuilder(); + + /** + * + * + *
+   * The funnel visualization is a report with the funnel step, segment, date,
+   * next action dimension, and active users.
+   * The segment dimension is only present in this response if a segment was
+   * requested. The date dimension is only present in this response if it was
+   * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
+   * is only present in the response if it was requested.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; + * + * @return Whether the funnelVisualization field is set. + */ + boolean hasFunnelVisualization(); + /** + * + * + *
+   * The funnel visualization is a report with the funnel step, segment, date,
+   * next action dimension, and active users.
+   * The segment dimension is only present in this response if a segment was
+   * requested. The date dimension is only present in this response if it was
+   * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
+   * is only present in the response if it was requested.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; + * + * @return The funnelVisualization. + */ + com.google.analytics.data.v1alpha.FunnelSubReport getFunnelVisualization(); + /** + * + * + *
+   * The funnel visualization is a report with the funnel step, segment, date,
+   * next action dimension, and active users.
+   * The segment dimension is only present in this response if a segment was
+   * requested. The date dimension is only present in this response if it was
+   * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
+   * is only present in the response if it was requested.
+   * 
+ * + * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; + */ + com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder getFunnelVisualizationOrBuilder(); + + /** + * + * + *
+   * This Analytics Property's quota state including this request.
+   * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; + * + * @return Whether the propertyQuota field is set. + */ + boolean hasPropertyQuota(); + /** + * + * + *
+   * This Analytics Property's quota state including this request.
+   * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; + * + * @return The propertyQuota. + */ + com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota(); + /** + * + * + *
+   * This Analytics Property's quota state including this request.
+   * 
+ * + * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; + */ + com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder(); + + /** + * + * + *
+   * Identifies what kind of resource this message is. This `kind` is always the
+   * fixed string "analyticsData#runFunnelReport". Useful to distinguish between
+   * response types in JSON.
+   * 
+ * + * string kind = 4; + * + * @return The kind. + */ + java.lang.String getKind(); + /** + * + * + *
+   * Identifies what kind of resource this message is. This `kind` is always the
+   * fixed string "analyticsData#runFunnelReport". Useful to distinguish between
+   * response types in JSON.
+   * 
+ * + * string kind = 4; + * + * @return The bytes for kind. + */ + com.google.protobuf.ByteString getKindBytes(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadata.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadata.java new file mode 100644 index 00000000..120c1be0 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadata.java @@ -0,0 +1,676 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * If funnel report results are
+ * [sampled](https://support.google.com/analytics/answer/2637192), this
+ * metadata describes what percentage of events were used in this funnel
+ * report for a date range. Sampling is the practice of analyzing a subset of
+ * all data in order to uncover the meaningful information in the larger data
+ * set.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SamplingMetadata} + */ +public final class SamplingMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SamplingMetadata) + SamplingMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use SamplingMetadata.newBuilder() to construct. + private SamplingMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SamplingMetadata() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SamplingMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SamplingMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder 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: + { + samplesReadCount_ = input.readInt64(); + break; + } + case 16: + { + samplingSpaceSize_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SamplingMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SamplingMetadata.class, + com.google.analytics.data.v1alpha.SamplingMetadata.Builder.class); + } + + public static final int SAMPLES_READ_COUNT_FIELD_NUMBER = 1; + private long samplesReadCount_; + /** + * + * + *
+   * The total number of events read in this sampled report for a date range.
+   * This is the size of the subset this property's data that was analyzed in
+   * this funnel report.
+   * 
+ * + * int64 samples_read_count = 1; + * + * @return The samplesReadCount. + */ + @java.lang.Override + public long getSamplesReadCount() { + return samplesReadCount_; + } + + public static final int SAMPLING_SPACE_SIZE_FIELD_NUMBER = 2; + private long samplingSpaceSize_; + /** + * + * + *
+   * The total number of events present in this property's data that could
+   * have been analyzed in this funnel report for a date range. Sampling
+   * uncovers the meaningful information about the larger data set, and this
+   * is the size of the larger data set.
+   * To calculate the percentage of available data that was used in this
+   * funnel report, compute `samplesReadCount/samplingSpaceSize`.
+   * 
+ * + * int64 sampling_space_size = 2; + * + * @return The samplingSpaceSize. + */ + @java.lang.Override + public long getSamplingSpaceSize() { + return samplingSpaceSize_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (samplesReadCount_ != 0L) { + output.writeInt64(1, samplesReadCount_); + } + if (samplingSpaceSize_ != 0L) { + output.writeInt64(2, samplingSpaceSize_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (samplesReadCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, samplesReadCount_); + } + if (samplingSpaceSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, samplingSpaceSize_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.SamplingMetadata)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.SamplingMetadata other = + (com.google.analytics.data.v1alpha.SamplingMetadata) obj; + + if (getSamplesReadCount() != other.getSamplesReadCount()) return false; + if (getSamplingSpaceSize() != other.getSamplingSpaceSize()) return false; + if (!unknownFields.equals(other.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) + SAMPLES_READ_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSamplesReadCount()); + hash = (37 * hash) + SAMPLING_SPACE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSamplingSpaceSize()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.SamplingMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SamplingMetadata 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.v1alpha.SamplingMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SamplingMetadata parseFrom( + 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.v1alpha.SamplingMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SamplingMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.SamplingMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SamplingMetadata parseFrom( + java.io.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.v1alpha.SamplingMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SamplingMetadata parseDelimitedFrom( + java.io.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.v1alpha.SamplingMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SamplingMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.SamplingMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * If funnel report results are
+   * [sampled](https://support.google.com/analytics/answer/2637192), this
+   * metadata describes what percentage of events were used in this funnel
+   * report for a date range. Sampling is the practice of analyzing a subset of
+   * all data in order to uncover the meaningful information in the larger data
+   * set.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SamplingMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SamplingMetadata) + com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SamplingMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SamplingMetadata.class, + com.google.analytics.data.v1alpha.SamplingMetadata.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.SamplingMetadata.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(); + samplesReadCount_ = 0L; + + samplingSpaceSize_ = 0L; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SamplingMetadata getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.SamplingMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SamplingMetadata build() { + com.google.analytics.data.v1alpha.SamplingMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SamplingMetadata buildPartial() { + com.google.analytics.data.v1alpha.SamplingMetadata result = + new com.google.analytics.data.v1alpha.SamplingMetadata(this); + result.samplesReadCount_ = samplesReadCount_; + result.samplingSpaceSize_ = samplingSpaceSize_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.v1alpha.SamplingMetadata) { + return mergeFrom((com.google.analytics.data.v1alpha.SamplingMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.SamplingMetadata other) { + if (other == com.google.analytics.data.v1alpha.SamplingMetadata.getDefaultInstance()) + return this; + if (other.getSamplesReadCount() != 0L) { + setSamplesReadCount(other.getSamplesReadCount()); + } + if (other.getSamplingSpaceSize() != 0L) { + setSamplingSpaceSize(other.getSamplingSpaceSize()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.SamplingMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.SamplingMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private long samplesReadCount_; + /** + * + * + *
+     * The total number of events read in this sampled report for a date range.
+     * This is the size of the subset this property's data that was analyzed in
+     * this funnel report.
+     * 
+ * + * int64 samples_read_count = 1; + * + * @return The samplesReadCount. + */ + @java.lang.Override + public long getSamplesReadCount() { + return samplesReadCount_; + } + /** + * + * + *
+     * The total number of events read in this sampled report for a date range.
+     * This is the size of the subset this property's data that was analyzed in
+     * this funnel report.
+     * 
+ * + * int64 samples_read_count = 1; + * + * @param value The samplesReadCount to set. + * @return This builder for chaining. + */ + public Builder setSamplesReadCount(long value) { + + samplesReadCount_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The total number of events read in this sampled report for a date range.
+     * This is the size of the subset this property's data that was analyzed in
+     * this funnel report.
+     * 
+ * + * int64 samples_read_count = 1; + * + * @return This builder for chaining. + */ + public Builder clearSamplesReadCount() { + + samplesReadCount_ = 0L; + onChanged(); + return this; + } + + private long samplingSpaceSize_; + /** + * + * + *
+     * The total number of events present in this property's data that could
+     * have been analyzed in this funnel report for a date range. Sampling
+     * uncovers the meaningful information about the larger data set, and this
+     * is the size of the larger data set.
+     * To calculate the percentage of available data that was used in this
+     * funnel report, compute `samplesReadCount/samplingSpaceSize`.
+     * 
+ * + * int64 sampling_space_size = 2; + * + * @return The samplingSpaceSize. + */ + @java.lang.Override + public long getSamplingSpaceSize() { + return samplingSpaceSize_; + } + /** + * + * + *
+     * The total number of events present in this property's data that could
+     * have been analyzed in this funnel report for a date range. Sampling
+     * uncovers the meaningful information about the larger data set, and this
+     * is the size of the larger data set.
+     * To calculate the percentage of available data that was used in this
+     * funnel report, compute `samplesReadCount/samplingSpaceSize`.
+     * 
+ * + * int64 sampling_space_size = 2; + * + * @param value The samplingSpaceSize to set. + * @return This builder for chaining. + */ + public Builder setSamplingSpaceSize(long value) { + + samplingSpaceSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The total number of events present in this property's data that could
+     * have been analyzed in this funnel report for a date range. Sampling
+     * uncovers the meaningful information about the larger data set, and this
+     * is the size of the larger data set.
+     * To calculate the percentage of available data that was used in this
+     * funnel report, compute `samplesReadCount/samplingSpaceSize`.
+     * 
+ * + * int64 sampling_space_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearSamplingSpaceSize() { + + samplingSpaceSize_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.SamplingMetadata) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SamplingMetadata) + private static final com.google.analytics.data.v1alpha.SamplingMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SamplingMetadata(); + } + + public static com.google.analytics.data.v1alpha.SamplingMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SamplingMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SamplingMetadata(input, extensionRegistry); + } + }; + + public static 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.v1alpha.SamplingMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadataOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadataOrBuilder.java new file mode 100644 index 00000000..72f910d4 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadataOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/data/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface SamplingMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SamplingMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The total number of events read in this sampled report for a date range.
+   * This is the size of the subset this property's data that was analyzed in
+   * this funnel report.
+   * 
+ * + * int64 samples_read_count = 1; + * + * @return The samplesReadCount. + */ + long getSamplesReadCount(); + + /** + * + * + *
+   * The total number of events present in this property's data that could
+   * have been analyzed in this funnel report for a date range. Sampling
+   * uncovers the meaningful information about the larger data set, and this
+   * is the size of the larger data set.
+   * To calculate the percentage of available data that was used in this
+   * funnel report, compute `samplesReadCount/samplingSpaceSize`.
+   * 
+ * + * int64 sampling_space_size = 2; + * + * @return The samplingSpaceSize. + */ + long getSamplingSpaceSize(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Segment.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Segment.java new file mode 100644 index 00000000..55ada788 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Segment.java @@ -0,0 +1,1695 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * A segment is a subset of your Analytics data. For example, of your entire set
+ * of users, one segment might be users from a particular country or city.
+ * Another segment might be users who purchase a particular line of products or
+ * who visit a specific part of your site or trigger certain events in your app.
+ * To learn more, see [GA4 Segment
+ * Builder](https://support.google.com/analytics/answer/9304353).
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.Segment} + */ +public final class Segment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.Segment) + SegmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use Segment.newBuilder() to construct. + private Segment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private Segment() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new Segment(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private Segment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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.v1alpha.UserSegment.Builder subBuilder = null; + if (oneSegmentScopeCase_ == 2) { + subBuilder = + ((com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_).toBuilder(); + } + oneSegmentScope_ = + input.readMessage( + com.google.analytics.data.v1alpha.UserSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_); + oneSegmentScope_ = subBuilder.buildPartial(); + } + oneSegmentScopeCase_ = 2; + break; + } + case 26: + { + com.google.analytics.data.v1alpha.SessionSegment.Builder subBuilder = null; + if (oneSegmentScopeCase_ == 3) { + subBuilder = + ((com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_) + .toBuilder(); + } + oneSegmentScope_ = + input.readMessage( + com.google.analytics.data.v1alpha.SessionSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_); + oneSegmentScope_ = subBuilder.buildPartial(); + } + oneSegmentScopeCase_ = 3; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.EventSegment.Builder subBuilder = null; + if (oneSegmentScopeCase_ == 4) { + subBuilder = + ((com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_).toBuilder(); + } + oneSegmentScope_ = + input.readMessage( + com.google.analytics.data.v1alpha.EventSegment.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_); + oneSegmentScope_ = subBuilder.buildPartial(); + } + oneSegmentScopeCase_ = 4; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Segment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Segment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.Segment.class, + com.google.analytics.data.v1alpha.Segment.Builder.class); + } + + private int oneSegmentScopeCase_ = 0; + private java.lang.Object oneSegmentScope_; + + public enum OneSegmentScopeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + USER_SEGMENT(2), + SESSION_SEGMENT(3), + EVENT_SEGMENT(4), + ONESEGMENTSCOPE_NOT_SET(0); + private final int value; + + private OneSegmentScopeCase(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 OneSegmentScopeCase valueOf(int value) { + return forNumber(value); + } + + public static OneSegmentScopeCase forNumber(int value) { + switch (value) { + case 2: + return USER_SEGMENT; + case 3: + return SESSION_SEGMENT; + case 4: + return EVENT_SEGMENT; + case 0: + return ONESEGMENTSCOPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneSegmentScopeCase getOneSegmentScopeCase() { + return OneSegmentScopeCase.forNumber(oneSegmentScopeCase_); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name for this segment. If unspecified, segments are named "Segment".
+   * This name defines string value returned by the `segment` dimension. The
+   * `segment` dimension prefixes segment names by the 1-based index number of
+   * the segment in the request (i.e. "1. Segment", "2. Segment", 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; + } + } + /** + * + * + *
+   * The name for this segment. If unspecified, segments are named "Segment".
+   * This name defines string value returned by the `segment` dimension. The
+   * `segment` dimension prefixes segment names by the 1-based index number of
+   * the segment in the request (i.e. "1. Segment", "2. Segment", 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 USER_SEGMENT_FIELD_NUMBER = 2; + /** + * + * + *
+   * User segments are subsets of users who engaged with your site or app.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegment user_segment = 2; + * + * @return Whether the userSegment field is set. + */ + @java.lang.Override + public boolean hasUserSegment() { + return oneSegmentScopeCase_ == 2; + } + /** + * + * + *
+   * User segments are subsets of users who engaged with your site or app.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegment user_segment = 2; + * + * @return The userSegment. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegment getUserSegment() { + if (oneSegmentScopeCase_ == 2) { + return (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_; + } + return com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance(); + } + /** + * + * + *
+   * User segments are subsets of users who engaged with your site or app.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegment user_segment = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentOrBuilder getUserSegmentOrBuilder() { + if (oneSegmentScopeCase_ == 2) { + return (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_; + } + return com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance(); + } + + public static final int SESSION_SEGMENT_FIELD_NUMBER = 3; + /** + * + * + *
+   * Session segments are subsets of the sessions that occurred on your site
+   * or app.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; + * + * @return Whether the sessionSegment field is set. + */ + @java.lang.Override + public boolean hasSessionSegment() { + return oneSegmentScopeCase_ == 3; + } + /** + * + * + *
+   * Session segments are subsets of the sessions that occurred on your site
+   * or app.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; + * + * @return The sessionSegment. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegment getSessionSegment() { + if (oneSegmentScopeCase_ == 3) { + return (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_; + } + return com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance(); + } + /** + * + * + *
+   * Session segments are subsets of the sessions that occurred on your site
+   * or app.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentOrBuilder getSessionSegmentOrBuilder() { + if (oneSegmentScopeCase_ == 3) { + return (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_; + } + return com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance(); + } + + public static final int EVENT_SEGMENT_FIELD_NUMBER = 4; + /** + * + * + *
+   * Event segments are subsets of events that were triggered on your site or
+   * app.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegment event_segment = 4; + * + * @return Whether the eventSegment field is set. + */ + @java.lang.Override + public boolean hasEventSegment() { + return oneSegmentScopeCase_ == 4; + } + /** + * + * + *
+   * Event segments are subsets of events that were triggered on your site or
+   * app.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegment event_segment = 4; + * + * @return The eventSegment. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegment getEventSegment() { + if (oneSegmentScopeCase_ == 4) { + return (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_; + } + return com.google.analytics.data.v1alpha.EventSegment.getDefaultInstance(); + } + /** + * + * + *
+   * Event segments are subsets of events that were triggered on your site or
+   * app.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegment event_segment = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentOrBuilder getEventSegmentOrBuilder() { + if (oneSegmentScopeCase_ == 4) { + return (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_; + } + return com.google.analytics.data.v1alpha.EventSegment.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(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (oneSegmentScopeCase_ == 2) { + output.writeMessage(2, (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_); + } + if (oneSegmentScopeCase_ == 3) { + output.writeMessage(3, (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_); + } + if (oneSegmentScopeCase_ == 4) { + output.writeMessage(4, (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_); + } + 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 (oneSegmentScopeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_); + } + if (oneSegmentScopeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_); + } + if (oneSegmentScopeCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.Segment)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.Segment other = + (com.google.analytics.data.v1alpha.Segment) obj; + + if (!getName().equals(other.getName())) return false; + if (!getOneSegmentScopeCase().equals(other.getOneSegmentScopeCase())) return false; + switch (oneSegmentScopeCase_) { + case 2: + if (!getUserSegment().equals(other.getUserSegment())) return false; + break; + case 3: + if (!getSessionSegment().equals(other.getSessionSegment())) return false; + break; + case 4: + if (!getEventSegment().equals(other.getEventSegment())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + switch (oneSegmentScopeCase_) { + case 2: + hash = (37 * hash) + USER_SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getUserSegment().hashCode(); + break; + case 3: + hash = (37 * hash) + SESSION_SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getSessionSegment().hashCode(); + break; + case 4: + hash = (37 * hash) + EVENT_SEGMENT_FIELD_NUMBER; + hash = (53 * hash) + getEventSegment().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.Segment parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.Segment 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.v1alpha.Segment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.Segment parseFrom( + 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.v1alpha.Segment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.Segment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.Segment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.Segment parseFrom( + java.io.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.v1alpha.Segment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.Segment parseDelimitedFrom( + java.io.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.v1alpha.Segment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.Segment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.Segment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 segment is a subset of your Analytics data. For example, of your entire set
+   * of users, one segment might be users from a particular country or city.
+   * Another segment might be users who purchase a particular line of products or
+   * who visit a specific part of your site or trigger certain events in your app.
+   * To learn more, see [GA4 Segment
+   * Builder](https://support.google.com/analytics/answer/9304353).
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.Segment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Segment) + com.google.analytics.data.v1alpha.SegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Segment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Segment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.Segment.class, + com.google.analytics.data.v1alpha.Segment.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.Segment.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_ = ""; + + oneSegmentScopeCase_ = 0; + oneSegmentScope_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_Segment_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Segment getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.Segment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Segment build() { + com.google.analytics.data.v1alpha.Segment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.Segment buildPartial() { + com.google.analytics.data.v1alpha.Segment result = + new com.google.analytics.data.v1alpha.Segment(this); + result.name_ = name_; + if (oneSegmentScopeCase_ == 2) { + if (userSegmentBuilder_ == null) { + result.oneSegmentScope_ = oneSegmentScope_; + } else { + result.oneSegmentScope_ = userSegmentBuilder_.build(); + } + } + if (oneSegmentScopeCase_ == 3) { + if (sessionSegmentBuilder_ == null) { + result.oneSegmentScope_ = oneSegmentScope_; + } else { + result.oneSegmentScope_ = sessionSegmentBuilder_.build(); + } + } + if (oneSegmentScopeCase_ == 4) { + if (eventSegmentBuilder_ == null) { + result.oneSegmentScope_ = oneSegmentScope_; + } else { + result.oneSegmentScope_ = eventSegmentBuilder_.build(); + } + } + result.oneSegmentScopeCase_ = oneSegmentScopeCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.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.v1alpha.Segment) { + return mergeFrom((com.google.analytics.data.v1alpha.Segment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.Segment other) { + if (other == com.google.analytics.data.v1alpha.Segment.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + switch (other.getOneSegmentScopeCase()) { + case USER_SEGMENT: + { + mergeUserSegment(other.getUserSegment()); + break; + } + case SESSION_SEGMENT: + { + mergeSessionSegment(other.getSessionSegment()); + break; + } + case EVENT_SEGMENT: + { + mergeEventSegment(other.getEventSegment()); + break; + } + case ONESEGMENTSCOPE_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.v1alpha.Segment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.Segment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int oneSegmentScopeCase_ = 0; + private java.lang.Object oneSegmentScope_; + + public OneSegmentScopeCase getOneSegmentScopeCase() { + return OneSegmentScopeCase.forNumber(oneSegmentScopeCase_); + } + + public Builder clearOneSegmentScope() { + oneSegmentScopeCase_ = 0; + oneSegmentScope_ = null; + onChanged(); + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name for this segment. If unspecified, segments are named "Segment".
+     * This name defines string value returned by the `segment` dimension. The
+     * `segment` dimension prefixes segment names by the 1-based index number of
+     * the segment in the request (i.e. "1. Segment", "2. Segment", 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; + } + } + /** + * + * + *
+     * The name for this segment. If unspecified, segments are named "Segment".
+     * This name defines string value returned by the `segment` dimension. The
+     * `segment` dimension prefixes segment names by the 1-based index number of
+     * the segment in the request (i.e. "1. Segment", "2. Segment", 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; + } + } + /** + * + * + *
+     * The name for this segment. If unspecified, segments are named "Segment".
+     * This name defines string value returned by the `segment` dimension. The
+     * `segment` dimension prefixes segment names by the 1-based index number of
+     * the segment in the request (i.e. "1. Segment", "2. Segment", 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; + } + /** + * + * + *
+     * The name for this segment. If unspecified, segments are named "Segment".
+     * This name defines string value returned by the `segment` dimension. The
+     * `segment` dimension prefixes segment names by the 1-based index number of
+     * the segment in the request (i.e. "1. Segment", "2. Segment", etc.).
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name for this segment. If unspecified, segments are named "Segment".
+     * This name defines string value returned by the `segment` dimension. The
+     * `segment` dimension prefixes segment names by the 1-based index number of
+     * the segment in the request (i.e. "1. Segment", "2. Segment", 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 com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegment, + com.google.analytics.data.v1alpha.UserSegment.Builder, + com.google.analytics.data.v1alpha.UserSegmentOrBuilder> + userSegmentBuilder_; + /** + * + * + *
+     * User segments are subsets of users who engaged with your site or app.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegment user_segment = 2; + * + * @return Whether the userSegment field is set. + */ + @java.lang.Override + public boolean hasUserSegment() { + return oneSegmentScopeCase_ == 2; + } + /** + * + * + *
+     * User segments are subsets of users who engaged with your site or app.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegment user_segment = 2; + * + * @return The userSegment. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegment getUserSegment() { + if (userSegmentBuilder_ == null) { + if (oneSegmentScopeCase_ == 2) { + return (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_; + } + return com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance(); + } else { + if (oneSegmentScopeCase_ == 2) { + return userSegmentBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance(); + } + } + /** + * + * + *
+     * User segments are subsets of users who engaged with your site or app.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegment user_segment = 2; + */ + public Builder setUserSegment(com.google.analytics.data.v1alpha.UserSegment value) { + if (userSegmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneSegmentScope_ = value; + onChanged(); + } else { + userSegmentBuilder_.setMessage(value); + } + oneSegmentScopeCase_ = 2; + return this; + } + /** + * + * + *
+     * User segments are subsets of users who engaged with your site or app.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegment user_segment = 2; + */ + public Builder setUserSegment( + com.google.analytics.data.v1alpha.UserSegment.Builder builderForValue) { + if (userSegmentBuilder_ == null) { + oneSegmentScope_ = builderForValue.build(); + onChanged(); + } else { + userSegmentBuilder_.setMessage(builderForValue.build()); + } + oneSegmentScopeCase_ = 2; + return this; + } + /** + * + * + *
+     * User segments are subsets of users who engaged with your site or app.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegment user_segment = 2; + */ + public Builder mergeUserSegment(com.google.analytics.data.v1alpha.UserSegment value) { + if (userSegmentBuilder_ == null) { + if (oneSegmentScopeCase_ == 2 + && oneSegmentScope_ + != com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance()) { + oneSegmentScope_ = + com.google.analytics.data.v1alpha.UserSegment.newBuilder( + (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_) + .mergeFrom(value) + .buildPartial(); + } else { + oneSegmentScope_ = value; + } + onChanged(); + } else { + if (oneSegmentScopeCase_ == 2) { + userSegmentBuilder_.mergeFrom(value); + } else { + userSegmentBuilder_.setMessage(value); + } + } + oneSegmentScopeCase_ = 2; + return this; + } + /** + * + * + *
+     * User segments are subsets of users who engaged with your site or app.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegment user_segment = 2; + */ + public Builder clearUserSegment() { + if (userSegmentBuilder_ == null) { + if (oneSegmentScopeCase_ == 2) { + oneSegmentScopeCase_ = 0; + oneSegmentScope_ = null; + onChanged(); + } + } else { + if (oneSegmentScopeCase_ == 2) { + oneSegmentScopeCase_ = 0; + oneSegmentScope_ = null; + } + userSegmentBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * User segments are subsets of users who engaged with your site or app.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegment user_segment = 2; + */ + public com.google.analytics.data.v1alpha.UserSegment.Builder getUserSegmentBuilder() { + return getUserSegmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * User segments are subsets of users who engaged with your site or app.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegment user_segment = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentOrBuilder getUserSegmentOrBuilder() { + if ((oneSegmentScopeCase_ == 2) && (userSegmentBuilder_ != null)) { + return userSegmentBuilder_.getMessageOrBuilder(); + } else { + if (oneSegmentScopeCase_ == 2) { + return (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_; + } + return com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance(); + } + } + /** + * + * + *
+     * User segments are subsets of users who engaged with your site or app.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegment user_segment = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegment, + com.google.analytics.data.v1alpha.UserSegment.Builder, + com.google.analytics.data.v1alpha.UserSegmentOrBuilder> + getUserSegmentFieldBuilder() { + if (userSegmentBuilder_ == null) { + if (!(oneSegmentScopeCase_ == 2)) { + oneSegmentScope_ = com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance(); + } + userSegmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegment, + com.google.analytics.data.v1alpha.UserSegment.Builder, + com.google.analytics.data.v1alpha.UserSegmentOrBuilder>( + (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_, + getParentForChildren(), + isClean()); + oneSegmentScope_ = null; + } + oneSegmentScopeCase_ = 2; + onChanged(); + ; + return userSegmentBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SessionSegment, + com.google.analytics.data.v1alpha.SessionSegment.Builder, + com.google.analytics.data.v1alpha.SessionSegmentOrBuilder> + sessionSegmentBuilder_; + /** + * + * + *
+     * Session segments are subsets of the sessions that occurred on your site
+     * or app.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; + * + * @return Whether the sessionSegment field is set. + */ + @java.lang.Override + public boolean hasSessionSegment() { + return oneSegmentScopeCase_ == 3; + } + /** + * + * + *
+     * Session segments are subsets of the sessions that occurred on your site
+     * or app.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; + * + * @return The sessionSegment. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegment getSessionSegment() { + if (sessionSegmentBuilder_ == null) { + if (oneSegmentScopeCase_ == 3) { + return (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_; + } + return com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance(); + } else { + if (oneSegmentScopeCase_ == 3) { + return sessionSegmentBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance(); + } + } + /** + * + * + *
+     * Session segments are subsets of the sessions that occurred on your site
+     * or app.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; + */ + public Builder setSessionSegment(com.google.analytics.data.v1alpha.SessionSegment value) { + if (sessionSegmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneSegmentScope_ = value; + onChanged(); + } else { + sessionSegmentBuilder_.setMessage(value); + } + oneSegmentScopeCase_ = 3; + return this; + } + /** + * + * + *
+     * Session segments are subsets of the sessions that occurred on your site
+     * or app.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; + */ + public Builder setSessionSegment( + com.google.analytics.data.v1alpha.SessionSegment.Builder builderForValue) { + if (sessionSegmentBuilder_ == null) { + oneSegmentScope_ = builderForValue.build(); + onChanged(); + } else { + sessionSegmentBuilder_.setMessage(builderForValue.build()); + } + oneSegmentScopeCase_ = 3; + return this; + } + /** + * + * + *
+     * Session segments are subsets of the sessions that occurred on your site
+     * or app.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; + */ + public Builder mergeSessionSegment(com.google.analytics.data.v1alpha.SessionSegment value) { + if (sessionSegmentBuilder_ == null) { + if (oneSegmentScopeCase_ == 3 + && oneSegmentScope_ + != com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance()) { + oneSegmentScope_ = + com.google.analytics.data.v1alpha.SessionSegment.newBuilder( + (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_) + .mergeFrom(value) + .buildPartial(); + } else { + oneSegmentScope_ = value; + } + onChanged(); + } else { + if (oneSegmentScopeCase_ == 3) { + sessionSegmentBuilder_.mergeFrom(value); + } else { + sessionSegmentBuilder_.setMessage(value); + } + } + oneSegmentScopeCase_ = 3; + return this; + } + /** + * + * + *
+     * Session segments are subsets of the sessions that occurred on your site
+     * or app.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; + */ + public Builder clearSessionSegment() { + if (sessionSegmentBuilder_ == null) { + if (oneSegmentScopeCase_ == 3) { + oneSegmentScopeCase_ = 0; + oneSegmentScope_ = null; + onChanged(); + } + } else { + if (oneSegmentScopeCase_ == 3) { + oneSegmentScopeCase_ = 0; + oneSegmentScope_ = null; + } + sessionSegmentBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Session segments are subsets of the sessions that occurred on your site
+     * or app.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; + */ + public com.google.analytics.data.v1alpha.SessionSegment.Builder getSessionSegmentBuilder() { + return getSessionSegmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Session segments are subsets of the sessions that occurred on your site
+     * or app.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentOrBuilder getSessionSegmentOrBuilder() { + if ((oneSegmentScopeCase_ == 3) && (sessionSegmentBuilder_ != null)) { + return sessionSegmentBuilder_.getMessageOrBuilder(); + } else { + if (oneSegmentScopeCase_ == 3) { + return (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_; + } + return com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance(); + } + } + /** + * + * + *
+     * Session segments are subsets of the sessions that occurred on your site
+     * or app.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SessionSegment, + com.google.analytics.data.v1alpha.SessionSegment.Builder, + com.google.analytics.data.v1alpha.SessionSegmentOrBuilder> + getSessionSegmentFieldBuilder() { + if (sessionSegmentBuilder_ == null) { + if (!(oneSegmentScopeCase_ == 3)) { + oneSegmentScope_ = com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance(); + } + sessionSegmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SessionSegment, + com.google.analytics.data.v1alpha.SessionSegment.Builder, + com.google.analytics.data.v1alpha.SessionSegmentOrBuilder>( + (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_, + getParentForChildren(), + isClean()); + oneSegmentScope_ = null; + } + oneSegmentScopeCase_ = 3; + onChanged(); + ; + return sessionSegmentBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.EventSegment, + com.google.analytics.data.v1alpha.EventSegment.Builder, + com.google.analytics.data.v1alpha.EventSegmentOrBuilder> + eventSegmentBuilder_; + /** + * + * + *
+     * Event segments are subsets of events that were triggered on your site or
+     * app.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegment event_segment = 4; + * + * @return Whether the eventSegment field is set. + */ + @java.lang.Override + public boolean hasEventSegment() { + return oneSegmentScopeCase_ == 4; + } + /** + * + * + *
+     * Event segments are subsets of events that were triggered on your site or
+     * app.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegment event_segment = 4; + * + * @return The eventSegment. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegment getEventSegment() { + if (eventSegmentBuilder_ == null) { + if (oneSegmentScopeCase_ == 4) { + return (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_; + } + return com.google.analytics.data.v1alpha.EventSegment.getDefaultInstance(); + } else { + if (oneSegmentScopeCase_ == 4) { + return eventSegmentBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.EventSegment.getDefaultInstance(); + } + } + /** + * + * + *
+     * Event segments are subsets of events that were triggered on your site or
+     * app.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegment event_segment = 4; + */ + public Builder setEventSegment(com.google.analytics.data.v1alpha.EventSegment value) { + if (eventSegmentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneSegmentScope_ = value; + onChanged(); + } else { + eventSegmentBuilder_.setMessage(value); + } + oneSegmentScopeCase_ = 4; + return this; + } + /** + * + * + *
+     * Event segments are subsets of events that were triggered on your site or
+     * app.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegment event_segment = 4; + */ + public Builder setEventSegment( + com.google.analytics.data.v1alpha.EventSegment.Builder builderForValue) { + if (eventSegmentBuilder_ == null) { + oneSegmentScope_ = builderForValue.build(); + onChanged(); + } else { + eventSegmentBuilder_.setMessage(builderForValue.build()); + } + oneSegmentScopeCase_ = 4; + return this; + } + /** + * + * + *
+     * Event segments are subsets of events that were triggered on your site or
+     * app.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegment event_segment = 4; + */ + public Builder mergeEventSegment(com.google.analytics.data.v1alpha.EventSegment value) { + if (eventSegmentBuilder_ == null) { + if (oneSegmentScopeCase_ == 4 + && oneSegmentScope_ + != com.google.analytics.data.v1alpha.EventSegment.getDefaultInstance()) { + oneSegmentScope_ = + com.google.analytics.data.v1alpha.EventSegment.newBuilder( + (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_) + .mergeFrom(value) + .buildPartial(); + } else { + oneSegmentScope_ = value; + } + onChanged(); + } else { + if (oneSegmentScopeCase_ == 4) { + eventSegmentBuilder_.mergeFrom(value); + } else { + eventSegmentBuilder_.setMessage(value); + } + } + oneSegmentScopeCase_ = 4; + return this; + } + /** + * + * + *
+     * Event segments are subsets of events that were triggered on your site or
+     * app.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegment event_segment = 4; + */ + public Builder clearEventSegment() { + if (eventSegmentBuilder_ == null) { + if (oneSegmentScopeCase_ == 4) { + oneSegmentScopeCase_ = 0; + oneSegmentScope_ = null; + onChanged(); + } + } else { + if (oneSegmentScopeCase_ == 4) { + oneSegmentScopeCase_ = 0; + oneSegmentScope_ = null; + } + eventSegmentBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Event segments are subsets of events that were triggered on your site or
+     * app.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegment event_segment = 4; + */ + public com.google.analytics.data.v1alpha.EventSegment.Builder getEventSegmentBuilder() { + return getEventSegmentFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Event segments are subsets of events that were triggered on your site or
+     * app.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegment event_segment = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.EventSegmentOrBuilder getEventSegmentOrBuilder() { + if ((oneSegmentScopeCase_ == 4) && (eventSegmentBuilder_ != null)) { + return eventSegmentBuilder_.getMessageOrBuilder(); + } else { + if (oneSegmentScopeCase_ == 4) { + return (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_; + } + return com.google.analytics.data.v1alpha.EventSegment.getDefaultInstance(); + } + } + /** + * + * + *
+     * Event segments are subsets of events that were triggered on your site or
+     * app.
+     * 
+ * + * .google.analytics.data.v1alpha.EventSegment event_segment = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.EventSegment, + com.google.analytics.data.v1alpha.EventSegment.Builder, + com.google.analytics.data.v1alpha.EventSegmentOrBuilder> + getEventSegmentFieldBuilder() { + if (eventSegmentBuilder_ == null) { + if (!(oneSegmentScopeCase_ == 4)) { + oneSegmentScope_ = com.google.analytics.data.v1alpha.EventSegment.getDefaultInstance(); + } + eventSegmentBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.EventSegment, + com.google.analytics.data.v1alpha.EventSegment.Builder, + com.google.analytics.data.v1alpha.EventSegmentOrBuilder>( + (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_, + getParentForChildren(), + isClean()); + oneSegmentScope_ = null; + } + oneSegmentScopeCase_ = 4; + onChanged(); + ; + return eventSegmentBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.Segment) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Segment) + private static final com.google.analytics.data.v1alpha.Segment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Segment(); + } + + public static com.google.analytics.data.v1alpha.Segment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Segment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Segment(input, extensionRegistry); + } + }; + + public static 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.v1alpha.Segment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilter.java new file mode 100644 index 00000000..c1813e67 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilter.java @@ -0,0 +1,1066 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Creates a filter that matches events of a single event name. If a parameter
+ * filter expression is specified, only the subset of events that match both the
+ * single event name and the parameter filter expressions match this event
+ * filter.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentEventFilter} + */ +public final class SegmentEventFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentEventFilter) + SegmentEventFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use SegmentEventFilter.newBuilder() to construct. + private SegmentEventFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SegmentEventFilter() { + eventName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SegmentEventFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SegmentEventFilter( + 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; + eventName_ = s; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder + subBuilder = null; + if (((bitField0_ & 0x00000002) != 0)) { + subBuilder = segmentParameterFilterExpression_.toBuilder(); + } + segmentParameterFilterExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(segmentParameterFilterExpression_); + segmentParameterFilterExpression_ = subBuilder.buildPartial(); + } + bitField0_ |= 0x00000002; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentEventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentEventFilter.class, + com.google.analytics.data.v1alpha.SegmentEventFilter.Builder.class); + } + + private int bitField0_; + public static final int EVENT_NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object eventName_; + /** + * + * + *
+   * This filter matches events of this single event name. Event name is
+   * required.
+   * 
+ * + * optional string event_name = 1; + * + * @return Whether the eventName field is set. + */ + @java.lang.Override + public boolean hasEventName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * This filter matches events of this single event name. Event name is
+   * required.
+   * 
+ * + * optional string event_name = 1; + * + * @return The eventName. + */ + @java.lang.Override + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } + } + /** + * + * + *
+   * This filter matches events of this single event name. Event name is
+   * required.
+   * 
+ * + * optional string event_name = 1; + * + * @return The bytes for eventName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SEGMENT_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER = 2; + private com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + segmentParameterFilterExpression_; + /** + * + * + *
+   * If specified, this filter matches events that match both the single event
+   * name and the parameter filter expressions.
+   * Inside the parameter filter expression, only parameter filters are
+   * available.
+   * 
+ * + * + * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; + * + * + * @return Whether the segmentParameterFilterExpression field is set. + */ + @java.lang.Override + public boolean hasSegmentParameterFilterExpression() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+   * If specified, this filter matches events that match both the single event
+   * name and the parameter filter expressions.
+   * Inside the parameter filter expression, only parameter filters are
+   * available.
+   * 
+ * + * + * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; + * + * + * @return The segmentParameterFilterExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + getSegmentParameterFilterExpression() { + return segmentParameterFilterExpression_ == null + ? com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.getDefaultInstance() + : segmentParameterFilterExpression_; + } + /** + * + * + *
+   * If specified, this filter matches events that match both the single event
+   * name and the parameter filter expressions.
+   * Inside the parameter filter expression, only parameter filters are
+   * available.
+   * 
+ * + * + * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder + getSegmentParameterFilterExpressionOrBuilder() { + return segmentParameterFilterExpression_ == null + ? com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.getDefaultInstance() + : segmentParameterFilterExpression_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSegmentParameterFilterExpression()); + } + 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, eventName_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getSegmentParameterFilterExpression()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.SegmentEventFilter)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.SegmentEventFilter other = + (com.google.analytics.data.v1alpha.SegmentEventFilter) obj; + + if (hasEventName() != other.hasEventName()) return false; + if (hasEventName()) { + if (!getEventName().equals(other.getEventName())) return false; + } + if (hasSegmentParameterFilterExpression() != other.hasSegmentParameterFilterExpression()) + return false; + if (hasSegmentParameterFilterExpression()) { + if (!getSegmentParameterFilterExpression() + .equals(other.getSegmentParameterFilterExpression())) return false; + } + if (!unknownFields.equals(other.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 (hasEventName()) { + hash = (37 * hash) + EVENT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEventName().hashCode(); + } + if (hasSegmentParameterFilterExpression()) { + hash = (37 * hash) + SEGMENT_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getSegmentParameterFilterExpression().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.SegmentEventFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentEventFilter 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.v1alpha.SegmentEventFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentEventFilter parseFrom( + 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.v1alpha.SegmentEventFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentEventFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.SegmentEventFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentEventFilter parseFrom( + java.io.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.v1alpha.SegmentEventFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentEventFilter parseDelimitedFrom( + java.io.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.v1alpha.SegmentEventFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentEventFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.SegmentEventFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Creates a filter that matches events of a single event name. If a parameter
+   * filter expression is specified, only the subset of events that match both the
+   * single event name and the parameter filter expressions match this event
+   * filter.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentEventFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentEventFilter) + com.google.analytics.data.v1alpha.SegmentEventFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentEventFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentEventFilter.class, + com.google.analytics.data.v1alpha.SegmentEventFilter.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.SegmentEventFilter.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getSegmentParameterFilterExpressionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + eventName_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + if (segmentParameterFilterExpressionBuilder_ == null) { + segmentParameterFilterExpression_ = null; + } else { + segmentParameterFilterExpressionBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentEventFilter getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.SegmentEventFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentEventFilter build() { + com.google.analytics.data.v1alpha.SegmentEventFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentEventFilter buildPartial() { + com.google.analytics.data.v1alpha.SegmentEventFilter result = + new com.google.analytics.data.v1alpha.SegmentEventFilter(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + to_bitField0_ |= 0x00000001; + } + result.eventName_ = eventName_; + if (((from_bitField0_ & 0x00000002) != 0)) { + if (segmentParameterFilterExpressionBuilder_ == null) { + result.segmentParameterFilterExpression_ = segmentParameterFilterExpression_; + } else { + result.segmentParameterFilterExpression_ = + segmentParameterFilterExpressionBuilder_.build(); + } + to_bitField0_ |= 0x00000002; + } + 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.v1alpha.SegmentEventFilter) { + return mergeFrom((com.google.analytics.data.v1alpha.SegmentEventFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentEventFilter other) { + if (other == com.google.analytics.data.v1alpha.SegmentEventFilter.getDefaultInstance()) + return this; + if (other.hasEventName()) { + bitField0_ |= 0x00000001; + eventName_ = other.eventName_; + onChanged(); + } + if (other.hasSegmentParameterFilterExpression()) { + mergeSegmentParameterFilterExpression(other.getSegmentParameterFilterExpression()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.SegmentEventFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.SegmentEventFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object eventName_ = ""; + /** + * + * + *
+     * This filter matches events of this single event name. Event name is
+     * required.
+     * 
+ * + * optional string event_name = 1; + * + * @return Whether the eventName field is set. + */ + public boolean hasEventName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * This filter matches events of this single event name. Event name is
+     * required.
+     * 
+ * + * optional string event_name = 1; + * + * @return The eventName. + */ + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This filter matches events of this single event name. Event name is
+     * required.
+     * 
+ * + * optional string event_name = 1; + * + * @return The bytes for eventName. + */ + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This filter matches events of this single event name. Event name is
+     * required.
+     * 
+ * + * optional string event_name = 1; + * + * @param value The eventName to set. + * @return This builder for chaining. + */ + public Builder setEventName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + eventName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This filter matches events of this single event name. Event name is
+     * required.
+     * 
+ * + * optional string event_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearEventName() { + bitField0_ = (bitField0_ & ~0x00000001); + eventName_ = getDefaultInstance().getEventName(); + onChanged(); + return this; + } + /** + * + * + *
+     * This filter matches events of this single event name. Event name is
+     * required.
+     * 
+ * + * optional string event_name = 1; + * + * @param value The bytes for eventName to set. + * @return This builder for chaining. + */ + public Builder setEventNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + bitField0_ |= 0x00000001; + eventName_ = value; + onChanged(); + return this; + } + + private com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + segmentParameterFilterExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> + segmentParameterFilterExpressionBuilder_; + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; + * + * + * @return Whether the segmentParameterFilterExpression field is set. + */ + public boolean hasSegmentParameterFilterExpression() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; + * + * + * @return The segmentParameterFilterExpression. + */ + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + getSegmentParameterFilterExpression() { + if (segmentParameterFilterExpressionBuilder_ == null) { + return segmentParameterFilterExpression_ == null + ? com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + .getDefaultInstance() + : segmentParameterFilterExpression_; + } else { + return segmentParameterFilterExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; + * + */ + public Builder setSegmentParameterFilterExpression( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression value) { + if (segmentParameterFilterExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + segmentParameterFilterExpression_ = value; + onChanged(); + } else { + segmentParameterFilterExpressionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; + * + */ + public Builder setSegmentParameterFilterExpression( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder + builderForValue) { + if (segmentParameterFilterExpressionBuilder_ == null) { + segmentParameterFilterExpression_ = builderForValue.build(); + onChanged(); + } else { + segmentParameterFilterExpressionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; + * + */ + public Builder mergeSegmentParameterFilterExpression( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression value) { + if (segmentParameterFilterExpressionBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && segmentParameterFilterExpression_ != null + && segmentParameterFilterExpression_ + != com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + .getDefaultInstance()) { + segmentParameterFilterExpression_ = + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.newBuilder( + segmentParameterFilterExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + segmentParameterFilterExpression_ = value; + } + onChanged(); + } else { + segmentParameterFilterExpressionBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + return this; + } + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; + * + */ + public Builder clearSegmentParameterFilterExpression() { + if (segmentParameterFilterExpressionBuilder_ == null) { + segmentParameterFilterExpression_ = null; + onChanged(); + } else { + segmentParameterFilterExpressionBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; + * + */ + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder + getSegmentParameterFilterExpressionBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSegmentParameterFilterExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; + * + */ + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder + getSegmentParameterFilterExpressionOrBuilder() { + if (segmentParameterFilterExpressionBuilder_ != null) { + return segmentParameterFilterExpressionBuilder_.getMessageOrBuilder(); + } else { + return segmentParameterFilterExpression_ == null + ? com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + .getDefaultInstance() + : segmentParameterFilterExpression_; + } + } + /** + * + * + *
+     * If specified, this filter matches events that match both the single event
+     * name and the parameter filter expressions.
+     * Inside the parameter filter expression, only parameter filters are
+     * available.
+     * 
+ * + * + * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> + getSegmentParameterFilterExpressionFieldBuilder() { + if (segmentParameterFilterExpressionBuilder_ == null) { + segmentParameterFilterExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder>( + getSegmentParameterFilterExpression(), getParentForChildren(), isClean()); + segmentParameterFilterExpression_ = null; + } + return segmentParameterFilterExpressionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.SegmentEventFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentEventFilter) + private static final com.google.analytics.data.v1alpha.SegmentEventFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentEventFilter(); + } + + public static com.google.analytics.data.v1alpha.SegmentEventFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SegmentEventFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SegmentEventFilter(input, extensionRegistry); + } + }; + + public static 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.v1alpha.SegmentEventFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilterOrBuilder.java new file mode 100644 index 00000000..2b3e0e89 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilterOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface SegmentEventFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentEventFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * This filter matches events of this single event name. Event name is
+   * required.
+   * 
+ * + * optional string event_name = 1; + * + * @return Whether the eventName field is set. + */ + boolean hasEventName(); + /** + * + * + *
+   * This filter matches events of this single event name. Event name is
+   * required.
+   * 
+ * + * optional string event_name = 1; + * + * @return The eventName. + */ + java.lang.String getEventName(); + /** + * + * + *
+   * This filter matches events of this single event name. Event name is
+   * required.
+   * 
+ * + * optional string event_name = 1; + * + * @return The bytes for eventName. + */ + com.google.protobuf.ByteString getEventNameBytes(); + + /** + * + * + *
+   * If specified, this filter matches events that match both the single event
+   * name and the parameter filter expressions.
+   * Inside the parameter filter expression, only parameter filters are
+   * available.
+   * 
+ * + * + * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; + * + * + * @return Whether the segmentParameterFilterExpression field is set. + */ + boolean hasSegmentParameterFilterExpression(); + /** + * + * + *
+   * If specified, this filter matches events that match both the single event
+   * name and the parameter filter expressions.
+   * Inside the parameter filter expression, only parameter filters are
+   * available.
+   * 
+ * + * + * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; + * + * + * @return The segmentParameterFilterExpression. + */ + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + getSegmentParameterFilterExpression(); + /** + * + * + *
+   * If specified, this filter matches events that match both the single event
+   * name and the parameter filter expressions.
+   * Inside the parameter filter expression, only parameter filters are
+   * available.
+   * 
+ * + * + * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; + * + */ + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder + getSegmentParameterFilterExpressionOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilter.java new file mode 100644 index 00000000..fc4cec18 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilter.java @@ -0,0 +1,2225 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * An expression to filter dimension or metric values.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentFilter} + */ +public final class SegmentFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentFilter) + SegmentFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use SegmentFilter.newBuilder() to construct. + private SegmentFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SegmentFilter() { + fieldName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SegmentFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SegmentFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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 34: + { + com.google.analytics.data.v1alpha.StringFilter.Builder subBuilder = null; + if (oneFilterCase_ == 4) { + subBuilder = + ((com.google.analytics.data.v1alpha.StringFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.StringFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 4; + break; + } + case 42: + { + com.google.analytics.data.v1alpha.InListFilter.Builder subBuilder = null; + if (oneFilterCase_ == 5) { + subBuilder = + ((com.google.analytics.data.v1alpha.InListFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.InListFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 5; + break; + } + case 50: + { + com.google.analytics.data.v1alpha.NumericFilter.Builder subBuilder = null; + if (oneFilterCase_ == 6) { + subBuilder = + ((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.NumericFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 6; + break; + } + case 58: + { + com.google.analytics.data.v1alpha.BetweenFilter.Builder subBuilder = null; + if (oneFilterCase_ == 7) { + subBuilder = + ((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.BetweenFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 7; + break; + } + case 66: + { + com.google.analytics.data.v1alpha.SegmentFilterScoping.Builder subBuilder = null; + if (filterScoping_ != null) { + subBuilder = filterScoping_.toBuilder(); + } + filterScoping_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentFilterScoping.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filterScoping_); + filterScoping_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentFilter.class, + com.google.analytics.data.v1alpha.SegmentFilter.Builder.class); + } + + 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(4), + IN_LIST_FILTER(5), + NUMERIC_FILTER(6), + BETWEEN_FILTER(7), + 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 4: + return STRING_FILTER; + case 5: + return IN_LIST_FILTER; + case 6: + return NUMERIC_FILTER; + case 7: + 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.
+   * 
+ * + * 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.
+   * 
+ * + * 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 = 4; + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + + public static final int IN_LIST_FILTER_FIELD_NUMBER = 5; + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + + public static final int NUMERIC_FILTER_FIELD_NUMBER = 6; + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 6; + } + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + + public static final int BETWEEN_FILTER_FIELD_NUMBER = 7; + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 7; + } + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { + if (oneFilterCase_ == 7) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { + if (oneFilterCase_ == 7) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + + public static final int FILTER_SCOPING_FIELD_NUMBER = 8; + private com.google.analytics.data.v1alpha.SegmentFilterScoping filterScoping_; + /** + * + * + *
+   * Specifies the scope for the filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; + * + * @return Whether the filterScoping field is set. + */ + @java.lang.Override + public boolean hasFilterScoping() { + return filterScoping_ != null; + } + /** + * + * + *
+   * Specifies the scope for the filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; + * + * @return The filterScoping. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterScoping getFilterScoping() { + return filterScoping_ == null + ? com.google.analytics.data.v1alpha.SegmentFilterScoping.getDefaultInstance() + : filterScoping_; + } + /** + * + * + *
+   * Specifies the scope for the filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterScopingOrBuilder + getFilterScopingOrBuilder() { + return getFilterScoping(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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_ == 4) { + output.writeMessage(4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + } + if (oneFilterCase_ == 5) { + output.writeMessage(5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + } + if (oneFilterCase_ == 6) { + output.writeMessage(6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + } + if (oneFilterCase_ == 7) { + output.writeMessage(7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); + } + if (filterScoping_ != null) { + output.writeMessage(8, getFilterScoping()); + } + 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_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + } + if (oneFilterCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + } + if (oneFilterCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + } + if (oneFilterCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); + } + if (filterScoping_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFilterScoping()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.SegmentFilter)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.SegmentFilter other = + (com.google.analytics.data.v1alpha.SegmentFilter) obj; + + if (!getFieldName().equals(other.getFieldName())) return false; + if (hasFilterScoping() != other.hasFilterScoping()) return false; + if (hasFilterScoping()) { + if (!getFilterScoping().equals(other.getFilterScoping())) return false; + } + if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; + switch (oneFilterCase_) { + case 4: + if (!getStringFilter().equals(other.getStringFilter())) return false; + break; + case 5: + if (!getInListFilter().equals(other.getInListFilter())) return false; + break; + case 6: + if (!getNumericFilter().equals(other.getNumericFilter())) return false; + break; + case 7: + 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(); + if (hasFilterScoping()) { + hash = (37 * hash) + FILTER_SCOPING_FIELD_NUMBER; + hash = (53 * hash) + getFilterScoping().hashCode(); + } + switch (oneFilterCase_) { + case 4: + hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getStringFilter().hashCode(); + break; + case 5: + hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getInListFilter().hashCode(); + break; + case 6: + hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getNumericFilter().hashCode(); + break; + case 7: + 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.v1alpha.SegmentFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentFilter 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.v1alpha.SegmentFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentFilter parseFrom( + 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.v1alpha.SegmentFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.SegmentFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentFilter parseFrom( + java.io.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.v1alpha.SegmentFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentFilter parseDelimitedFrom( + java.io.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.v1alpha.SegmentFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.SegmentFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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.v1alpha.SegmentFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentFilter) + com.google.analytics.data.v1alpha.SegmentFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentFilter.class, + com.google.analytics.data.v1alpha.SegmentFilter.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.SegmentFilter.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_ = ""; + + if (filterScopingBuilder_ == null) { + filterScoping_ = null; + } else { + filterScoping_ = null; + filterScopingBuilder_ = null; + } + oneFilterCase_ = 0; + oneFilter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilter getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilter build() { + com.google.analytics.data.v1alpha.SegmentFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilter buildPartial() { + com.google.analytics.data.v1alpha.SegmentFilter result = + new com.google.analytics.data.v1alpha.SegmentFilter(this); + result.fieldName_ = fieldName_; + if (oneFilterCase_ == 4) { + if (stringFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = stringFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 5) { + if (inListFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = inListFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 6) { + if (numericFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = numericFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 7) { + if (betweenFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = betweenFilterBuilder_.build(); + } + } + if (filterScopingBuilder_ == null) { + result.filterScoping_ = filterScoping_; + } else { + result.filterScoping_ = filterScopingBuilder_.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.v1alpha.SegmentFilter) { + return mergeFrom((com.google.analytics.data.v1alpha.SegmentFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentFilter other) { + if (other == com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance()) + return this; + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + onChanged(); + } + if (other.hasFilterScoping()) { + mergeFilterScoping(other.getFilterScoping()); + } + 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.v1alpha.SegmentFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.SegmentFilter) 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * 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.
+     * 
+ * + * string field_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearFieldName() { + + fieldName_ = getDefaultInstance().getFieldName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The dimension name or metric name.
+     * 
+ * + * 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.v1alpha.StringFilter, + com.google.analytics.data.v1alpha.StringFilter.Builder, + com.google.analytics.data.v1alpha.StringFilterOrBuilder> + stringFilterBuilder_; + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 4) { + return stringFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public Builder setStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + stringFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public Builder setStringFilter( + com.google.analytics.data.v1alpha.StringFilter.Builder builderForValue) { + if (stringFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + stringFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public Builder mergeStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 4 + && oneFilter_ != com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.StringFilter.newBuilder( + (com.google.analytics.data.v1alpha.StringFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 4) { + stringFilterBuilder_.mergeFrom(value); + } else { + stringFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public Builder clearStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + stringFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public com.google.analytics.data.v1alpha.StringFilter.Builder getStringFilterBuilder() { + return getStringFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { + if ((oneFilterCase_ == 4) && (stringFilterBuilder_ != null)) { + return stringFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.StringFilter, + com.google.analytics.data.v1alpha.StringFilter.Builder, + com.google.analytics.data.v1alpha.StringFilterOrBuilder> + getStringFilterFieldBuilder() { + if (stringFilterBuilder_ == null) { + if (!(oneFilterCase_ == 4)) { + oneFilter_ = com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + stringFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.StringFilter, + com.google.analytics.data.v1alpha.StringFilter.Builder, + com.google.analytics.data.v1alpha.StringFilterOrBuilder>( + (com.google.analytics.data.v1alpha.StringFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 4; + onChanged(); + ; + return stringFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.InListFilter, + com.google.analytics.data.v1alpha.InListFilter.Builder, + com.google.analytics.data.v1alpha.InListFilterOrBuilder> + inListFilterBuilder_; + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 5) { + return inListFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public Builder setInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + inListFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public Builder setInListFilter( + com.google.analytics.data.v1alpha.InListFilter.Builder builderForValue) { + if (inListFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + inListFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public Builder mergeInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 5 + && oneFilter_ != com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.InListFilter.newBuilder( + (com.google.analytics.data.v1alpha.InListFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 5) { + inListFilterBuilder_.mergeFrom(value); + } else { + inListFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public Builder clearInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + inListFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public com.google.analytics.data.v1alpha.InListFilter.Builder getInListFilterBuilder() { + return getInListFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { + if ((oneFilterCase_ == 5) && (inListFilterBuilder_ != null)) { + return inListFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.InListFilter, + com.google.analytics.data.v1alpha.InListFilter.Builder, + com.google.analytics.data.v1alpha.InListFilterOrBuilder> + getInListFilterFieldBuilder() { + if (inListFilterBuilder_ == null) { + if (!(oneFilterCase_ == 5)) { + oneFilter_ = com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + inListFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.InListFilter, + com.google.analytics.data.v1alpha.InListFilter.Builder, + com.google.analytics.data.v1alpha.InListFilterOrBuilder>( + (com.google.analytics.data.v1alpha.InListFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 5; + onChanged(); + ; + return inListFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericFilter, + com.google.analytics.data.v1alpha.NumericFilter.Builder, + com.google.analytics.data.v1alpha.NumericFilterOrBuilder> + numericFilterBuilder_; + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 6; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 6) { + return numericFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public Builder setNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { + if (numericFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + numericFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 6; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public Builder setNumericFilter( + com.google.analytics.data.v1alpha.NumericFilter.Builder builderForValue) { + if (numericFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + numericFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 6; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public Builder mergeNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 6 + && oneFilter_ != com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.NumericFilter.newBuilder( + (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 6) { + numericFilterBuilder_.mergeFrom(value); + } else { + numericFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 6; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public Builder clearNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 6) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 6) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + numericFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public com.google.analytics.data.v1alpha.NumericFilter.Builder getNumericFilterBuilder() { + return getNumericFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { + if ((oneFilterCase_ == 6) && (numericFilterBuilder_ != null)) { + return numericFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericFilter, + com.google.analytics.data.v1alpha.NumericFilter.Builder, + com.google.analytics.data.v1alpha.NumericFilterOrBuilder> + getNumericFilterFieldBuilder() { + if (numericFilterBuilder_ == null) { + if (!(oneFilterCase_ == 6)) { + oneFilter_ = com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + numericFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericFilter, + com.google.analytics.data.v1alpha.NumericFilter.Builder, + com.google.analytics.data.v1alpha.NumericFilterOrBuilder>( + (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 6; + onChanged(); + ; + return numericFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.BetweenFilter, + com.google.analytics.data.v1alpha.BetweenFilter.Builder, + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> + betweenFilterBuilder_; + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 7; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 7) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 7) { + return betweenFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public Builder setBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + betweenFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 7; + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public Builder setBetweenFilter( + com.google.analytics.data.v1alpha.BetweenFilter.Builder builderForValue) { + if (betweenFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + betweenFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 7; + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public Builder mergeBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 7 + && oneFilter_ != com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.BetweenFilter.newBuilder( + (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 7) { + betweenFilterBuilder_.mergeFrom(value); + } else { + betweenFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 7; + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public Builder clearBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 7) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 7) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + betweenFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public com.google.analytics.data.v1alpha.BetweenFilter.Builder getBetweenFilterBuilder() { + return getBetweenFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { + if ((oneFilterCase_ == 7) && (betweenFilterBuilder_ != null)) { + return betweenFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 7) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.BetweenFilter, + com.google.analytics.data.v1alpha.BetweenFilter.Builder, + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> + getBetweenFilterFieldBuilder() { + if (betweenFilterBuilder_ == null) { + if (!(oneFilterCase_ == 7)) { + oneFilter_ = com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + betweenFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.BetweenFilter, + com.google.analytics.data.v1alpha.BetweenFilter.Builder, + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>( + (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 7; + onChanged(); + ; + return betweenFilterBuilder_; + } + + private com.google.analytics.data.v1alpha.SegmentFilterScoping filterScoping_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterScoping, + com.google.analytics.data.v1alpha.SegmentFilterScoping.Builder, + com.google.analytics.data.v1alpha.SegmentFilterScopingOrBuilder> + filterScopingBuilder_; + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; + * + * @return Whether the filterScoping field is set. + */ + public boolean hasFilterScoping() { + return filterScopingBuilder_ != null || filterScoping_ != null; + } + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; + * + * @return The filterScoping. + */ + public com.google.analytics.data.v1alpha.SegmentFilterScoping getFilterScoping() { + if (filterScopingBuilder_ == null) { + return filterScoping_ == null + ? com.google.analytics.data.v1alpha.SegmentFilterScoping.getDefaultInstance() + : filterScoping_; + } else { + return filterScopingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; + */ + public Builder setFilterScoping(com.google.analytics.data.v1alpha.SegmentFilterScoping value) { + if (filterScopingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filterScoping_ = value; + onChanged(); + } else { + filterScopingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; + */ + public Builder setFilterScoping( + com.google.analytics.data.v1alpha.SegmentFilterScoping.Builder builderForValue) { + if (filterScopingBuilder_ == null) { + filterScoping_ = builderForValue.build(); + onChanged(); + } else { + filterScopingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; + */ + public Builder mergeFilterScoping( + com.google.analytics.data.v1alpha.SegmentFilterScoping value) { + if (filterScopingBuilder_ == null) { + if (filterScoping_ != null) { + filterScoping_ = + com.google.analytics.data.v1alpha.SegmentFilterScoping.newBuilder(filterScoping_) + .mergeFrom(value) + .buildPartial(); + } else { + filterScoping_ = value; + } + onChanged(); + } else { + filterScopingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; + */ + public Builder clearFilterScoping() { + if (filterScopingBuilder_ == null) { + filterScoping_ = null; + onChanged(); + } else { + filterScoping_ = null; + filterScopingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; + */ + public com.google.analytics.data.v1alpha.SegmentFilterScoping.Builder + getFilterScopingBuilder() { + + onChanged(); + return getFilterScopingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; + */ + public com.google.analytics.data.v1alpha.SegmentFilterScopingOrBuilder + getFilterScopingOrBuilder() { + if (filterScopingBuilder_ != null) { + return filterScopingBuilder_.getMessageOrBuilder(); + } else { + return filterScoping_ == null + ? com.google.analytics.data.v1alpha.SegmentFilterScoping.getDefaultInstance() + : filterScoping_; + } + } + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterScoping, + com.google.analytics.data.v1alpha.SegmentFilterScoping.Builder, + com.google.analytics.data.v1alpha.SegmentFilterScopingOrBuilder> + getFilterScopingFieldBuilder() { + if (filterScopingBuilder_ == null) { + filterScopingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterScoping, + com.google.analytics.data.v1alpha.SegmentFilterScoping.Builder, + com.google.analytics.data.v1alpha.SegmentFilterScopingOrBuilder>( + getFilterScoping(), getParentForChildren(), isClean()); + filterScoping_ = null; + } + return filterScopingBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.SegmentFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentFilter) + private static final com.google.analytics.data.v1alpha.SegmentFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentFilter(); + } + + public static com.google.analytics.data.v1alpha.SegmentFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SegmentFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SegmentFilter(input, extensionRegistry); + } + }; + + public static 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.v1alpha.SegmentFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpression.java new file mode 100644 index 00000000..1bec940c --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpression.java @@ -0,0 +1,2144 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Expresses combinations of segment filters.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentFilterExpression} + */ +public final class SegmentFilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentFilterExpression) + SegmentFilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SegmentFilterExpression.newBuilder() to construct. + private SegmentFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SegmentFilterExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SegmentFilterExpression(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SegmentFilterExpression( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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.v1alpha.SegmentFilterExpressionList.Builder subBuilder = + null; + if (exprCase_ == 1) { + subBuilder = + ((com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 1; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder subBuilder = + null; + if (exprCase_ == 2) { + subBuilder = + ((com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 2; + break; + } + case 26: + { + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder subBuilder = null; + if (exprCase_ == 3) { + subBuilder = + ((com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 3; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.SegmentFilter.Builder subBuilder = null; + if (exprCase_ == 4) { + subBuilder = ((com.google.analytics.data.v1alpha.SegmentFilter) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.SegmentFilter) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 4; + break; + } + case 42: + { + com.google.analytics.data.v1alpha.SegmentEventFilter.Builder subBuilder = null; + if (exprCase_ == 5) { + subBuilder = + ((com.google.analytics.data.v1alpha.SegmentEventFilter) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentEventFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.SegmentEventFilter) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 5; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentFilterExpression.class, + com.google.analytics.data.v1alpha.SegmentFilterExpression.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), + SEGMENT_FILTER(4), + SEGMENT_EVENT_FILTER(5), + 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 SEGMENT_FILTER; + case 5: + return SEGMENT_EVENT_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 SegmentFilterExpression in `andGroup` have an AND relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+   * The SegmentFilterExpression in `andGroup` have an AND relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionList getAndGroup() { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * The SegmentFilterExpression in `andGroup` have an AND relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); + } + + public static final int OR_GROUP_FIELD_NUMBER = 2; + /** + * + * + *
+   * The SegmentFilterExpression in `orGroup` have an OR relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 2; + } + /** + * + * + *
+   * The SegmentFilterExpression in `orGroup` have an OR relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionList getOrGroup() { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); + } + /** + * + * + *
+   * The SegmentFilterExpression in `orGroup` have an OR relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); + } + + public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; + /** + * + * + *
+   * The SegmentFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 3; + } + /** + * + * + *
+   * The SegmentFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpression getNotExpression() { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance(); + } + /** + * + * + *
+   * The SegmentFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance(); + } + + public static final int SEGMENT_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A primitive segment filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; + * + * @return Whether the segmentFilter field is set. + */ + @java.lang.Override + public boolean hasSegmentFilter() { + return exprCase_ == 4; + } + /** + * + * + *
+   * A primitive segment filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; + * + * @return The segmentFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilter getSegmentFilter() { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.SegmentFilter) expr_; + } + return com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A primitive segment filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterOrBuilder getSegmentFilterOrBuilder() { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.SegmentFilter) expr_; + } + return com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance(); + } + + public static final int SEGMENT_EVENT_FILTER_FIELD_NUMBER = 5; + /** + * + * + *
+   * Creates a filter that matches events of a single event name. If a
+   * parameter filter expression is specified, only the subset of events that
+   * match both the single event name and the parameter filter expressions
+   * match this event filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; + * + * @return Whether the segmentEventFilter field is set. + */ + @java.lang.Override + public boolean hasSegmentEventFilter() { + return exprCase_ == 5; + } + /** + * + * + *
+   * Creates a filter that matches events of a single event name. If a
+   * parameter filter expression is specified, only the subset of events that
+   * match both the single event name and the parameter filter expressions
+   * match this event filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; + * + * @return The segmentEventFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentEventFilter getSegmentEventFilter() { + if (exprCase_ == 5) { + return (com.google.analytics.data.v1alpha.SegmentEventFilter) expr_; + } + return com.google.analytics.data.v1alpha.SegmentEventFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Creates a filter that matches events of a single event name. If a
+   * parameter filter expression is specified, only the subset of events that
+   * match both the single event name and the parameter filter expressions
+   * match this event filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentEventFilterOrBuilder + getSegmentEventFilterOrBuilder() { + if (exprCase_ == 5) { + return (com.google.analytics.data.v1alpha.SegmentEventFilter) expr_; + } + return com.google.analytics.data.v1alpha.SegmentEventFilter.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.v1alpha.SegmentFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + output.writeMessage(2, (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_); + } + if (exprCase_ == 3) { + output.writeMessage(3, (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_); + } + if (exprCase_ == 4) { + output.writeMessage(4, (com.google.analytics.data.v1alpha.SegmentFilter) expr_); + } + if (exprCase_ == 5) { + output.writeMessage(5, (com.google.analytics.data.v1alpha.SegmentEventFilter) 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.v1alpha.SegmentFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_); + } + if (exprCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_); + } + if (exprCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.data.v1alpha.SegmentFilter) expr_); + } + if (exprCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.analytics.data.v1alpha.SegmentEventFilter) 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.v1alpha.SegmentFilterExpression)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.SegmentFilterExpression other = + (com.google.analytics.data.v1alpha.SegmentFilterExpression) 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 (!getSegmentFilter().equals(other.getSegmentFilter())) return false; + break; + case 5: + if (!getSegmentEventFilter().equals(other.getSegmentEventFilter())) 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) + SEGMENT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSegmentFilter().hashCode(); + break; + case 5: + hash = (37 * hash) + SEGMENT_EVENT_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSegmentEventFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpression 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.v1alpha.SegmentFilterExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpression parseFrom( + 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.v1alpha.SegmentFilterExpression parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpression parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpression parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpression parseFrom( + java.io.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.v1alpha.SegmentFilterExpression parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpression parseDelimitedFrom( + java.io.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.v1alpha.SegmentFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.SegmentFilterExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Expresses combinations of segment filters.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentFilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentFilterExpression) + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentFilterExpression.class, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.SegmentFilterExpression.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpression getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpression build() { + com.google.analytics.data.v1alpha.SegmentFilterExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpression buildPartial() { + com.google.analytics.data.v1alpha.SegmentFilterExpression result = + new com.google.analytics.data.v1alpha.SegmentFilterExpression(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 (segmentFilterBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = segmentFilterBuilder_.build(); + } + } + if (exprCase_ == 5) { + if (segmentEventFilterBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = segmentEventFilterBuilder_.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.v1alpha.SegmentFilterExpression) { + return mergeFrom((com.google.analytics.data.v1alpha.SegmentFilterExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentFilterExpression other) { + if (other == com.google.analytics.data.v1alpha.SegmentFilterExpression.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 SEGMENT_FILTER: + { + mergeSegmentFilter(other.getSegmentFilter()); + break; + } + case SEGMENT_EVENT_FILTER: + { + mergeSegmentEventFilter(other.getSegmentEventFilter()); + 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.v1alpha.SegmentFilterExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.SegmentFilterExpression) 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.v1alpha.SegmentFilterExpressionList, + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder> + andGroupBuilder_; + /** + * + * + *
+     * The SegmentFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+     * The SegmentFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionList getAndGroup() { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return andGroupBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * The SegmentFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; + */ + public Builder setAndGroup( + com.google.analytics.data.v1alpha.SegmentFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + andGroupBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * The SegmentFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; + */ + public Builder setAndGroup( + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder builderForValue) { + if (andGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + andGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * The SegmentFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; + */ + public Builder mergeAndGroup( + com.google.analytics.data.v1alpha.SegmentFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1 + && expr_ + != com.google.analytics.data.v1alpha.SegmentFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.newBuilder( + (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + andGroupBuilder_.mergeFrom(value); + } else { + andGroupBuilder_.setMessage(value); + } + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * The SegmentFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList 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 SegmentFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder + getAndGroupBuilder() { + return getAndGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The SegmentFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { + return andGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * The SegmentFilterExpression in `andGroup` have an AND relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpressionList, + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder> + getAndGroupFieldBuilder() { + if (andGroupBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); + } + andGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpressionList, + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder>( + (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged(); + ; + return andGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpressionList, + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder> + orGroupBuilder_; + /** + * + * + *
+     * The SegmentFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 2; + } + /** + * + * + *
+     * The SegmentFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionList getOrGroup() { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return orGroupBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * The SegmentFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; + */ + public Builder setOrGroup(com.google.analytics.data.v1alpha.SegmentFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + orGroupBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * The SegmentFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; + */ + public Builder setOrGroup( + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder builderForValue) { + if (orGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + orGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * The SegmentFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; + */ + public Builder mergeOrGroup( + com.google.analytics.data.v1alpha.SegmentFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2 + && expr_ + != com.google.analytics.data.v1alpha.SegmentFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.newBuilder( + (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + orGroupBuilder_.mergeFrom(value); + } else { + orGroupBuilder_.setMessage(value); + } + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * The SegmentFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList 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 SegmentFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder + getOrGroupBuilder() { + return getOrGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The SegmentFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { + return orGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); + } + } + /** + * + * + *
+     * The SegmentFilterExpression in `orGroup` have an OR relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpressionList, + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder> + getOrGroupFieldBuilder() { + if (orGroupBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); + } + orGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpressionList, + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder>( + (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged(); + ; + return orGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> + notExpressionBuilder_; + /** + * + * + *
+     * The SegmentFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 3; + } + /** + * + * + *
+     * The SegmentFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpression getNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance(); + } else { + if (exprCase_ == 3) { + return notExpressionBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * The SegmentFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.data.v1alpha.SegmentFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + notExpressionBuilder_.setMessage(value); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * The SegmentFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; + */ + public Builder setNotExpression( + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) { + if (notExpressionBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + notExpressionBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * The SegmentFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; + */ + public Builder mergeNotExpression( + com.google.analytics.data.v1alpha.SegmentFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3 + && expr_ + != com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.SegmentFilterExpression.newBuilder( + (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 3) { + notExpressionBuilder_.mergeFrom(value); + } else { + notExpressionBuilder_.setMessage(value); + } + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * The SegmentFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression 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 SegmentFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder + getNotExpressionBuilder() { + return getNotExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The SegmentFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { + return notExpressionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance(); + } + } + /** + * + * + *
+     * The SegmentFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> + getNotExpressionFieldBuilder() { + if (notExpressionBuilder_ == null) { + if (!(exprCase_ == 3)) { + expr_ = com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance(); + } + notExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder>( + (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 3; + onChanged(); + ; + return notExpressionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilter, + com.google.analytics.data.v1alpha.SegmentFilter.Builder, + com.google.analytics.data.v1alpha.SegmentFilterOrBuilder> + segmentFilterBuilder_; + /** + * + * + *
+     * A primitive segment filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; + * + * @return Whether the segmentFilter field is set. + */ + @java.lang.Override + public boolean hasSegmentFilter() { + return exprCase_ == 4; + } + /** + * + * + *
+     * A primitive segment filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; + * + * @return The segmentFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilter getSegmentFilter() { + if (segmentFilterBuilder_ == null) { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.SegmentFilter) expr_; + } + return com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance(); + } else { + if (exprCase_ == 4) { + return segmentFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A primitive segment filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; + */ + public Builder setSegmentFilter(com.google.analytics.data.v1alpha.SegmentFilter value) { + if (segmentFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + segmentFilterBuilder_.setMessage(value); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive segment filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; + */ + public Builder setSegmentFilter( + com.google.analytics.data.v1alpha.SegmentFilter.Builder builderForValue) { + if (segmentFilterBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + segmentFilterBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive segment filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; + */ + public Builder mergeSegmentFilter(com.google.analytics.data.v1alpha.SegmentFilter value) { + if (segmentFilterBuilder_ == null) { + if (exprCase_ == 4 + && expr_ != com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.SegmentFilter.newBuilder( + (com.google.analytics.data.v1alpha.SegmentFilter) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 4) { + segmentFilterBuilder_.mergeFrom(value); + } else { + segmentFilterBuilder_.setMessage(value); + } + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive segment filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; + */ + public Builder clearSegmentFilter() { + if (segmentFilterBuilder_ == null) { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + } + segmentFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A primitive segment filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; + */ + public com.google.analytics.data.v1alpha.SegmentFilter.Builder getSegmentFilterBuilder() { + return getSegmentFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A primitive segment filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterOrBuilder getSegmentFilterOrBuilder() { + if ((exprCase_ == 4) && (segmentFilterBuilder_ != null)) { + return segmentFilterBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.SegmentFilter) expr_; + } + return com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A primitive segment filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilter, + com.google.analytics.data.v1alpha.SegmentFilter.Builder, + com.google.analytics.data.v1alpha.SegmentFilterOrBuilder> + getSegmentFilterFieldBuilder() { + if (segmentFilterBuilder_ == null) { + if (!(exprCase_ == 4)) { + expr_ = com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance(); + } + segmentFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilter, + com.google.analytics.data.v1alpha.SegmentFilter.Builder, + com.google.analytics.data.v1alpha.SegmentFilterOrBuilder>( + (com.google.analytics.data.v1alpha.SegmentFilter) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 4; + onChanged(); + ; + return segmentFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentEventFilter, + com.google.analytics.data.v1alpha.SegmentEventFilter.Builder, + com.google.analytics.data.v1alpha.SegmentEventFilterOrBuilder> + segmentEventFilterBuilder_; + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; + * + * @return Whether the segmentEventFilter field is set. + */ + @java.lang.Override + public boolean hasSegmentEventFilter() { + return exprCase_ == 5; + } + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; + * + * @return The segmentEventFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentEventFilter getSegmentEventFilter() { + if (segmentEventFilterBuilder_ == null) { + if (exprCase_ == 5) { + return (com.google.analytics.data.v1alpha.SegmentEventFilter) expr_; + } + return com.google.analytics.data.v1alpha.SegmentEventFilter.getDefaultInstance(); + } else { + if (exprCase_ == 5) { + return segmentEventFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.SegmentEventFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; + */ + public Builder setSegmentEventFilter( + com.google.analytics.data.v1alpha.SegmentEventFilter value) { + if (segmentEventFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + segmentEventFilterBuilder_.setMessage(value); + } + exprCase_ = 5; + return this; + } + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; + */ + public Builder setSegmentEventFilter( + com.google.analytics.data.v1alpha.SegmentEventFilter.Builder builderForValue) { + if (segmentEventFilterBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + segmentEventFilterBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 5; + return this; + } + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; + */ + public Builder mergeSegmentEventFilter( + com.google.analytics.data.v1alpha.SegmentEventFilter value) { + if (segmentEventFilterBuilder_ == null) { + if (exprCase_ == 5 + && expr_ != com.google.analytics.data.v1alpha.SegmentEventFilter.getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.SegmentEventFilter.newBuilder( + (com.google.analytics.data.v1alpha.SegmentEventFilter) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 5) { + segmentEventFilterBuilder_.mergeFrom(value); + } else { + segmentEventFilterBuilder_.setMessage(value); + } + } + exprCase_ = 5; + return this; + } + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; + */ + public Builder clearSegmentEventFilter() { + if (segmentEventFilterBuilder_ == null) { + if (exprCase_ == 5) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 5) { + exprCase_ = 0; + expr_ = null; + } + segmentEventFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; + */ + public com.google.analytics.data.v1alpha.SegmentEventFilter.Builder + getSegmentEventFilterBuilder() { + return getSegmentEventFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentEventFilterOrBuilder + getSegmentEventFilterOrBuilder() { + if ((exprCase_ == 5) && (segmentEventFilterBuilder_ != null)) { + return segmentEventFilterBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 5) { + return (com.google.analytics.data.v1alpha.SegmentEventFilter) expr_; + } + return com.google.analytics.data.v1alpha.SegmentEventFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Creates a filter that matches events of a single event name. If a
+     * parameter filter expression is specified, only the subset of events that
+     * match both the single event name and the parameter filter expressions
+     * match this event filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentEventFilter, + com.google.analytics.data.v1alpha.SegmentEventFilter.Builder, + com.google.analytics.data.v1alpha.SegmentEventFilterOrBuilder> + getSegmentEventFilterFieldBuilder() { + if (segmentEventFilterBuilder_ == null) { + if (!(exprCase_ == 5)) { + expr_ = com.google.analytics.data.v1alpha.SegmentEventFilter.getDefaultInstance(); + } + segmentEventFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentEventFilter, + com.google.analytics.data.v1alpha.SegmentEventFilter.Builder, + com.google.analytics.data.v1alpha.SegmentEventFilterOrBuilder>( + (com.google.analytics.data.v1alpha.SegmentEventFilter) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 5; + onChanged(); + ; + return segmentEventFilterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.SegmentFilterExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentFilterExpression) + private static final com.google.analytics.data.v1alpha.SegmentFilterExpression DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentFilterExpression(); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpression getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SegmentFilterExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SegmentFilterExpression(input, extensionRegistry); + } + }; + + public static 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.v1alpha.SegmentFilterExpression getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionList.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionList.java new file mode 100644 index 00000000..a54e845a --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionList.java @@ -0,0 +1,979 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * A list of segment filter expressions.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentFilterExpressionList} + */ +public final class SegmentFilterExpressionList extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentFilterExpressionList) + SegmentFilterExpressionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use SegmentFilterExpressionList.newBuilder() to construct. + private SegmentFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SegmentFilterExpressionList() { + expressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SegmentFilterExpressionList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SegmentFilterExpressionList( + 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< + com.google.analytics.data.v1alpha.SegmentFilterExpression>(); + mutable_bitField0_ |= 0x00000001; + } + expressions_.add( + input.readMessage( + com.google.analytics.data.v1alpha.SegmentFilterExpression.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + 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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.class, + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder.class); + } + + public static final int EXPRESSIONS_FIELD_NUMBER = 1; + private java.util.List expressions_; + /** + * + * + *
+   * The list of segment filter expressions
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + @java.lang.Override + public java.util.List + getExpressionsList() { + return expressions_; + } + /** + * + * + *
+   * The list of segment filter expressions
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> + getExpressionsOrBuilderList() { + return expressions_; + } + /** + * + * + *
+   * The list of segment filter expressions
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + @java.lang.Override + public int getExpressionsCount() { + return expressions_.size(); + } + /** + * + * + *
+   * The list of segment filter expressions
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpression getExpressions(int index) { + return expressions_.get(index); + } + /** + * + * + *
+   * The list of segment filter expressions
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder 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.v1alpha.SegmentFilterExpressionList)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.SegmentFilterExpressionList other = + (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) 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.v1alpha.SegmentFilterExpressionList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList 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.v1alpha.SegmentFilterExpressionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList parseFrom( + 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.v1alpha.SegmentFilterExpressionList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList parseFrom( + java.io.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.v1alpha.SegmentFilterExpressionList parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList parseDelimitedFrom( + java.io.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.v1alpha.SegmentFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.SegmentFilterExpressionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 segment filter expressions.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentFilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentFilterExpressionList) + com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.class, + com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.SegmentFilterExpressionList.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionList + getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionList build() { + com.google.analytics.data.v1alpha.SegmentFilterExpressionList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionList buildPartial() { + com.google.analytics.data.v1alpha.SegmentFilterExpressionList result = + new com.google.analytics.data.v1alpha.SegmentFilterExpressionList(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.v1alpha.SegmentFilterExpressionList) { + return mergeFrom((com.google.analytics.data.v1alpha.SegmentFilterExpressionList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentFilterExpressionList other) { + if (other + == com.google.analytics.data.v1alpha.SegmentFilterExpressionList.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.v1alpha.SegmentFilterExpressionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) + 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.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> + expressionsBuilder_; + + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public java.util.List + getExpressionsList() { + if (expressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(expressions_); + } else { + return expressionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public int getExpressionsCount() { + if (expressionsBuilder_ == null) { + return expressions_.size(); + } else { + return expressionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpression getExpressions(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public Builder setExpressions( + int index, com.google.analytics.data.v1alpha.SegmentFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.set(index, value); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public Builder setExpressions( + int index, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.set(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public Builder addExpressions(com.google.analytics.data.v1alpha.SegmentFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(value); + onChanged(); + } else { + expressionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public Builder addExpressions( + int index, com.google.analytics.data.v1alpha.SegmentFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(index, value); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public Builder addExpressions( + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public Builder addExpressions( + int index, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression 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; + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public Builder clearExpressions() { + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + expressionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public Builder removeExpressions(int index) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.remove(index); + onChanged(); + } else { + expressionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder getExpressionsBuilder( + int index) { + return getExpressionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder + getExpressionsOrBuilder(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public java.util.List< + ? extends com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> + getExpressionsOrBuilderList() { + if (expressionsBuilder_ != null) { + return expressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(expressions_); + } + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder + addExpressionsBuilder() { + return getExpressionsFieldBuilder() + .addBuilder( + com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder addExpressionsBuilder( + int index) { + return getExpressionsFieldBuilder() + .addBuilder( + index, + com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance()); + } + /** + * + * + *
+     * The list of segment filter expressions
+     * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + public java.util.List + getExpressionsBuilderList() { + return getExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> + getExpressionsFieldBuilder() { + if (expressionsBuilder_ == null) { + expressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder>( + 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.v1alpha.SegmentFilterExpressionList) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentFilterExpressionList) + private static final com.google.analytics.data.v1alpha.SegmentFilterExpressionList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentFilterExpressionList(); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SegmentFilterExpressionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SegmentFilterExpressionList(input, extensionRegistry); + } + }; + + public static 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.v1alpha.SegmentFilterExpressionList getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionListOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionListOrBuilder.java new file mode 100644 index 00000000..a8d7c53a --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionListOrBuilder.java @@ -0,0 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface SegmentFilterExpressionListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentFilterExpressionList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of segment filter expressions
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + java.util.List getExpressionsList(); + /** + * + * + *
+   * The list of segment filter expressions
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + com.google.analytics.data.v1alpha.SegmentFilterExpression getExpressions(int index); + /** + * + * + *
+   * The list of segment filter expressions
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + int getExpressionsCount(); + /** + * + * + *
+   * The list of segment filter expressions
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + java.util.List + getExpressionsOrBuilderList(); + /** + * + * + *
+   * The list of segment filter expressions
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; + */ + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder getExpressionsOrBuilder( + int index); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionOrBuilder.java new file mode 100644 index 00000000..0038ca54 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionOrBuilder.java @@ -0,0 +1,211 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface SegmentFilterExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentFilterExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The SegmentFilterExpression in `andGroup` have an AND relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + boolean hasAndGroup(); + /** + * + * + *
+   * The SegmentFilterExpression in `andGroup` have an AND relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + com.google.analytics.data.v1alpha.SegmentFilterExpressionList getAndGroup(); + /** + * + * + *
+   * The SegmentFilterExpression in `andGroup` have an AND relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; + */ + com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder getAndGroupOrBuilder(); + + /** + * + * + *
+   * The SegmentFilterExpression in `orGroup` have an OR relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + boolean hasOrGroup(); + /** + * + * + *
+   * The SegmentFilterExpression in `orGroup` have an OR relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + com.google.analytics.data.v1alpha.SegmentFilterExpressionList getOrGroup(); + /** + * + * + *
+   * The SegmentFilterExpression in `orGroup` have an OR relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; + */ + com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder getOrGroupOrBuilder(); + + /** + * + * + *
+   * The SegmentFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; + * + * @return Whether the notExpression field is set. + */ + boolean hasNotExpression(); + /** + * + * + *
+   * The SegmentFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; + * + * @return The notExpression. + */ + com.google.analytics.data.v1alpha.SegmentFilterExpression getNotExpression(); + /** + * + * + *
+   * The SegmentFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; + */ + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder getNotExpressionOrBuilder(); + + /** + * + * + *
+   * A primitive segment filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; + * + * @return Whether the segmentFilter field is set. + */ + boolean hasSegmentFilter(); + /** + * + * + *
+   * A primitive segment filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; + * + * @return The segmentFilter. + */ + com.google.analytics.data.v1alpha.SegmentFilter getSegmentFilter(); + /** + * + * + *
+   * A primitive segment filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; + */ + com.google.analytics.data.v1alpha.SegmentFilterOrBuilder getSegmentFilterOrBuilder(); + + /** + * + * + *
+   * Creates a filter that matches events of a single event name. If a
+   * parameter filter expression is specified, only the subset of events that
+   * match both the single event name and the parameter filter expressions
+   * match this event filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; + * + * @return Whether the segmentEventFilter field is set. + */ + boolean hasSegmentEventFilter(); + /** + * + * + *
+   * Creates a filter that matches events of a single event name. If a
+   * parameter filter expression is specified, only the subset of events that
+   * match both the single event name and the parameter filter expressions
+   * match this event filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; + * + * @return The segmentEventFilter. + */ + com.google.analytics.data.v1alpha.SegmentEventFilter getSegmentEventFilter(); + /** + * + * + *
+   * Creates a filter that matches events of a single event name. If a
+   * parameter filter expression is specified, only the subset of events that
+   * match both the single event name and the parameter filter expressions
+   * match this event filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; + */ + com.google.analytics.data.v1alpha.SegmentEventFilterOrBuilder getSegmentEventFilterOrBuilder(); + + public com.google.analytics.data.v1alpha.SegmentFilterExpression.ExprCase getExprCase(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterOrBuilder.java new file mode 100644 index 00000000..1a1f1f18 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterOrBuilder.java @@ -0,0 +1,227 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface SegmentFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The dimension name or metric name.
+   * 
+ * + * string field_name = 1; + * + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * + * + *
+   * The dimension name or metric name.
+   * 
+ * + * string field_name = 1; + * + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString getFieldNameBytes(); + + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return Whether the stringFilter field is set. + */ + boolean hasStringFilter(); + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return The stringFilter. + */ + com.google.analytics.data.v1alpha.StringFilter getStringFilter(); + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder(); + + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return Whether the inListFilter field is set. + */ + boolean hasInListFilter(); + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return The inListFilter. + */ + com.google.analytics.data.v1alpha.InListFilter getInListFilter(); + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder(); + + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return Whether the numericFilter field is set. + */ + boolean hasNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return The numericFilter. + */ + com.google.analytics.data.v1alpha.NumericFilter getNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder(); + + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return Whether the betweenFilter field is set. + */ + boolean hasBetweenFilter(); + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return The betweenFilter. + */ + com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter(); + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder(); + + /** + * + * + *
+   * Specifies the scope for the filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; + * + * @return Whether the filterScoping field is set. + */ + boolean hasFilterScoping(); + /** + * + * + *
+   * Specifies the scope for the filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; + * + * @return The filterScoping. + */ + com.google.analytics.data.v1alpha.SegmentFilterScoping getFilterScoping(); + /** + * + * + *
+   * Specifies the scope for the filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; + */ + com.google.analytics.data.v1alpha.SegmentFilterScopingOrBuilder getFilterScopingOrBuilder(); + + public com.google.analytics.data.v1alpha.SegmentFilter.OneFilterCase getOneFilterCase(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScoping.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScoping.java new file mode 100644 index 00000000..2aa3bf96 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScoping.java @@ -0,0 +1,657 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Scopings specify how the dimensions & metrics of multiple events
+ * should be considered when evaluating a segment filter.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentFilterScoping} + */ +public final class SegmentFilterScoping extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentFilterScoping) + SegmentFilterScopingOrBuilder { + private static final long serialVersionUID = 0L; + // Use SegmentFilterScoping.newBuilder() to construct. + private SegmentFilterScoping(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SegmentFilterScoping() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SegmentFilterScoping(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SegmentFilterScoping( + 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; + atAnyPointInTime_ = input.readBool(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentFilterScoping.class, + com.google.analytics.data.v1alpha.SegmentFilterScoping.Builder.class); + } + + private int bitField0_; + public static final int AT_ANY_POINT_IN_TIME_FIELD_NUMBER = 1; + private boolean atAnyPointInTime_; + /** + * + * + *
+   * If `atAnyPointInTime` is true, this filter evaluates to true for all
+   * events if it evaluates to true for any event in the date range of the
+   * request.
+   * This `atAnyPointInTime` parameter does not extend the date range of
+   * events in the report. If `atAnyPointInTime` is true, only events within
+   * the report's date range are considered when evaluating this filter.
+   * This `atAnyPointInTime` is only able to be specified if the criteria
+   * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
+   * sequences.
+   * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
+   * false is used if unspecified.
+   * 
+ * + * optional bool at_any_point_in_time = 1; + * + * @return Whether the atAnyPointInTime field is set. + */ + @java.lang.Override + public boolean hasAtAnyPointInTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * If `atAnyPointInTime` is true, this filter evaluates to true for all
+   * events if it evaluates to true for any event in the date range of the
+   * request.
+   * This `atAnyPointInTime` parameter does not extend the date range of
+   * events in the report. If `atAnyPointInTime` is true, only events within
+   * the report's date range are considered when evaluating this filter.
+   * This `atAnyPointInTime` is only able to be specified if the criteria
+   * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
+   * sequences.
+   * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
+   * false is used if unspecified.
+   * 
+ * + * optional bool at_any_point_in_time = 1; + * + * @return The atAnyPointInTime. + */ + @java.lang.Override + public boolean getAtAnyPointInTime() { + return atAnyPointInTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.writeBool(1, atAnyPointInTime_); + } + 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.computeBoolSize(1, atAnyPointInTime_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.SegmentFilterScoping)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.SegmentFilterScoping other = + (com.google.analytics.data.v1alpha.SegmentFilterScoping) obj; + + if (hasAtAnyPointInTime() != other.hasAtAnyPointInTime()) return false; + if (hasAtAnyPointInTime()) { + if (getAtAnyPointInTime() != other.getAtAnyPointInTime()) return false; + } + if (!unknownFields.equals(other.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 (hasAtAnyPointInTime()) { + hash = (37 * hash) + AT_ANY_POINT_IN_TIME_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAtAnyPointInTime()); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.SegmentFilterScoping parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterScoping 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.v1alpha.SegmentFilterScoping parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterScoping parseFrom( + 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.v1alpha.SegmentFilterScoping parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterScoping parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterScoping parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterScoping parseFrom( + java.io.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.v1alpha.SegmentFilterScoping parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterScoping parseDelimitedFrom( + java.io.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.v1alpha.SegmentFilterScoping parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterScoping parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.SegmentFilterScoping prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Scopings specify how the dimensions & metrics of multiple events
+   * should be considered when evaluating a segment filter.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentFilterScoping} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentFilterScoping) + com.google.analytics.data.v1alpha.SegmentFilterScopingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentFilterScoping.class, + com.google.analytics.data.v1alpha.SegmentFilterScoping.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.SegmentFilterScoping.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(); + atAnyPointInTime_ = false; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterScoping getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.SegmentFilterScoping.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterScoping build() { + com.google.analytics.data.v1alpha.SegmentFilterScoping result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterScoping buildPartial() { + com.google.analytics.data.v1alpha.SegmentFilterScoping result = + new com.google.analytics.data.v1alpha.SegmentFilterScoping(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.atAnyPointInTime_ = atAnyPointInTime_; + to_bitField0_ |= 0x00000001; + } + 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.v1alpha.SegmentFilterScoping) { + return mergeFrom((com.google.analytics.data.v1alpha.SegmentFilterScoping) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentFilterScoping other) { + if (other == com.google.analytics.data.v1alpha.SegmentFilterScoping.getDefaultInstance()) + return this; + if (other.hasAtAnyPointInTime()) { + setAtAnyPointInTime(other.getAtAnyPointInTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.SegmentFilterScoping parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.SegmentFilterScoping) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private boolean atAnyPointInTime_; + /** + * + * + *
+     * If `atAnyPointInTime` is true, this filter evaluates to true for all
+     * events if it evaluates to true for any event in the date range of the
+     * request.
+     * This `atAnyPointInTime` parameter does not extend the date range of
+     * events in the report. If `atAnyPointInTime` is true, only events within
+     * the report's date range are considered when evaluating this filter.
+     * This `atAnyPointInTime` is only able to be specified if the criteria
+     * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
+     * sequences.
+     * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
+     * false is used if unspecified.
+     * 
+ * + * optional bool at_any_point_in_time = 1; + * + * @return Whether the atAnyPointInTime field is set. + */ + @java.lang.Override + public boolean hasAtAnyPointInTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * If `atAnyPointInTime` is true, this filter evaluates to true for all
+     * events if it evaluates to true for any event in the date range of the
+     * request.
+     * This `atAnyPointInTime` parameter does not extend the date range of
+     * events in the report. If `atAnyPointInTime` is true, only events within
+     * the report's date range are considered when evaluating this filter.
+     * This `atAnyPointInTime` is only able to be specified if the criteria
+     * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
+     * sequences.
+     * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
+     * false is used if unspecified.
+     * 
+ * + * optional bool at_any_point_in_time = 1; + * + * @return The atAnyPointInTime. + */ + @java.lang.Override + public boolean getAtAnyPointInTime() { + return atAnyPointInTime_; + } + /** + * + * + *
+     * If `atAnyPointInTime` is true, this filter evaluates to true for all
+     * events if it evaluates to true for any event in the date range of the
+     * request.
+     * This `atAnyPointInTime` parameter does not extend the date range of
+     * events in the report. If `atAnyPointInTime` is true, only events within
+     * the report's date range are considered when evaluating this filter.
+     * This `atAnyPointInTime` is only able to be specified if the criteria
+     * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
+     * sequences.
+     * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
+     * false is used if unspecified.
+     * 
+ * + * optional bool at_any_point_in_time = 1; + * + * @param value The atAnyPointInTime to set. + * @return This builder for chaining. + */ + public Builder setAtAnyPointInTime(boolean value) { + bitField0_ |= 0x00000001; + atAnyPointInTime_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If `atAnyPointInTime` is true, this filter evaluates to true for all
+     * events if it evaluates to true for any event in the date range of the
+     * request.
+     * This `atAnyPointInTime` parameter does not extend the date range of
+     * events in the report. If `atAnyPointInTime` is true, only events within
+     * the report's date range are considered when evaluating this filter.
+     * This `atAnyPointInTime` is only able to be specified if the criteria
+     * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
+     * sequences.
+     * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
+     * false is used if unspecified.
+     * 
+ * + * optional bool at_any_point_in_time = 1; + * + * @return This builder for chaining. + */ + public Builder clearAtAnyPointInTime() { + bitField0_ = (bitField0_ & ~0x00000001); + atAnyPointInTime_ = 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.v1alpha.SegmentFilterScoping) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentFilterScoping) + private static final com.google.analytics.data.v1alpha.SegmentFilterScoping DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentFilterScoping(); + } + + public static com.google.analytics.data.v1alpha.SegmentFilterScoping getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SegmentFilterScoping parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SegmentFilterScoping(input, extensionRegistry); + } + }; + + public static 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.v1alpha.SegmentFilterScoping getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScopingOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScopingOrBuilder.java new file mode 100644 index 00000000..fd4a67f0 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScopingOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface SegmentFilterScopingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentFilterScoping) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * If `atAnyPointInTime` is true, this filter evaluates to true for all
+   * events if it evaluates to true for any event in the date range of the
+   * request.
+   * This `atAnyPointInTime` parameter does not extend the date range of
+   * events in the report. If `atAnyPointInTime` is true, only events within
+   * the report's date range are considered when evaluating this filter.
+   * This `atAnyPointInTime` is only able to be specified if the criteria
+   * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
+   * sequences.
+   * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
+   * false is used if unspecified.
+   * 
+ * + * optional bool at_any_point_in_time = 1; + * + * @return Whether the atAnyPointInTime field is set. + */ + boolean hasAtAnyPointInTime(); + /** + * + * + *
+   * If `atAnyPointInTime` is true, this filter evaluates to true for all
+   * events if it evaluates to true for any event in the date range of the
+   * request.
+   * This `atAnyPointInTime` parameter does not extend the date range of
+   * events in the report. If `atAnyPointInTime` is true, only events within
+   * the report's date range are considered when evaluating this filter.
+   * This `atAnyPointInTime` is only able to be specified if the criteria
+   * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
+   * sequences.
+   * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
+   * false is used if unspecified.
+   * 
+ * + * optional bool at_any_point_in_time = 1; + * + * @return The atAnyPointInTime. + */ + boolean getAtAnyPointInTime(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentOrBuilder.java new file mode 100644 index 00000000..bc9e0195 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentOrBuilder.java @@ -0,0 +1,169 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface SegmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.Segment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name for this segment. If unspecified, segments are named "Segment".
+   * This name defines string value returned by the `segment` dimension. The
+   * `segment` dimension prefixes segment names by the 1-based index number of
+   * the segment in the request (i.e. "1. Segment", "2. Segment", etc.).
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name for this segment. If unspecified, segments are named "Segment".
+   * This name defines string value returned by the `segment` dimension. The
+   * `segment` dimension prefixes segment names by the 1-based index number of
+   * the segment in the request (i.e. "1. Segment", "2. Segment", etc.).
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * User segments are subsets of users who engaged with your site or app.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegment user_segment = 2; + * + * @return Whether the userSegment field is set. + */ + boolean hasUserSegment(); + /** + * + * + *
+   * User segments are subsets of users who engaged with your site or app.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegment user_segment = 2; + * + * @return The userSegment. + */ + com.google.analytics.data.v1alpha.UserSegment getUserSegment(); + /** + * + * + *
+   * User segments are subsets of users who engaged with your site or app.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegment user_segment = 2; + */ + com.google.analytics.data.v1alpha.UserSegmentOrBuilder getUserSegmentOrBuilder(); + + /** + * + * + *
+   * Session segments are subsets of the sessions that occurred on your site
+   * or app.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; + * + * @return Whether the sessionSegment field is set. + */ + boolean hasSessionSegment(); + /** + * + * + *
+   * Session segments are subsets of the sessions that occurred on your site
+   * or app.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; + * + * @return The sessionSegment. + */ + com.google.analytics.data.v1alpha.SessionSegment getSessionSegment(); + /** + * + * + *
+   * Session segments are subsets of the sessions that occurred on your site
+   * or app.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; + */ + com.google.analytics.data.v1alpha.SessionSegmentOrBuilder getSessionSegmentOrBuilder(); + + /** + * + * + *
+   * Event segments are subsets of events that were triggered on your site or
+   * app.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegment event_segment = 4; + * + * @return Whether the eventSegment field is set. + */ + boolean hasEventSegment(); + /** + * + * + *
+   * Event segments are subsets of events that were triggered on your site or
+   * app.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegment event_segment = 4; + * + * @return The eventSegment. + */ + com.google.analytics.data.v1alpha.EventSegment getEventSegment(); + /** + * + * + *
+   * Event segments are subsets of events that were triggered on your site or
+   * app.
+   * 
+ * + * .google.analytics.data.v1alpha.EventSegment event_segment = 4; + */ + com.google.analytics.data.v1alpha.EventSegmentOrBuilder getEventSegmentOrBuilder(); + + public com.google.analytics.data.v1alpha.Segment.OneSegmentScopeCase getOneSegmentScopeCase(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilter.java new file mode 100644 index 00000000..7016948b --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilter.java @@ -0,0 +1,2723 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * An expression to filter parameter values in a segment.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentParameterFilter} + */ +public final class SegmentParameterFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentParameterFilter) + SegmentParameterFilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use SegmentParameterFilter.newBuilder() to construct. + private SegmentParameterFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SegmentParameterFilter() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SegmentParameterFilter(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SegmentParameterFilter( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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(); + oneParameterCase_ = 1; + oneParameter_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + oneParameterCase_ = 2; + oneParameter_ = s; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.StringFilter.Builder subBuilder = null; + if (oneFilterCase_ == 4) { + subBuilder = + ((com.google.analytics.data.v1alpha.StringFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.StringFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 4; + break; + } + case 42: + { + com.google.analytics.data.v1alpha.InListFilter.Builder subBuilder = null; + if (oneFilterCase_ == 5) { + subBuilder = + ((com.google.analytics.data.v1alpha.InListFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.InListFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 5; + break; + } + case 50: + { + com.google.analytics.data.v1alpha.NumericFilter.Builder subBuilder = null; + if (oneFilterCase_ == 6) { + subBuilder = + ((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.NumericFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 6; + break; + } + case 58: + { + com.google.analytics.data.v1alpha.BetweenFilter.Builder subBuilder = null; + if (oneFilterCase_ == 7) { + subBuilder = + ((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_).toBuilder(); + } + oneFilter_ = + input.readMessage( + com.google.analytics.data.v1alpha.BetweenFilter.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); + oneFilter_ = subBuilder.buildPartial(); + } + oneFilterCase_ = 7; + break; + } + case 66: + { + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.Builder subBuilder = + null; + if (filterScoping_ != null) { + subBuilder = filterScoping_.toBuilder(); + } + filterScoping_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(filterScoping_); + filterScoping_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentParameterFilter.class, + com.google.analytics.data.v1alpha.SegmentParameterFilter.Builder.class); + } + + private int oneParameterCase_ = 0; + private java.lang.Object oneParameter_; + + public enum OneParameterCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EVENT_PARAMETER_NAME(1), + ITEM_PARAMETER_NAME(2), + ONEPARAMETER_NOT_SET(0); + private final int value; + + private OneParameterCase(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 OneParameterCase valueOf(int value) { + return forNumber(value); + } + + public static OneParameterCase forNumber(int value) { + switch (value) { + case 1: + return EVENT_PARAMETER_NAME; + case 2: + return ITEM_PARAMETER_NAME; + case 0: + return ONEPARAMETER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public OneParameterCase getOneParameterCase() { + return OneParameterCase.forNumber(oneParameterCase_); + } + + 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(4), + IN_LIST_FILTER(5), + NUMERIC_FILTER(6), + BETWEEN_FILTER(7), + 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 4: + return STRING_FILTER; + case 5: + return IN_LIST_FILTER; + case 6: + return NUMERIC_FILTER; + case 7: + 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 EVENT_PARAMETER_NAME_FIELD_NUMBER = 1; + /** + * + * + *
+   * This filter will be evaluated on the specified event parameter. Event
+   * parameters are logged as parameters of the event. Event parameters
+   * include fields like "firebase_screen" & "currency".
+   * Event parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * 
+ * + * string event_parameter_name = 1; + * + * @return Whether the eventParameterName field is set. + */ + public boolean hasEventParameterName() { + return oneParameterCase_ == 1; + } + /** + * + * + *
+   * This filter will be evaluated on the specified event parameter. Event
+   * parameters are logged as parameters of the event. Event parameters
+   * include fields like "firebase_screen" & "currency".
+   * Event parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * 
+ * + * string event_parameter_name = 1; + * + * @return The eventParameterName. + */ + public java.lang.String getEventParameterName() { + java.lang.Object ref = ""; + if (oneParameterCase_ == 1) { + ref = oneParameter_; + } + if (ref instanceof java.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 (oneParameterCase_ == 1) { + oneParameter_ = s; + } + return s; + } + } + /** + * + * + *
+   * This filter will be evaluated on the specified event parameter. Event
+   * parameters are logged as parameters of the event. Event parameters
+   * include fields like "firebase_screen" & "currency".
+   * Event parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * 
+ * + * string event_parameter_name = 1; + * + * @return The bytes for eventParameterName. + */ + public com.google.protobuf.ByteString getEventParameterNameBytes() { + java.lang.Object ref = ""; + if (oneParameterCase_ == 1) { + ref = oneParameter_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (oneParameterCase_ == 1) { + oneParameter_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ITEM_PARAMETER_NAME_FIELD_NUMBER = 2; + /** + * + * + *
+   * This filter will be evaluated on the specified item parameter. Item
+   * parameters are logged as parameters in the item array. Item parameters
+   * include fields like "item_name" & "item_category".
+   * Item parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * Item parameters are only available in ecommerce events. To learn more
+   * about ecommerce events, see the [Measure ecommerce]
+   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+   * guide.
+   * 
+ * + * string item_parameter_name = 2; + * + * @return Whether the itemParameterName field is set. + */ + public boolean hasItemParameterName() { + return oneParameterCase_ == 2; + } + /** + * + * + *
+   * This filter will be evaluated on the specified item parameter. Item
+   * parameters are logged as parameters in the item array. Item parameters
+   * include fields like "item_name" & "item_category".
+   * Item parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * Item parameters are only available in ecommerce events. To learn more
+   * about ecommerce events, see the [Measure ecommerce]
+   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+   * guide.
+   * 
+ * + * string item_parameter_name = 2; + * + * @return The itemParameterName. + */ + public java.lang.String getItemParameterName() { + java.lang.Object ref = ""; + if (oneParameterCase_ == 2) { + ref = oneParameter_; + } + if (ref instanceof java.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 (oneParameterCase_ == 2) { + oneParameter_ = s; + } + return s; + } + } + /** + * + * + *
+   * This filter will be evaluated on the specified item parameter. Item
+   * parameters are logged as parameters in the item array. Item parameters
+   * include fields like "item_name" & "item_category".
+   * Item parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * Item parameters are only available in ecommerce events. To learn more
+   * about ecommerce events, see the [Measure ecommerce]
+   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+   * guide.
+   * 
+ * + * string item_parameter_name = 2; + * + * @return The bytes for itemParameterName. + */ + public com.google.protobuf.ByteString getItemParameterNameBytes() { + java.lang.Object ref = ""; + if (oneParameterCase_ == 2) { + ref = oneParameter_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (oneParameterCase_ == 2) { + oneParameter_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STRING_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + + public static final int IN_LIST_FILTER_FIELD_NUMBER = 5; + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + + public static final int NUMERIC_FILTER_FIELD_NUMBER = 6; + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 6; + } + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + + public static final int BETWEEN_FILTER_FIELD_NUMBER = 7; + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 7; + } + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { + if (oneFilterCase_ == 7) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { + if (oneFilterCase_ == 7) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + + public static final int FILTER_SCOPING_FIELD_NUMBER = 8; + private com.google.analytics.data.v1alpha.SegmentParameterFilterScoping filterScoping_; + /** + * + * + *
+   * Specifies the scope for the filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; + * + * @return Whether the filterScoping field is set. + */ + @java.lang.Override + public boolean hasFilterScoping() { + return filterScoping_ != null; + } + /** + * + * + *
+   * Specifies the scope for the filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; + * + * @return The filterScoping. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterScoping getFilterScoping() { + return filterScoping_ == null + ? com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.getDefaultInstance() + : filterScoping_; + } + /** + * + * + *
+   * Specifies the scope for the filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterScopingOrBuilder + getFilterScopingOrBuilder() { + return getFilterScoping(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (oneParameterCase_ == 1) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oneParameter_); + } + if (oneParameterCase_ == 2) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, oneParameter_); + } + if (oneFilterCase_ == 4) { + output.writeMessage(4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + } + if (oneFilterCase_ == 5) { + output.writeMessage(5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + } + if (oneFilterCase_ == 6) { + output.writeMessage(6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + } + if (oneFilterCase_ == 7) { + output.writeMessage(7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); + } + if (filterScoping_ != null) { + output.writeMessage(8, getFilterScoping()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (oneParameterCase_ == 1) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, oneParameter_); + } + if (oneParameterCase_ == 2) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, oneParameter_); + } + if (oneFilterCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); + } + if (oneFilterCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); + } + if (oneFilterCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); + } + if (oneFilterCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); + } + if (filterScoping_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFilterScoping()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.SegmentParameterFilter)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.SegmentParameterFilter other = + (com.google.analytics.data.v1alpha.SegmentParameterFilter) obj; + + if (hasFilterScoping() != other.hasFilterScoping()) return false; + if (hasFilterScoping()) { + if (!getFilterScoping().equals(other.getFilterScoping())) return false; + } + if (!getOneParameterCase().equals(other.getOneParameterCase())) return false; + switch (oneParameterCase_) { + case 1: + if (!getEventParameterName().equals(other.getEventParameterName())) return false; + break; + case 2: + if (!getItemParameterName().equals(other.getItemParameterName())) return false; + break; + case 0: + default: + } + if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; + switch (oneFilterCase_) { + case 4: + if (!getStringFilter().equals(other.getStringFilter())) return false; + break; + case 5: + if (!getInListFilter().equals(other.getInListFilter())) return false; + break; + case 6: + if (!getNumericFilter().equals(other.getNumericFilter())) return false; + break; + case 7: + 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(); + if (hasFilterScoping()) { + hash = (37 * hash) + FILTER_SCOPING_FIELD_NUMBER; + hash = (53 * hash) + getFilterScoping().hashCode(); + } + switch (oneParameterCase_) { + case 1: + hash = (37 * hash) + EVENT_PARAMETER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEventParameterName().hashCode(); + break; + case 2: + hash = (37 * hash) + ITEM_PARAMETER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getItemParameterName().hashCode(); + break; + case 0: + default: + } + switch (oneFilterCase_) { + case 4: + hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getStringFilter().hashCode(); + break; + case 5: + hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getInListFilter().hashCode(); + break; + case 6: + hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getNumericFilter().hashCode(); + break; + case 7: + 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.v1alpha.SegmentParameterFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilter 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.v1alpha.SegmentParameterFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilter parseFrom( + 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.v1alpha.SegmentParameterFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilter parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilter parseFrom( + java.io.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.v1alpha.SegmentParameterFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilter parseDelimitedFrom( + java.io.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.v1alpha.SegmentParameterFilter parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.SegmentParameterFilter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 parameter values in a segment.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentParameterFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentParameterFilter) + com.google.analytics.data.v1alpha.SegmentParameterFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentParameterFilter.class, + com.google.analytics.data.v1alpha.SegmentParameterFilter.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.SegmentParameterFilter.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 (filterScopingBuilder_ == null) { + filterScoping_ = null; + } else { + filterScoping_ = null; + filterScopingBuilder_ = null; + } + oneParameterCase_ = 0; + oneParameter_ = null; + oneFilterCase_ = 0; + oneFilter_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilter getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.SegmentParameterFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilter build() { + com.google.analytics.data.v1alpha.SegmentParameterFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilter buildPartial() { + com.google.analytics.data.v1alpha.SegmentParameterFilter result = + new com.google.analytics.data.v1alpha.SegmentParameterFilter(this); + if (oneParameterCase_ == 1) { + result.oneParameter_ = oneParameter_; + } + if (oneParameterCase_ == 2) { + result.oneParameter_ = oneParameter_; + } + if (oneFilterCase_ == 4) { + if (stringFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = stringFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 5) { + if (inListFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = inListFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 6) { + if (numericFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = numericFilterBuilder_.build(); + } + } + if (oneFilterCase_ == 7) { + if (betweenFilterBuilder_ == null) { + result.oneFilter_ = oneFilter_; + } else { + result.oneFilter_ = betweenFilterBuilder_.build(); + } + } + if (filterScopingBuilder_ == null) { + result.filterScoping_ = filterScoping_; + } else { + result.filterScoping_ = filterScopingBuilder_.build(); + } + result.oneParameterCase_ = oneParameterCase_; + 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.v1alpha.SegmentParameterFilter) { + return mergeFrom((com.google.analytics.data.v1alpha.SegmentParameterFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentParameterFilter other) { + if (other == com.google.analytics.data.v1alpha.SegmentParameterFilter.getDefaultInstance()) + return this; + if (other.hasFilterScoping()) { + mergeFilterScoping(other.getFilterScoping()); + } + switch (other.getOneParameterCase()) { + case EVENT_PARAMETER_NAME: + { + oneParameterCase_ = 1; + oneParameter_ = other.oneParameter_; + onChanged(); + break; + } + case ITEM_PARAMETER_NAME: + { + oneParameterCase_ = 2; + oneParameter_ = other.oneParameter_; + onChanged(); + break; + } + case ONEPARAMETER_NOT_SET: + { + break; + } + } + 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.v1alpha.SegmentParameterFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.SegmentParameterFilter) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int oneParameterCase_ = 0; + private java.lang.Object oneParameter_; + + public OneParameterCase getOneParameterCase() { + return OneParameterCase.forNumber(oneParameterCase_); + } + + public Builder clearOneParameter() { + oneParameterCase_ = 0; + oneParameter_ = null; + onChanged(); + 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; + } + + /** + * + * + *
+     * This filter will be evaluated on the specified event parameter. Event
+     * parameters are logged as parameters of the event. Event parameters
+     * include fields like "firebase_screen" & "currency".
+     * Event parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * 
+ * + * string event_parameter_name = 1; + * + * @return Whether the eventParameterName field is set. + */ + @java.lang.Override + public boolean hasEventParameterName() { + return oneParameterCase_ == 1; + } + /** + * + * + *
+     * This filter will be evaluated on the specified event parameter. Event
+     * parameters are logged as parameters of the event. Event parameters
+     * include fields like "firebase_screen" & "currency".
+     * Event parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * 
+ * + * string event_parameter_name = 1; + * + * @return The eventParameterName. + */ + @java.lang.Override + public java.lang.String getEventParameterName() { + java.lang.Object ref = ""; + if (oneParameterCase_ == 1) { + ref = oneParameter_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (oneParameterCase_ == 1) { + oneParameter_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This filter will be evaluated on the specified event parameter. Event
+     * parameters are logged as parameters of the event. Event parameters
+     * include fields like "firebase_screen" & "currency".
+     * Event parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * 
+ * + * string event_parameter_name = 1; + * + * @return The bytes for eventParameterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventParameterNameBytes() { + java.lang.Object ref = ""; + if (oneParameterCase_ == 1) { + ref = oneParameter_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (oneParameterCase_ == 1) { + oneParameter_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This filter will be evaluated on the specified event parameter. Event
+     * parameters are logged as parameters of the event. Event parameters
+     * include fields like "firebase_screen" & "currency".
+     * Event parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * 
+ * + * string event_parameter_name = 1; + * + * @param value The eventParameterName to set. + * @return This builder for chaining. + */ + public Builder setEventParameterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oneParameterCase_ = 1; + oneParameter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This filter will be evaluated on the specified event parameter. Event
+     * parameters are logged as parameters of the event. Event parameters
+     * include fields like "firebase_screen" & "currency".
+     * Event parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * 
+ * + * string event_parameter_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearEventParameterName() { + if (oneParameterCase_ == 1) { + oneParameterCase_ = 0; + oneParameter_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * This filter will be evaluated on the specified event parameter. Event
+     * parameters are logged as parameters of the event. Event parameters
+     * include fields like "firebase_screen" & "currency".
+     * Event parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * 
+ * + * string event_parameter_name = 1; + * + * @param value The bytes for eventParameterName to set. + * @return This builder for chaining. + */ + public Builder setEventParameterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + oneParameterCase_ = 1; + oneParameter_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * This filter will be evaluated on the specified item parameter. Item
+     * parameters are logged as parameters in the item array. Item parameters
+     * include fields like "item_name" & "item_category".
+     * Item parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * Item parameters are only available in ecommerce events. To learn more
+     * about ecommerce events, see the [Measure ecommerce]
+     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+     * guide.
+     * 
+ * + * string item_parameter_name = 2; + * + * @return Whether the itemParameterName field is set. + */ + @java.lang.Override + public boolean hasItemParameterName() { + return oneParameterCase_ == 2; + } + /** + * + * + *
+     * This filter will be evaluated on the specified item parameter. Item
+     * parameters are logged as parameters in the item array. Item parameters
+     * include fields like "item_name" & "item_category".
+     * Item parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * Item parameters are only available in ecommerce events. To learn more
+     * about ecommerce events, see the [Measure ecommerce]
+     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+     * guide.
+     * 
+ * + * string item_parameter_name = 2; + * + * @return The itemParameterName. + */ + @java.lang.Override + public java.lang.String getItemParameterName() { + java.lang.Object ref = ""; + if (oneParameterCase_ == 2) { + ref = oneParameter_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (oneParameterCase_ == 2) { + oneParameter_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * This filter will be evaluated on the specified item parameter. Item
+     * parameters are logged as parameters in the item array. Item parameters
+     * include fields like "item_name" & "item_category".
+     * Item parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * Item parameters are only available in ecommerce events. To learn more
+     * about ecommerce events, see the [Measure ecommerce]
+     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+     * guide.
+     * 
+ * + * string item_parameter_name = 2; + * + * @return The bytes for itemParameterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getItemParameterNameBytes() { + java.lang.Object ref = ""; + if (oneParameterCase_ == 2) { + ref = oneParameter_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (oneParameterCase_ == 2) { + oneParameter_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * This filter will be evaluated on the specified item parameter. Item
+     * parameters are logged as parameters in the item array. Item parameters
+     * include fields like "item_name" & "item_category".
+     * Item parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * Item parameters are only available in ecommerce events. To learn more
+     * about ecommerce events, see the [Measure ecommerce]
+     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+     * guide.
+     * 
+ * + * string item_parameter_name = 2; + * + * @param value The itemParameterName to set. + * @return This builder for chaining. + */ + public Builder setItemParameterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + oneParameterCase_ = 2; + oneParameter_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This filter will be evaluated on the specified item parameter. Item
+     * parameters are logged as parameters in the item array. Item parameters
+     * include fields like "item_name" & "item_category".
+     * Item parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * Item parameters are only available in ecommerce events. To learn more
+     * about ecommerce events, see the [Measure ecommerce]
+     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+     * guide.
+     * 
+ * + * string item_parameter_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearItemParameterName() { + if (oneParameterCase_ == 2) { + oneParameterCase_ = 0; + oneParameter_ = null; + onChanged(); + } + return this; + } + /** + * + * + *
+     * This filter will be evaluated on the specified item parameter. Item
+     * parameters are logged as parameters in the item array. Item parameters
+     * include fields like "item_name" & "item_category".
+     * Item parameters can only be used in segments & funnels and can only be
+     * used in a descendent filter from an EventFilter. In a descendent filter
+     * from an EventFilter either event or item parameters should be used.
+     * Item parameters are only available in ecommerce events. To learn more
+     * about ecommerce events, see the [Measure ecommerce]
+     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+     * guide.
+     * 
+ * + * string item_parameter_name = 2; + * + * @param value The bytes for itemParameterName to set. + * @return This builder for chaining. + */ + public Builder setItemParameterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + oneParameterCase_ = 2; + oneParameter_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.StringFilter, + com.google.analytics.data.v1alpha.StringFilter.Builder, + com.google.analytics.data.v1alpha.StringFilterOrBuilder> + stringFilterBuilder_; + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return Whether the stringFilter field is set. + */ + @java.lang.Override + public boolean hasStringFilter() { + return oneFilterCase_ == 4; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return The stringFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 4) { + return stringFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public Builder setStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + stringFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public Builder setStringFilter( + com.google.analytics.data.v1alpha.StringFilter.Builder builderForValue) { + if (stringFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + stringFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public Builder mergeStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 4 + && oneFilter_ != com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.StringFilter.newBuilder( + (com.google.analytics.data.v1alpha.StringFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 4) { + stringFilterBuilder_.mergeFrom(value); + } else { + stringFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 4; + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public Builder clearStringFilter() { + if (stringFilterBuilder_ == null) { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 4) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + stringFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + public com.google.analytics.data.v1alpha.StringFilter.Builder getStringFilterBuilder() { + return getStringFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { + if ((oneFilterCase_ == 4) && (stringFilterBuilder_ != null)) { + return stringFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 4) { + return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * Strings related filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.StringFilter, + com.google.analytics.data.v1alpha.StringFilter.Builder, + com.google.analytics.data.v1alpha.StringFilterOrBuilder> + getStringFilterFieldBuilder() { + if (stringFilterBuilder_ == null) { + if (!(oneFilterCase_ == 4)) { + oneFilter_ = com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + stringFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.StringFilter, + com.google.analytics.data.v1alpha.StringFilter.Builder, + com.google.analytics.data.v1alpha.StringFilterOrBuilder>( + (com.google.analytics.data.v1alpha.StringFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 4; + onChanged(); + ; + return stringFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.InListFilter, + com.google.analytics.data.v1alpha.InListFilter.Builder, + com.google.analytics.data.v1alpha.InListFilterOrBuilder> + inListFilterBuilder_; + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return Whether the inListFilter field is set. + */ + @java.lang.Override + public boolean hasInListFilter() { + return oneFilterCase_ == 5; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return The inListFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 5) { + return inListFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public Builder setInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + inListFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public Builder setInListFilter( + com.google.analytics.data.v1alpha.InListFilter.Builder builderForValue) { + if (inListFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + inListFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public Builder mergeInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 5 + && oneFilter_ != com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.InListFilter.newBuilder( + (com.google.analytics.data.v1alpha.InListFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 5) { + inListFilterBuilder_.mergeFrom(value); + } else { + inListFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 5; + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public Builder clearInListFilter() { + if (inListFilterBuilder_ == null) { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 5) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + inListFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + public com.google.analytics.data.v1alpha.InListFilter.Builder getInListFilterBuilder() { + return getInListFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { + if ((oneFilterCase_ == 5) && (inListFilterBuilder_ != null)) { + return inListFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 5) { + return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for in list values.
+     * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.InListFilter, + com.google.analytics.data.v1alpha.InListFilter.Builder, + com.google.analytics.data.v1alpha.InListFilterOrBuilder> + getInListFilterFieldBuilder() { + if (inListFilterBuilder_ == null) { + if (!(oneFilterCase_ == 5)) { + oneFilter_ = com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); + } + inListFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.InListFilter, + com.google.analytics.data.v1alpha.InListFilter.Builder, + com.google.analytics.data.v1alpha.InListFilterOrBuilder>( + (com.google.analytics.data.v1alpha.InListFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 5; + onChanged(); + ; + return inListFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericFilter, + com.google.analytics.data.v1alpha.NumericFilter.Builder, + com.google.analytics.data.v1alpha.NumericFilterOrBuilder> + numericFilterBuilder_; + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return Whether the numericFilter field is set. + */ + @java.lang.Override + public boolean hasNumericFilter() { + return oneFilterCase_ == 6; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return The numericFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 6) { + return numericFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public Builder setNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { + if (numericFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + numericFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 6; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public Builder setNumericFilter( + com.google.analytics.data.v1alpha.NumericFilter.Builder builderForValue) { + if (numericFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + numericFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 6; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public Builder mergeNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 6 + && oneFilter_ != com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.NumericFilter.newBuilder( + (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 6) { + numericFilterBuilder_.mergeFrom(value); + } else { + numericFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 6; + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public Builder clearNumericFilter() { + if (numericFilterBuilder_ == null) { + if (oneFilterCase_ == 6) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 6) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + numericFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + public com.google.analytics.data.v1alpha.NumericFilter.Builder getNumericFilterBuilder() { + return getNumericFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { + if ((oneFilterCase_ == 6) && (numericFilterBuilder_ != null)) { + return numericFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 6) { + return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for numeric or date values.
+     * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericFilter, + com.google.analytics.data.v1alpha.NumericFilter.Builder, + com.google.analytics.data.v1alpha.NumericFilterOrBuilder> + getNumericFilterFieldBuilder() { + if (numericFilterBuilder_ == null) { + if (!(oneFilterCase_ == 6)) { + oneFilter_ = com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); + } + numericFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.NumericFilter, + com.google.analytics.data.v1alpha.NumericFilter.Builder, + com.google.analytics.data.v1alpha.NumericFilterOrBuilder>( + (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 6; + onChanged(); + ; + return numericFilterBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.BetweenFilter, + com.google.analytics.data.v1alpha.BetweenFilter.Builder, + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> + betweenFilterBuilder_; + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return Whether the betweenFilter field is set. + */ + @java.lang.Override + public boolean hasBetweenFilter() { + return oneFilterCase_ == 7; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return The betweenFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 7) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } else { + if (oneFilterCase_ == 7) { + return betweenFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public Builder setBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + oneFilter_ = value; + onChanged(); + } else { + betweenFilterBuilder_.setMessage(value); + } + oneFilterCase_ = 7; + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public Builder setBetweenFilter( + com.google.analytics.data.v1alpha.BetweenFilter.Builder builderForValue) { + if (betweenFilterBuilder_ == null) { + oneFilter_ = builderForValue.build(); + onChanged(); + } else { + betweenFilterBuilder_.setMessage(builderForValue.build()); + } + oneFilterCase_ = 7; + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public Builder mergeBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 7 + && oneFilter_ != com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance()) { + oneFilter_ = + com.google.analytics.data.v1alpha.BetweenFilter.newBuilder( + (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_) + .mergeFrom(value) + .buildPartial(); + } else { + oneFilter_ = value; + } + onChanged(); + } else { + if (oneFilterCase_ == 7) { + betweenFilterBuilder_.mergeFrom(value); + } else { + betweenFilterBuilder_.setMessage(value); + } + } + oneFilterCase_ = 7; + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public Builder clearBetweenFilter() { + if (betweenFilterBuilder_ == null) { + if (oneFilterCase_ == 7) { + oneFilterCase_ = 0; + oneFilter_ = null; + onChanged(); + } + } else { + if (oneFilterCase_ == 7) { + oneFilterCase_ = 0; + oneFilter_ = null; + } + betweenFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + public com.google.analytics.data.v1alpha.BetweenFilter.Builder getBetweenFilterBuilder() { + return getBetweenFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { + if ((oneFilterCase_ == 7) && (betweenFilterBuilder_ != null)) { + return betweenFilterBuilder_.getMessageOrBuilder(); + } else { + if (oneFilterCase_ == 7) { + return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; + } + return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A filter for between two values.
+     * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.BetweenFilter, + com.google.analytics.data.v1alpha.BetweenFilter.Builder, + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> + getBetweenFilterFieldBuilder() { + if (betweenFilterBuilder_ == null) { + if (!(oneFilterCase_ == 7)) { + oneFilter_ = com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); + } + betweenFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.BetweenFilter, + com.google.analytics.data.v1alpha.BetweenFilter.Builder, + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>( + (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_, + getParentForChildren(), + isClean()); + oneFilter_ = null; + } + oneFilterCase_ = 7; + onChanged(); + ; + return betweenFilterBuilder_; + } + + private com.google.analytics.data.v1alpha.SegmentParameterFilterScoping filterScoping_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping, + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterScopingOrBuilder> + filterScopingBuilder_; + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; + * + * @return Whether the filterScoping field is set. + */ + public boolean hasFilterScoping() { + return filterScopingBuilder_ != null || filterScoping_ != null; + } + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; + * + * @return The filterScoping. + */ + public com.google.analytics.data.v1alpha.SegmentParameterFilterScoping getFilterScoping() { + if (filterScopingBuilder_ == null) { + return filterScoping_ == null + ? com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.getDefaultInstance() + : filterScoping_; + } else { + return filterScopingBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; + */ + public Builder setFilterScoping( + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping value) { + if (filterScopingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filterScoping_ = value; + onChanged(); + } else { + filterScopingBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; + */ + public Builder setFilterScoping( + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.Builder builderForValue) { + if (filterScopingBuilder_ == null) { + filterScoping_ = builderForValue.build(); + onChanged(); + } else { + filterScopingBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; + */ + public Builder mergeFilterScoping( + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping value) { + if (filterScopingBuilder_ == null) { + if (filterScoping_ != null) { + filterScoping_ = + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.newBuilder( + filterScoping_) + .mergeFrom(value) + .buildPartial(); + } else { + filterScoping_ = value; + } + onChanged(); + } else { + filterScopingBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; + */ + public Builder clearFilterScoping() { + if (filterScopingBuilder_ == null) { + filterScoping_ = null; + onChanged(); + } else { + filterScoping_ = null; + filterScopingBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; + */ + public com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.Builder + getFilterScopingBuilder() { + + onChanged(); + return getFilterScopingFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; + */ + public com.google.analytics.data.v1alpha.SegmentParameterFilterScopingOrBuilder + getFilterScopingOrBuilder() { + if (filterScopingBuilder_ != null) { + return filterScopingBuilder_.getMessageOrBuilder(); + } else { + return filterScoping_ == null + ? com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.getDefaultInstance() + : filterScoping_; + } + } + /** + * + * + *
+     * Specifies the scope for the filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping, + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterScopingOrBuilder> + getFilterScopingFieldBuilder() { + if (filterScopingBuilder_ == null) { + filterScopingBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping, + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterScopingOrBuilder>( + getFilterScoping(), getParentForChildren(), isClean()); + filterScoping_ = null; + } + return filterScopingBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.SegmentParameterFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentParameterFilter) + private static final com.google.analytics.data.v1alpha.SegmentParameterFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentParameterFilter(); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SegmentParameterFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SegmentParameterFilter(input, extensionRegistry); + } + }; + + public static 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.v1alpha.SegmentParameterFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpression.java new file mode 100644 index 00000000..a1160cd0 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpression.java @@ -0,0 +1,1912 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Expresses combinations of segment filter on parameters.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentParameterFilterExpression} + */ +public final class SegmentParameterFilterExpression extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentParameterFilterExpression) + SegmentParameterFilterExpressionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SegmentParameterFilterExpression.newBuilder() to construct. + private SegmentParameterFilterExpression( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SegmentParameterFilterExpression() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SegmentParameterFilterExpression(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SegmentParameterFilterExpression( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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.v1alpha.SegmentParameterFilterExpressionList.Builder + subBuilder = null; + if (exprCase_ == 1) { + subBuilder = + ((com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 1; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder + subBuilder = null; + if (exprCase_ == 2) { + subBuilder = + ((com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 2; + break; + } + case 26: + { + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder + subBuilder = null; + if (exprCase_ == 3) { + subBuilder = + ((com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_) + .toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_); + expr_ = subBuilder.buildPartial(); + } + exprCase_ = 3; + break; + } + case 34: + { + com.google.analytics.data.v1alpha.SegmentParameterFilter.Builder subBuilder = null; + if (exprCase_ == 4) { + subBuilder = + ((com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_).toBuilder(); + } + expr_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentParameterFilter.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.data.v1alpha.SegmentParameterFilter) 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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.class, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.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), + SEGMENT_PARAMETER_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 SEGMENT_PARAMETER_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 SegmentParameterFilterExpression in `andGroup` have an AND
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+   * The SegmentParameterFilterExpression in `andGroup` have an AND
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList getAndGroup() { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .getDefaultInstance(); + } + /** + * + * + *
+   * The SegmentParameterFilterExpression in `andGroup` have an AND
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .getDefaultInstance(); + } + + public static final int OR_GROUP_FIELD_NUMBER = 2; + /** + * + * + *
+   * The SegmentParameterFilterExpression in `orGroup` have an OR
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 2; + } + /** + * + * + *
+   * The SegmentParameterFilterExpression in `orGroup` have an OR
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList getOrGroup() { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .getDefaultInstance(); + } + /** + * + * + *
+   * The SegmentParameterFilterExpression in `orGroup` have an OR
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .getDefaultInstance(); + } + + public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; + /** + * + * + *
+   * The SegmentParameterFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; + * + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 3; + } + /** + * + * + *
+   * The SegmentParameterFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; + * + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression getNotExpression() { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.getDefaultInstance(); + } + /** + * + * + *
+   * The SegmentParameterFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.getDefaultInstance(); + } + + public static final int SEGMENT_PARAMETER_FILTER_FIELD_NUMBER = 4; + /** + * + * + *
+   * A primitive segment parameter filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; + * + * + * @return Whether the segmentParameterFilter field is set. + */ + @java.lang.Override + public boolean hasSegmentParameterFilter() { + return exprCase_ == 4; + } + /** + * + * + *
+   * A primitive segment parameter filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; + * + * + * @return The segmentParameterFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilter getSegmentParameterFilter() { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_; + } + return com.google.analytics.data.v1alpha.SegmentParameterFilter.getDefaultInstance(); + } + /** + * + * + *
+   * A primitive segment parameter filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterOrBuilder + getSegmentParameterFilterOrBuilder() { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_; + } + return com.google.analytics.data.v1alpha.SegmentParameterFilter.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.v1alpha.SegmentParameterFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + output.writeMessage( + 2, (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_); + } + if (exprCase_ == 3) { + output.writeMessage( + 3, (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_); + } + if (exprCase_ == 4) { + output.writeMessage(4, (com.google.analytics.data.v1alpha.SegmentParameterFilter) 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.v1alpha.SegmentParameterFilterExpressionList) expr_); + } + if (exprCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_); + } + if (exprCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_); + } + if (exprCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.data.v1alpha.SegmentParameterFilter) 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.v1alpha.SegmentParameterFilterExpression)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression other = + (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) 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 (!getSegmentParameterFilter().equals(other.getSegmentParameterFilter())) 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) + SEGMENT_PARAMETER_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getSegmentParameterFilter().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression 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.v1alpha.SegmentParameterFilterExpression parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression parseFrom( + 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.v1alpha.SegmentParameterFilterExpression parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression parseFrom( + java.io.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.v1alpha.SegmentParameterFilterExpression + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + parseDelimitedFrom( + java.io.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.v1alpha.SegmentParameterFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.SegmentParameterFilterExpression prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Expresses combinations of segment filter on parameters.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentParameterFilterExpression} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentParameterFilterExpression) + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.class, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder.class); + } + + // Construct using + // com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression build() { + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression buildPartial() { + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression result = + new com.google.analytics.data.v1alpha.SegmentParameterFilterExpression(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 (segmentParameterFilterBuilder_ == null) { + result.expr_ = expr_; + } else { + result.expr_ = segmentParameterFilterBuilder_.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.v1alpha.SegmentParameterFilterExpression) { + return mergeFrom( + (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression other) { + if (other + == com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + .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 SEGMENT_PARAMETER_FILTER: + { + mergeSegmentParameterFilter(other.getSegmentParameterFilter()); + 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.v1alpha.SegmentParameterFilterExpression parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) + 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.v1alpha.SegmentParameterFilterExpressionList, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder> + andGroupBuilder_; + /** + * + * + *
+     * The SegmentParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; + * + * + * @return Whether the andGroup field is set. + */ + @java.lang.Override + public boolean hasAndGroup() { + return exprCase_ == 1; + } + /** + * + * + *
+     * The SegmentParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; + * + * + * @return The andGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList getAndGroup() { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .getDefaultInstance(); + } else { + if (exprCase_ == 1) { + return andGroupBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The SegmentParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; + * + */ + public Builder setAndGroup( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + andGroupBuilder_.setMessage(value); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * The SegmentParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; + * + */ + public Builder setAndGroup( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder + builderForValue) { + if (andGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + andGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * The SegmentParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; + * + */ + public Builder mergeAndGroup( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList value) { + if (andGroupBuilder_ == null) { + if (exprCase_ == 1 + && expr_ + != com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.newBuilder( + (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) + expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 1) { + andGroupBuilder_.mergeFrom(value); + } else { + andGroupBuilder_.setMessage(value); + } + } + exprCase_ = 1; + return this; + } + /** + * + * + *
+     * The SegmentParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList 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 SegmentParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; + * + */ + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder + getAndGroupBuilder() { + return getAndGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The SegmentParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder + getAndGroupOrBuilder() { + if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { + return andGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 1) { + return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The SegmentParameterFilterExpression in `andGroup` have an AND
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder> + getAndGroupFieldBuilder() { + if (andGroupBuilder_ == null) { + if (!(exprCase_ == 1)) { + expr_ = + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .getDefaultInstance(); + } + andGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder>( + (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 1; + onChanged(); + ; + return andGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder> + orGroupBuilder_; + /** + * + * + *
+     * The SegmentParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; + * + * + * @return Whether the orGroup field is set. + */ + @java.lang.Override + public boolean hasOrGroup() { + return exprCase_ == 2; + } + /** + * + * + *
+     * The SegmentParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; + * + * + * @return The orGroup. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList getOrGroup() { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .getDefaultInstance(); + } else { + if (exprCase_ == 2) { + return orGroupBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The SegmentParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; + * + */ + public Builder setOrGroup( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + orGroupBuilder_.setMessage(value); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * The SegmentParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; + * + */ + public Builder setOrGroup( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder + builderForValue) { + if (orGroupBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + orGroupBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * The SegmentParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; + * + */ + public Builder mergeOrGroup( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList value) { + if (orGroupBuilder_ == null) { + if (exprCase_ == 2 + && expr_ + != com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.newBuilder( + (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) + expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 2) { + orGroupBuilder_.mergeFrom(value); + } else { + orGroupBuilder_.setMessage(value); + } + } + exprCase_ = 2; + return this; + } + /** + * + * + *
+     * The SegmentParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList 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 SegmentParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; + * + */ + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder + getOrGroupBuilder() { + return getOrGroupFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The SegmentParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder + getOrGroupOrBuilder() { + if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { + return orGroupBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 2) { + return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_; + } + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The SegmentParameterFilterExpression in `orGroup` have an OR
+     * relationship.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder> + getOrGroupFieldBuilder() { + if (orGroupBuilder_ == null) { + if (!(exprCase_ == 2)) { + expr_ = + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .getDefaultInstance(); + } + orGroupBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder>( + (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 2; + onChanged(); + ; + return orGroupBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> + notExpressionBuilder_; + /** + * + * + *
+     * The SegmentParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; + * + * + * @return Whether the notExpression field is set. + */ + @java.lang.Override + public boolean hasNotExpression() { + return exprCase_ == 3; + } + /** + * + * + *
+     * The SegmentParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; + * + * + * @return The notExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression getNotExpression() { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + .getDefaultInstance(); + } else { + if (exprCase_ == 3) { + return notExpressionBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The SegmentParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; + * + */ + public Builder setNotExpression( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + notExpressionBuilder_.setMessage(value); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * The SegmentParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; + * + */ + public Builder setNotExpression( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder + builderForValue) { + if (notExpressionBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + notExpressionBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * The SegmentParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; + * + */ + public Builder mergeNotExpression( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression value) { + if (notExpressionBuilder_ == null) { + if (exprCase_ == 3 + && expr_ + != com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + .getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.newBuilder( + (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 3) { + notExpressionBuilder_.mergeFrom(value); + } else { + notExpressionBuilder_.setMessage(value); + } + } + exprCase_ = 3; + return this; + } + /** + * + * + *
+     * The SegmentParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpression 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 SegmentParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; + * + */ + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder + getNotExpressionBuilder() { + return getNotExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The SegmentParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder + getNotExpressionOrBuilder() { + if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { + return notExpressionBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 3) { + return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_; + } + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + .getDefaultInstance(); + } + } + /** + * + * + *
+     * The SegmentParameterFilterExpression is NOT of `notExpression`.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> + getNotExpressionFieldBuilder() { + if (notExpressionBuilder_ == null) { + if (!(exprCase_ == 3)) { + expr_ = + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + .getDefaultInstance(); + } + notExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder>( + (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 3; + onChanged(); + ; + return notExpressionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilter, + com.google.analytics.data.v1alpha.SegmentParameterFilter.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterOrBuilder> + segmentParameterFilterBuilder_; + /** + * + * + *
+     * A primitive segment parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; + * + * + * @return Whether the segmentParameterFilter field is set. + */ + @java.lang.Override + public boolean hasSegmentParameterFilter() { + return exprCase_ == 4; + } + /** + * + * + *
+     * A primitive segment parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; + * + * + * @return The segmentParameterFilter. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilter getSegmentParameterFilter() { + if (segmentParameterFilterBuilder_ == null) { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_; + } + return com.google.analytics.data.v1alpha.SegmentParameterFilter.getDefaultInstance(); + } else { + if (exprCase_ == 4) { + return segmentParameterFilterBuilder_.getMessage(); + } + return com.google.analytics.data.v1alpha.SegmentParameterFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A primitive segment parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; + * + */ + public Builder setSegmentParameterFilter( + com.google.analytics.data.v1alpha.SegmentParameterFilter value) { + if (segmentParameterFilterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expr_ = value; + onChanged(); + } else { + segmentParameterFilterBuilder_.setMessage(value); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive segment parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; + * + */ + public Builder setSegmentParameterFilter( + com.google.analytics.data.v1alpha.SegmentParameterFilter.Builder builderForValue) { + if (segmentParameterFilterBuilder_ == null) { + expr_ = builderForValue.build(); + onChanged(); + } else { + segmentParameterFilterBuilder_.setMessage(builderForValue.build()); + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive segment parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; + * + */ + public Builder mergeSegmentParameterFilter( + com.google.analytics.data.v1alpha.SegmentParameterFilter value) { + if (segmentParameterFilterBuilder_ == null) { + if (exprCase_ == 4 + && expr_ + != com.google.analytics.data.v1alpha.SegmentParameterFilter.getDefaultInstance()) { + expr_ = + com.google.analytics.data.v1alpha.SegmentParameterFilter.newBuilder( + (com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_) + .mergeFrom(value) + .buildPartial(); + } else { + expr_ = value; + } + onChanged(); + } else { + if (exprCase_ == 4) { + segmentParameterFilterBuilder_.mergeFrom(value); + } else { + segmentParameterFilterBuilder_.setMessage(value); + } + } + exprCase_ = 4; + return this; + } + /** + * + * + *
+     * A primitive segment parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; + * + */ + public Builder clearSegmentParameterFilter() { + if (segmentParameterFilterBuilder_ == null) { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + onChanged(); + } + } else { + if (exprCase_ == 4) { + exprCase_ = 0; + expr_ = null; + } + segmentParameterFilterBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A primitive segment parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; + * + */ + public com.google.analytics.data.v1alpha.SegmentParameterFilter.Builder + getSegmentParameterFilterBuilder() { + return getSegmentParameterFilterFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A primitive segment parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterOrBuilder + getSegmentParameterFilterOrBuilder() { + if ((exprCase_ == 4) && (segmentParameterFilterBuilder_ != null)) { + return segmentParameterFilterBuilder_.getMessageOrBuilder(); + } else { + if (exprCase_ == 4) { + return (com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_; + } + return com.google.analytics.data.v1alpha.SegmentParameterFilter.getDefaultInstance(); + } + } + /** + * + * + *
+     * A primitive segment parameter filter.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilter, + com.google.analytics.data.v1alpha.SegmentParameterFilter.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterOrBuilder> + getSegmentParameterFilterFieldBuilder() { + if (segmentParameterFilterBuilder_ == null) { + if (!(exprCase_ == 4)) { + expr_ = com.google.analytics.data.v1alpha.SegmentParameterFilter.getDefaultInstance(); + } + segmentParameterFilterBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilter, + com.google.analytics.data.v1alpha.SegmentParameterFilter.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterOrBuilder>( + (com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_, + getParentForChildren(), + isClean()); + expr_ = null; + } + exprCase_ = 4; + onChanged(); + ; + return segmentParameterFilterBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.SegmentParameterFilterExpression) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentParameterFilterExpression) + private static final com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentParameterFilterExpression(); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SegmentParameterFilterExpression parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SegmentParameterFilterExpression(input, extensionRegistry); + } + }; + + public static 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.v1alpha.SegmentParameterFilterExpression + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionList.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionList.java new file mode 100644 index 00000000..73967881 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionList.java @@ -0,0 +1,1041 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * A list of segment parameter filter expressions.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentParameterFilterExpressionList} + */ +public final class SegmentParameterFilterExpressionList + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) + SegmentParameterFilterExpressionListOrBuilder { + private static final long serialVersionUID = 0L; + // Use SegmentParameterFilterExpressionList.newBuilder() to construct. + private SegmentParameterFilterExpressionList( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SegmentParameterFilterExpressionList() { + expressions_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SegmentParameterFilterExpressionList(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SegmentParameterFilterExpressionList( + 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< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression>(); + mutable_bitField0_ |= 0x00000001; + } + expressions_.add( + input.readMessage( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + 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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.class, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder.class); + } + + public static final int EXPRESSIONS_FIELD_NUMBER = 1; + private java.util.List + expressions_; + /** + * + * + *
+   * The list of segment parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + @java.lang.Override + public java.util.List + getExpressionsList() { + return expressions_; + } + /** + * + * + *
+   * The list of segment parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> + getExpressionsOrBuilderList() { + return expressions_; + } + /** + * + * + *
+   * The list of segment parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + @java.lang.Override + public int getExpressionsCount() { + return expressions_.size(); + } + /** + * + * + *
+   * The list of segment parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression getExpressions( + int index) { + return expressions_.get(index); + } + /** + * + * + *
+   * The list of segment parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder + 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.v1alpha.SegmentParameterFilterExpressionList)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList other = + (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) 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.v1alpha.SegmentParameterFilterExpressionList parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList 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.v1alpha.SegmentParameterFilterExpressionList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList parseFrom( + 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.v1alpha.SegmentParameterFilterExpressionList parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList parseFrom( + java.io.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.v1alpha.SegmentParameterFilterExpressionList + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + parseDelimitedFrom( + java.io.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.v1alpha.SegmentParameterFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.SegmentParameterFilterExpressionList prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 segment parameter filter expressions.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentParameterFilterExpressionList} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.class, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder.class); + } + + // Construct using + // com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList build() { + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList buildPartial() { + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList result = + new com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList(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.v1alpha.SegmentParameterFilterExpressionList) { + return mergeFrom( + (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList other) { + if (other + == com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + .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.v1alpha.SegmentParameterFilterExpressionList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) + 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< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression>(expressions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> + expressionsBuilder_; + + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public java.util.List + getExpressionsList() { + if (expressionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(expressions_); + } else { + return expressionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public int getExpressionsCount() { + if (expressionsBuilder_ == null) { + return expressions_.size(); + } else { + return expressionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression getExpressions( + int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public Builder setExpressions( + int index, com.google.analytics.data.v1alpha.SegmentParameterFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.set(index, value); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public Builder setExpressions( + int index, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder + builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.set(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public Builder addExpressions( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(value); + onChanged(); + } else { + expressionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public Builder addExpressions( + int index, com.google.analytics.data.v1alpha.SegmentParameterFilterExpression value) { + if (expressionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureExpressionsIsMutable(); + expressions_.add(index, value); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public Builder addExpressions( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder + builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public Builder addExpressions( + int index, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder + builderForValue) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(index, builderForValue.build()); + onChanged(); + } else { + expressionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public Builder addAllExpressions( + java.lang.Iterable< + ? extends com.google.analytics.data.v1alpha.SegmentParameterFilterExpression> + values) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expressions_); + onChanged(); + } else { + expressionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public Builder clearExpressions() { + if (expressionsBuilder_ == null) { + expressions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + expressionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public Builder removeExpressions(int index) { + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.remove(index); + onChanged(); + } else { + expressionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder + getExpressionsBuilder(int index) { + return getExpressionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder + getExpressionsOrBuilder(int index) { + if (expressionsBuilder_ == null) { + return expressions_.get(index); + } else { + return expressionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> + getExpressionsOrBuilderList() { + if (expressionsBuilder_ != null) { + return expressionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(expressions_); + } + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder + addExpressionsBuilder() { + return getExpressionsFieldBuilder() + .addBuilder( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + .getDefaultInstance()); + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder + addExpressionsBuilder(int index) { + return getExpressionsFieldBuilder() + .addBuilder( + index, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression + .getDefaultInstance()); + } + /** + * + * + *
+     * The list of segment parameter filter expressions.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + public java.util.List< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder> + getExpressionsBuilderList() { + return getExpressionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> + getExpressionsFieldBuilder() { + if (expressionsBuilder_ == null) { + expressionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder>( + 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.v1alpha.SegmentParameterFilterExpressionList) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) + private static final com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList(); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SegmentParameterFilterExpressionList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SegmentParameterFilterExpressionList(input, extensionRegistry); + } + }; + + public static 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.v1alpha.SegmentParameterFilterExpressionList + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionListOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionListOrBuilder.java new file mode 100644 index 00000000..2313d641 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionListOrBuilder.java @@ -0,0 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface SegmentParameterFilterExpressionListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of segment parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + java.util.List + getExpressionsList(); + /** + * + * + *
+   * The list of segment parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression getExpressions(int index); + /** + * + * + *
+   * The list of segment parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + int getExpressionsCount(); + /** + * + * + *
+   * The list of segment parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + java.util.List< + ? extends com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> + getExpressionsOrBuilderList(); + /** + * + * + *
+   * The list of segment parameter filter expressions.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; + * + */ + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder + getExpressionsOrBuilder(int index); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionOrBuilder.java new file mode 100644 index 00000000..9e180515 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface SegmentParameterFilterExpressionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentParameterFilterExpression) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The SegmentParameterFilterExpression in `andGroup` have an AND
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; + * + * @return Whether the andGroup field is set. + */ + boolean hasAndGroup(); + /** + * + * + *
+   * The SegmentParameterFilterExpression in `andGroup` have an AND
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; + * + * @return The andGroup. + */ + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList getAndGroup(); + /** + * + * + *
+   * The SegmentParameterFilterExpression in `andGroup` have an AND
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; + */ + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder + getAndGroupOrBuilder(); + + /** + * + * + *
+   * The SegmentParameterFilterExpression in `orGroup` have an OR
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; + * + * @return Whether the orGroup field is set. + */ + boolean hasOrGroup(); + /** + * + * + *
+   * The SegmentParameterFilterExpression in `orGroup` have an OR
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; + * + * @return The orGroup. + */ + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList getOrGroup(); + /** + * + * + *
+   * The SegmentParameterFilterExpression in `orGroup` have an OR
+   * relationship.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; + */ + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder + getOrGroupOrBuilder(); + + /** + * + * + *
+   * The SegmentParameterFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; + * + * + * @return Whether the notExpression field is set. + */ + boolean hasNotExpression(); + /** + * + * + *
+   * The SegmentParameterFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; + * + * + * @return The notExpression. + */ + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression getNotExpression(); + /** + * + * + *
+   * The SegmentParameterFilterExpression is NOT of `notExpression`.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; + * + */ + com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder + getNotExpressionOrBuilder(); + + /** + * + * + *
+   * A primitive segment parameter filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; + * + * + * @return Whether the segmentParameterFilter field is set. + */ + boolean hasSegmentParameterFilter(); + /** + * + * + *
+   * A primitive segment parameter filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; + * + * + * @return The segmentParameterFilter. + */ + com.google.analytics.data.v1alpha.SegmentParameterFilter getSegmentParameterFilter(); + /** + * + * + *
+   * A primitive segment parameter filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; + * + */ + com.google.analytics.data.v1alpha.SegmentParameterFilterOrBuilder + getSegmentParameterFilterOrBuilder(); + + public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.ExprCase getExprCase(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterOrBuilder.java new file mode 100644 index 00000000..fb56b041 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterOrBuilder.java @@ -0,0 +1,322 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface SegmentParameterFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentParameterFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * This filter will be evaluated on the specified event parameter. Event
+   * parameters are logged as parameters of the event. Event parameters
+   * include fields like "firebase_screen" & "currency".
+   * Event parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * 
+ * + * string event_parameter_name = 1; + * + * @return Whether the eventParameterName field is set. + */ + boolean hasEventParameterName(); + /** + * + * + *
+   * This filter will be evaluated on the specified event parameter. Event
+   * parameters are logged as parameters of the event. Event parameters
+   * include fields like "firebase_screen" & "currency".
+   * Event parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * 
+ * + * string event_parameter_name = 1; + * + * @return The eventParameterName. + */ + java.lang.String getEventParameterName(); + /** + * + * + *
+   * This filter will be evaluated on the specified event parameter. Event
+   * parameters are logged as parameters of the event. Event parameters
+   * include fields like "firebase_screen" & "currency".
+   * Event parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * 
+ * + * string event_parameter_name = 1; + * + * @return The bytes for eventParameterName. + */ + com.google.protobuf.ByteString getEventParameterNameBytes(); + + /** + * + * + *
+   * This filter will be evaluated on the specified item parameter. Item
+   * parameters are logged as parameters in the item array. Item parameters
+   * include fields like "item_name" & "item_category".
+   * Item parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * Item parameters are only available in ecommerce events. To learn more
+   * about ecommerce events, see the [Measure ecommerce]
+   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+   * guide.
+   * 
+ * + * string item_parameter_name = 2; + * + * @return Whether the itemParameterName field is set. + */ + boolean hasItemParameterName(); + /** + * + * + *
+   * This filter will be evaluated on the specified item parameter. Item
+   * parameters are logged as parameters in the item array. Item parameters
+   * include fields like "item_name" & "item_category".
+   * Item parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * Item parameters are only available in ecommerce events. To learn more
+   * about ecommerce events, see the [Measure ecommerce]
+   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+   * guide.
+   * 
+ * + * string item_parameter_name = 2; + * + * @return The itemParameterName. + */ + java.lang.String getItemParameterName(); + /** + * + * + *
+   * This filter will be evaluated on the specified item parameter. Item
+   * parameters are logged as parameters in the item array. Item parameters
+   * include fields like "item_name" & "item_category".
+   * Item parameters can only be used in segments & funnels and can only be
+   * used in a descendent filter from an EventFilter. In a descendent filter
+   * from an EventFilter either event or item parameters should be used.
+   * Item parameters are only available in ecommerce events. To learn more
+   * about ecommerce events, see the [Measure ecommerce]
+   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
+   * guide.
+   * 
+ * + * string item_parameter_name = 2; + * + * @return The bytes for itemParameterName. + */ + com.google.protobuf.ByteString getItemParameterNameBytes(); + + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return Whether the stringFilter field is set. + */ + boolean hasStringFilter(); + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + * + * @return The stringFilter. + */ + com.google.analytics.data.v1alpha.StringFilter getStringFilter(); + /** + * + * + *
+   * Strings related filter.
+   * 
+ * + * .google.analytics.data.v1alpha.StringFilter string_filter = 4; + */ + com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder(); + + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return Whether the inListFilter field is set. + */ + boolean hasInListFilter(); + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + * + * @return The inListFilter. + */ + com.google.analytics.data.v1alpha.InListFilter getInListFilter(); + /** + * + * + *
+   * A filter for in list values.
+   * 
+ * + * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; + */ + com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder(); + + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return Whether the numericFilter field is set. + */ + boolean hasNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + * + * @return The numericFilter. + */ + com.google.analytics.data.v1alpha.NumericFilter getNumericFilter(); + /** + * + * + *
+   * A filter for numeric or date values.
+   * 
+ * + * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; + */ + com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder(); + + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return Whether the betweenFilter field is set. + */ + boolean hasBetweenFilter(); + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + * + * @return The betweenFilter. + */ + com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter(); + /** + * + * + *
+   * A filter for between two values.
+   * 
+ * + * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; + */ + com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder(); + + /** + * + * + *
+   * Specifies the scope for the filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; + * + * @return Whether the filterScoping field is set. + */ + boolean hasFilterScoping(); + /** + * + * + *
+   * Specifies the scope for the filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; + * + * @return The filterScoping. + */ + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping getFilterScoping(); + /** + * + * + *
+   * Specifies the scope for the filter.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; + */ + com.google.analytics.data.v1alpha.SegmentParameterFilterScopingOrBuilder + getFilterScopingOrBuilder(); + + public com.google.analytics.data.v1alpha.SegmentParameterFilter.OneParameterCase + getOneParameterCase(); + + public com.google.analytics.data.v1alpha.SegmentParameterFilter.OneFilterCase getOneFilterCase(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScoping.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScoping.java new file mode 100644 index 00000000..8c3d9a2a --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScoping.java @@ -0,0 +1,724 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Scopings specify how multiple events should be considered when evaluating a
+ * segment parameter filter.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentParameterFilterScoping} + */ +public final class SegmentParameterFilterScoping extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentParameterFilterScoping) + SegmentParameterFilterScopingOrBuilder { + private static final long serialVersionUID = 0L; + // Use SegmentParameterFilterScoping.newBuilder() to construct. + private SegmentParameterFilterScoping(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SegmentParameterFilterScoping() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SegmentParameterFilterScoping(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SegmentParameterFilterScoping( + 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; + inAnyNDayPeriod_ = input.readInt64(); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.class, + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.Builder.class); + } + + private int bitField0_; + public static final int IN_ANY_N_DAY_PERIOD_FIELD_NUMBER = 1; + private long inAnyNDayPeriod_; + /** + * + * + *
+   * Accumulates the parameter over the specified period of days before
+   * applying the filter. Only supported if criteria scoping is
+   * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
+   * parameter is `event_count`.
+   * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
+   * the event parameter is "event_count", and the Filter's criteria is
+   * greater than 5, this filter will accumulate the event count of purchase
+   * events over every 3 consecutive day period in the report's date range; a
+   * user will pass this Filter's criteria to be included in this segment if
+   * their count of purchase events exceeds 5 in any 3 consecutive day period.
+   * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
+   * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
+   * The date range is not extended for the purpose of having a full N day
+   * window near the start of the date range. For example if a report is for
+   * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
+   * period will be effectively shortened because no event data outside the
+   * report's date range will be read. For example, the first four periods
+   * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
+   * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
+   * `inAnyNDayPeriod` is optional. If not specified, the
+   * `segmentParameterFilter` is applied to each event individually.
+   * 
+ * + * optional int64 in_any_n_day_period = 1; + * + * @return Whether the inAnyNDayPeriod field is set. + */ + @java.lang.Override + public boolean hasInAnyNDayPeriod() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+   * Accumulates the parameter over the specified period of days before
+   * applying the filter. Only supported if criteria scoping is
+   * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
+   * parameter is `event_count`.
+   * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
+   * the event parameter is "event_count", and the Filter's criteria is
+   * greater than 5, this filter will accumulate the event count of purchase
+   * events over every 3 consecutive day period in the report's date range; a
+   * user will pass this Filter's criteria to be included in this segment if
+   * their count of purchase events exceeds 5 in any 3 consecutive day period.
+   * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
+   * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
+   * The date range is not extended for the purpose of having a full N day
+   * window near the start of the date range. For example if a report is for
+   * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
+   * period will be effectively shortened because no event data outside the
+   * report's date range will be read. For example, the first four periods
+   * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
+   * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
+   * `inAnyNDayPeriod` is optional. If not specified, the
+   * `segmentParameterFilter` is applied to each event individually.
+   * 
+ * + * optional int64 in_any_n_day_period = 1; + * + * @return The inAnyNDayPeriod. + */ + @java.lang.Override + public long getInAnyNDayPeriod() { + return inAnyNDayPeriod_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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.writeInt64(1, inAnyNDayPeriod_); + } + 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.computeInt64Size(1, inAnyNDayPeriod_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.SegmentParameterFilterScoping)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping other = + (com.google.analytics.data.v1alpha.SegmentParameterFilterScoping) obj; + + if (hasInAnyNDayPeriod() != other.hasInAnyNDayPeriod()) return false; + if (hasInAnyNDayPeriod()) { + if (getInAnyNDayPeriod() != other.getInAnyNDayPeriod()) return false; + } + if (!unknownFields.equals(other.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 (hasInAnyNDayPeriod()) { + hash = (37 * hash) + IN_ANY_N_DAY_PERIOD_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInAnyNDayPeriod()); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping 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.v1alpha.SegmentParameterFilterScoping parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping parseFrom( + 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.v1alpha.SegmentParameterFilterScoping parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping parseFrom( + java.io.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.v1alpha.SegmentParameterFilterScoping parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping parseDelimitedFrom( + java.io.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.v1alpha.SegmentParameterFilterScoping parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.SegmentParameterFilterScoping prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Scopings specify how multiple events should be considered when evaluating a
+   * segment parameter filter.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SegmentParameterFilterScoping} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentParameterFilterScoping) + com.google.analytics.data.v1alpha.SegmentParameterFilterScopingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.class, + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.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(); + inAnyNDayPeriod_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterScoping + getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterScoping build() { + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentParameterFilterScoping buildPartial() { + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping result = + new com.google.analytics.data.v1alpha.SegmentParameterFilterScoping(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.inAnyNDayPeriod_ = inAnyNDayPeriod_; + to_bitField0_ |= 0x00000001; + } + 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.v1alpha.SegmentParameterFilterScoping) { + return mergeFrom((com.google.analytics.data.v1alpha.SegmentParameterFilterScoping) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.data.v1alpha.SegmentParameterFilterScoping other) { + if (other + == com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.getDefaultInstance()) + return this; + if (other.hasInAnyNDayPeriod()) { + setInAnyNDayPeriod(other.getInAnyNDayPeriod()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.SegmentParameterFilterScoping parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.SegmentParameterFilterScoping) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private long inAnyNDayPeriod_; + /** + * + * + *
+     * Accumulates the parameter over the specified period of days before
+     * applying the filter. Only supported if criteria scoping is
+     * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
+     * parameter is `event_count`.
+     * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
+     * the event parameter is "event_count", and the Filter's criteria is
+     * greater than 5, this filter will accumulate the event count of purchase
+     * events over every 3 consecutive day period in the report's date range; a
+     * user will pass this Filter's criteria to be included in this segment if
+     * their count of purchase events exceeds 5 in any 3 consecutive day period.
+     * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
+     * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
+     * The date range is not extended for the purpose of having a full N day
+     * window near the start of the date range. For example if a report is for
+     * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
+     * period will be effectively shortened because no event data outside the
+     * report's date range will be read. For example, the first four periods
+     * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
+     * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
+     * `inAnyNDayPeriod` is optional. If not specified, the
+     * `segmentParameterFilter` is applied to each event individually.
+     * 
+ * + * optional int64 in_any_n_day_period = 1; + * + * @return Whether the inAnyNDayPeriod field is set. + */ + @java.lang.Override + public boolean hasInAnyNDayPeriod() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * + * + *
+     * Accumulates the parameter over the specified period of days before
+     * applying the filter. Only supported if criteria scoping is
+     * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
+     * parameter is `event_count`.
+     * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
+     * the event parameter is "event_count", and the Filter's criteria is
+     * greater than 5, this filter will accumulate the event count of purchase
+     * events over every 3 consecutive day period in the report's date range; a
+     * user will pass this Filter's criteria to be included in this segment if
+     * their count of purchase events exceeds 5 in any 3 consecutive day period.
+     * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
+     * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
+     * The date range is not extended for the purpose of having a full N day
+     * window near the start of the date range. For example if a report is for
+     * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
+     * period will be effectively shortened because no event data outside the
+     * report's date range will be read. For example, the first four periods
+     * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
+     * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
+     * `inAnyNDayPeriod` is optional. If not specified, the
+     * `segmentParameterFilter` is applied to each event individually.
+     * 
+ * + * optional int64 in_any_n_day_period = 1; + * + * @return The inAnyNDayPeriod. + */ + @java.lang.Override + public long getInAnyNDayPeriod() { + return inAnyNDayPeriod_; + } + /** + * + * + *
+     * Accumulates the parameter over the specified period of days before
+     * applying the filter. Only supported if criteria scoping is
+     * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
+     * parameter is `event_count`.
+     * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
+     * the event parameter is "event_count", and the Filter's criteria is
+     * greater than 5, this filter will accumulate the event count of purchase
+     * events over every 3 consecutive day period in the report's date range; a
+     * user will pass this Filter's criteria to be included in this segment if
+     * their count of purchase events exceeds 5 in any 3 consecutive day period.
+     * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
+     * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
+     * The date range is not extended for the purpose of having a full N day
+     * window near the start of the date range. For example if a report is for
+     * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
+     * period will be effectively shortened because no event data outside the
+     * report's date range will be read. For example, the first four periods
+     * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
+     * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
+     * `inAnyNDayPeriod` is optional. If not specified, the
+     * `segmentParameterFilter` is applied to each event individually.
+     * 
+ * + * optional int64 in_any_n_day_period = 1; + * + * @param value The inAnyNDayPeriod to set. + * @return This builder for chaining. + */ + public Builder setInAnyNDayPeriod(long value) { + bitField0_ |= 0x00000001; + inAnyNDayPeriod_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Accumulates the parameter over the specified period of days before
+     * applying the filter. Only supported if criteria scoping is
+     * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
+     * parameter is `event_count`.
+     * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
+     * the event parameter is "event_count", and the Filter's criteria is
+     * greater than 5, this filter will accumulate the event count of purchase
+     * events over every 3 consecutive day period in the report's date range; a
+     * user will pass this Filter's criteria to be included in this segment if
+     * their count of purchase events exceeds 5 in any 3 consecutive day period.
+     * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
+     * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
+     * The date range is not extended for the purpose of having a full N day
+     * window near the start of the date range. For example if a report is for
+     * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
+     * period will be effectively shortened because no event data outside the
+     * report's date range will be read. For example, the first four periods
+     * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
+     * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
+     * `inAnyNDayPeriod` is optional. If not specified, the
+     * `segmentParameterFilter` is applied to each event individually.
+     * 
+ * + * optional int64 in_any_n_day_period = 1; + * + * @return This builder for chaining. + */ + public Builder clearInAnyNDayPeriod() { + bitField0_ = (bitField0_ & ~0x00000001); + inAnyNDayPeriod_ = 0L; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.SegmentParameterFilterScoping) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentParameterFilterScoping) + private static final com.google.analytics.data.v1alpha.SegmentParameterFilterScoping + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentParameterFilterScoping(); + } + + public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SegmentParameterFilterScoping parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SegmentParameterFilterScoping(input, extensionRegistry); + } + }; + + public static 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.v1alpha.SegmentParameterFilterScoping + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScopingOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScopingOrBuilder.java new file mode 100644 index 00000000..17241195 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScopingOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/data/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface SegmentParameterFilterScopingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentParameterFilterScoping) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Accumulates the parameter over the specified period of days before
+   * applying the filter. Only supported if criteria scoping is
+   * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
+   * parameter is `event_count`.
+   * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
+   * the event parameter is "event_count", and the Filter's criteria is
+   * greater than 5, this filter will accumulate the event count of purchase
+   * events over every 3 consecutive day period in the report's date range; a
+   * user will pass this Filter's criteria to be included in this segment if
+   * their count of purchase events exceeds 5 in any 3 consecutive day period.
+   * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
+   * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
+   * The date range is not extended for the purpose of having a full N day
+   * window near the start of the date range. For example if a report is for
+   * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
+   * period will be effectively shortened because no event data outside the
+   * report's date range will be read. For example, the first four periods
+   * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
+   * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
+   * `inAnyNDayPeriod` is optional. If not specified, the
+   * `segmentParameterFilter` is applied to each event individually.
+   * 
+ * + * optional int64 in_any_n_day_period = 1; + * + * @return Whether the inAnyNDayPeriod field is set. + */ + boolean hasInAnyNDayPeriod(); + /** + * + * + *
+   * Accumulates the parameter over the specified period of days before
+   * applying the filter. Only supported if criteria scoping is
+   * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
+   * parameter is `event_count`.
+   * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
+   * the event parameter is "event_count", and the Filter's criteria is
+   * greater than 5, this filter will accumulate the event count of purchase
+   * events over every 3 consecutive day period in the report's date range; a
+   * user will pass this Filter's criteria to be included in this segment if
+   * their count of purchase events exceeds 5 in any 3 consecutive day period.
+   * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
+   * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
+   * The date range is not extended for the purpose of having a full N day
+   * window near the start of the date range. For example if a report is for
+   * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
+   * period will be effectively shortened because no event data outside the
+   * report's date range will be read. For example, the first four periods
+   * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
+   * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
+   * `inAnyNDayPeriod` is optional. If not specified, the
+   * `segmentParameterFilter` is applied to each event individually.
+   * 
+ * + * optional int64 in_any_n_day_period = 1; + * + * @return The inAnyNDayPeriod. + */ + long getInAnyNDayPeriod(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionCriteriaScoping.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionCriteriaScoping.java new file mode 100644 index 00000000..248c60ef --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionCriteriaScoping.java @@ -0,0 +1,186 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Scoping specifies which events are considered when evaluating if a
+ * session meets a criteria.
+ * 
+ * + * Protobuf enum {@code google.analytics.data.v1alpha.SessionCriteriaScoping} + */ +public enum SessionCriteriaScoping implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified criteria scoping. Do not specify.
+   * 
+ * + * SESSION_CRITERIA_SCOPING_UNSPECIFIED = 0; + */ + SESSION_CRITERIA_SCOPING_UNSPECIFIED(0), + /** + * + * + *
+   * If the criteria is satisfied within one event, the session matches the
+   * criteria.
+   * 
+ * + * SESSION_CRITERIA_WITHIN_SAME_EVENT = 1; + */ + SESSION_CRITERIA_WITHIN_SAME_EVENT(1), + /** + * + * + *
+   * If the criteria is satisfied within one session, the session matches
+   * the criteria.
+   * 
+ * + * SESSION_CRITERIA_WITHIN_SAME_SESSION = 2; + */ + SESSION_CRITERIA_WITHIN_SAME_SESSION(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified criteria scoping. Do not specify.
+   * 
+ * + * SESSION_CRITERIA_SCOPING_UNSPECIFIED = 0; + */ + public static final int SESSION_CRITERIA_SCOPING_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * If the criteria is satisfied within one event, the session matches the
+   * criteria.
+   * 
+ * + * SESSION_CRITERIA_WITHIN_SAME_EVENT = 1; + */ + public static final int SESSION_CRITERIA_WITHIN_SAME_EVENT_VALUE = 1; + /** + * + * + *
+   * If the criteria is satisfied within one session, the session matches
+   * the criteria.
+   * 
+ * + * SESSION_CRITERIA_WITHIN_SAME_SESSION = 2; + */ + public static final int SESSION_CRITERIA_WITHIN_SAME_SESSION_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 SessionCriteriaScoping 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 SessionCriteriaScoping forNumber(int value) { + switch (value) { + case 0: + return SESSION_CRITERIA_SCOPING_UNSPECIFIED; + case 1: + return SESSION_CRITERIA_WITHIN_SAME_EVENT; + case 2: + return SESSION_CRITERIA_WITHIN_SAME_SESSION; + 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 SessionCriteriaScoping findValueByNumber(int number) { + return SessionCriteriaScoping.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.v1alpha.ReportingApiProto.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final SessionCriteriaScoping[] VALUES = values(); + + public static SessionCriteriaScoping 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 SessionCriteriaScoping(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.SessionCriteriaScoping) +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionExclusionDuration.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionExclusionDuration.java new file mode 100644 index 00000000..7e0ba958 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionExclusionDuration.java @@ -0,0 +1,186 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Enumerates options for how long an exclusion will last if a session
+ * matches the `sessionExclusionCriteria`.
+ * 
+ * + * Protobuf enum {@code google.analytics.data.v1alpha.SessionExclusionDuration} + */ +public enum SessionExclusionDuration implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified exclusion duration. Do not specify.
+   * 
+ * + * SESSION_EXCLUSION_DURATION_UNSPECIFIED = 0; + */ + SESSION_EXCLUSION_DURATION_UNSPECIFIED(0), + /** + * + * + *
+   * Temporarily exclude sessions from the segment during periods when the
+   * session meets the `sessionExclusionCriteria` condition.
+   * 
+ * + * SESSION_EXCLUSION_TEMPORARY = 1; + */ + SESSION_EXCLUSION_TEMPORARY(1), + /** + * + * + *
+   * Permanently exclude sessions from the segment if the session ever meets
+   * the `sessionExclusionCriteria` condition.
+   * 
+ * + * SESSION_EXCLUSION_PERMANENT = 2; + */ + SESSION_EXCLUSION_PERMANENT(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified exclusion duration. Do not specify.
+   * 
+ * + * SESSION_EXCLUSION_DURATION_UNSPECIFIED = 0; + */ + public static final int SESSION_EXCLUSION_DURATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Temporarily exclude sessions from the segment during periods when the
+   * session meets the `sessionExclusionCriteria` condition.
+   * 
+ * + * SESSION_EXCLUSION_TEMPORARY = 1; + */ + public static final int SESSION_EXCLUSION_TEMPORARY_VALUE = 1; + /** + * + * + *
+   * Permanently exclude sessions from the segment if the session ever meets
+   * the `sessionExclusionCriteria` condition.
+   * 
+ * + * SESSION_EXCLUSION_PERMANENT = 2; + */ + public static final int SESSION_EXCLUSION_PERMANENT_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 SessionExclusionDuration 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 SessionExclusionDuration forNumber(int value) { + switch (value) { + case 0: + return SESSION_EXCLUSION_DURATION_UNSPECIFIED; + case 1: + return SESSION_EXCLUSION_TEMPORARY; + case 2: + return SESSION_EXCLUSION_PERMANENT; + 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 SessionExclusionDuration findValueByNumber(int number) { + return SessionExclusionDuration.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.v1alpha.ReportingApiProto.getDescriptor() + .getEnumTypes() + .get(3); + } + + private static final SessionExclusionDuration[] VALUES = values(); + + public static SessionExclusionDuration 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 SessionExclusionDuration(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.SessionExclusionDuration) +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegment.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegment.java new file mode 100644 index 00000000..028aef36 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegment.java @@ -0,0 +1,1041 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Session segments are subsets of the sessions that occurred on your site or
+ * app: for example, all the sessions that originated from a particular
+ * advertising campaign.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SessionSegment} + */ +public final class SessionSegment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SessionSegment) + SessionSegmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use SessionSegment.newBuilder() to construct. + private SessionSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SessionSegment() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SessionSegment(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SessionSegment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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.v1alpha.SessionSegmentCriteria.Builder subBuilder = null; + if (sessionInclusionCriteria_ != null) { + subBuilder = sessionInclusionCriteria_.toBuilder(); + } + sessionInclusionCriteria_ = + input.readMessage( + com.google.analytics.data.v1alpha.SessionSegmentCriteria.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sessionInclusionCriteria_); + sessionInclusionCriteria_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.analytics.data.v1alpha.SessionSegmentExclusion.Builder subBuilder = null; + if (exclusion_ != null) { + subBuilder = exclusion_.toBuilder(); + } + exclusion_ = + input.readMessage( + com.google.analytics.data.v1alpha.SessionSegmentExclusion.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(exclusion_); + exclusion_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SessionSegment.class, + com.google.analytics.data.v1alpha.SessionSegment.Builder.class); + } + + public static final int SESSION_INCLUSION_CRITERIA_FIELD_NUMBER = 1; + private com.google.analytics.data.v1alpha.SessionSegmentCriteria sessionInclusionCriteria_; + /** + * + * + *
+   * Defines which sessions are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; + * + * + * @return Whether the sessionInclusionCriteria field is set. + */ + @java.lang.Override + public boolean hasSessionInclusionCriteria() { + return sessionInclusionCriteria_ != null; + } + /** + * + * + *
+   * Defines which sessions are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; + * + * + * @return The sessionInclusionCriteria. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentCriteria getSessionInclusionCriteria() { + return sessionInclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.SessionSegmentCriteria.getDefaultInstance() + : sessionInclusionCriteria_; + } + /** + * + * + *
+   * Defines which sessions are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder + getSessionInclusionCriteriaOrBuilder() { + return getSessionInclusionCriteria(); + } + + public static final int EXCLUSION_FIELD_NUMBER = 2; + private com.google.analytics.data.v1alpha.SessionSegmentExclusion exclusion_; + /** + * + * + *
+   * Defines which sessions are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; + * + * @return Whether the exclusion field is set. + */ + @java.lang.Override + public boolean hasExclusion() { + return exclusion_ != null; + } + /** + * + * + *
+   * Defines which sessions are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; + * + * @return The exclusion. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentExclusion getExclusion() { + return exclusion_ == null + ? com.google.analytics.data.v1alpha.SessionSegmentExclusion.getDefaultInstance() + : exclusion_; + } + /** + * + * + *
+   * Defines which sessions are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentExclusionOrBuilder + getExclusionOrBuilder() { + return getExclusion(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (sessionInclusionCriteria_ != null) { + output.writeMessage(1, getSessionInclusionCriteria()); + } + if (exclusion_ != null) { + output.writeMessage(2, getExclusion()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sessionInclusionCriteria_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getSessionInclusionCriteria()); + } + if (exclusion_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.SessionSegment)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.SessionSegment other = + (com.google.analytics.data.v1alpha.SessionSegment) obj; + + if (hasSessionInclusionCriteria() != other.hasSessionInclusionCriteria()) return false; + if (hasSessionInclusionCriteria()) { + if (!getSessionInclusionCriteria().equals(other.getSessionInclusionCriteria())) return false; + } + if (hasExclusion() != other.hasExclusion()) return false; + if (hasExclusion()) { + if (!getExclusion().equals(other.getExclusion())) return false; + } + if (!unknownFields.equals(other.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 (hasSessionInclusionCriteria()) { + hash = (37 * hash) + SESSION_INCLUSION_CRITERIA_FIELD_NUMBER; + hash = (53 * hash) + getSessionInclusionCriteria().hashCode(); + } + if (hasExclusion()) { + hash = (37 * hash) + EXCLUSION_FIELD_NUMBER; + hash = (53 * hash) + getExclusion().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.SessionSegment parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SessionSegment 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.v1alpha.SessionSegment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SessionSegment parseFrom( + 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.v1alpha.SessionSegment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SessionSegment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.SessionSegment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SessionSegment parseFrom( + java.io.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.v1alpha.SessionSegment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SessionSegment parseDelimitedFrom( + java.io.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.v1alpha.SessionSegment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SessionSegment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.SessionSegment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Session segments are subsets of the sessions that occurred on your site or
+   * app: for example, all the sessions that originated from a particular
+   * advertising campaign.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SessionSegment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SessionSegment) + com.google.analytics.data.v1alpha.SessionSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SessionSegment.class, + com.google.analytics.data.v1alpha.SessionSegment.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.SessionSegment.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 (sessionInclusionCriteriaBuilder_ == null) { + sessionInclusionCriteria_ = null; + } else { + sessionInclusionCriteria_ = null; + sessionInclusionCriteriaBuilder_ = null; + } + if (exclusionBuilder_ == null) { + exclusion_ = null; + } else { + exclusion_ = null; + exclusionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegment getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegment build() { + com.google.analytics.data.v1alpha.SessionSegment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegment buildPartial() { + com.google.analytics.data.v1alpha.SessionSegment result = + new com.google.analytics.data.v1alpha.SessionSegment(this); + if (sessionInclusionCriteriaBuilder_ == null) { + result.sessionInclusionCriteria_ = sessionInclusionCriteria_; + } else { + result.sessionInclusionCriteria_ = sessionInclusionCriteriaBuilder_.build(); + } + if (exclusionBuilder_ == null) { + result.exclusion_ = exclusion_; + } else { + result.exclusion_ = exclusionBuilder_.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.v1alpha.SessionSegment) { + return mergeFrom((com.google.analytics.data.v1alpha.SessionSegment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.SessionSegment other) { + if (other == com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance()) + return this; + if (other.hasSessionInclusionCriteria()) { + mergeSessionInclusionCriteria(other.getSessionInclusionCriteria()); + } + if (other.hasExclusion()) { + mergeExclusion(other.getExclusion()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.SessionSegment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.SessionSegment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.data.v1alpha.SessionSegmentCriteria sessionInclusionCriteria_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SessionSegmentCriteria, + com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder> + sessionInclusionCriteriaBuilder_; + /** + * + * + *
+     * Defines which sessions are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; + * + * + * @return Whether the sessionInclusionCriteria field is set. + */ + public boolean hasSessionInclusionCriteria() { + return sessionInclusionCriteriaBuilder_ != null || sessionInclusionCriteria_ != null; + } + /** + * + * + *
+     * Defines which sessions are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; + * + * + * @return The sessionInclusionCriteria. + */ + public com.google.analytics.data.v1alpha.SessionSegmentCriteria getSessionInclusionCriteria() { + if (sessionInclusionCriteriaBuilder_ == null) { + return sessionInclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.SessionSegmentCriteria.getDefaultInstance() + : sessionInclusionCriteria_; + } else { + return sessionInclusionCriteriaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Defines which sessions are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; + * + */ + public Builder setSessionInclusionCriteria( + com.google.analytics.data.v1alpha.SessionSegmentCriteria value) { + if (sessionInclusionCriteriaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sessionInclusionCriteria_ = value; + onChanged(); + } else { + sessionInclusionCriteriaBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Defines which sessions are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; + * + */ + public Builder setSessionInclusionCriteria( + com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder builderForValue) { + if (sessionInclusionCriteriaBuilder_ == null) { + sessionInclusionCriteria_ = builderForValue.build(); + onChanged(); + } else { + sessionInclusionCriteriaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Defines which sessions are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; + * + */ + public Builder mergeSessionInclusionCriteria( + com.google.analytics.data.v1alpha.SessionSegmentCriteria value) { + if (sessionInclusionCriteriaBuilder_ == null) { + if (sessionInclusionCriteria_ != null) { + sessionInclusionCriteria_ = + com.google.analytics.data.v1alpha.SessionSegmentCriteria.newBuilder( + sessionInclusionCriteria_) + .mergeFrom(value) + .buildPartial(); + } else { + sessionInclusionCriteria_ = value; + } + onChanged(); + } else { + sessionInclusionCriteriaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Defines which sessions are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; + * + */ + public Builder clearSessionInclusionCriteria() { + if (sessionInclusionCriteriaBuilder_ == null) { + sessionInclusionCriteria_ = null; + onChanged(); + } else { + sessionInclusionCriteria_ = null; + sessionInclusionCriteriaBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Defines which sessions are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; + * + */ + public com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder + getSessionInclusionCriteriaBuilder() { + + onChanged(); + return getSessionInclusionCriteriaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Defines which sessions are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; + * + */ + public com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder + getSessionInclusionCriteriaOrBuilder() { + if (sessionInclusionCriteriaBuilder_ != null) { + return sessionInclusionCriteriaBuilder_.getMessageOrBuilder(); + } else { + return sessionInclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.SessionSegmentCriteria.getDefaultInstance() + : sessionInclusionCriteria_; + } + } + /** + * + * + *
+     * Defines which sessions are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SessionSegmentCriteria, + com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder> + getSessionInclusionCriteriaFieldBuilder() { + if (sessionInclusionCriteriaBuilder_ == null) { + sessionInclusionCriteriaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SessionSegmentCriteria, + com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder>( + getSessionInclusionCriteria(), getParentForChildren(), isClean()); + sessionInclusionCriteria_ = null; + } + return sessionInclusionCriteriaBuilder_; + } + + private com.google.analytics.data.v1alpha.SessionSegmentExclusion exclusion_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SessionSegmentExclusion, + com.google.analytics.data.v1alpha.SessionSegmentExclusion.Builder, + com.google.analytics.data.v1alpha.SessionSegmentExclusionOrBuilder> + exclusionBuilder_; + /** + * + * + *
+     * Defines which sessions are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; + * + * @return Whether the exclusion field is set. + */ + public boolean hasExclusion() { + return exclusionBuilder_ != null || exclusion_ != null; + } + /** + * + * + *
+     * Defines which sessions are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; + * + * @return The exclusion. + */ + public com.google.analytics.data.v1alpha.SessionSegmentExclusion getExclusion() { + if (exclusionBuilder_ == null) { + return exclusion_ == null + ? com.google.analytics.data.v1alpha.SessionSegmentExclusion.getDefaultInstance() + : exclusion_; + } else { + return exclusionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Defines which sessions are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; + */ + public Builder setExclusion(com.google.analytics.data.v1alpha.SessionSegmentExclusion value) { + if (exclusionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exclusion_ = value; + onChanged(); + } else { + exclusionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Defines which sessions are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; + */ + public Builder setExclusion( + com.google.analytics.data.v1alpha.SessionSegmentExclusion.Builder builderForValue) { + if (exclusionBuilder_ == null) { + exclusion_ = builderForValue.build(); + onChanged(); + } else { + exclusionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Defines which sessions are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; + */ + public Builder mergeExclusion(com.google.analytics.data.v1alpha.SessionSegmentExclusion value) { + if (exclusionBuilder_ == null) { + if (exclusion_ != null) { + exclusion_ = + com.google.analytics.data.v1alpha.SessionSegmentExclusion.newBuilder(exclusion_) + .mergeFrom(value) + .buildPartial(); + } else { + exclusion_ = value; + } + onChanged(); + } else { + exclusionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Defines which sessions are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; + */ + public Builder clearExclusion() { + if (exclusionBuilder_ == null) { + exclusion_ = null; + onChanged(); + } else { + exclusion_ = null; + exclusionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Defines which sessions are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; + */ + public com.google.analytics.data.v1alpha.SessionSegmentExclusion.Builder getExclusionBuilder() { + + onChanged(); + return getExclusionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Defines which sessions are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; + */ + public com.google.analytics.data.v1alpha.SessionSegmentExclusionOrBuilder + getExclusionOrBuilder() { + if (exclusionBuilder_ != null) { + return exclusionBuilder_.getMessageOrBuilder(); + } else { + return exclusion_ == null + ? com.google.analytics.data.v1alpha.SessionSegmentExclusion.getDefaultInstance() + : exclusion_; + } + } + /** + * + * + *
+     * Defines which sessions are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SessionSegmentExclusion, + com.google.analytics.data.v1alpha.SessionSegmentExclusion.Builder, + com.google.analytics.data.v1alpha.SessionSegmentExclusionOrBuilder> + getExclusionFieldBuilder() { + if (exclusionBuilder_ == null) { + exclusionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SessionSegmentExclusion, + com.google.analytics.data.v1alpha.SessionSegmentExclusion.Builder, + com.google.analytics.data.v1alpha.SessionSegmentExclusionOrBuilder>( + getExclusion(), getParentForChildren(), isClean()); + exclusion_ = null; + } + return exclusionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.SessionSegment) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SessionSegment) + private static final com.google.analytics.data.v1alpha.SessionSegment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SessionSegment(); + } + + public static com.google.analytics.data.v1alpha.SessionSegment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SessionSegment(input, extensionRegistry); + } + }; + + public static 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.v1alpha.SessionSegment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroup.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroup.java new file mode 100644 index 00000000..6c6029b2 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroup.java @@ -0,0 +1,1028 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Conditions tell Analytics what data to include in or exclude from the
+ * segment.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SessionSegmentConditionGroup} + */ +public final class SessionSegmentConditionGroup extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SessionSegmentConditionGroup) + SessionSegmentConditionGroupOrBuilder { + private static final long serialVersionUID = 0L; + // Use SessionSegmentConditionGroup.newBuilder() to construct. + private SessionSegmentConditionGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SessionSegmentConditionGroup() { + conditionScoping_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SessionSegmentConditionGroup(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SessionSegmentConditionGroup( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder 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(); + + conditionScoping_ = rawValue; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder subBuilder = null; + if (segmentFilterExpression_ != null) { + subBuilder = segmentFilterExpression_.toBuilder(); + } + segmentFilterExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(segmentFilterExpression_); + segmentFilterExpression_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.class, + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder.class); + } + + public static final int CONDITION_SCOPING_FIELD_NUMBER = 1; + private int conditionScoping_; + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * the condition group. This scoping defines how many events the
+   * `segmentFilterExpression` is evaluated on before the condition group
+   * is determined to be matched or not. For example if `conditionScoping =
+   * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+   * events in a session, and then, the condition group is determined to be
+   * matched or not for this session. For example if `conditionScoping =
+   * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
+   * single event, and then, the condition group is determined to be matched or
+   * not for this session.
+   * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
+   * is used.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; + * + * @return The enum numeric value on the wire for conditionScoping. + */ + @java.lang.Override + public int getConditionScopingValue() { + return conditionScoping_; + } + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * the condition group. This scoping defines how many events the
+   * `segmentFilterExpression` is evaluated on before the condition group
+   * is determined to be matched or not. For example if `conditionScoping =
+   * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+   * events in a session, and then, the condition group is determined to be
+   * matched or not for this session. For example if `conditionScoping =
+   * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
+   * single event, and then, the condition group is determined to be matched or
+   * not for this session.
+   * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
+   * is used.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; + * + * @return The conditionScoping. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionCriteriaScoping getConditionScoping() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.SessionCriteriaScoping result = + com.google.analytics.data.v1alpha.SessionCriteriaScoping.valueOf(conditionScoping_); + return result == null + ? com.google.analytics.data.v1alpha.SessionCriteriaScoping.UNRECOGNIZED + : result; + } + + public static final int SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER = 2; + private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_; + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return Whether the segmentFilterExpression field is set. + */ + @java.lang.Override + public boolean hasSegmentFilterExpression() { + return segmentFilterExpression_ != null; + } + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return The segmentFilterExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() { + return segmentFilterExpression_ == null + ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() + : segmentFilterExpression_; + } + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder + getSegmentFilterExpressionOrBuilder() { + return getSegmentFilterExpression(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (conditionScoping_ + != com.google.analytics.data.v1alpha.SessionCriteriaScoping + .SESSION_CRITERIA_SCOPING_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, conditionScoping_); + } + if (segmentFilterExpression_ != null) { + output.writeMessage(2, getSegmentFilterExpression()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (conditionScoping_ + != com.google.analytics.data.v1alpha.SessionCriteriaScoping + .SESSION_CRITERIA_SCOPING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, conditionScoping_); + } + if (segmentFilterExpression_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSegmentFilterExpression()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.SessionSegmentConditionGroup)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup other = + (com.google.analytics.data.v1alpha.SessionSegmentConditionGroup) obj; + + if (conditionScoping_ != other.conditionScoping_) return false; + if (hasSegmentFilterExpression() != other.hasSegmentFilterExpression()) return false; + if (hasSegmentFilterExpression()) { + if (!getSegmentFilterExpression().equals(other.getSegmentFilterExpression())) return false; + } + if (!unknownFields.equals(other.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) + CONDITION_SCOPING_FIELD_NUMBER; + hash = (53 * hash) + conditionScoping_; + if (hasSegmentFilterExpression()) { + hash = (37 * hash) + SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getSegmentFilterExpression().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup 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.v1alpha.SessionSegmentConditionGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup parseFrom( + 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.v1alpha.SessionSegmentConditionGroup parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup parseFrom( + java.io.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.v1alpha.SessionSegmentConditionGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup parseDelimitedFrom( + java.io.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.v1alpha.SessionSegmentConditionGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.SessionSegmentConditionGroup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Conditions tell Analytics what data to include in or exclude from the
+   * segment.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SessionSegmentConditionGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SessionSegmentConditionGroup) + com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.class, + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.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(); + conditionScoping_ = 0; + + if (segmentFilterExpressionBuilder_ == null) { + segmentFilterExpression_ = null; + } else { + segmentFilterExpression_ = null; + segmentFilterExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup + getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup build() { + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup buildPartial() { + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup result = + new com.google.analytics.data.v1alpha.SessionSegmentConditionGroup(this); + result.conditionScoping_ = conditionScoping_; + if (segmentFilterExpressionBuilder_ == null) { + result.segmentFilterExpression_ = segmentFilterExpression_; + } else { + result.segmentFilterExpression_ = segmentFilterExpressionBuilder_.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.v1alpha.SessionSegmentConditionGroup) { + return mergeFrom((com.google.analytics.data.v1alpha.SessionSegmentConditionGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.SessionSegmentConditionGroup other) { + if (other + == com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.getDefaultInstance()) + return this; + if (other.conditionScoping_ != 0) { + setConditionScopingValue(other.getConditionScopingValue()); + } + if (other.hasSegmentFilterExpression()) { + mergeSegmentFilterExpression(other.getSegmentFilterExpression()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.SessionSegmentConditionGroup parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.SessionSegmentConditionGroup) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int conditionScoping_ = 0; + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * the condition group. This scoping defines how many events the
+     * `segmentFilterExpression` is evaluated on before the condition group
+     * is determined to be matched or not. For example if `conditionScoping =
+     * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+     * events in a session, and then, the condition group is determined to be
+     * matched or not for this session. For example if `conditionScoping =
+     * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
+     * single event, and then, the condition group is determined to be matched or
+     * not for this session.
+     * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
+     * is used.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; + * + * @return The enum numeric value on the wire for conditionScoping. + */ + @java.lang.Override + public int getConditionScopingValue() { + return conditionScoping_; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * the condition group. This scoping defines how many events the
+     * `segmentFilterExpression` is evaluated on before the condition group
+     * is determined to be matched or not. For example if `conditionScoping =
+     * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+     * events in a session, and then, the condition group is determined to be
+     * matched or not for this session. For example if `conditionScoping =
+     * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
+     * single event, and then, the condition group is determined to be matched or
+     * not for this session.
+     * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
+     * is used.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; + * + * @param value The enum numeric value on the wire for conditionScoping to set. + * @return This builder for chaining. + */ + public Builder setConditionScopingValue(int value) { + + conditionScoping_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * the condition group. This scoping defines how many events the
+     * `segmentFilterExpression` is evaluated on before the condition group
+     * is determined to be matched or not. For example if `conditionScoping =
+     * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+     * events in a session, and then, the condition group is determined to be
+     * matched or not for this session. For example if `conditionScoping =
+     * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
+     * single event, and then, the condition group is determined to be matched or
+     * not for this session.
+     * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
+     * is used.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; + * + * @return The conditionScoping. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionCriteriaScoping getConditionScoping() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.SessionCriteriaScoping result = + com.google.analytics.data.v1alpha.SessionCriteriaScoping.valueOf(conditionScoping_); + return result == null + ? com.google.analytics.data.v1alpha.SessionCriteriaScoping.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * the condition group. This scoping defines how many events the
+     * `segmentFilterExpression` is evaluated on before the condition group
+     * is determined to be matched or not. For example if `conditionScoping =
+     * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+     * events in a session, and then, the condition group is determined to be
+     * matched or not for this session. For example if `conditionScoping =
+     * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
+     * single event, and then, the condition group is determined to be matched or
+     * not for this session.
+     * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
+     * is used.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; + * + * @param value The conditionScoping to set. + * @return This builder for chaining. + */ + public Builder setConditionScoping( + com.google.analytics.data.v1alpha.SessionCriteriaScoping value) { + if (value == null) { + throw new NullPointerException(); + } + + conditionScoping_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * the condition group. This scoping defines how many events the
+     * `segmentFilterExpression` is evaluated on before the condition group
+     * is determined to be matched or not. For example if `conditionScoping =
+     * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+     * events in a session, and then, the condition group is determined to be
+     * matched or not for this session. For example if `conditionScoping =
+     * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
+     * single event, and then, the condition group is determined to be matched or
+     * not for this session.
+     * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
+     * is used.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; + * + * @return This builder for chaining. + */ + public Builder clearConditionScoping() { + + conditionScoping_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> + segmentFilterExpressionBuilder_; + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return Whether the segmentFilterExpression field is set. + */ + public boolean hasSegmentFilterExpression() { + return segmentFilterExpressionBuilder_ != null || segmentFilterExpression_ != null; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return The segmentFilterExpression. + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() { + if (segmentFilterExpressionBuilder_ == null) { + return segmentFilterExpression_ == null + ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() + : segmentFilterExpression_; + } else { + return segmentFilterExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public Builder setSegmentFilterExpression( + com.google.analytics.data.v1alpha.SegmentFilterExpression value) { + if (segmentFilterExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + segmentFilterExpression_ = value; + onChanged(); + } else { + segmentFilterExpressionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public Builder setSegmentFilterExpression( + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) { + if (segmentFilterExpressionBuilder_ == null) { + segmentFilterExpression_ = builderForValue.build(); + onChanged(); + } else { + segmentFilterExpressionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public Builder mergeSegmentFilterExpression( + com.google.analytics.data.v1alpha.SegmentFilterExpression value) { + if (segmentFilterExpressionBuilder_ == null) { + if (segmentFilterExpression_ != null) { + segmentFilterExpression_ = + com.google.analytics.data.v1alpha.SegmentFilterExpression.newBuilder( + segmentFilterExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + segmentFilterExpression_ = value; + } + onChanged(); + } else { + segmentFilterExpressionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public Builder clearSegmentFilterExpression() { + if (segmentFilterExpressionBuilder_ == null) { + segmentFilterExpression_ = null; + onChanged(); + } else { + segmentFilterExpression_ = null; + segmentFilterExpressionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder + getSegmentFilterExpressionBuilder() { + + onChanged(); + return getSegmentFilterExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder + getSegmentFilterExpressionOrBuilder() { + if (segmentFilterExpressionBuilder_ != null) { + return segmentFilterExpressionBuilder_.getMessageOrBuilder(); + } else { + return segmentFilterExpression_ == null + ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() + : segmentFilterExpression_; + } + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> + getSegmentFilterExpressionFieldBuilder() { + if (segmentFilterExpressionBuilder_ == null) { + segmentFilterExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder>( + getSegmentFilterExpression(), getParentForChildren(), isClean()); + segmentFilterExpression_ = null; + } + return segmentFilterExpressionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.SessionSegmentConditionGroup) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SessionSegmentConditionGroup) + private static final com.google.analytics.data.v1alpha.SessionSegmentConditionGroup + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SessionSegmentConditionGroup(); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionSegmentConditionGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SessionSegmentConditionGroup(input, extensionRegistry); + } + }; + + public static 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.v1alpha.SessionSegmentConditionGroup + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroupOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroupOrBuilder.java new file mode 100644 index 00000000..75323664 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroupOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface SessionSegmentConditionGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SessionSegmentConditionGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * the condition group. This scoping defines how many events the
+   * `segmentFilterExpression` is evaluated on before the condition group
+   * is determined to be matched or not. For example if `conditionScoping =
+   * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+   * events in a session, and then, the condition group is determined to be
+   * matched or not for this session. For example if `conditionScoping =
+   * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
+   * single event, and then, the condition group is determined to be matched or
+   * not for this session.
+   * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
+   * is used.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; + * + * @return The enum numeric value on the wire for conditionScoping. + */ + int getConditionScopingValue(); + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * the condition group. This scoping defines how many events the
+   * `segmentFilterExpression` is evaluated on before the condition group
+   * is determined to be matched or not. For example if `conditionScoping =
+   * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+   * events in a session, and then, the condition group is determined to be
+   * matched or not for this session. For example if `conditionScoping =
+   * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
+   * single event, and then, the condition group is determined to be matched or
+   * not for this session.
+   * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
+   * is used.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; + * + * @return The conditionScoping. + */ + com.google.analytics.data.v1alpha.SessionCriteriaScoping getConditionScoping(); + + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return Whether the segmentFilterExpression field is set. + */ + boolean hasSegmentFilterExpression(); + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return The segmentFilterExpression. + */ + com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression(); + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder + getSegmentFilterExpressionOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteria.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteria.java new file mode 100644 index 00000000..a9feec05 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteria.java @@ -0,0 +1,1054 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * A session matches a criteria if the session's events meet the conditions in
+ * the criteria.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SessionSegmentCriteria} + */ +public final class SessionSegmentCriteria extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SessionSegmentCriteria) + SessionSegmentCriteriaOrBuilder { + private static final long serialVersionUID = 0L; + // Use SessionSegmentCriteria.newBuilder() to construct. + private SessionSegmentCriteria(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SessionSegmentCriteria() { + andConditionGroups_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SessionSegmentCriteria(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SessionSegmentCriteria( + 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)) { + andConditionGroups_ = + new java.util.ArrayList< + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup>(); + mutable_bitField0_ |= 0x00000001; + } + andConditionGroups_.add( + input.readMessage( + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + andConditionGroups_ = java.util.Collections.unmodifiableList(andConditionGroups_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SessionSegmentCriteria.class, + com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder.class); + } + + public static final int AND_CONDITION_GROUPS_FIELD_NUMBER = 1; + private java.util.List + andConditionGroups_; + /** + * + * + *
+   * A session matches this criteria if the session matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + @java.lang.Override + public java.util.List + getAndConditionGroupsList() { + return andConditionGroups_; + } + /** + * + * + *
+   * A session matches this criteria if the session matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder> + getAndConditionGroupsOrBuilderList() { + return andConditionGroups_; + } + /** + * + * + *
+   * A session matches this criteria if the session matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + @java.lang.Override + public int getAndConditionGroupsCount() { + return andConditionGroups_.size(); + } + /** + * + * + *
+   * A session matches this criteria if the session matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup getAndConditionGroups( + int index) { + return andConditionGroups_.get(index); + } + /** + * + * + *
+   * A session matches this criteria if the session matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder + getAndConditionGroupsOrBuilder(int index) { + return andConditionGroups_.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 < andConditionGroups_.size(); i++) { + output.writeMessage(1, andConditionGroups_.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 < andConditionGroups_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, andConditionGroups_.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.v1alpha.SessionSegmentCriteria)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.SessionSegmentCriteria other = + (com.google.analytics.data.v1alpha.SessionSegmentCriteria) obj; + + if (!getAndConditionGroupsList().equals(other.getAndConditionGroupsList())) return false; + if (!unknownFields.equals(other.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 (getAndConditionGroupsCount() > 0) { + hash = (37 * hash) + AND_CONDITION_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getAndConditionGroupsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.SessionSegmentCriteria parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentCriteria 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.v1alpha.SessionSegmentCriteria parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentCriteria parseFrom( + 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.v1alpha.SessionSegmentCriteria parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentCriteria parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentCriteria parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentCriteria parseFrom( + java.io.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.v1alpha.SessionSegmentCriteria parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentCriteria parseDelimitedFrom( + java.io.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.v1alpha.SessionSegmentCriteria parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentCriteria parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.SessionSegmentCriteria prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 session matches a criteria if the session's events meet the conditions in
+   * the criteria.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SessionSegmentCriteria} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SessionSegmentCriteria) + com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SessionSegmentCriteria.class, + com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.SessionSegmentCriteria.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAndConditionGroupsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (andConditionGroupsBuilder_ == null) { + andConditionGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + andConditionGroupsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentCriteria getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.SessionSegmentCriteria.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentCriteria build() { + com.google.analytics.data.v1alpha.SessionSegmentCriteria result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentCriteria buildPartial() { + com.google.analytics.data.v1alpha.SessionSegmentCriteria result = + new com.google.analytics.data.v1alpha.SessionSegmentCriteria(this); + int from_bitField0_ = bitField0_; + if (andConditionGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + andConditionGroups_ = java.util.Collections.unmodifiableList(andConditionGroups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.andConditionGroups_ = andConditionGroups_; + } else { + result.andConditionGroups_ = andConditionGroupsBuilder_.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.v1alpha.SessionSegmentCriteria) { + return mergeFrom((com.google.analytics.data.v1alpha.SessionSegmentCriteria) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.SessionSegmentCriteria other) { + if (other == com.google.analytics.data.v1alpha.SessionSegmentCriteria.getDefaultInstance()) + return this; + if (andConditionGroupsBuilder_ == null) { + if (!other.andConditionGroups_.isEmpty()) { + if (andConditionGroups_.isEmpty()) { + andConditionGroups_ = other.andConditionGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.addAll(other.andConditionGroups_); + } + onChanged(); + } + } else { + if (!other.andConditionGroups_.isEmpty()) { + if (andConditionGroupsBuilder_.isEmpty()) { + andConditionGroupsBuilder_.dispose(); + andConditionGroupsBuilder_ = null; + andConditionGroups_ = other.andConditionGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + andConditionGroupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAndConditionGroupsFieldBuilder() + : null; + } else { + andConditionGroupsBuilder_.addAllMessages(other.andConditionGroups_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.SessionSegmentCriteria parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.SessionSegmentCriteria) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + andConditionGroups_ = java.util.Collections.emptyList(); + + private void ensureAndConditionGroupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + andConditionGroups_ = + new java.util.ArrayList( + andConditionGroups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup, + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder, + com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder> + andConditionGroupsBuilder_; + + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public java.util.List + getAndConditionGroupsList() { + if (andConditionGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(andConditionGroups_); + } else { + return andConditionGroupsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public int getAndConditionGroupsCount() { + if (andConditionGroupsBuilder_ == null) { + return andConditionGroups_.size(); + } else { + return andConditionGroupsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup getAndConditionGroups( + int index) { + if (andConditionGroupsBuilder_ == null) { + return andConditionGroups_.get(index); + } else { + return andConditionGroupsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder setAndConditionGroups( + int index, com.google.analytics.data.v1alpha.SessionSegmentConditionGroup value) { + if (andConditionGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.set(index, value); + onChanged(); + } else { + andConditionGroupsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder setAndConditionGroups( + int index, + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder builderForValue) { + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + andConditionGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder addAndConditionGroups( + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup value) { + if (andConditionGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.add(value); + onChanged(); + } else { + andConditionGroupsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder addAndConditionGroups( + int index, com.google.analytics.data.v1alpha.SessionSegmentConditionGroup value) { + if (andConditionGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.add(index, value); + onChanged(); + } else { + andConditionGroupsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder addAndConditionGroups( + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder builderForValue) { + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.add(builderForValue.build()); + onChanged(); + } else { + andConditionGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder addAndConditionGroups( + int index, + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder builderForValue) { + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + andConditionGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder addAllAndConditionGroups( + java.lang.Iterable + values) { + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, andConditionGroups_); + onChanged(); + } else { + andConditionGroupsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder clearAndConditionGroups() { + if (andConditionGroupsBuilder_ == null) { + andConditionGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + andConditionGroupsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder removeAndConditionGroups(int index) { + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.remove(index); + onChanged(); + } else { + andConditionGroupsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder + getAndConditionGroupsBuilder(int index) { + return getAndConditionGroupsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder + getAndConditionGroupsOrBuilder(int index) { + if (andConditionGroupsBuilder_ == null) { + return andConditionGroups_.get(index); + } else { + return andConditionGroupsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder> + getAndConditionGroupsOrBuilderList() { + if (andConditionGroupsBuilder_ != null) { + return andConditionGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(andConditionGroups_); + } + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder + addAndConditionGroupsBuilder() { + return getAndConditionGroupsFieldBuilder() + .addBuilder( + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.getDefaultInstance()); + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder + addAndConditionGroupsBuilder(int index) { + return getAndConditionGroupsFieldBuilder() + .addBuilder( + index, + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.getDefaultInstance()); + } + /** + * + * + *
+     * A session matches this criteria if the session matches each of these
+     * `andConditionGroups`.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + public java.util.List + getAndConditionGroupsBuilderList() { + return getAndConditionGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup, + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder, + com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder> + getAndConditionGroupsFieldBuilder() { + if (andConditionGroupsBuilder_ == null) { + andConditionGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup, + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder, + com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder>( + andConditionGroups_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + andConditionGroups_ = null; + } + return andConditionGroupsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.SessionSegmentCriteria) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SessionSegmentCriteria) + private static final com.google.analytics.data.v1alpha.SessionSegmentCriteria DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SessionSegmentCriteria(); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentCriteria getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionSegmentCriteria parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SessionSegmentCriteria(input, extensionRegistry); + } + }; + + public static 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.v1alpha.SessionSegmentCriteria getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteriaOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteriaOrBuilder.java new file mode 100644 index 00000000..c92545fb --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteriaOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface SessionSegmentCriteriaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SessionSegmentCriteria) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A session matches this criteria if the session matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + java.util.List + getAndConditionGroupsList(); + /** + * + * + *
+   * A session matches this criteria if the session matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup getAndConditionGroups(int index); + /** + * + * + *
+   * A session matches this criteria if the session matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + int getAndConditionGroupsCount(); + /** + * + * + *
+   * A session matches this criteria if the session matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + java.util.List + getAndConditionGroupsOrBuilderList(); + /** + * + * + *
+   * A session matches this criteria if the session matches each of these
+   * `andConditionGroups`.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; + * + */ + com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder + getAndConditionGroupsOrBuilder(int index); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusion.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusion.java new file mode 100644 index 00000000..83a236a2 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusion.java @@ -0,0 +1,963 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Specifies which sessions are excluded in this segment.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SessionSegmentExclusion} + */ +public final class SessionSegmentExclusion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SessionSegmentExclusion) + SessionSegmentExclusionOrBuilder { + private static final long serialVersionUID = 0L; + // Use SessionSegmentExclusion.newBuilder() to construct. + private SessionSegmentExclusion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SessionSegmentExclusion() { + sessionExclusionDuration_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SessionSegmentExclusion(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SessionSegmentExclusion( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder 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(); + + sessionExclusionDuration_ = rawValue; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder subBuilder = null; + if (sessionExclusionCriteria_ != null) { + subBuilder = sessionExclusionCriteria_.toBuilder(); + } + sessionExclusionCriteria_ = + input.readMessage( + com.google.analytics.data.v1alpha.SessionSegmentCriteria.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sessionExclusionCriteria_); + sessionExclusionCriteria_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SessionSegmentExclusion.class, + com.google.analytics.data.v1alpha.SessionSegmentExclusion.Builder.class); + } + + public static final int SESSION_EXCLUSION_DURATION_FIELD_NUMBER = 1; + private int sessionExclusionDuration_; + /** + * + * + *
+   * Specifies how long an exclusion will last if a session matches the
+   * `sessionExclusionCriteria`.
+   * Optional. If unspecified, a `sessionExclusionDuration` of
+   * `SESSION_EXCLUSION_TEMPORARY` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; + * + * + * @return The enum numeric value on the wire for sessionExclusionDuration. + */ + @java.lang.Override + public int getSessionExclusionDurationValue() { + return sessionExclusionDuration_; + } + /** + * + * + *
+   * Specifies how long an exclusion will last if a session matches the
+   * `sessionExclusionCriteria`.
+   * Optional. If unspecified, a `sessionExclusionDuration` of
+   * `SESSION_EXCLUSION_TEMPORARY` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; + * + * + * @return The sessionExclusionDuration. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionExclusionDuration getSessionExclusionDuration() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.SessionExclusionDuration result = + com.google.analytics.data.v1alpha.SessionExclusionDuration.valueOf( + sessionExclusionDuration_); + return result == null + ? com.google.analytics.data.v1alpha.SessionExclusionDuration.UNRECOGNIZED + : result; + } + + public static final int SESSION_EXCLUSION_CRITERIA_FIELD_NUMBER = 2; + private com.google.analytics.data.v1alpha.SessionSegmentCriteria sessionExclusionCriteria_; + /** + * + * + *
+   * If a session meets this condition, the session is excluded from
+   * membership in the segment for the `sessionExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; + * + * + * @return Whether the sessionExclusionCriteria field is set. + */ + @java.lang.Override + public boolean hasSessionExclusionCriteria() { + return sessionExclusionCriteria_ != null; + } + /** + * + * + *
+   * If a session meets this condition, the session is excluded from
+   * membership in the segment for the `sessionExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; + * + * + * @return The sessionExclusionCriteria. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentCriteria getSessionExclusionCriteria() { + return sessionExclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.SessionSegmentCriteria.getDefaultInstance() + : sessionExclusionCriteria_; + } + /** + * + * + *
+   * If a session meets this condition, the session is excluded from
+   * membership in the segment for the `sessionExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder + getSessionExclusionCriteriaOrBuilder() { + return getSessionExclusionCriteria(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (sessionExclusionDuration_ + != com.google.analytics.data.v1alpha.SessionExclusionDuration + .SESSION_EXCLUSION_DURATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, sessionExclusionDuration_); + } + if (sessionExclusionCriteria_ != null) { + output.writeMessage(2, getSessionExclusionCriteria()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sessionExclusionDuration_ + != com.google.analytics.data.v1alpha.SessionExclusionDuration + .SESSION_EXCLUSION_DURATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, sessionExclusionDuration_); + } + if (sessionExclusionCriteria_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getSessionExclusionCriteria()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.SessionSegmentExclusion)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.SessionSegmentExclusion other = + (com.google.analytics.data.v1alpha.SessionSegmentExclusion) obj; + + if (sessionExclusionDuration_ != other.sessionExclusionDuration_) return false; + if (hasSessionExclusionCriteria() != other.hasSessionExclusionCriteria()) return false; + if (hasSessionExclusionCriteria()) { + if (!getSessionExclusionCriteria().equals(other.getSessionExclusionCriteria())) return false; + } + if (!unknownFields.equals(other.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) + SESSION_EXCLUSION_DURATION_FIELD_NUMBER; + hash = (53 * hash) + sessionExclusionDuration_; + if (hasSessionExclusionCriteria()) { + hash = (37 * hash) + SESSION_EXCLUSION_CRITERIA_FIELD_NUMBER; + hash = (53 * hash) + getSessionExclusionCriteria().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.SessionSegmentExclusion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentExclusion 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.v1alpha.SessionSegmentExclusion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentExclusion parseFrom( + 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.v1alpha.SessionSegmentExclusion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentExclusion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentExclusion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentExclusion parseFrom( + java.io.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.v1alpha.SessionSegmentExclusion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentExclusion parseDelimitedFrom( + java.io.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.v1alpha.SessionSegmentExclusion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentExclusion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.SessionSegmentExclusion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Specifies which sessions are excluded in this segment.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.SessionSegmentExclusion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SessionSegmentExclusion) + com.google.analytics.data.v1alpha.SessionSegmentExclusionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.SessionSegmentExclusion.class, + com.google.analytics.data.v1alpha.SessionSegmentExclusion.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.SessionSegmentExclusion.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(); + sessionExclusionDuration_ = 0; + + if (sessionExclusionCriteriaBuilder_ == null) { + sessionExclusionCriteria_ = null; + } else { + sessionExclusionCriteria_ = null; + sessionExclusionCriteriaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentExclusion getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.SessionSegmentExclusion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentExclusion build() { + com.google.analytics.data.v1alpha.SessionSegmentExclusion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionSegmentExclusion buildPartial() { + com.google.analytics.data.v1alpha.SessionSegmentExclusion result = + new com.google.analytics.data.v1alpha.SessionSegmentExclusion(this); + result.sessionExclusionDuration_ = sessionExclusionDuration_; + if (sessionExclusionCriteriaBuilder_ == null) { + result.sessionExclusionCriteria_ = sessionExclusionCriteria_; + } else { + result.sessionExclusionCriteria_ = sessionExclusionCriteriaBuilder_.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.v1alpha.SessionSegmentExclusion) { + return mergeFrom((com.google.analytics.data.v1alpha.SessionSegmentExclusion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.SessionSegmentExclusion other) { + if (other == com.google.analytics.data.v1alpha.SessionSegmentExclusion.getDefaultInstance()) + return this; + if (other.sessionExclusionDuration_ != 0) { + setSessionExclusionDurationValue(other.getSessionExclusionDurationValue()); + } + if (other.hasSessionExclusionCriteria()) { + mergeSessionExclusionCriteria(other.getSessionExclusionCriteria()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.SessionSegmentExclusion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.SessionSegmentExclusion) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int sessionExclusionDuration_ = 0; + /** + * + * + *
+     * Specifies how long an exclusion will last if a session matches the
+     * `sessionExclusionCriteria`.
+     * Optional. If unspecified, a `sessionExclusionDuration` of
+     * `SESSION_EXCLUSION_TEMPORARY` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; + * + * + * @return The enum numeric value on the wire for sessionExclusionDuration. + */ + @java.lang.Override + public int getSessionExclusionDurationValue() { + return sessionExclusionDuration_; + } + /** + * + * + *
+     * Specifies how long an exclusion will last if a session matches the
+     * `sessionExclusionCriteria`.
+     * Optional. If unspecified, a `sessionExclusionDuration` of
+     * `SESSION_EXCLUSION_TEMPORARY` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; + * + * + * @param value The enum numeric value on the wire for sessionExclusionDuration to set. + * @return This builder for chaining. + */ + public Builder setSessionExclusionDurationValue(int value) { + + sessionExclusionDuration_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies how long an exclusion will last if a session matches the
+     * `sessionExclusionCriteria`.
+     * Optional. If unspecified, a `sessionExclusionDuration` of
+     * `SESSION_EXCLUSION_TEMPORARY` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; + * + * + * @return The sessionExclusionDuration. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SessionExclusionDuration + getSessionExclusionDuration() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.SessionExclusionDuration result = + com.google.analytics.data.v1alpha.SessionExclusionDuration.valueOf( + sessionExclusionDuration_); + return result == null + ? com.google.analytics.data.v1alpha.SessionExclusionDuration.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Specifies how long an exclusion will last if a session matches the
+     * `sessionExclusionCriteria`.
+     * Optional. If unspecified, a `sessionExclusionDuration` of
+     * `SESSION_EXCLUSION_TEMPORARY` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; + * + * + * @param value The sessionExclusionDuration to set. + * @return This builder for chaining. + */ + public Builder setSessionExclusionDuration( + com.google.analytics.data.v1alpha.SessionExclusionDuration value) { + if (value == null) { + throw new NullPointerException(); + } + + sessionExclusionDuration_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies how long an exclusion will last if a session matches the
+     * `sessionExclusionCriteria`.
+     * Optional. If unspecified, a `sessionExclusionDuration` of
+     * `SESSION_EXCLUSION_TEMPORARY` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearSessionExclusionDuration() { + + sessionExclusionDuration_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.data.v1alpha.SessionSegmentCriteria sessionExclusionCriteria_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SessionSegmentCriteria, + com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder> + sessionExclusionCriteriaBuilder_; + /** + * + * + *
+     * If a session meets this condition, the session is excluded from
+     * membership in the segment for the `sessionExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; + * + * + * @return Whether the sessionExclusionCriteria field is set. + */ + public boolean hasSessionExclusionCriteria() { + return sessionExclusionCriteriaBuilder_ != null || sessionExclusionCriteria_ != null; + } + /** + * + * + *
+     * If a session meets this condition, the session is excluded from
+     * membership in the segment for the `sessionExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; + * + * + * @return The sessionExclusionCriteria. + */ + public com.google.analytics.data.v1alpha.SessionSegmentCriteria getSessionExclusionCriteria() { + if (sessionExclusionCriteriaBuilder_ == null) { + return sessionExclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.SessionSegmentCriteria.getDefaultInstance() + : sessionExclusionCriteria_; + } else { + return sessionExclusionCriteriaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * If a session meets this condition, the session is excluded from
+     * membership in the segment for the `sessionExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; + * + */ + public Builder setSessionExclusionCriteria( + com.google.analytics.data.v1alpha.SessionSegmentCriteria value) { + if (sessionExclusionCriteriaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sessionExclusionCriteria_ = value; + onChanged(); + } else { + sessionExclusionCriteriaBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * If a session meets this condition, the session is excluded from
+     * membership in the segment for the `sessionExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; + * + */ + public Builder setSessionExclusionCriteria( + com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder builderForValue) { + if (sessionExclusionCriteriaBuilder_ == null) { + sessionExclusionCriteria_ = builderForValue.build(); + onChanged(); + } else { + sessionExclusionCriteriaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * If a session meets this condition, the session is excluded from
+     * membership in the segment for the `sessionExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; + * + */ + public Builder mergeSessionExclusionCriteria( + com.google.analytics.data.v1alpha.SessionSegmentCriteria value) { + if (sessionExclusionCriteriaBuilder_ == null) { + if (sessionExclusionCriteria_ != null) { + sessionExclusionCriteria_ = + com.google.analytics.data.v1alpha.SessionSegmentCriteria.newBuilder( + sessionExclusionCriteria_) + .mergeFrom(value) + .buildPartial(); + } else { + sessionExclusionCriteria_ = value; + } + onChanged(); + } else { + sessionExclusionCriteriaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * If a session meets this condition, the session is excluded from
+     * membership in the segment for the `sessionExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; + * + */ + public Builder clearSessionExclusionCriteria() { + if (sessionExclusionCriteriaBuilder_ == null) { + sessionExclusionCriteria_ = null; + onChanged(); + } else { + sessionExclusionCriteria_ = null; + sessionExclusionCriteriaBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * If a session meets this condition, the session is excluded from
+     * membership in the segment for the `sessionExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; + * + */ + public com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder + getSessionExclusionCriteriaBuilder() { + + onChanged(); + return getSessionExclusionCriteriaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If a session meets this condition, the session is excluded from
+     * membership in the segment for the `sessionExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; + * + */ + public com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder + getSessionExclusionCriteriaOrBuilder() { + if (sessionExclusionCriteriaBuilder_ != null) { + return sessionExclusionCriteriaBuilder_.getMessageOrBuilder(); + } else { + return sessionExclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.SessionSegmentCriteria.getDefaultInstance() + : sessionExclusionCriteria_; + } + } + /** + * + * + *
+     * If a session meets this condition, the session is excluded from
+     * membership in the segment for the `sessionExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SessionSegmentCriteria, + com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder> + getSessionExclusionCriteriaFieldBuilder() { + if (sessionExclusionCriteriaBuilder_ == null) { + sessionExclusionCriteriaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SessionSegmentCriteria, + com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder>( + getSessionExclusionCriteria(), getParentForChildren(), isClean()); + sessionExclusionCriteria_ = null; + } + return sessionExclusionCriteriaBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.SessionSegmentExclusion) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SessionSegmentExclusion) + private static final com.google.analytics.data.v1alpha.SessionSegmentExclusion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SessionSegmentExclusion(); + } + + public static com.google.analytics.data.v1alpha.SessionSegmentExclusion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SessionSegmentExclusion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SessionSegmentExclusion(input, extensionRegistry); + } + }; + + public static 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.v1alpha.SessionSegmentExclusion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusionOrBuilder.java new file mode 100644 index 00000000..53c8f593 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusionOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface SessionSegmentExclusionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SessionSegmentExclusion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Specifies how long an exclusion will last if a session matches the
+   * `sessionExclusionCriteria`.
+   * Optional. If unspecified, a `sessionExclusionDuration` of
+   * `SESSION_EXCLUSION_TEMPORARY` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; + * + * + * @return The enum numeric value on the wire for sessionExclusionDuration. + */ + int getSessionExclusionDurationValue(); + /** + * + * + *
+   * Specifies how long an exclusion will last if a session matches the
+   * `sessionExclusionCriteria`.
+   * Optional. If unspecified, a `sessionExclusionDuration` of
+   * `SESSION_EXCLUSION_TEMPORARY` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; + * + * + * @return The sessionExclusionDuration. + */ + com.google.analytics.data.v1alpha.SessionExclusionDuration getSessionExclusionDuration(); + + /** + * + * + *
+   * If a session meets this condition, the session is excluded from
+   * membership in the segment for the `sessionExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; + * + * + * @return Whether the sessionExclusionCriteria field is set. + */ + boolean hasSessionExclusionCriteria(); + /** + * + * + *
+   * If a session meets this condition, the session is excluded from
+   * membership in the segment for the `sessionExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; + * + * + * @return The sessionExclusionCriteria. + */ + com.google.analytics.data.v1alpha.SessionSegmentCriteria getSessionExclusionCriteria(); + /** + * + * + *
+   * If a session meets this condition, the session is excluded from
+   * membership in the segment for the `sessionExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; + * + */ + com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder + getSessionExclusionCriteriaOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentOrBuilder.java new file mode 100644 index 00000000..fa600e30 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentOrBuilder.java @@ -0,0 +1,99 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface SessionSegmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SessionSegment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Defines which sessions are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; + * + * + * @return Whether the sessionInclusionCriteria field is set. + */ + boolean hasSessionInclusionCriteria(); + /** + * + * + *
+   * Defines which sessions are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; + * + * + * @return The sessionInclusionCriteria. + */ + com.google.analytics.data.v1alpha.SessionSegmentCriteria getSessionInclusionCriteria(); + /** + * + * + *
+   * Defines which sessions are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; + * + */ + com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder + getSessionInclusionCriteriaOrBuilder(); + + /** + * + * + *
+   * Defines which sessions are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; + * + * @return Whether the exclusion field is set. + */ + boolean hasExclusion(); + /** + * + * + *
+   * Defines which sessions are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; + * + * @return The exclusion. + */ + com.google.analytics.data.v1alpha.SessionSegmentExclusion getExclusion(); + /** + * + * + *
+   * Defines which sessions are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; + */ + com.google.analytics.data.v1alpha.SessionSegmentExclusionOrBuilder getExclusionOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilter.java new file mode 100644 index 00000000..18da13e9 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilter.java @@ -0,0 +1,1129 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * The filter for string
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.StringFilter} + */ +public final class StringFilter extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_StringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_StringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.StringFilter.class, + com.google.analytics.data.v1alpha.StringFilter.Builder.class); + } + + /** + * + * + *
+   * The match type of a string filter
+   * 
+ * + * Protobuf enum {@code google.analytics.data.v1alpha.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 match for the regular expression with the string value.
+     * 
+ * + * FULL_REGEXP = 5; + */ + FULL_REGEXP(5), + /** + * + * + *
+     * Partial match for the regular expression 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 match for the regular expression with the string value.
+     * 
+ * + * FULL_REGEXP = 5; + */ + public static final int FULL_REGEXP_VALUE = 5; + /** + * + * + *
+     * Partial match for the regular expression 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.v1alpha.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.v1alpha.StringFilter.MatchType) + } + + public static final int MATCH_TYPE_FIELD_NUMBER = 1; + private int matchType_; + /** + * + * + *
+   * The match type for this filter.
+   * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.StringFilter.MatchType match_type = 1; + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilter.MatchType getMatchType() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.StringFilter.MatchType result = + com.google.analytics.data.v1alpha.StringFilter.MatchType.valueOf(matchType_); + return result == null + ? com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.StringFilter)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.StringFilter other = + (com.google.analytics.data.v1alpha.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.v1alpha.StringFilter parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.StringFilter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.StringFilter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.StringFilter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.StringFilter parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.StringFilter} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.StringFilter) + com.google.analytics.data.v1alpha.StringFilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_StringFilter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_StringFilter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.StringFilter.class, + com.google.analytics.data.v1alpha.StringFilter.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_StringFilter_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilter getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilter build() { + com.google.analytics.data.v1alpha.StringFilter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilter buildPartial() { + com.google.analytics.data.v1alpha.StringFilter result = + new com.google.analytics.data.v1alpha.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.v1alpha.StringFilter) { + return mergeFrom((com.google.analytics.data.v1alpha.StringFilter) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.StringFilter other) { + if (other == com.google.analytics.data.v1alpha.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.v1alpha.StringFilter parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.StringFilter.MatchType match_type = 1; + * + * @return The matchType. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.StringFilter.MatchType getMatchType() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.StringFilter.MatchType result = + com.google.analytics.data.v1alpha.StringFilter.MatchType.valueOf(matchType_); + return result == null + ? com.google.analytics.data.v1alpha.StringFilter.MatchType.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.data.v1alpha.StringFilter.MatchType match_type = 1; + * + * @param value The matchType to set. + * @return This builder for chaining. + */ + public Builder setMatchType(com.google.analytics.data.v1alpha.StringFilter.MatchType value) { + if (value == null) { + throw new NullPointerException(); + } + + matchType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The match type for this filter.
+     * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.StringFilter) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.StringFilter) + private static final com.google.analytics.data.v1alpha.StringFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.StringFilter(); + } + + public static com.google.analytics.data.v1alpha.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.v1alpha.StringFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilterOrBuilder.java new file mode 100644 index 00000000..ad6ee584 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilterOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface StringFilterOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.StringFilter) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The match type for this filter.
+   * 
+ * + * .google.analytics.data.v1alpha.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.v1alpha.StringFilter.MatchType match_type = 1; + * + * @return The matchType. + */ + com.google.analytics.data.v1alpha.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(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserCriteriaScoping.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserCriteriaScoping.java new file mode 100644 index 00000000..78ed5df3 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserCriteriaScoping.java @@ -0,0 +1,210 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Scoping specifies which events are considered when evaluating if a user
+ * meets a criteria.
+ * 
+ * + * Protobuf enum {@code google.analytics.data.v1alpha.UserCriteriaScoping} + */ +public enum UserCriteriaScoping implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified criteria scoping. Do not specify.
+   * 
+ * + * USER_CRITERIA_SCOPING_UNSPECIFIED = 0; + */ + USER_CRITERIA_SCOPING_UNSPECIFIED(0), + /** + * + * + *
+   * If the criteria is satisfied within one event, the user matches the
+   * criteria.
+   * 
+ * + * USER_CRITERIA_WITHIN_SAME_EVENT = 1; + */ + USER_CRITERIA_WITHIN_SAME_EVENT(1), + /** + * + * + *
+   * If the criteria is satisfied within one session, the user matches the
+   * criteria.
+   * 
+ * + * USER_CRITERIA_WITHIN_SAME_SESSION = 2; + */ + USER_CRITERIA_WITHIN_SAME_SESSION(2), + /** + * + * + *
+   * If the criteria is satisfied by any events for the user, the user
+   * matches the criteria.
+   * 
+ * + * USER_CRITERIA_ACROSS_ALL_SESSIONS = 3; + */ + USER_CRITERIA_ACROSS_ALL_SESSIONS(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified criteria scoping. Do not specify.
+   * 
+ * + * USER_CRITERIA_SCOPING_UNSPECIFIED = 0; + */ + public static final int USER_CRITERIA_SCOPING_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * If the criteria is satisfied within one event, the user matches the
+   * criteria.
+   * 
+ * + * USER_CRITERIA_WITHIN_SAME_EVENT = 1; + */ + public static final int USER_CRITERIA_WITHIN_SAME_EVENT_VALUE = 1; + /** + * + * + *
+   * If the criteria is satisfied within one session, the user matches the
+   * criteria.
+   * 
+ * + * USER_CRITERIA_WITHIN_SAME_SESSION = 2; + */ + public static final int USER_CRITERIA_WITHIN_SAME_SESSION_VALUE = 2; + /** + * + * + *
+   * If the criteria is satisfied by any events for the user, the user
+   * matches the criteria.
+   * 
+ * + * USER_CRITERIA_ACROSS_ALL_SESSIONS = 3; + */ + public static final int USER_CRITERIA_ACROSS_ALL_SESSIONS_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 UserCriteriaScoping 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 UserCriteriaScoping forNumber(int value) { + switch (value) { + case 0: + return USER_CRITERIA_SCOPING_UNSPECIFIED; + case 1: + return USER_CRITERIA_WITHIN_SAME_EVENT; + case 2: + return USER_CRITERIA_WITHIN_SAME_SESSION; + case 3: + return USER_CRITERIA_ACROSS_ALL_SESSIONS; + 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 UserCriteriaScoping findValueByNumber(int number) { + return UserCriteriaScoping.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.v1alpha.ReportingApiProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final UserCriteriaScoping[] VALUES = values(); + + public static UserCriteriaScoping 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 UserCriteriaScoping(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.UserCriteriaScoping) +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserExclusionDuration.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserExclusionDuration.java new file mode 100644 index 00000000..50c10f56 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserExclusionDuration.java @@ -0,0 +1,186 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Enumerates options for how long an exclusion will last if a user matches
+ * the `userExclusionCriteria`.
+ * 
+ * + * Protobuf enum {@code google.analytics.data.v1alpha.UserExclusionDuration} + */ +public enum UserExclusionDuration implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified exclusion duration. Do not specify.
+   * 
+ * + * USER_EXCLUSION_DURATION_UNSPECIFIED = 0; + */ + USER_EXCLUSION_DURATION_UNSPECIFIED(0), + /** + * + * + *
+   * Temporarily exclude users from the segment during periods when the
+   * user meets the `userExclusionCriteria` condition.
+   * 
+ * + * USER_EXCLUSION_TEMPORARY = 1; + */ + USER_EXCLUSION_TEMPORARY(1), + /** + * + * + *
+   * Permanently exclude users from the segment if the user ever meets the
+   * `userExclusionCriteria` condition.
+   * 
+ * + * USER_EXCLUSION_PERMANENT = 2; + */ + USER_EXCLUSION_PERMANENT(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified exclusion duration. Do not specify.
+   * 
+ * + * USER_EXCLUSION_DURATION_UNSPECIFIED = 0; + */ + public static final int USER_EXCLUSION_DURATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Temporarily exclude users from the segment during periods when the
+   * user meets the `userExclusionCriteria` condition.
+   * 
+ * + * USER_EXCLUSION_TEMPORARY = 1; + */ + public static final int USER_EXCLUSION_TEMPORARY_VALUE = 1; + /** + * + * + *
+   * Permanently exclude users from the segment if the user ever meets the
+   * `userExclusionCriteria` condition.
+   * 
+ * + * USER_EXCLUSION_PERMANENT = 2; + */ + public static final int USER_EXCLUSION_PERMANENT_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 UserExclusionDuration 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 UserExclusionDuration forNumber(int value) { + switch (value) { + case 0: + return USER_EXCLUSION_DURATION_UNSPECIFIED; + case 1: + return USER_EXCLUSION_TEMPORARY; + case 2: + return USER_EXCLUSION_PERMANENT; + 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 UserExclusionDuration findValueByNumber(int number) { + return UserExclusionDuration.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.v1alpha.ReportingApiProto.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final UserExclusionDuration[] VALUES = values(); + + public static UserExclusionDuration 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 UserExclusionDuration(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.UserExclusionDuration) +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegment.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegment.java new file mode 100644 index 00000000..36ca8735 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegment.java @@ -0,0 +1,1025 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * User segments are subsets of users who engaged with your site or app. For
+ * example, users who have previously purchased; users who added items to their
+ * shopping carts, but didn’t complete a purchase.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.UserSegment} + */ +public final class UserSegment extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.UserSegment) + UserSegmentOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserSegment.newBuilder() to construct. + private UserSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserSegment() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserSegment(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UserSegment( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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.v1alpha.UserSegmentCriteria.Builder subBuilder = null; + if (userInclusionCriteria_ != null) { + subBuilder = userInclusionCriteria_.toBuilder(); + } + userInclusionCriteria_ = + input.readMessage( + com.google.analytics.data.v1alpha.UserSegmentCriteria.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userInclusionCriteria_); + userInclusionCriteria_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder subBuilder = null; + if (exclusion_ != null) { + subBuilder = exclusion_.toBuilder(); + } + exclusion_ = + input.readMessage( + com.google.analytics.data.v1alpha.UserSegmentExclusion.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(exclusion_); + exclusion_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.UserSegment.class, + com.google.analytics.data.v1alpha.UserSegment.Builder.class); + } + + public static final int USER_INCLUSION_CRITERIA_FIELD_NUMBER = 1; + private com.google.analytics.data.v1alpha.UserSegmentCriteria userInclusionCriteria_; + /** + * + * + *
+   * Defines which users are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; + * + * @return Whether the userInclusionCriteria field is set. + */ + @java.lang.Override + public boolean hasUserInclusionCriteria() { + return userInclusionCriteria_ != null; + } + /** + * + * + *
+   * Defines which users are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; + * + * @return The userInclusionCriteria. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentCriteria getUserInclusionCriteria() { + return userInclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.UserSegmentCriteria.getDefaultInstance() + : userInclusionCriteria_; + } + /** + * + * + *
+   * Defines which users are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder + getUserInclusionCriteriaOrBuilder() { + return getUserInclusionCriteria(); + } + + public static final int EXCLUSION_FIELD_NUMBER = 2; + private com.google.analytics.data.v1alpha.UserSegmentExclusion exclusion_; + /** + * + * + *
+   * Defines which users are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; + * + * @return Whether the exclusion field is set. + */ + @java.lang.Override + public boolean hasExclusion() { + return exclusion_ != null; + } + /** + * + * + *
+   * Defines which users are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; + * + * @return The exclusion. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentExclusion getExclusion() { + return exclusion_ == null + ? com.google.analytics.data.v1alpha.UserSegmentExclusion.getDefaultInstance() + : exclusion_; + } + /** + * + * + *
+   * Defines which users are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentExclusionOrBuilder getExclusionOrBuilder() { + return getExclusion(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (userInclusionCriteria_ != null) { + output.writeMessage(1, getUserInclusionCriteria()); + } + if (exclusion_ != null) { + output.writeMessage(2, getExclusion()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (userInclusionCriteria_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUserInclusionCriteria()); + } + if (exclusion_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.UserSegment)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.UserSegment other = + (com.google.analytics.data.v1alpha.UserSegment) obj; + + if (hasUserInclusionCriteria() != other.hasUserInclusionCriteria()) return false; + if (hasUserInclusionCriteria()) { + if (!getUserInclusionCriteria().equals(other.getUserInclusionCriteria())) return false; + } + if (hasExclusion() != other.hasExclusion()) return false; + if (hasExclusion()) { + if (!getExclusion().equals(other.getExclusion())) return false; + } + if (!unknownFields.equals(other.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 (hasUserInclusionCriteria()) { + hash = (37 * hash) + USER_INCLUSION_CRITERIA_FIELD_NUMBER; + hash = (53 * hash) + getUserInclusionCriteria().hashCode(); + } + if (hasExclusion()) { + hash = (37 * hash) + EXCLUSION_FIELD_NUMBER; + hash = (53 * hash) + getExclusion().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.UserSegment parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSegment 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.v1alpha.UserSegment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSegment parseFrom( + 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.v1alpha.UserSegment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSegment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.UserSegment parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSegment parseFrom( + java.io.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.v1alpha.UserSegment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSegment parseDelimitedFrom( + java.io.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.v1alpha.UserSegment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSegment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.UserSegment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * User segments are subsets of users who engaged with your site or app. For
+   * example, users who have previously purchased; users who added items to their
+   * shopping carts, but didn’t complete a purchase.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.UserSegment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.UserSegment) + com.google.analytics.data.v1alpha.UserSegmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.UserSegment.class, + com.google.analytics.data.v1alpha.UserSegment.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.UserSegment.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 (userInclusionCriteriaBuilder_ == null) { + userInclusionCriteria_ = null; + } else { + userInclusionCriteria_ = null; + userInclusionCriteriaBuilder_ = null; + } + if (exclusionBuilder_ == null) { + exclusion_ = null; + } else { + exclusion_ = null; + exclusionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegment_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegment getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegment build() { + com.google.analytics.data.v1alpha.UserSegment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegment buildPartial() { + com.google.analytics.data.v1alpha.UserSegment result = + new com.google.analytics.data.v1alpha.UserSegment(this); + if (userInclusionCriteriaBuilder_ == null) { + result.userInclusionCriteria_ = userInclusionCriteria_; + } else { + result.userInclusionCriteria_ = userInclusionCriteriaBuilder_.build(); + } + if (exclusionBuilder_ == null) { + result.exclusion_ = exclusion_; + } else { + result.exclusion_ = exclusionBuilder_.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.v1alpha.UserSegment) { + return mergeFrom((com.google.analytics.data.v1alpha.UserSegment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSegment other) { + if (other == com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance()) return this; + if (other.hasUserInclusionCriteria()) { + mergeUserInclusionCriteria(other.getUserInclusionCriteria()); + } + if (other.hasExclusion()) { + mergeExclusion(other.getExclusion()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.UserSegment parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.data.v1alpha.UserSegment) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.data.v1alpha.UserSegmentCriteria userInclusionCriteria_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegmentCriteria, + com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder> + userInclusionCriteriaBuilder_; + /** + * + * + *
+     * Defines which users are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; + * + * @return Whether the userInclusionCriteria field is set. + */ + public boolean hasUserInclusionCriteria() { + return userInclusionCriteriaBuilder_ != null || userInclusionCriteria_ != null; + } + /** + * + * + *
+     * Defines which users are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; + * + * @return The userInclusionCriteria. + */ + public com.google.analytics.data.v1alpha.UserSegmentCriteria getUserInclusionCriteria() { + if (userInclusionCriteriaBuilder_ == null) { + return userInclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.UserSegmentCriteria.getDefaultInstance() + : userInclusionCriteria_; + } else { + return userInclusionCriteriaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Defines which users are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; + */ + public Builder setUserInclusionCriteria( + com.google.analytics.data.v1alpha.UserSegmentCriteria value) { + if (userInclusionCriteriaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userInclusionCriteria_ = value; + onChanged(); + } else { + userInclusionCriteriaBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Defines which users are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; + */ + public Builder setUserInclusionCriteria( + com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder builderForValue) { + if (userInclusionCriteriaBuilder_ == null) { + userInclusionCriteria_ = builderForValue.build(); + onChanged(); + } else { + userInclusionCriteriaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Defines which users are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; + */ + public Builder mergeUserInclusionCriteria( + com.google.analytics.data.v1alpha.UserSegmentCriteria value) { + if (userInclusionCriteriaBuilder_ == null) { + if (userInclusionCriteria_ != null) { + userInclusionCriteria_ = + com.google.analytics.data.v1alpha.UserSegmentCriteria.newBuilder( + userInclusionCriteria_) + .mergeFrom(value) + .buildPartial(); + } else { + userInclusionCriteria_ = value; + } + onChanged(); + } else { + userInclusionCriteriaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Defines which users are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; + */ + public Builder clearUserInclusionCriteria() { + if (userInclusionCriteriaBuilder_ == null) { + userInclusionCriteria_ = null; + onChanged(); + } else { + userInclusionCriteria_ = null; + userInclusionCriteriaBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Defines which users are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; + */ + public com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder + getUserInclusionCriteriaBuilder() { + + onChanged(); + return getUserInclusionCriteriaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Defines which users are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; + */ + public com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder + getUserInclusionCriteriaOrBuilder() { + if (userInclusionCriteriaBuilder_ != null) { + return userInclusionCriteriaBuilder_.getMessageOrBuilder(); + } else { + return userInclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.UserSegmentCriteria.getDefaultInstance() + : userInclusionCriteria_; + } + } + /** + * + * + *
+     * Defines which users are included in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegmentCriteria, + com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder> + getUserInclusionCriteriaFieldBuilder() { + if (userInclusionCriteriaBuilder_ == null) { + userInclusionCriteriaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegmentCriteria, + com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder>( + getUserInclusionCriteria(), getParentForChildren(), isClean()); + userInclusionCriteria_ = null; + } + return userInclusionCriteriaBuilder_; + } + + private com.google.analytics.data.v1alpha.UserSegmentExclusion exclusion_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegmentExclusion, + com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder, + com.google.analytics.data.v1alpha.UserSegmentExclusionOrBuilder> + exclusionBuilder_; + /** + * + * + *
+     * Defines which users are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; + * + * @return Whether the exclusion field is set. + */ + public boolean hasExclusion() { + return exclusionBuilder_ != null || exclusion_ != null; + } + /** + * + * + *
+     * Defines which users are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; + * + * @return The exclusion. + */ + public com.google.analytics.data.v1alpha.UserSegmentExclusion getExclusion() { + if (exclusionBuilder_ == null) { + return exclusion_ == null + ? com.google.analytics.data.v1alpha.UserSegmentExclusion.getDefaultInstance() + : exclusion_; + } else { + return exclusionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Defines which users are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; + */ + public Builder setExclusion(com.google.analytics.data.v1alpha.UserSegmentExclusion value) { + if (exclusionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exclusion_ = value; + onChanged(); + } else { + exclusionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Defines which users are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; + */ + public Builder setExclusion( + com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder builderForValue) { + if (exclusionBuilder_ == null) { + exclusion_ = builderForValue.build(); + onChanged(); + } else { + exclusionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Defines which users are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; + */ + public Builder mergeExclusion(com.google.analytics.data.v1alpha.UserSegmentExclusion value) { + if (exclusionBuilder_ == null) { + if (exclusion_ != null) { + exclusion_ = + com.google.analytics.data.v1alpha.UserSegmentExclusion.newBuilder(exclusion_) + .mergeFrom(value) + .buildPartial(); + } else { + exclusion_ = value; + } + onChanged(); + } else { + exclusionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Defines which users are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; + */ + public Builder clearExclusion() { + if (exclusionBuilder_ == null) { + exclusion_ = null; + onChanged(); + } else { + exclusion_ = null; + exclusionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Defines which users are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; + */ + public com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder getExclusionBuilder() { + + onChanged(); + return getExclusionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Defines which users are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; + */ + public com.google.analytics.data.v1alpha.UserSegmentExclusionOrBuilder getExclusionOrBuilder() { + if (exclusionBuilder_ != null) { + return exclusionBuilder_.getMessageOrBuilder(); + } else { + return exclusion_ == null + ? com.google.analytics.data.v1alpha.UserSegmentExclusion.getDefaultInstance() + : exclusion_; + } + } + /** + * + * + *
+     * Defines which users are excluded in this segment. Optional.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegmentExclusion, + com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder, + com.google.analytics.data.v1alpha.UserSegmentExclusionOrBuilder> + getExclusionFieldBuilder() { + if (exclusionBuilder_ == null) { + exclusionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegmentExclusion, + com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder, + com.google.analytics.data.v1alpha.UserSegmentExclusionOrBuilder>( + getExclusion(), getParentForChildren(), isClean()); + exclusion_ = null; + } + return exclusionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.UserSegment) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.UserSegment) + private static final com.google.analytics.data.v1alpha.UserSegment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.UserSegment(); + } + + public static com.google.analytics.data.v1alpha.UserSegment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSegment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserSegment(input, extensionRegistry); + } + }; + + public static 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.v1alpha.UserSegment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroup.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroup.java new file mode 100644 index 00000000..9be45faa --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroup.java @@ -0,0 +1,1020 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Conditions tell Analytics what data to include in or exclude from the
+ * segment.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.UserSegmentConditionGroup} + */ +public final class UserSegmentConditionGroup extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.UserSegmentConditionGroup) + UserSegmentConditionGroupOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserSegmentConditionGroup.newBuilder() to construct. + private UserSegmentConditionGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserSegmentConditionGroup() { + conditionScoping_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserSegmentConditionGroup(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UserSegmentConditionGroup( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder 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(); + + conditionScoping_ = rawValue; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder subBuilder = null; + if (segmentFilterExpression_ != null) { + subBuilder = segmentFilterExpression_.toBuilder(); + } + segmentFilterExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(segmentFilterExpression_); + segmentFilterExpression_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.UserSegmentConditionGroup.class, + com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder.class); + } + + public static final int CONDITION_SCOPING_FIELD_NUMBER = 1; + private int conditionScoping_; + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * the condition group. This scoping defines how many events the
+   * `segmentFilterExpression` is evaluated on before the condition group
+   * is determined to be matched or not. For example if `conditionScoping =
+   * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+   * events in a session, and then, the condition group is determined to be
+   * matched or not for this user. For example if `conditionScoping =
+   * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
+   * event, and then, the condition group is determined to be matched or not for
+   * this user.
+   * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+   * used.
+   * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; + * + * @return The enum numeric value on the wire for conditionScoping. + */ + @java.lang.Override + public int getConditionScopingValue() { + return conditionScoping_; + } + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * the condition group. This scoping defines how many events the
+   * `segmentFilterExpression` is evaluated on before the condition group
+   * is determined to be matched or not. For example if `conditionScoping =
+   * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+   * events in a session, and then, the condition group is determined to be
+   * matched or not for this user. For example if `conditionScoping =
+   * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
+   * event, and then, the condition group is determined to be matched or not for
+   * this user.
+   * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+   * used.
+   * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; + * + * @return The conditionScoping. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserCriteriaScoping getConditionScoping() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.UserCriteriaScoping result = + com.google.analytics.data.v1alpha.UserCriteriaScoping.valueOf(conditionScoping_); + return result == null + ? com.google.analytics.data.v1alpha.UserCriteriaScoping.UNRECOGNIZED + : result; + } + + public static final int SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER = 2; + private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_; + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return Whether the segmentFilterExpression field is set. + */ + @java.lang.Override + public boolean hasSegmentFilterExpression() { + return segmentFilterExpression_ != null; + } + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return The segmentFilterExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() { + return segmentFilterExpression_ == null + ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() + : segmentFilterExpression_; + } + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder + getSegmentFilterExpressionOrBuilder() { + return getSegmentFilterExpression(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (conditionScoping_ + != com.google.analytics.data.v1alpha.UserCriteriaScoping.USER_CRITERIA_SCOPING_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, conditionScoping_); + } + if (segmentFilterExpression_ != null) { + output.writeMessage(2, getSegmentFilterExpression()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (conditionScoping_ + != com.google.analytics.data.v1alpha.UserCriteriaScoping.USER_CRITERIA_SCOPING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, conditionScoping_); + } + if (segmentFilterExpression_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSegmentFilterExpression()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.UserSegmentConditionGroup)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.UserSegmentConditionGroup other = + (com.google.analytics.data.v1alpha.UserSegmentConditionGroup) obj; + + if (conditionScoping_ != other.conditionScoping_) return false; + if (hasSegmentFilterExpression() != other.hasSegmentFilterExpression()) return false; + if (hasSegmentFilterExpression()) { + if (!getSegmentFilterExpression().equals(other.getSegmentFilterExpression())) return false; + } + if (!unknownFields.equals(other.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) + CONDITION_SCOPING_FIELD_NUMBER; + hash = (53 * hash) + conditionScoping_; + if (hasSegmentFilterExpression()) { + hash = (37 * hash) + SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getSegmentFilterExpression().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup 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.v1alpha.UserSegmentConditionGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup parseFrom( + 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.v1alpha.UserSegmentConditionGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup parseFrom( + java.io.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.v1alpha.UserSegmentConditionGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup parseDelimitedFrom( + java.io.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.v1alpha.UserSegmentConditionGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.UserSegmentConditionGroup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Conditions tell Analytics what data to include in or exclude from the
+   * segment.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.UserSegmentConditionGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.UserSegmentConditionGroup) + com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.UserSegmentConditionGroup.class, + com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.UserSegmentConditionGroup.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(); + conditionScoping_ = 0; + + if (segmentFilterExpressionBuilder_ == null) { + segmentFilterExpression_ = null; + } else { + segmentFilterExpression_ = null; + segmentFilterExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentConditionGroup getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.UserSegmentConditionGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentConditionGroup build() { + com.google.analytics.data.v1alpha.UserSegmentConditionGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentConditionGroup buildPartial() { + com.google.analytics.data.v1alpha.UserSegmentConditionGroup result = + new com.google.analytics.data.v1alpha.UserSegmentConditionGroup(this); + result.conditionScoping_ = conditionScoping_; + if (segmentFilterExpressionBuilder_ == null) { + result.segmentFilterExpression_ = segmentFilterExpression_; + } else { + result.segmentFilterExpression_ = segmentFilterExpressionBuilder_.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.v1alpha.UserSegmentConditionGroup) { + return mergeFrom((com.google.analytics.data.v1alpha.UserSegmentConditionGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSegmentConditionGroup other) { + if (other == com.google.analytics.data.v1alpha.UserSegmentConditionGroup.getDefaultInstance()) + return this; + if (other.conditionScoping_ != 0) { + setConditionScopingValue(other.getConditionScopingValue()); + } + if (other.hasSegmentFilterExpression()) { + mergeSegmentFilterExpression(other.getSegmentFilterExpression()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.UserSegmentConditionGroup parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.UserSegmentConditionGroup) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int conditionScoping_ = 0; + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * the condition group. This scoping defines how many events the
+     * `segmentFilterExpression` is evaluated on before the condition group
+     * is determined to be matched or not. For example if `conditionScoping =
+     * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+     * events in a session, and then, the condition group is determined to be
+     * matched or not for this user. For example if `conditionScoping =
+     * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
+     * event, and then, the condition group is determined to be matched or not for
+     * this user.
+     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+     * used.
+     * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; + * + * @return The enum numeric value on the wire for conditionScoping. + */ + @java.lang.Override + public int getConditionScopingValue() { + return conditionScoping_; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * the condition group. This scoping defines how many events the
+     * `segmentFilterExpression` is evaluated on before the condition group
+     * is determined to be matched or not. For example if `conditionScoping =
+     * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+     * events in a session, and then, the condition group is determined to be
+     * matched or not for this user. For example if `conditionScoping =
+     * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
+     * event, and then, the condition group is determined to be matched or not for
+     * this user.
+     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+     * used.
+     * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; + * + * @param value The enum numeric value on the wire for conditionScoping to set. + * @return This builder for chaining. + */ + public Builder setConditionScopingValue(int value) { + + conditionScoping_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * the condition group. This scoping defines how many events the
+     * `segmentFilterExpression` is evaluated on before the condition group
+     * is determined to be matched or not. For example if `conditionScoping =
+     * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+     * events in a session, and then, the condition group is determined to be
+     * matched or not for this user. For example if `conditionScoping =
+     * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
+     * event, and then, the condition group is determined to be matched or not for
+     * this user.
+     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+     * used.
+     * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; + * + * @return The conditionScoping. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserCriteriaScoping getConditionScoping() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.UserCriteriaScoping result = + com.google.analytics.data.v1alpha.UserCriteriaScoping.valueOf(conditionScoping_); + return result == null + ? com.google.analytics.data.v1alpha.UserCriteriaScoping.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * the condition group. This scoping defines how many events the
+     * `segmentFilterExpression` is evaluated on before the condition group
+     * is determined to be matched or not. For example if `conditionScoping =
+     * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+     * events in a session, and then, the condition group is determined to be
+     * matched or not for this user. For example if `conditionScoping =
+     * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
+     * event, and then, the condition group is determined to be matched or not for
+     * this user.
+     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+     * used.
+     * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; + * + * @param value The conditionScoping to set. + * @return This builder for chaining. + */ + public Builder setConditionScoping( + com.google.analytics.data.v1alpha.UserCriteriaScoping value) { + if (value == null) { + throw new NullPointerException(); + } + + conditionScoping_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * the condition group. This scoping defines how many events the
+     * `segmentFilterExpression` is evaluated on before the condition group
+     * is determined to be matched or not. For example if `conditionScoping =
+     * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+     * events in a session, and then, the condition group is determined to be
+     * matched or not for this user. For example if `conditionScoping =
+     * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
+     * event, and then, the condition group is determined to be matched or not for
+     * this user.
+     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+     * used.
+     * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; + * + * @return This builder for chaining. + */ + public Builder clearConditionScoping() { + + conditionScoping_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> + segmentFilterExpressionBuilder_; + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return Whether the segmentFilterExpression field is set. + */ + public boolean hasSegmentFilterExpression() { + return segmentFilterExpressionBuilder_ != null || segmentFilterExpression_ != null; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return The segmentFilterExpression. + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() { + if (segmentFilterExpressionBuilder_ == null) { + return segmentFilterExpression_ == null + ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() + : segmentFilterExpression_; + } else { + return segmentFilterExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public Builder setSegmentFilterExpression( + com.google.analytics.data.v1alpha.SegmentFilterExpression value) { + if (segmentFilterExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + segmentFilterExpression_ = value; + onChanged(); + } else { + segmentFilterExpressionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public Builder setSegmentFilterExpression( + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) { + if (segmentFilterExpressionBuilder_ == null) { + segmentFilterExpression_ = builderForValue.build(); + onChanged(); + } else { + segmentFilterExpressionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public Builder mergeSegmentFilterExpression( + com.google.analytics.data.v1alpha.SegmentFilterExpression value) { + if (segmentFilterExpressionBuilder_ == null) { + if (segmentFilterExpression_ != null) { + segmentFilterExpression_ = + com.google.analytics.data.v1alpha.SegmentFilterExpression.newBuilder( + segmentFilterExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + segmentFilterExpression_ = value; + } + onChanged(); + } else { + segmentFilterExpressionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public Builder clearSegmentFilterExpression() { + if (segmentFilterExpressionBuilder_ == null) { + segmentFilterExpression_ = null; + onChanged(); + } else { + segmentFilterExpression_ = null; + segmentFilterExpressionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder + getSegmentFilterExpressionBuilder() { + + onChanged(); + return getSegmentFilterExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder + getSegmentFilterExpressionOrBuilder() { + if (segmentFilterExpressionBuilder_ != null) { + return segmentFilterExpressionBuilder_.getMessageOrBuilder(); + } else { + return segmentFilterExpression_ == null + ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() + : segmentFilterExpression_; + } + } + /** + * + * + *
+     * Data is included or excluded from the segment based on if it matches
+     * this expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> + getSegmentFilterExpressionFieldBuilder() { + if (segmentFilterExpressionBuilder_ == null) { + segmentFilterExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder>( + getSegmentFilterExpression(), getParentForChildren(), isClean()); + segmentFilterExpression_ = null; + } + return segmentFilterExpressionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.UserSegmentConditionGroup) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.UserSegmentConditionGroup) + private static final com.google.analytics.data.v1alpha.UserSegmentConditionGroup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.UserSegmentConditionGroup(); + } + + public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSegmentConditionGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserSegmentConditionGroup(input, extensionRegistry); + } + }; + + public static 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.v1alpha.UserSegmentConditionGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroupOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroupOrBuilder.java new file mode 100644 index 00000000..69c56dae --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroupOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface UserSegmentConditionGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.UserSegmentConditionGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * the condition group. This scoping defines how many events the
+   * `segmentFilterExpression` is evaluated on before the condition group
+   * is determined to be matched or not. For example if `conditionScoping =
+   * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+   * events in a session, and then, the condition group is determined to be
+   * matched or not for this user. For example if `conditionScoping =
+   * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
+   * event, and then, the condition group is determined to be matched or not for
+   * this user.
+   * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+   * used.
+   * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; + * + * @return The enum numeric value on the wire for conditionScoping. + */ + int getConditionScopingValue(); + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * the condition group. This scoping defines how many events the
+   * `segmentFilterExpression` is evaluated on before the condition group
+   * is determined to be matched or not. For example if `conditionScoping =
+   * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
+   * events in a session, and then, the condition group is determined to be
+   * matched or not for this user. For example if `conditionScoping =
+   * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
+   * event, and then, the condition group is determined to be matched or not for
+   * this user.
+   * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+   * used.
+   * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; + * + * @return The conditionScoping. + */ + com.google.analytics.data.v1alpha.UserCriteriaScoping getConditionScoping(); + + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return Whether the segmentFilterExpression field is set. + */ + boolean hasSegmentFilterExpression(); + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + * + * @return The segmentFilterExpression. + */ + com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression(); + /** + * + * + *
+   * Data is included or excluded from the segment based on if it matches
+   * this expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; + * + */ + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder + getSegmentFilterExpressionOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteria.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteria.java new file mode 100644 index 00000000..8fe0780d --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteria.java @@ -0,0 +1,1682 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * A user matches a criteria if the user's events meet the conditions in the
+ * criteria.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.UserSegmentCriteria} + */ +public final class UserSegmentCriteria extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.UserSegmentCriteria) + UserSegmentCriteriaOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserSegmentCriteria.newBuilder() to construct. + private UserSegmentCriteria(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserSegmentCriteria() { + andConditionGroups_ = java.util.Collections.emptyList(); + andSequenceGroups_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserSegmentCriteria(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UserSegmentCriteria( + 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)) { + andConditionGroups_ = + new java.util.ArrayList< + com.google.analytics.data.v1alpha.UserSegmentConditionGroup>(); + mutable_bitField0_ |= 0x00000001; + } + andConditionGroups_.add( + input.readMessage( + com.google.analytics.data.v1alpha.UserSegmentConditionGroup.parser(), + extensionRegistry)); + break; + } + case 18: + { + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + andSequenceGroups_ = + new java.util.ArrayList< + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup>(); + mutable_bitField0_ |= 0x00000002; + } + andSequenceGroups_.add( + input.readMessage( + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + andConditionGroups_ = java.util.Collections.unmodifiableList(andConditionGroups_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + andSequenceGroups_ = java.util.Collections.unmodifiableList(andSequenceGroups_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.UserSegmentCriteria.class, + com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder.class); + } + + public static final int AND_CONDITION_GROUPS_FIELD_NUMBER = 1; + private java.util.List + andConditionGroups_; + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andConditionGroups` and each of the `andSequenceGroups`.
+   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + @java.lang.Override + public java.util.List + getAndConditionGroupsList() { + return andConditionGroups_; + } + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andConditionGroups` and each of the `andSequenceGroups`.
+   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder> + getAndConditionGroupsOrBuilderList() { + return andConditionGroups_; + } + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andConditionGroups` and each of the `andSequenceGroups`.
+   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + @java.lang.Override + public int getAndConditionGroupsCount() { + return andConditionGroups_.size(); + } + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andConditionGroups` and each of the `andSequenceGroups`.
+   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentConditionGroup getAndConditionGroups( + int index) { + return andConditionGroups_.get(index); + } + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andConditionGroups` and each of the `andSequenceGroups`.
+   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder + getAndConditionGroupsOrBuilder(int index) { + return andConditionGroups_.get(index); + } + + public static final int AND_SEQUENCE_GROUPS_FIELD_NUMBER = 2; + private java.util.List + andSequenceGroups_; + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andSequenceGroups` and each of the `andConditionGroups`.
+   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + @java.lang.Override + public java.util.List + getAndSequenceGroupsList() { + return andSequenceGroups_; + } + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andSequenceGroups` and each of the `andConditionGroups`.
+   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder> + getAndSequenceGroupsOrBuilderList() { + return andSequenceGroups_; + } + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andSequenceGroups` and each of the `andConditionGroups`.
+   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + @java.lang.Override + public int getAndSequenceGroupsCount() { + return andSequenceGroups_.size(); + } + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andSequenceGroups` and each of the `andConditionGroups`.
+   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup getAndSequenceGroups( + int index) { + return andSequenceGroups_.get(index); + } + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andSequenceGroups` and each of the `andConditionGroups`.
+   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder + getAndSequenceGroupsOrBuilder(int index) { + return andSequenceGroups_.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 < andConditionGroups_.size(); i++) { + output.writeMessage(1, andConditionGroups_.get(i)); + } + for (int i = 0; i < andSequenceGroups_.size(); i++) { + output.writeMessage(2, andSequenceGroups_.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 < andConditionGroups_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, andConditionGroups_.get(i)); + } + for (int i = 0; i < andSequenceGroups_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, andSequenceGroups_.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.v1alpha.UserSegmentCriteria)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.UserSegmentCriteria other = + (com.google.analytics.data.v1alpha.UserSegmentCriteria) obj; + + if (!getAndConditionGroupsList().equals(other.getAndConditionGroupsList())) return false; + if (!getAndSequenceGroupsList().equals(other.getAndSequenceGroupsList())) return false; + if (!unknownFields.equals(other.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 (getAndConditionGroupsCount() > 0) { + hash = (37 * hash) + AND_CONDITION_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getAndConditionGroupsList().hashCode(); + } + if (getAndSequenceGroupsCount() > 0) { + hash = (37 * hash) + AND_SEQUENCE_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + getAndSequenceGroupsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.UserSegmentCriteria parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSegmentCriteria 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.v1alpha.UserSegmentCriteria parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSegmentCriteria parseFrom( + 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.v1alpha.UserSegmentCriteria parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSegmentCriteria parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.UserSegmentCriteria parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSegmentCriteria parseFrom( + java.io.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.v1alpha.UserSegmentCriteria parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSegmentCriteria parseDelimitedFrom( + java.io.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.v1alpha.UserSegmentCriteria parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSegmentCriteria parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.UserSegmentCriteria prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 user matches a criteria if the user's events meet the conditions in the
+   * criteria.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.UserSegmentCriteria} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.UserSegmentCriteria) + com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.UserSegmentCriteria.class, + com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.UserSegmentCriteria.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getAndConditionGroupsFieldBuilder(); + getAndSequenceGroupsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (andConditionGroupsBuilder_ == null) { + andConditionGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + andConditionGroupsBuilder_.clear(); + } + if (andSequenceGroupsBuilder_ == null) { + andSequenceGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + andSequenceGroupsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentCriteria getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.UserSegmentCriteria.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentCriteria build() { + com.google.analytics.data.v1alpha.UserSegmentCriteria result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentCriteria buildPartial() { + com.google.analytics.data.v1alpha.UserSegmentCriteria result = + new com.google.analytics.data.v1alpha.UserSegmentCriteria(this); + int from_bitField0_ = bitField0_; + if (andConditionGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + andConditionGroups_ = java.util.Collections.unmodifiableList(andConditionGroups_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.andConditionGroups_ = andConditionGroups_; + } else { + result.andConditionGroups_ = andConditionGroupsBuilder_.build(); + } + if (andSequenceGroupsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + andSequenceGroups_ = java.util.Collections.unmodifiableList(andSequenceGroups_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.andSequenceGroups_ = andSequenceGroups_; + } else { + result.andSequenceGroups_ = andSequenceGroupsBuilder_.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.v1alpha.UserSegmentCriteria) { + return mergeFrom((com.google.analytics.data.v1alpha.UserSegmentCriteria) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSegmentCriteria other) { + if (other == com.google.analytics.data.v1alpha.UserSegmentCriteria.getDefaultInstance()) + return this; + if (andConditionGroupsBuilder_ == null) { + if (!other.andConditionGroups_.isEmpty()) { + if (andConditionGroups_.isEmpty()) { + andConditionGroups_ = other.andConditionGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.addAll(other.andConditionGroups_); + } + onChanged(); + } + } else { + if (!other.andConditionGroups_.isEmpty()) { + if (andConditionGroupsBuilder_.isEmpty()) { + andConditionGroupsBuilder_.dispose(); + andConditionGroupsBuilder_ = null; + andConditionGroups_ = other.andConditionGroups_; + bitField0_ = (bitField0_ & ~0x00000001); + andConditionGroupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAndConditionGroupsFieldBuilder() + : null; + } else { + andConditionGroupsBuilder_.addAllMessages(other.andConditionGroups_); + } + } + } + if (andSequenceGroupsBuilder_ == null) { + if (!other.andSequenceGroups_.isEmpty()) { + if (andSequenceGroups_.isEmpty()) { + andSequenceGroups_ = other.andSequenceGroups_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAndSequenceGroupsIsMutable(); + andSequenceGroups_.addAll(other.andSequenceGroups_); + } + onChanged(); + } + } else { + if (!other.andSequenceGroups_.isEmpty()) { + if (andSequenceGroupsBuilder_.isEmpty()) { + andSequenceGroupsBuilder_.dispose(); + andSequenceGroupsBuilder_ = null; + andSequenceGroups_ = other.andSequenceGroups_; + bitField0_ = (bitField0_ & ~0x00000002); + andSequenceGroupsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getAndSequenceGroupsFieldBuilder() + : null; + } else { + andSequenceGroupsBuilder_.addAllMessages(other.andSequenceGroups_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.UserSegmentCriteria parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.UserSegmentCriteria) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + andConditionGroups_ = java.util.Collections.emptyList(); + + private void ensureAndConditionGroupsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + andConditionGroups_ = + new java.util.ArrayList( + andConditionGroups_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegmentConditionGroup, + com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder, + com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder> + andConditionGroupsBuilder_; + + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public java.util.List + getAndConditionGroupsList() { + if (andConditionGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(andConditionGroups_); + } else { + return andConditionGroupsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public int getAndConditionGroupsCount() { + if (andConditionGroupsBuilder_ == null) { + return andConditionGroups_.size(); + } else { + return andConditionGroupsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public com.google.analytics.data.v1alpha.UserSegmentConditionGroup getAndConditionGroups( + int index) { + if (andConditionGroupsBuilder_ == null) { + return andConditionGroups_.get(index); + } else { + return andConditionGroupsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder setAndConditionGroups( + int index, com.google.analytics.data.v1alpha.UserSegmentConditionGroup value) { + if (andConditionGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.set(index, value); + onChanged(); + } else { + andConditionGroupsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder setAndConditionGroups( + int index, + com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder builderForValue) { + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + andConditionGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder addAndConditionGroups( + com.google.analytics.data.v1alpha.UserSegmentConditionGroup value) { + if (andConditionGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.add(value); + onChanged(); + } else { + andConditionGroupsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder addAndConditionGroups( + int index, com.google.analytics.data.v1alpha.UserSegmentConditionGroup value) { + if (andConditionGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.add(index, value); + onChanged(); + } else { + andConditionGroupsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder addAndConditionGroups( + com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder builderForValue) { + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.add(builderForValue.build()); + onChanged(); + } else { + andConditionGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder addAndConditionGroups( + int index, + com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder builderForValue) { + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + andConditionGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder addAllAndConditionGroups( + java.lang.Iterable + values) { + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, andConditionGroups_); + onChanged(); + } else { + andConditionGroupsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder clearAndConditionGroups() { + if (andConditionGroupsBuilder_ == null) { + andConditionGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + andConditionGroupsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public Builder removeAndConditionGroups(int index) { + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.remove(index); + onChanged(); + } else { + andConditionGroupsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder + getAndConditionGroupsBuilder(int index) { + return getAndConditionGroupsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder + getAndConditionGroupsOrBuilder(int index) { + if (andConditionGroupsBuilder_ == null) { + return andConditionGroups_.get(index); + } else { + return andConditionGroupsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder> + getAndConditionGroupsOrBuilderList() { + if (andConditionGroupsBuilder_ != null) { + return andConditionGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(andConditionGroups_); + } + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder + addAndConditionGroupsBuilder() { + return getAndConditionGroupsFieldBuilder() + .addBuilder( + com.google.analytics.data.v1alpha.UserSegmentConditionGroup.getDefaultInstance()); + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder + addAndConditionGroupsBuilder(int index) { + return getAndConditionGroupsFieldBuilder() + .addBuilder( + index, + com.google.analytics.data.v1alpha.UserSegmentConditionGroup.getDefaultInstance()); + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andConditionGroups` and each of the `andSequenceGroups`.
+     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + public java.util.List + getAndConditionGroupsBuilderList() { + return getAndConditionGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegmentConditionGroup, + com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder, + com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder> + getAndConditionGroupsFieldBuilder() { + if (andConditionGroupsBuilder_ == null) { + andConditionGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegmentConditionGroup, + com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder, + com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder>( + andConditionGroups_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + andConditionGroups_ = null; + } + return andConditionGroupsBuilder_; + } + + private java.util.List + andSequenceGroups_ = java.util.Collections.emptyList(); + + private void ensureAndSequenceGroupsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + andSequenceGroups_ = + new java.util.ArrayList( + andSequenceGroups_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup, + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder, + com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder> + andSequenceGroupsBuilder_; + + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public java.util.List + getAndSequenceGroupsList() { + if (andSequenceGroupsBuilder_ == null) { + return java.util.Collections.unmodifiableList(andSequenceGroups_); + } else { + return andSequenceGroupsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public int getAndSequenceGroupsCount() { + if (andSequenceGroupsBuilder_ == null) { + return andSequenceGroups_.size(); + } else { + return andSequenceGroupsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup getAndSequenceGroups( + int index) { + if (andSequenceGroupsBuilder_ == null) { + return andSequenceGroups_.get(index); + } else { + return andSequenceGroupsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public Builder setAndSequenceGroups( + int index, com.google.analytics.data.v1alpha.UserSegmentSequenceGroup value) { + if (andSequenceGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAndSequenceGroupsIsMutable(); + andSequenceGroups_.set(index, value); + onChanged(); + } else { + andSequenceGroupsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public Builder setAndSequenceGroups( + int index, + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder builderForValue) { + if (andSequenceGroupsBuilder_ == null) { + ensureAndSequenceGroupsIsMutable(); + andSequenceGroups_.set(index, builderForValue.build()); + onChanged(); + } else { + andSequenceGroupsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public Builder addAndSequenceGroups( + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup value) { + if (andSequenceGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAndSequenceGroupsIsMutable(); + andSequenceGroups_.add(value); + onChanged(); + } else { + andSequenceGroupsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public Builder addAndSequenceGroups( + int index, com.google.analytics.data.v1alpha.UserSegmentSequenceGroup value) { + if (andSequenceGroupsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAndSequenceGroupsIsMutable(); + andSequenceGroups_.add(index, value); + onChanged(); + } else { + andSequenceGroupsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public Builder addAndSequenceGroups( + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder builderForValue) { + if (andSequenceGroupsBuilder_ == null) { + ensureAndSequenceGroupsIsMutable(); + andSequenceGroups_.add(builderForValue.build()); + onChanged(); + } else { + andSequenceGroupsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public Builder addAndSequenceGroups( + int index, + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder builderForValue) { + if (andSequenceGroupsBuilder_ == null) { + ensureAndSequenceGroupsIsMutable(); + andSequenceGroups_.add(index, builderForValue.build()); + onChanged(); + } else { + andSequenceGroupsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public Builder addAllAndSequenceGroups( + java.lang.Iterable + values) { + if (andSequenceGroupsBuilder_ == null) { + ensureAndSequenceGroupsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, andSequenceGroups_); + onChanged(); + } else { + andSequenceGroupsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public Builder clearAndSequenceGroups() { + if (andSequenceGroupsBuilder_ == null) { + andSequenceGroups_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + andSequenceGroupsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public Builder removeAndSequenceGroups(int index) { + if (andSequenceGroupsBuilder_ == null) { + ensureAndSequenceGroupsIsMutable(); + andSequenceGroups_.remove(index); + onChanged(); + } else { + andSequenceGroupsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder + getAndSequenceGroupsBuilder(int index) { + return getAndSequenceGroupsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder + getAndSequenceGroupsOrBuilder(int index) { + if (andSequenceGroupsBuilder_ == null) { + return andSequenceGroups_.get(index); + } else { + return andSequenceGroupsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public java.util.List< + ? extends com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder> + getAndSequenceGroupsOrBuilderList() { + if (andSequenceGroupsBuilder_ != null) { + return andSequenceGroupsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(andSequenceGroups_); + } + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder + addAndSequenceGroupsBuilder() { + return getAndSequenceGroupsFieldBuilder() + .addBuilder( + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.getDefaultInstance()); + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder + addAndSequenceGroupsBuilder(int index) { + return getAndSequenceGroupsFieldBuilder() + .addBuilder( + index, + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.getDefaultInstance()); + } + /** + * + * + *
+     * A user matches this criteria if the user matches each of these
+     * `andSequenceGroups` and each of the `andConditionGroups`.
+     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+     * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + public java.util.List + getAndSequenceGroupsBuilderList() { + return getAndSequenceGroupsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup, + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder, + com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder> + getAndSequenceGroupsFieldBuilder() { + if (andSequenceGroupsBuilder_ == null) { + andSequenceGroupsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup, + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder, + com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder>( + andSequenceGroups_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + andSequenceGroups_ = null; + } + return andSequenceGroupsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.UserSegmentCriteria) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.UserSegmentCriteria) + private static final com.google.analytics.data.v1alpha.UserSegmentCriteria DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.UserSegmentCriteria(); + } + + public static com.google.analytics.data.v1alpha.UserSegmentCriteria getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSegmentCriteria parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserSegmentCriteria(input, extensionRegistry); + } + }; + + public static 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.v1alpha.UserSegmentCriteria getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteriaOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteriaOrBuilder.java new file mode 100644 index 00000000..607a98ec --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteriaOrBuilder.java @@ -0,0 +1,168 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface UserSegmentCriteriaOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.UserSegmentCriteria) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andConditionGroups` and each of the `andSequenceGroups`.
+   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + java.util.List + getAndConditionGroupsList(); + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andConditionGroups` and each of the `andSequenceGroups`.
+   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + com.google.analytics.data.v1alpha.UserSegmentConditionGroup getAndConditionGroups(int index); + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andConditionGroups` and each of the `andSequenceGroups`.
+   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + int getAndConditionGroupsCount(); + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andConditionGroups` and each of the `andSequenceGroups`.
+   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + java.util.List + getAndConditionGroupsOrBuilderList(); + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andConditionGroups` and each of the `andSequenceGroups`.
+   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
+   * 
+ * + * + * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; + * + */ + com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder + getAndConditionGroupsOrBuilder(int index); + + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andSequenceGroups` and each of the `andConditionGroups`.
+   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + java.util.List + getAndSequenceGroupsList(); + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andSequenceGroups` and each of the `andConditionGroups`.
+   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup getAndSequenceGroups(int index); + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andSequenceGroups` and each of the `andConditionGroups`.
+   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + int getAndSequenceGroupsCount(); + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andSequenceGroups` and each of the `andConditionGroups`.
+   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + java.util.List + getAndSequenceGroupsOrBuilderList(); + /** + * + * + *
+   * A user matches this criteria if the user matches each of these
+   * `andSequenceGroups` and each of the `andConditionGroups`.
+   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; + * + */ + com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder getAndSequenceGroupsOrBuilder( + int index); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusion.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusion.java new file mode 100644 index 00000000..51f70dcb --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusion.java @@ -0,0 +1,945 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Specifies which users are excluded in this segment.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.UserSegmentExclusion} + */ +public final class UserSegmentExclusion extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.UserSegmentExclusion) + UserSegmentExclusionOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserSegmentExclusion.newBuilder() to construct. + private UserSegmentExclusion(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserSegmentExclusion() { + userExclusionDuration_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserSegmentExclusion(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UserSegmentExclusion( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder 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(); + + userExclusionDuration_ = rawValue; + break; + } + case 18: + { + com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder subBuilder = null; + if (userExclusionCriteria_ != null) { + subBuilder = userExclusionCriteria_.toBuilder(); + } + userExclusionCriteria_ = + input.readMessage( + com.google.analytics.data.v1alpha.UserSegmentCriteria.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(userExclusionCriteria_); + userExclusionCriteria_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.UserSegmentExclusion.class, + com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder.class); + } + + public static final int USER_EXCLUSION_DURATION_FIELD_NUMBER = 1; + private int userExclusionDuration_; + /** + * + * + *
+   * Specifies how long an exclusion will last if a user matches the
+   * `userExclusionCriteria`.
+   * Optional. If unspecified, `userExclusionDuration` of
+   * `USER_EXCLUSION_TEMPORARY` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; + * + * @return The enum numeric value on the wire for userExclusionDuration. + */ + @java.lang.Override + public int getUserExclusionDurationValue() { + return userExclusionDuration_; + } + /** + * + * + *
+   * Specifies how long an exclusion will last if a user matches the
+   * `userExclusionCriteria`.
+   * Optional. If unspecified, `userExclusionDuration` of
+   * `USER_EXCLUSION_TEMPORARY` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; + * + * @return The userExclusionDuration. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserExclusionDuration getUserExclusionDuration() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.UserExclusionDuration result = + com.google.analytics.data.v1alpha.UserExclusionDuration.valueOf(userExclusionDuration_); + return result == null + ? com.google.analytics.data.v1alpha.UserExclusionDuration.UNRECOGNIZED + : result; + } + + public static final int USER_EXCLUSION_CRITERIA_FIELD_NUMBER = 2; + private com.google.analytics.data.v1alpha.UserSegmentCriteria userExclusionCriteria_; + /** + * + * + *
+   * If a user meets this condition, the user is excluded from membership in
+   * the segment for the `userExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; + * + * @return Whether the userExclusionCriteria field is set. + */ + @java.lang.Override + public boolean hasUserExclusionCriteria() { + return userExclusionCriteria_ != null; + } + /** + * + * + *
+   * If a user meets this condition, the user is excluded from membership in
+   * the segment for the `userExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; + * + * @return The userExclusionCriteria. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentCriteria getUserExclusionCriteria() { + return userExclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.UserSegmentCriteria.getDefaultInstance() + : userExclusionCriteria_; + } + /** + * + * + *
+   * If a user meets this condition, the user is excluded from membership in
+   * the segment for the `userExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder + getUserExclusionCriteriaOrBuilder() { + return getUserExclusionCriteria(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (userExclusionDuration_ + != com.google.analytics.data.v1alpha.UserExclusionDuration + .USER_EXCLUSION_DURATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, userExclusionDuration_); + } + if (userExclusionCriteria_ != null) { + output.writeMessage(2, getUserExclusionCriteria()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (userExclusionDuration_ + != com.google.analytics.data.v1alpha.UserExclusionDuration + .USER_EXCLUSION_DURATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, userExclusionDuration_); + } + if (userExclusionCriteria_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserExclusionCriteria()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.UserSegmentExclusion)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.UserSegmentExclusion other = + (com.google.analytics.data.v1alpha.UserSegmentExclusion) obj; + + if (userExclusionDuration_ != other.userExclusionDuration_) return false; + if (hasUserExclusionCriteria() != other.hasUserExclusionCriteria()) return false; + if (hasUserExclusionCriteria()) { + if (!getUserExclusionCriteria().equals(other.getUserExclusionCriteria())) return false; + } + if (!unknownFields.equals(other.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) + USER_EXCLUSION_DURATION_FIELD_NUMBER; + hash = (53 * hash) + userExclusionDuration_; + if (hasUserExclusionCriteria()) { + hash = (37 * hash) + USER_EXCLUSION_CRITERIA_FIELD_NUMBER; + hash = (53 * hash) + getUserExclusionCriteria().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.UserSegmentExclusion parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSegmentExclusion 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.v1alpha.UserSegmentExclusion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSegmentExclusion parseFrom( + 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.v1alpha.UserSegmentExclusion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSegmentExclusion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.UserSegmentExclusion parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSegmentExclusion parseFrom( + java.io.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.v1alpha.UserSegmentExclusion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSegmentExclusion parseDelimitedFrom( + java.io.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.v1alpha.UserSegmentExclusion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSegmentExclusion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.UserSegmentExclusion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Specifies which users are excluded in this segment.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.UserSegmentExclusion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.UserSegmentExclusion) + com.google.analytics.data.v1alpha.UserSegmentExclusionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.UserSegmentExclusion.class, + com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.UserSegmentExclusion.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(); + userExclusionDuration_ = 0; + + if (userExclusionCriteriaBuilder_ == null) { + userExclusionCriteria_ = null; + } else { + userExclusionCriteria_ = null; + userExclusionCriteriaBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentExclusion getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.UserSegmentExclusion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentExclusion build() { + com.google.analytics.data.v1alpha.UserSegmentExclusion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentExclusion buildPartial() { + com.google.analytics.data.v1alpha.UserSegmentExclusion result = + new com.google.analytics.data.v1alpha.UserSegmentExclusion(this); + result.userExclusionDuration_ = userExclusionDuration_; + if (userExclusionCriteriaBuilder_ == null) { + result.userExclusionCriteria_ = userExclusionCriteria_; + } else { + result.userExclusionCriteria_ = userExclusionCriteriaBuilder_.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.v1alpha.UserSegmentExclusion) { + return mergeFrom((com.google.analytics.data.v1alpha.UserSegmentExclusion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSegmentExclusion other) { + if (other == com.google.analytics.data.v1alpha.UserSegmentExclusion.getDefaultInstance()) + return this; + if (other.userExclusionDuration_ != 0) { + setUserExclusionDurationValue(other.getUserExclusionDurationValue()); + } + if (other.hasUserExclusionCriteria()) { + mergeUserExclusionCriteria(other.getUserExclusionCriteria()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.UserSegmentExclusion parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.UserSegmentExclusion) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int userExclusionDuration_ = 0; + /** + * + * + *
+     * Specifies how long an exclusion will last if a user matches the
+     * `userExclusionCriteria`.
+     * Optional. If unspecified, `userExclusionDuration` of
+     * `USER_EXCLUSION_TEMPORARY` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; + * + * + * @return The enum numeric value on the wire for userExclusionDuration. + */ + @java.lang.Override + public int getUserExclusionDurationValue() { + return userExclusionDuration_; + } + /** + * + * + *
+     * Specifies how long an exclusion will last if a user matches the
+     * `userExclusionCriteria`.
+     * Optional. If unspecified, `userExclusionDuration` of
+     * `USER_EXCLUSION_TEMPORARY` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; + * + * + * @param value The enum numeric value on the wire for userExclusionDuration to set. + * @return This builder for chaining. + */ + public Builder setUserExclusionDurationValue(int value) { + + userExclusionDuration_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies how long an exclusion will last if a user matches the
+     * `userExclusionCriteria`.
+     * Optional. If unspecified, `userExclusionDuration` of
+     * `USER_EXCLUSION_TEMPORARY` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; + * + * + * @return The userExclusionDuration. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserExclusionDuration getUserExclusionDuration() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.UserExclusionDuration result = + com.google.analytics.data.v1alpha.UserExclusionDuration.valueOf(userExclusionDuration_); + return result == null + ? com.google.analytics.data.v1alpha.UserExclusionDuration.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Specifies how long an exclusion will last if a user matches the
+     * `userExclusionCriteria`.
+     * Optional. If unspecified, `userExclusionDuration` of
+     * `USER_EXCLUSION_TEMPORARY` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; + * + * + * @param value The userExclusionDuration to set. + * @return This builder for chaining. + */ + public Builder setUserExclusionDuration( + com.google.analytics.data.v1alpha.UserExclusionDuration value) { + if (value == null) { + throw new NullPointerException(); + } + + userExclusionDuration_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Specifies how long an exclusion will last if a user matches the
+     * `userExclusionCriteria`.
+     * Optional. If unspecified, `userExclusionDuration` of
+     * `USER_EXCLUSION_TEMPORARY` is used.
+     * 
+ * + * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearUserExclusionDuration() { + + userExclusionDuration_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.data.v1alpha.UserSegmentCriteria userExclusionCriteria_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegmentCriteria, + com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder> + userExclusionCriteriaBuilder_; + /** + * + * + *
+     * If a user meets this condition, the user is excluded from membership in
+     * the segment for the `userExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; + * + * @return Whether the userExclusionCriteria field is set. + */ + public boolean hasUserExclusionCriteria() { + return userExclusionCriteriaBuilder_ != null || userExclusionCriteria_ != null; + } + /** + * + * + *
+     * If a user meets this condition, the user is excluded from membership in
+     * the segment for the `userExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; + * + * @return The userExclusionCriteria. + */ + public com.google.analytics.data.v1alpha.UserSegmentCriteria getUserExclusionCriteria() { + if (userExclusionCriteriaBuilder_ == null) { + return userExclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.UserSegmentCriteria.getDefaultInstance() + : userExclusionCriteria_; + } else { + return userExclusionCriteriaBuilder_.getMessage(); + } + } + /** + * + * + *
+     * If a user meets this condition, the user is excluded from membership in
+     * the segment for the `userExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; + */ + public Builder setUserExclusionCriteria( + com.google.analytics.data.v1alpha.UserSegmentCriteria value) { + if (userExclusionCriteriaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userExclusionCriteria_ = value; + onChanged(); + } else { + userExclusionCriteriaBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * If a user meets this condition, the user is excluded from membership in
+     * the segment for the `userExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; + */ + public Builder setUserExclusionCriteria( + com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder builderForValue) { + if (userExclusionCriteriaBuilder_ == null) { + userExclusionCriteria_ = builderForValue.build(); + onChanged(); + } else { + userExclusionCriteriaBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * If a user meets this condition, the user is excluded from membership in
+     * the segment for the `userExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; + */ + public Builder mergeUserExclusionCriteria( + com.google.analytics.data.v1alpha.UserSegmentCriteria value) { + if (userExclusionCriteriaBuilder_ == null) { + if (userExclusionCriteria_ != null) { + userExclusionCriteria_ = + com.google.analytics.data.v1alpha.UserSegmentCriteria.newBuilder( + userExclusionCriteria_) + .mergeFrom(value) + .buildPartial(); + } else { + userExclusionCriteria_ = value; + } + onChanged(); + } else { + userExclusionCriteriaBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * If a user meets this condition, the user is excluded from membership in
+     * the segment for the `userExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; + */ + public Builder clearUserExclusionCriteria() { + if (userExclusionCriteriaBuilder_ == null) { + userExclusionCriteria_ = null; + onChanged(); + } else { + userExclusionCriteria_ = null; + userExclusionCriteriaBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * If a user meets this condition, the user is excluded from membership in
+     * the segment for the `userExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; + */ + public com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder + getUserExclusionCriteriaBuilder() { + + onChanged(); + return getUserExclusionCriteriaFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If a user meets this condition, the user is excluded from membership in
+     * the segment for the `userExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; + */ + public com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder + getUserExclusionCriteriaOrBuilder() { + if (userExclusionCriteriaBuilder_ != null) { + return userExclusionCriteriaBuilder_.getMessageOrBuilder(); + } else { + return userExclusionCriteria_ == null + ? com.google.analytics.data.v1alpha.UserSegmentCriteria.getDefaultInstance() + : userExclusionCriteria_; + } + } + /** + * + * + *
+     * If a user meets this condition, the user is excluded from membership in
+     * the segment for the `userExclusionDuration`.
+     * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegmentCriteria, + com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder> + getUserExclusionCriteriaFieldBuilder() { + if (userExclusionCriteriaBuilder_ == null) { + userExclusionCriteriaBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSegmentCriteria, + com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder, + com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder>( + getUserExclusionCriteria(), getParentForChildren(), isClean()); + userExclusionCriteria_ = null; + } + return userExclusionCriteriaBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.UserSegmentExclusion) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.UserSegmentExclusion) + private static final com.google.analytics.data.v1alpha.UserSegmentExclusion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.UserSegmentExclusion(); + } + + public static com.google.analytics.data.v1alpha.UserSegmentExclusion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSegmentExclusion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserSegmentExclusion(input, extensionRegistry); + } + }; + + public static 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.v1alpha.UserSegmentExclusion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusionOrBuilder.java new file mode 100644 index 00000000..03637976 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusionOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface UserSegmentExclusionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.UserSegmentExclusion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Specifies how long an exclusion will last if a user matches the
+   * `userExclusionCriteria`.
+   * Optional. If unspecified, `userExclusionDuration` of
+   * `USER_EXCLUSION_TEMPORARY` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; + * + * @return The enum numeric value on the wire for userExclusionDuration. + */ + int getUserExclusionDurationValue(); + /** + * + * + *
+   * Specifies how long an exclusion will last if a user matches the
+   * `userExclusionCriteria`.
+   * Optional. If unspecified, `userExclusionDuration` of
+   * `USER_EXCLUSION_TEMPORARY` is used.
+   * 
+ * + * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; + * + * @return The userExclusionDuration. + */ + com.google.analytics.data.v1alpha.UserExclusionDuration getUserExclusionDuration(); + + /** + * + * + *
+   * If a user meets this condition, the user is excluded from membership in
+   * the segment for the `userExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; + * + * @return Whether the userExclusionCriteria field is set. + */ + boolean hasUserExclusionCriteria(); + /** + * + * + *
+   * If a user meets this condition, the user is excluded from membership in
+   * the segment for the `userExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; + * + * @return The userExclusionCriteria. + */ + com.google.analytics.data.v1alpha.UserSegmentCriteria getUserExclusionCriteria(); + /** + * + * + *
+   * If a user meets this condition, the user is excluded from membership in
+   * the segment for the `userExclusionDuration`.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; + */ + com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder + getUserExclusionCriteriaOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentOrBuilder.java new file mode 100644 index 00000000..fe91559e --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentOrBuilder.java @@ -0,0 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/data/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface UserSegmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.UserSegment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Defines which users are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; + * + * @return Whether the userInclusionCriteria field is set. + */ + boolean hasUserInclusionCriteria(); + /** + * + * + *
+   * Defines which users are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; + * + * @return The userInclusionCriteria. + */ + com.google.analytics.data.v1alpha.UserSegmentCriteria getUserInclusionCriteria(); + /** + * + * + *
+   * Defines which users are included in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; + */ + com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder + getUserInclusionCriteriaOrBuilder(); + + /** + * + * + *
+   * Defines which users are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; + * + * @return Whether the exclusion field is set. + */ + boolean hasExclusion(); + /** + * + * + *
+   * Defines which users are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; + * + * @return The exclusion. + */ + com.google.analytics.data.v1alpha.UserSegmentExclusion getExclusion(); + /** + * + * + *
+   * Defines which users are excluded in this segment. Optional.
+   * 
+ * + * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; + */ + com.google.analytics.data.v1alpha.UserSegmentExclusionOrBuilder getExclusionOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroup.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroup.java new file mode 100644 index 00000000..08fb0db0 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroup.java @@ -0,0 +1,1587 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * Define conditions that must occur in a specific order for the user to be
+ * a member of the segment.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.UserSegmentSequenceGroup} + */ +public final class UserSegmentSequenceGroup extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.UserSegmentSequenceGroup) + UserSegmentSequenceGroupOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserSegmentSequenceGroup.newBuilder() to construct. + private UserSegmentSequenceGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserSegmentSequenceGroup() { + sequenceScoping_ = 0; + userSequenceSteps_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserSegmentSequenceGroup(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UserSegmentSequenceGroup( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + int rawValue = input.readEnum(); + + sequenceScoping_ = rawValue; + break; + } + case 18: + { + com.google.protobuf.Duration.Builder subBuilder = null; + if (sequenceMaximumDuration_ != null) { + subBuilder = sequenceMaximumDuration_.toBuilder(); + } + sequenceMaximumDuration_ = + input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(sequenceMaximumDuration_); + sequenceMaximumDuration_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + userSequenceSteps_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + userSequenceSteps_.add( + input.readMessage( + com.google.analytics.data.v1alpha.UserSequenceStep.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + userSequenceSteps_ = java.util.Collections.unmodifiableList(userSequenceSteps_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.class, + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder.class); + } + + public static final int SEQUENCE_SCOPING_FIELD_NUMBER = 1; + private int sequenceScoping_; + /** + * + * + *
+   * All sequence steps must be satisfied in the scoping for the user to
+   * match the sequence. For example if `sequenceScoping =
+   * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
+   * one session for the user to match the sequence. `sequenceScoping =
+   * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
+   * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+   * used.
+   * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; + * + * @return The enum numeric value on the wire for sequenceScoping. + */ + @java.lang.Override + public int getSequenceScopingValue() { + return sequenceScoping_; + } + /** + * + * + *
+   * All sequence steps must be satisfied in the scoping for the user to
+   * match the sequence. For example if `sequenceScoping =
+   * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
+   * one session for the user to match the sequence. `sequenceScoping =
+   * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
+   * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+   * used.
+   * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; + * + * @return The sequenceScoping. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserCriteriaScoping getSequenceScoping() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.UserCriteriaScoping result = + com.google.analytics.data.v1alpha.UserCriteriaScoping.valueOf(sequenceScoping_); + return result == null + ? com.google.analytics.data.v1alpha.UserCriteriaScoping.UNRECOGNIZED + : result; + } + + public static final int SEQUENCE_MAXIMUM_DURATION_FIELD_NUMBER = 2; + private com.google.protobuf.Duration sequenceMaximumDuration_; + /** + * + * + *
+   * Defines the time period in which the whole sequence must occur; for
+   * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
+   * of the endpoint at the microsecond granularity. For example a sequence
+   * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
+   * seconds, but not 5 seconds and 1 microsecond.
+   * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
+   * be completed in any time duration.
+   * 
+ * + * .google.protobuf.Duration sequence_maximum_duration = 2; + * + * @return Whether the sequenceMaximumDuration field is set. + */ + @java.lang.Override + public boolean hasSequenceMaximumDuration() { + return sequenceMaximumDuration_ != null; + } + /** + * + * + *
+   * Defines the time period in which the whole sequence must occur; for
+   * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
+   * of the endpoint at the microsecond granularity. For example a sequence
+   * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
+   * seconds, but not 5 seconds and 1 microsecond.
+   * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
+   * be completed in any time duration.
+   * 
+ * + * .google.protobuf.Duration sequence_maximum_duration = 2; + * + * @return The sequenceMaximumDuration. + */ + @java.lang.Override + public com.google.protobuf.Duration getSequenceMaximumDuration() { + return sequenceMaximumDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : sequenceMaximumDuration_; + } + /** + * + * + *
+   * Defines the time period in which the whole sequence must occur; for
+   * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
+   * of the endpoint at the microsecond granularity. For example a sequence
+   * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
+   * seconds, but not 5 seconds and 1 microsecond.
+   * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
+   * be completed in any time duration.
+   * 
+ * + * .google.protobuf.Duration sequence_maximum_duration = 2; + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getSequenceMaximumDurationOrBuilder() { + return getSequenceMaximumDuration(); + } + + public static final int USER_SEQUENCE_STEPS_FIELD_NUMBER = 3; + private java.util.List userSequenceSteps_; + /** + * + * + *
+   * An ordered sequence of condition steps. A user's events must complete
+   * each step in order for the user to match the
+   * `UserSegmentSequenceGroup`.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + */ + @java.lang.Override + public java.util.List + getUserSequenceStepsList() { + return userSequenceSteps_; + } + /** + * + * + *
+   * An ordered sequence of condition steps. A user's events must complete
+   * each step in order for the user to match the
+   * `UserSegmentSequenceGroup`.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + */ + @java.lang.Override + public java.util.List + getUserSequenceStepsOrBuilderList() { + return userSequenceSteps_; + } + /** + * + * + *
+   * An ordered sequence of condition steps. A user's events must complete
+   * each step in order for the user to match the
+   * `UserSegmentSequenceGroup`.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + */ + @java.lang.Override + public int getUserSequenceStepsCount() { + return userSequenceSteps_.size(); + } + /** + * + * + *
+   * An ordered sequence of condition steps. A user's events must complete
+   * each step in order for the user to match the
+   * `UserSegmentSequenceGroup`.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSequenceStep getUserSequenceSteps(int index) { + return userSequenceSteps_.get(index); + } + /** + * + * + *
+   * An ordered sequence of condition steps. A user's events must complete
+   * each step in order for the user to match the
+   * `UserSegmentSequenceGroup`.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSequenceStepOrBuilder getUserSequenceStepsOrBuilder( + int index) { + return userSequenceSteps_.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 (sequenceScoping_ + != com.google.analytics.data.v1alpha.UserCriteriaScoping.USER_CRITERIA_SCOPING_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, sequenceScoping_); + } + if (sequenceMaximumDuration_ != null) { + output.writeMessage(2, getSequenceMaximumDuration()); + } + for (int i = 0; i < userSequenceSteps_.size(); i++) { + output.writeMessage(3, userSequenceSteps_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (sequenceScoping_ + != com.google.analytics.data.v1alpha.UserCriteriaScoping.USER_CRITERIA_SCOPING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, sequenceScoping_); + } + if (sequenceMaximumDuration_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSequenceMaximumDuration()); + } + for (int i = 0; i < userSequenceSteps_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, userSequenceSteps_.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.v1alpha.UserSegmentSequenceGroup)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup other = + (com.google.analytics.data.v1alpha.UserSegmentSequenceGroup) obj; + + if (sequenceScoping_ != other.sequenceScoping_) return false; + if (hasSequenceMaximumDuration() != other.hasSequenceMaximumDuration()) return false; + if (hasSequenceMaximumDuration()) { + if (!getSequenceMaximumDuration().equals(other.getSequenceMaximumDuration())) return false; + } + if (!getUserSequenceStepsList().equals(other.getUserSequenceStepsList())) return false; + if (!unknownFields.equals(other.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) + SEQUENCE_SCOPING_FIELD_NUMBER; + hash = (53 * hash) + sequenceScoping_; + if (hasSequenceMaximumDuration()) { + hash = (37 * hash) + SEQUENCE_MAXIMUM_DURATION_FIELD_NUMBER; + hash = (53 * hash) + getSequenceMaximumDuration().hashCode(); + } + if (getUserSequenceStepsCount() > 0) { + hash = (37 * hash) + USER_SEQUENCE_STEPS_FIELD_NUMBER; + hash = (53 * hash) + getUserSequenceStepsList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup 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.v1alpha.UserSegmentSequenceGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup parseFrom( + 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.v1alpha.UserSegmentSequenceGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup parseFrom( + java.io.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.v1alpha.UserSegmentSequenceGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup parseDelimitedFrom( + java.io.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.v1alpha.UserSegmentSequenceGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.UserSegmentSequenceGroup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Define conditions that must occur in a specific order for the user to be
+   * a member of the segment.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.UserSegmentSequenceGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.UserSegmentSequenceGroup) + com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.class, + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getUserSequenceStepsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + sequenceScoping_ = 0; + + if (sequenceMaximumDurationBuilder_ == null) { + sequenceMaximumDuration_ = null; + } else { + sequenceMaximumDuration_ = null; + sequenceMaximumDurationBuilder_ = null; + } + if (userSequenceStepsBuilder_ == null) { + userSequenceSteps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + userSequenceStepsBuilder_.clear(); + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup build() { + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup buildPartial() { + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup result = + new com.google.analytics.data.v1alpha.UserSegmentSequenceGroup(this); + int from_bitField0_ = bitField0_; + result.sequenceScoping_ = sequenceScoping_; + if (sequenceMaximumDurationBuilder_ == null) { + result.sequenceMaximumDuration_ = sequenceMaximumDuration_; + } else { + result.sequenceMaximumDuration_ = sequenceMaximumDurationBuilder_.build(); + } + if (userSequenceStepsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + userSequenceSteps_ = java.util.Collections.unmodifiableList(userSequenceSteps_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.userSequenceSteps_ = userSequenceSteps_; + } else { + result.userSequenceSteps_ = userSequenceStepsBuilder_.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.v1alpha.UserSegmentSequenceGroup) { + return mergeFrom((com.google.analytics.data.v1alpha.UserSegmentSequenceGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSegmentSequenceGroup other) { + if (other == com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.getDefaultInstance()) + return this; + if (other.sequenceScoping_ != 0) { + setSequenceScopingValue(other.getSequenceScopingValue()); + } + if (other.hasSequenceMaximumDuration()) { + mergeSequenceMaximumDuration(other.getSequenceMaximumDuration()); + } + if (userSequenceStepsBuilder_ == null) { + if (!other.userSequenceSteps_.isEmpty()) { + if (userSequenceSteps_.isEmpty()) { + userSequenceSteps_ = other.userSequenceSteps_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureUserSequenceStepsIsMutable(); + userSequenceSteps_.addAll(other.userSequenceSteps_); + } + onChanged(); + } + } else { + if (!other.userSequenceSteps_.isEmpty()) { + if (userSequenceStepsBuilder_.isEmpty()) { + userSequenceStepsBuilder_.dispose(); + userSequenceStepsBuilder_ = null; + userSequenceSteps_ = other.userSequenceSteps_; + bitField0_ = (bitField0_ & ~0x00000001); + userSequenceStepsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getUserSequenceStepsFieldBuilder() + : null; + } else { + userSequenceStepsBuilder_.addAllMessages(other.userSequenceSteps_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.UserSegmentSequenceGroup parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.UserSegmentSequenceGroup) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private int sequenceScoping_ = 0; + /** + * + * + *
+     * All sequence steps must be satisfied in the scoping for the user to
+     * match the sequence. For example if `sequenceScoping =
+     * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
+     * one session for the user to match the sequence. `sequenceScoping =
+     * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
+     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+     * used.
+     * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; + * + * @return The enum numeric value on the wire for sequenceScoping. + */ + @java.lang.Override + public int getSequenceScopingValue() { + return sequenceScoping_; + } + /** + * + * + *
+     * All sequence steps must be satisfied in the scoping for the user to
+     * match the sequence. For example if `sequenceScoping =
+     * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
+     * one session for the user to match the sequence. `sequenceScoping =
+     * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
+     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+     * used.
+     * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; + * + * @param value The enum numeric value on the wire for sequenceScoping to set. + * @return This builder for chaining. + */ + public Builder setSequenceScopingValue(int value) { + + sequenceScoping_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * All sequence steps must be satisfied in the scoping for the user to
+     * match the sequence. For example if `sequenceScoping =
+     * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
+     * one session for the user to match the sequence. `sequenceScoping =
+     * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
+     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+     * used.
+     * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; + * + * @return The sequenceScoping. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserCriteriaScoping getSequenceScoping() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.UserCriteriaScoping result = + com.google.analytics.data.v1alpha.UserCriteriaScoping.valueOf(sequenceScoping_); + return result == null + ? com.google.analytics.data.v1alpha.UserCriteriaScoping.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * All sequence steps must be satisfied in the scoping for the user to
+     * match the sequence. For example if `sequenceScoping =
+     * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
+     * one session for the user to match the sequence. `sequenceScoping =
+     * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
+     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+     * used.
+     * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; + * + * @param value The sequenceScoping to set. + * @return This builder for chaining. + */ + public Builder setSequenceScoping(com.google.analytics.data.v1alpha.UserCriteriaScoping value) { + if (value == null) { + throw new NullPointerException(); + } + + sequenceScoping_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * All sequence steps must be satisfied in the scoping for the user to
+     * match the sequence. For example if `sequenceScoping =
+     * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
+     * one session for the user to match the sequence. `sequenceScoping =
+     * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
+     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+     * used.
+     * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; + * + * @return This builder for chaining. + */ + public Builder clearSequenceScoping() { + + sequenceScoping_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Duration sequenceMaximumDuration_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + sequenceMaximumDurationBuilder_; + /** + * + * + *
+     * Defines the time period in which the whole sequence must occur; for
+     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
+     * of the endpoint at the microsecond granularity. For example a sequence
+     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
+     * seconds, but not 5 seconds and 1 microsecond.
+     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
+     * be completed in any time duration.
+     * 
+ * + * .google.protobuf.Duration sequence_maximum_duration = 2; + * + * @return Whether the sequenceMaximumDuration field is set. + */ + public boolean hasSequenceMaximumDuration() { + return sequenceMaximumDurationBuilder_ != null || sequenceMaximumDuration_ != null; + } + /** + * + * + *
+     * Defines the time period in which the whole sequence must occur; for
+     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
+     * of the endpoint at the microsecond granularity. For example a sequence
+     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
+     * seconds, but not 5 seconds and 1 microsecond.
+     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
+     * be completed in any time duration.
+     * 
+ * + * .google.protobuf.Duration sequence_maximum_duration = 2; + * + * @return The sequenceMaximumDuration. + */ + public com.google.protobuf.Duration getSequenceMaximumDuration() { + if (sequenceMaximumDurationBuilder_ == null) { + return sequenceMaximumDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : sequenceMaximumDuration_; + } else { + return sequenceMaximumDurationBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Defines the time period in which the whole sequence must occur; for
+     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
+     * of the endpoint at the microsecond granularity. For example a sequence
+     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
+     * seconds, but not 5 seconds and 1 microsecond.
+     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
+     * be completed in any time duration.
+     * 
+ * + * .google.protobuf.Duration sequence_maximum_duration = 2; + */ + public Builder setSequenceMaximumDuration(com.google.protobuf.Duration value) { + if (sequenceMaximumDurationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sequenceMaximumDuration_ = value; + onChanged(); + } else { + sequenceMaximumDurationBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Defines the time period in which the whole sequence must occur; for
+     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
+     * of the endpoint at the microsecond granularity. For example a sequence
+     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
+     * seconds, but not 5 seconds and 1 microsecond.
+     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
+     * be completed in any time duration.
+     * 
+ * + * .google.protobuf.Duration sequence_maximum_duration = 2; + */ + public Builder setSequenceMaximumDuration( + com.google.protobuf.Duration.Builder builderForValue) { + if (sequenceMaximumDurationBuilder_ == null) { + sequenceMaximumDuration_ = builderForValue.build(); + onChanged(); + } else { + sequenceMaximumDurationBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Defines the time period in which the whole sequence must occur; for
+     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
+     * of the endpoint at the microsecond granularity. For example a sequence
+     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
+     * seconds, but not 5 seconds and 1 microsecond.
+     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
+     * be completed in any time duration.
+     * 
+ * + * .google.protobuf.Duration sequence_maximum_duration = 2; + */ + public Builder mergeSequenceMaximumDuration(com.google.protobuf.Duration value) { + if (sequenceMaximumDurationBuilder_ == null) { + if (sequenceMaximumDuration_ != null) { + sequenceMaximumDuration_ = + com.google.protobuf.Duration.newBuilder(sequenceMaximumDuration_) + .mergeFrom(value) + .buildPartial(); + } else { + sequenceMaximumDuration_ = value; + } + onChanged(); + } else { + sequenceMaximumDurationBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Defines the time period in which the whole sequence must occur; for
+     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
+     * of the endpoint at the microsecond granularity. For example a sequence
+     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
+     * seconds, but not 5 seconds and 1 microsecond.
+     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
+     * be completed in any time duration.
+     * 
+ * + * .google.protobuf.Duration sequence_maximum_duration = 2; + */ + public Builder clearSequenceMaximumDuration() { + if (sequenceMaximumDurationBuilder_ == null) { + sequenceMaximumDuration_ = null; + onChanged(); + } else { + sequenceMaximumDuration_ = null; + sequenceMaximumDurationBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Defines the time period in which the whole sequence must occur; for
+     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
+     * of the endpoint at the microsecond granularity. For example a sequence
+     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
+     * seconds, but not 5 seconds and 1 microsecond.
+     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
+     * be completed in any time duration.
+     * 
+ * + * .google.protobuf.Duration sequence_maximum_duration = 2; + */ + public com.google.protobuf.Duration.Builder getSequenceMaximumDurationBuilder() { + + onChanged(); + return getSequenceMaximumDurationFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Defines the time period in which the whole sequence must occur; for
+     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
+     * of the endpoint at the microsecond granularity. For example a sequence
+     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
+     * seconds, but not 5 seconds and 1 microsecond.
+     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
+     * be completed in any time duration.
+     * 
+ * + * .google.protobuf.Duration sequence_maximum_duration = 2; + */ + public com.google.protobuf.DurationOrBuilder getSequenceMaximumDurationOrBuilder() { + if (sequenceMaximumDurationBuilder_ != null) { + return sequenceMaximumDurationBuilder_.getMessageOrBuilder(); + } else { + return sequenceMaximumDuration_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : sequenceMaximumDuration_; + } + } + /** + * + * + *
+     * Defines the time period in which the whole sequence must occur; for
+     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
+     * of the endpoint at the microsecond granularity. For example a sequence
+     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
+     * seconds, but not 5 seconds and 1 microsecond.
+     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
+     * be completed in any time duration.
+     * 
+ * + * .google.protobuf.Duration sequence_maximum_duration = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + getSequenceMaximumDurationFieldBuilder() { + if (sequenceMaximumDurationBuilder_ == null) { + sequenceMaximumDurationBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getSequenceMaximumDuration(), getParentForChildren(), isClean()); + sequenceMaximumDuration_ = null; + } + return sequenceMaximumDurationBuilder_; + } + + private java.util.List userSequenceSteps_ = + java.util.Collections.emptyList(); + + private void ensureUserSequenceStepsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + userSequenceSteps_ = + new java.util.ArrayList( + userSequenceSteps_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSequenceStep, + com.google.analytics.data.v1alpha.UserSequenceStep.Builder, + com.google.analytics.data.v1alpha.UserSequenceStepOrBuilder> + userSequenceStepsBuilder_; + + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public java.util.List + getUserSequenceStepsList() { + if (userSequenceStepsBuilder_ == null) { + return java.util.Collections.unmodifiableList(userSequenceSteps_); + } else { + return userSequenceStepsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public int getUserSequenceStepsCount() { + if (userSequenceStepsBuilder_ == null) { + return userSequenceSteps_.size(); + } else { + return userSequenceStepsBuilder_.getCount(); + } + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public com.google.analytics.data.v1alpha.UserSequenceStep getUserSequenceSteps(int index) { + if (userSequenceStepsBuilder_ == null) { + return userSequenceSteps_.get(index); + } else { + return userSequenceStepsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public Builder setUserSequenceSteps( + int index, com.google.analytics.data.v1alpha.UserSequenceStep value) { + if (userSequenceStepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserSequenceStepsIsMutable(); + userSequenceSteps_.set(index, value); + onChanged(); + } else { + userSequenceStepsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public Builder setUserSequenceSteps( + int index, com.google.analytics.data.v1alpha.UserSequenceStep.Builder builderForValue) { + if (userSequenceStepsBuilder_ == null) { + ensureUserSequenceStepsIsMutable(); + userSequenceSteps_.set(index, builderForValue.build()); + onChanged(); + } else { + userSequenceStepsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public Builder addUserSequenceSteps(com.google.analytics.data.v1alpha.UserSequenceStep value) { + if (userSequenceStepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserSequenceStepsIsMutable(); + userSequenceSteps_.add(value); + onChanged(); + } else { + userSequenceStepsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public Builder addUserSequenceSteps( + int index, com.google.analytics.data.v1alpha.UserSequenceStep value) { + if (userSequenceStepsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureUserSequenceStepsIsMutable(); + userSequenceSteps_.add(index, value); + onChanged(); + } else { + userSequenceStepsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public Builder addUserSequenceSteps( + com.google.analytics.data.v1alpha.UserSequenceStep.Builder builderForValue) { + if (userSequenceStepsBuilder_ == null) { + ensureUserSequenceStepsIsMutable(); + userSequenceSteps_.add(builderForValue.build()); + onChanged(); + } else { + userSequenceStepsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public Builder addUserSequenceSteps( + int index, com.google.analytics.data.v1alpha.UserSequenceStep.Builder builderForValue) { + if (userSequenceStepsBuilder_ == null) { + ensureUserSequenceStepsIsMutable(); + userSequenceSteps_.add(index, builderForValue.build()); + onChanged(); + } else { + userSequenceStepsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public Builder addAllUserSequenceSteps( + java.lang.Iterable values) { + if (userSequenceStepsBuilder_ == null) { + ensureUserSequenceStepsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userSequenceSteps_); + onChanged(); + } else { + userSequenceStepsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public Builder clearUserSequenceSteps() { + if (userSequenceStepsBuilder_ == null) { + userSequenceSteps_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + userSequenceStepsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public Builder removeUserSequenceSteps(int index) { + if (userSequenceStepsBuilder_ == null) { + ensureUserSequenceStepsIsMutable(); + userSequenceSteps_.remove(index); + onChanged(); + } else { + userSequenceStepsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public com.google.analytics.data.v1alpha.UserSequenceStep.Builder getUserSequenceStepsBuilder( + int index) { + return getUserSequenceStepsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public com.google.analytics.data.v1alpha.UserSequenceStepOrBuilder + getUserSequenceStepsOrBuilder(int index) { + if (userSequenceStepsBuilder_ == null) { + return userSequenceSteps_.get(index); + } else { + return userSequenceStepsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public java.util.List + getUserSequenceStepsOrBuilderList() { + if (userSequenceStepsBuilder_ != null) { + return userSequenceStepsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(userSequenceSteps_); + } + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public com.google.analytics.data.v1alpha.UserSequenceStep.Builder + addUserSequenceStepsBuilder() { + return getUserSequenceStepsFieldBuilder() + .addBuilder(com.google.analytics.data.v1alpha.UserSequenceStep.getDefaultInstance()); + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public com.google.analytics.data.v1alpha.UserSequenceStep.Builder addUserSequenceStepsBuilder( + int index) { + return getUserSequenceStepsFieldBuilder() + .addBuilder( + index, com.google.analytics.data.v1alpha.UserSequenceStep.getDefaultInstance()); + } + /** + * + * + *
+     * An ordered sequence of condition steps. A user's events must complete
+     * each step in order for the user to match the
+     * `UserSegmentSequenceGroup`.
+     * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + * + */ + public java.util.List + getUserSequenceStepsBuilderList() { + return getUserSequenceStepsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSequenceStep, + com.google.analytics.data.v1alpha.UserSequenceStep.Builder, + com.google.analytics.data.v1alpha.UserSequenceStepOrBuilder> + getUserSequenceStepsFieldBuilder() { + if (userSequenceStepsBuilder_ == null) { + userSequenceStepsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.data.v1alpha.UserSequenceStep, + com.google.analytics.data.v1alpha.UserSequenceStep.Builder, + com.google.analytics.data.v1alpha.UserSequenceStepOrBuilder>( + userSequenceSteps_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + userSequenceSteps_ = null; + } + return userSequenceStepsBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.UserSegmentSequenceGroup) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.UserSegmentSequenceGroup) + private static final com.google.analytics.data.v1alpha.UserSegmentSequenceGroup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.UserSegmentSequenceGroup(); + } + + public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSegmentSequenceGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserSegmentSequenceGroup(input, extensionRegistry); + } + }; + + public static 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.v1alpha.UserSegmentSequenceGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroupOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroupOrBuilder.java new file mode 100644 index 00000000..b64578b4 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroupOrBuilder.java @@ -0,0 +1,178 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/data/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface UserSegmentSequenceGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.UserSegmentSequenceGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * All sequence steps must be satisfied in the scoping for the user to
+   * match the sequence. For example if `sequenceScoping =
+   * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
+   * one session for the user to match the sequence. `sequenceScoping =
+   * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
+   * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+   * used.
+   * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; + * + * @return The enum numeric value on the wire for sequenceScoping. + */ + int getSequenceScopingValue(); + /** + * + * + *
+   * All sequence steps must be satisfied in the scoping for the user to
+   * match the sequence. For example if `sequenceScoping =
+   * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
+   * one session for the user to match the sequence. `sequenceScoping =
+   * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
+   * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
+   * used.
+   * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; + * + * @return The sequenceScoping. + */ + com.google.analytics.data.v1alpha.UserCriteriaScoping getSequenceScoping(); + + /** + * + * + *
+   * Defines the time period in which the whole sequence must occur; for
+   * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
+   * of the endpoint at the microsecond granularity. For example a sequence
+   * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
+   * seconds, but not 5 seconds and 1 microsecond.
+   * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
+   * be completed in any time duration.
+   * 
+ * + * .google.protobuf.Duration sequence_maximum_duration = 2; + * + * @return Whether the sequenceMaximumDuration field is set. + */ + boolean hasSequenceMaximumDuration(); + /** + * + * + *
+   * Defines the time period in which the whole sequence must occur; for
+   * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
+   * of the endpoint at the microsecond granularity. For example a sequence
+   * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
+   * seconds, but not 5 seconds and 1 microsecond.
+   * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
+   * be completed in any time duration.
+   * 
+ * + * .google.protobuf.Duration sequence_maximum_duration = 2; + * + * @return The sequenceMaximumDuration. + */ + com.google.protobuf.Duration getSequenceMaximumDuration(); + /** + * + * + *
+   * Defines the time period in which the whole sequence must occur; for
+   * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
+   * of the endpoint at the microsecond granularity. For example a sequence
+   * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
+   * seconds, but not 5 seconds and 1 microsecond.
+   * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
+   * be completed in any time duration.
+   * 
+ * + * .google.protobuf.Duration sequence_maximum_duration = 2; + */ + com.google.protobuf.DurationOrBuilder getSequenceMaximumDurationOrBuilder(); + + /** + * + * + *
+   * An ordered sequence of condition steps. A user's events must complete
+   * each step in order for the user to match the
+   * `UserSegmentSequenceGroup`.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + */ + java.util.List getUserSequenceStepsList(); + /** + * + * + *
+   * An ordered sequence of condition steps. A user's events must complete
+   * each step in order for the user to match the
+   * `UserSegmentSequenceGroup`.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + */ + com.google.analytics.data.v1alpha.UserSequenceStep getUserSequenceSteps(int index); + /** + * + * + *
+   * An ordered sequence of condition steps. A user's events must complete
+   * each step in order for the user to match the
+   * `UserSegmentSequenceGroup`.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + */ + int getUserSequenceStepsCount(); + /** + * + * + *
+   * An ordered sequence of condition steps. A user's events must complete
+   * each step in order for the user to match the
+   * `UserSegmentSequenceGroup`.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + */ + java.util.List + getUserSequenceStepsOrBuilderList(); + /** + * + * + *
+   * An ordered sequence of condition steps. A user's events must complete
+   * each step in order for the user to match the
+   * `UserSegmentSequenceGroup`.
+   * 
+ * + * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; + */ + com.google.analytics.data.v1alpha.UserSequenceStepOrBuilder getUserSequenceStepsOrBuilder( + int index); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStep.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStep.java new file mode 100644 index 00000000..ce982040 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStep.java @@ -0,0 +1,1096 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +/** + * + * + *
+ * A condition that must occur in the specified step order for this user
+ * to match the sequence.
+ * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.UserSequenceStep} + */ +public final class UserSequenceStep extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.UserSequenceStep) + UserSequenceStepOrBuilder { + private static final long serialVersionUID = 0L; + // Use UserSequenceStep.newBuilder() to construct. + private UserSequenceStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UserSequenceStep() { + stepScoping_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UserSequenceStep(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UserSequenceStep( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder 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: + { + isDirectlyFollowedBy_ = input.readBool(); + break; + } + case 16: + { + int rawValue = input.readEnum(); + + stepScoping_ = rawValue; + break; + } + case 26: + { + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder subBuilder = null; + if (segmentFilterExpression_ != null) { + subBuilder = segmentFilterExpression_.toBuilder(); + } + segmentFilterExpression_ = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentFilterExpression.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(segmentFilterExpression_); + segmentFilterExpression_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSequenceStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.UserSequenceStep.class, + com.google.analytics.data.v1alpha.UserSequenceStep.Builder.class); + } + + public static final int IS_DIRECTLY_FOLLOWED_BY_FIELD_NUMBER = 1; + private boolean isDirectlyFollowedBy_; + /** + * + * + *
+   * If true, the event satisfying this step must be the very next event
+   * after the event satifying the last step. If false, this step indirectly
+   * follows the prior step; for example, there may be events between the
+   * prior step and this step. `isDirectlyFollowedBy` must be false for
+   * the first step.
+   * 
+ * + * bool is_directly_followed_by = 1; + * + * @return The isDirectlyFollowedBy. + */ + @java.lang.Override + public boolean getIsDirectlyFollowedBy() { + return isDirectlyFollowedBy_; + } + + public static final int STEP_SCOPING_FIELD_NUMBER = 2; + private int stepScoping_; + /** + * + * + *
+   * This sequence step must be satisfied in the scoping for the user to
+   * match the sequence. For example if `sequenceScoping =
+   * WITHIN_SAME_SESSION`, this sequence steps must complete within one
+   * session for the user to match the sequence. `stepScoping =
+   * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
+   * ACROSS_ALL_SESSIONS`.
+   * Optional. If unspecified, `stepScoping` uses the same
+   * `UserCriteriaScoping` as the `sequenceScoping`.
+   * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; + * + * @return The enum numeric value on the wire for stepScoping. + */ + @java.lang.Override + public int getStepScopingValue() { + return stepScoping_; + } + /** + * + * + *
+   * This sequence step must be satisfied in the scoping for the user to
+   * match the sequence. For example if `sequenceScoping =
+   * WITHIN_SAME_SESSION`, this sequence steps must complete within one
+   * session for the user to match the sequence. `stepScoping =
+   * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
+   * ACROSS_ALL_SESSIONS`.
+   * Optional. If unspecified, `stepScoping` uses the same
+   * `UserCriteriaScoping` as the `sequenceScoping`.
+   * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; + * + * @return The stepScoping. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserCriteriaScoping getStepScoping() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.UserCriteriaScoping result = + com.google.analytics.data.v1alpha.UserCriteriaScoping.valueOf(stepScoping_); + return result == null + ? com.google.analytics.data.v1alpha.UserCriteriaScoping.UNRECOGNIZED + : result; + } + + public static final int SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER = 3; + private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_; + /** + * + * + *
+   * A user matches this sequence step if their events match this
+   * expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; + * + * + * @return Whether the segmentFilterExpression field is set. + */ + @java.lang.Override + public boolean hasSegmentFilterExpression() { + return segmentFilterExpression_ != null; + } + /** + * + * + *
+   * A user matches this sequence step if their events match this
+   * expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; + * + * + * @return The segmentFilterExpression. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() { + return segmentFilterExpression_ == null + ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() + : segmentFilterExpression_; + } + /** + * + * + *
+   * A user matches this sequence step if their events match this
+   * expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; + * + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder + getSegmentFilterExpressionOrBuilder() { + return getSegmentFilterExpression(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (isDirectlyFollowedBy_ != false) { + output.writeBool(1, isDirectlyFollowedBy_); + } + if (stepScoping_ + != com.google.analytics.data.v1alpha.UserCriteriaScoping.USER_CRITERIA_SCOPING_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, stepScoping_); + } + if (segmentFilterExpression_ != null) { + output.writeMessage(3, getSegmentFilterExpression()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (isDirectlyFollowedBy_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isDirectlyFollowedBy_); + } + if (stepScoping_ + != com.google.analytics.data.v1alpha.UserCriteriaScoping.USER_CRITERIA_SCOPING_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stepScoping_); + } + if (segmentFilterExpression_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSegmentFilterExpression()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = 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.v1alpha.UserSequenceStep)) { + return super.equals(obj); + } + com.google.analytics.data.v1alpha.UserSequenceStep other = + (com.google.analytics.data.v1alpha.UserSequenceStep) obj; + + if (getIsDirectlyFollowedBy() != other.getIsDirectlyFollowedBy()) return false; + if (stepScoping_ != other.stepScoping_) return false; + if (hasSegmentFilterExpression() != other.hasSegmentFilterExpression()) return false; + if (hasSegmentFilterExpression()) { + if (!getSegmentFilterExpression().equals(other.getSegmentFilterExpression())) return false; + } + if (!unknownFields.equals(other.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) + IS_DIRECTLY_FOLLOWED_BY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsDirectlyFollowedBy()); + hash = (37 * hash) + STEP_SCOPING_FIELD_NUMBER; + hash = (53 * hash) + stepScoping_; + if (hasSegmentFilterExpression()) { + hash = (37 * hash) + SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER; + hash = (53 * hash) + getSegmentFilterExpression().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.data.v1alpha.UserSequenceStep parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSequenceStep 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.v1alpha.UserSequenceStep parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSequenceStep parseFrom( + 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.v1alpha.UserSequenceStep parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.data.v1alpha.UserSequenceStep parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.data.v1alpha.UserSequenceStep parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSequenceStep parseFrom( + java.io.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.v1alpha.UserSequenceStep parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSequenceStep parseDelimitedFrom( + java.io.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.v1alpha.UserSequenceStep parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.data.v1alpha.UserSequenceStep parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, 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.v1alpha.UserSequenceStep prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 condition that must occur in the specified step order for this user
+   * to match the sequence.
+   * 
+ * + * Protobuf type {@code google.analytics.data.v1alpha.UserSequenceStep} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.UserSequenceStep) + com.google.analytics.data.v1alpha.UserSequenceStepOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSequenceStep_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.data.v1alpha.UserSequenceStep.class, + com.google.analytics.data.v1alpha.UserSequenceStep.Builder.class); + } + + // Construct using com.google.analytics.data.v1alpha.UserSequenceStep.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(); + isDirectlyFollowedBy_ = false; + + stepScoping_ = 0; + + if (segmentFilterExpressionBuilder_ == null) { + segmentFilterExpression_ = null; + } else { + segmentFilterExpression_ = null; + segmentFilterExpressionBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.data.v1alpha.ReportingApiProto + .internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSequenceStep getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.UserSequenceStep.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSequenceStep build() { + com.google.analytics.data.v1alpha.UserSequenceStep result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.data.v1alpha.UserSequenceStep buildPartial() { + com.google.analytics.data.v1alpha.UserSequenceStep result = + new com.google.analytics.data.v1alpha.UserSequenceStep(this); + result.isDirectlyFollowedBy_ = isDirectlyFollowedBy_; + result.stepScoping_ = stepScoping_; + if (segmentFilterExpressionBuilder_ == null) { + result.segmentFilterExpression_ = segmentFilterExpression_; + } else { + result.segmentFilterExpression_ = segmentFilterExpressionBuilder_.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.v1alpha.UserSequenceStep) { + return mergeFrom((com.google.analytics.data.v1alpha.UserSequenceStep) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSequenceStep other) { + if (other == com.google.analytics.data.v1alpha.UserSequenceStep.getDefaultInstance()) + return this; + if (other.getIsDirectlyFollowedBy() != false) { + setIsDirectlyFollowedBy(other.getIsDirectlyFollowedBy()); + } + if (other.stepScoping_ != 0) { + setStepScopingValue(other.getStepScopingValue()); + } + if (other.hasSegmentFilterExpression()) { + mergeSegmentFilterExpression(other.getSegmentFilterExpression()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.v1alpha.UserSequenceStep parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.data.v1alpha.UserSequenceStep) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private boolean isDirectlyFollowedBy_; + /** + * + * + *
+     * If true, the event satisfying this step must be the very next event
+     * after the event satifying the last step. If false, this step indirectly
+     * follows the prior step; for example, there may be events between the
+     * prior step and this step. `isDirectlyFollowedBy` must be false for
+     * the first step.
+     * 
+ * + * bool is_directly_followed_by = 1; + * + * @return The isDirectlyFollowedBy. + */ + @java.lang.Override + public boolean getIsDirectlyFollowedBy() { + return isDirectlyFollowedBy_; + } + /** + * + * + *
+     * If true, the event satisfying this step must be the very next event
+     * after the event satifying the last step. If false, this step indirectly
+     * follows the prior step; for example, there may be events between the
+     * prior step and this step. `isDirectlyFollowedBy` must be false for
+     * the first step.
+     * 
+ * + * bool is_directly_followed_by = 1; + * + * @param value The isDirectlyFollowedBy to set. + * @return This builder for chaining. + */ + public Builder setIsDirectlyFollowedBy(boolean value) { + + isDirectlyFollowedBy_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, the event satisfying this step must be the very next event
+     * after the event satifying the last step. If false, this step indirectly
+     * follows the prior step; for example, there may be events between the
+     * prior step and this step. `isDirectlyFollowedBy` must be false for
+     * the first step.
+     * 
+ * + * bool is_directly_followed_by = 1; + * + * @return This builder for chaining. + */ + public Builder clearIsDirectlyFollowedBy() { + + isDirectlyFollowedBy_ = false; + onChanged(); + return this; + } + + private int stepScoping_ = 0; + /** + * + * + *
+     * This sequence step must be satisfied in the scoping for the user to
+     * match the sequence. For example if `sequenceScoping =
+     * WITHIN_SAME_SESSION`, this sequence steps must complete within one
+     * session for the user to match the sequence. `stepScoping =
+     * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
+     * ACROSS_ALL_SESSIONS`.
+     * Optional. If unspecified, `stepScoping` uses the same
+     * `UserCriteriaScoping` as the `sequenceScoping`.
+     * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; + * + * @return The enum numeric value on the wire for stepScoping. + */ + @java.lang.Override + public int getStepScopingValue() { + return stepScoping_; + } + /** + * + * + *
+     * This sequence step must be satisfied in the scoping for the user to
+     * match the sequence. For example if `sequenceScoping =
+     * WITHIN_SAME_SESSION`, this sequence steps must complete within one
+     * session for the user to match the sequence. `stepScoping =
+     * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
+     * ACROSS_ALL_SESSIONS`.
+     * Optional. If unspecified, `stepScoping` uses the same
+     * `UserCriteriaScoping` as the `sequenceScoping`.
+     * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; + * + * @param value The enum numeric value on the wire for stepScoping to set. + * @return This builder for chaining. + */ + public Builder setStepScopingValue(int value) { + + stepScoping_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * This sequence step must be satisfied in the scoping for the user to
+     * match the sequence. For example if `sequenceScoping =
+     * WITHIN_SAME_SESSION`, this sequence steps must complete within one
+     * session for the user to match the sequence. `stepScoping =
+     * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
+     * ACROSS_ALL_SESSIONS`.
+     * Optional. If unspecified, `stepScoping` uses the same
+     * `UserCriteriaScoping` as the `sequenceScoping`.
+     * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; + * + * @return The stepScoping. + */ + @java.lang.Override + public com.google.analytics.data.v1alpha.UserCriteriaScoping getStepScoping() { + @SuppressWarnings("deprecation") + com.google.analytics.data.v1alpha.UserCriteriaScoping result = + com.google.analytics.data.v1alpha.UserCriteriaScoping.valueOf(stepScoping_); + return result == null + ? com.google.analytics.data.v1alpha.UserCriteriaScoping.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * This sequence step must be satisfied in the scoping for the user to
+     * match the sequence. For example if `sequenceScoping =
+     * WITHIN_SAME_SESSION`, this sequence steps must complete within one
+     * session for the user to match the sequence. `stepScoping =
+     * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
+     * ACROSS_ALL_SESSIONS`.
+     * Optional. If unspecified, `stepScoping` uses the same
+     * `UserCriteriaScoping` as the `sequenceScoping`.
+     * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; + * + * @param value The stepScoping to set. + * @return This builder for chaining. + */ + public Builder setStepScoping(com.google.analytics.data.v1alpha.UserCriteriaScoping value) { + if (value == null) { + throw new NullPointerException(); + } + + stepScoping_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * This sequence step must be satisfied in the scoping for the user to
+     * match the sequence. For example if `sequenceScoping =
+     * WITHIN_SAME_SESSION`, this sequence steps must complete within one
+     * session for the user to match the sequence. `stepScoping =
+     * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
+     * ACROSS_ALL_SESSIONS`.
+     * Optional. If unspecified, `stepScoping` uses the same
+     * `UserCriteriaScoping` as the `sequenceScoping`.
+     * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; + * + * @return This builder for chaining. + */ + public Builder clearStepScoping() { + + stepScoping_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> + segmentFilterExpressionBuilder_; + /** + * + * + *
+     * A user matches this sequence step if their events match this
+     * expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; + * + * + * @return Whether the segmentFilterExpression field is set. + */ + public boolean hasSegmentFilterExpression() { + return segmentFilterExpressionBuilder_ != null || segmentFilterExpression_ != null; + } + /** + * + * + *
+     * A user matches this sequence step if their events match this
+     * expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; + * + * + * @return The segmentFilterExpression. + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() { + if (segmentFilterExpressionBuilder_ == null) { + return segmentFilterExpression_ == null + ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() + : segmentFilterExpression_; + } else { + return segmentFilterExpressionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * A user matches this sequence step if their events match this
+     * expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; + * + */ + public Builder setSegmentFilterExpression( + com.google.analytics.data.v1alpha.SegmentFilterExpression value) { + if (segmentFilterExpressionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + segmentFilterExpression_ = value; + onChanged(); + } else { + segmentFilterExpressionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * A user matches this sequence step if their events match this
+     * expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; + * + */ + public Builder setSegmentFilterExpression( + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) { + if (segmentFilterExpressionBuilder_ == null) { + segmentFilterExpression_ = builderForValue.build(); + onChanged(); + } else { + segmentFilterExpressionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * A user matches this sequence step if their events match this
+     * expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; + * + */ + public Builder mergeSegmentFilterExpression( + com.google.analytics.data.v1alpha.SegmentFilterExpression value) { + if (segmentFilterExpressionBuilder_ == null) { + if (segmentFilterExpression_ != null) { + segmentFilterExpression_ = + com.google.analytics.data.v1alpha.SegmentFilterExpression.newBuilder( + segmentFilterExpression_) + .mergeFrom(value) + .buildPartial(); + } else { + segmentFilterExpression_ = value; + } + onChanged(); + } else { + segmentFilterExpressionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * A user matches this sequence step if their events match this
+     * expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; + * + */ + public Builder clearSegmentFilterExpression() { + if (segmentFilterExpressionBuilder_ == null) { + segmentFilterExpression_ = null; + onChanged(); + } else { + segmentFilterExpression_ = null; + segmentFilterExpressionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * A user matches this sequence step if their events match this
+     * expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; + * + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder + getSegmentFilterExpressionBuilder() { + + onChanged(); + return getSegmentFilterExpressionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * A user matches this sequence step if their events match this
+     * expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; + * + */ + public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder + getSegmentFilterExpressionOrBuilder() { + if (segmentFilterExpressionBuilder_ != null) { + return segmentFilterExpressionBuilder_.getMessageOrBuilder(); + } else { + return segmentFilterExpression_ == null + ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() + : segmentFilterExpression_; + } + } + /** + * + * + *
+     * A user matches this sequence step if their events match this
+     * expression. Expressions express criteria on dimension, metrics,
+     * and/or parameters.
+     * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> + getSegmentFilterExpressionFieldBuilder() { + if (segmentFilterExpressionBuilder_ == null) { + segmentFilterExpressionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1alpha.SegmentFilterExpression, + com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder>( + getSegmentFilterExpression(), getParentForChildren(), isClean()); + segmentFilterExpression_ = null; + } + return segmentFilterExpressionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(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.v1alpha.UserSequenceStep) + } + + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.UserSequenceStep) + private static final com.google.analytics.data.v1alpha.UserSequenceStep DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.UserSequenceStep(); + } + + public static com.google.analytics.data.v1alpha.UserSequenceStep getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserSequenceStep parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UserSequenceStep(input, extensionRegistry); + } + }; + + public static 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.v1alpha.UserSequenceStep getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStepOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStepOrBuilder.java new file mode 100644 index 00000000..10774001 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStepOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See 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/v1alpha/data.proto + +package com.google.analytics.data.v1alpha; + +public interface UserSequenceStepOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.UserSequenceStep) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * If true, the event satisfying this step must be the very next event
+   * after the event satifying the last step. If false, this step indirectly
+   * follows the prior step; for example, there may be events between the
+   * prior step and this step. `isDirectlyFollowedBy` must be false for
+   * the first step.
+   * 
+ * + * bool is_directly_followed_by = 1; + * + * @return The isDirectlyFollowedBy. + */ + boolean getIsDirectlyFollowedBy(); + + /** + * + * + *
+   * This sequence step must be satisfied in the scoping for the user to
+   * match the sequence. For example if `sequenceScoping =
+   * WITHIN_SAME_SESSION`, this sequence steps must complete within one
+   * session for the user to match the sequence. `stepScoping =
+   * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
+   * ACROSS_ALL_SESSIONS`.
+   * Optional. If unspecified, `stepScoping` uses the same
+   * `UserCriteriaScoping` as the `sequenceScoping`.
+   * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; + * + * @return The enum numeric value on the wire for stepScoping. + */ + int getStepScopingValue(); + /** + * + * + *
+   * This sequence step must be satisfied in the scoping for the user to
+   * match the sequence. For example if `sequenceScoping =
+   * WITHIN_SAME_SESSION`, this sequence steps must complete within one
+   * session for the user to match the sequence. `stepScoping =
+   * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
+   * ACROSS_ALL_SESSIONS`.
+   * Optional. If unspecified, `stepScoping` uses the same
+   * `UserCriteriaScoping` as the `sequenceScoping`.
+   * 
+ * + * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; + * + * @return The stepScoping. + */ + com.google.analytics.data.v1alpha.UserCriteriaScoping getStepScoping(); + + /** + * + * + *
+   * A user matches this sequence step if their events match this
+   * expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; + * + * + * @return Whether the segmentFilterExpression field is set. + */ + boolean hasSegmentFilterExpression(); + /** + * + * + *
+   * A user matches this sequence step if their events match this
+   * expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; + * + * + * @return The segmentFilterExpression. + */ + com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression(); + /** + * + * + *
+   * A user matches this sequence step if their events match this
+   * expression. Expressions express criteria on dimension, metrics,
+   * and/or parameters.
+   * 
+ * + * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; + * + */ + com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder + getSegmentFilterExpressionOrBuilder(); +} diff --git a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto b/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto new file mode 100644 index 00000000..64be8151 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto @@ -0,0 +1,166 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.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.v1alpha; + +import "google/analytics/data/v1alpha/data.proto"; +import "google/api/annotations.proto"; +import "google/api/client.proto"; + +option go_package = "google.golang.org/genproto/googleapis/analytics/data/v1alpha;data"; +option java_multiple_files = true; +option java_outer_classname = "AnalyticsDataApiProto"; +option java_package = "com.google.analytics.data.v1alpha"; + +// Google Analytics reporting data service. +service AlphaAnalyticsData { + 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 funnel report of your Google Analytics event data. The + // data returned from the API is as a table with columns for the requested + // dimensions and metrics. + // + // Funnel exploration lets you visualize the steps your users take to complete + // a task and quickly see how well they are succeeding or failing at each + // step. For example, how do prospects become shoppers and then become buyers? + // How do one time buyers become repeat buyers? With this information, you can + // improve inefficient or abandoned customer journeys. To learn more, see [GA4 + // Funnel Explorations](https://support.google.com/analytics/answer/9327974). + rpc RunFunnelReport(RunFunnelReportRequest) returns (RunFunnelReportResponse) { + option (google.api.http) = { + post: "/v1alpha/{property=properties/*}:runFunnelReport" + body: "*" + }; + } +} + +// The request for a funnel report. +message RunFunnelReportRequest { + // Controls the dimensions present in the funnel visualization sub report + // response. + enum FunnelVisualizationType { + // Unspecified type. + FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED = 0; + + // A standard (stepped) funnel. The funnel visualization sub report in the + // response will not contain date. + STANDARD_FUNNEL = 1; + + // A trended (line chart) funnel. The funnel visualization sub report in the + // response will contain the date dimension. + TRENDED_FUNNEL = 2; + } + + // 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; + + // 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. + repeated DateRange date_ranges = 2; + + // The configuration of this request's funnel. This funnel configuration is + // required. + Funnel funnel = 3; + + // If specified, this breakdown adds a dimension to the funnel table sub + // report response. This breakdown dimension expands each funnel step to the + // unique values of the breakdown dimension. For example, a breakdown by the + // `deviceCategory` dimension will create rows for `mobile`, `tablet`, + // `desktop`, and the total. + FunnelBreakdown funnel_breakdown = 4; + + // If specified, next action adds a dimension to the funnel visualization sub + // report response. This next action dimension expands each funnel step to the + // unique values of the next action. For example a breakdown by the + // `eventName` dimension will create rows for several events (i.e. + // `session_start` & `click`) and the total. + FunnelNextAction funnel_next_action = 5; + + // The funnel visualization type controls the dimensions present in the funnel + // visualization sub report response. If not specified, `STANDARD_FUNNEL` is + // used. + FunnelVisualizationType funnel_visualization_type = 6; + + // The configurations of segments. Segments are subsets of a property's data. + // In a funnel report with segments, the funnel is evaluated in each segment. + // + // Each segment specified in this request + // produces a separate row in the response; in the response, each segment + // identified by its name. + // + // The segments parameter is optional. Requests are limited to 4 segments. + repeated Segment segments = 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`. + int64 limit = 9; + + // Dimension filters allow you to ask for only specific dimension values in + // the report. To learn more, see [Creating a Report: 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 = 10; + + // Toggles whether to return the current state of this Analytics Property's + // quota. Quota is returned in [PropertyQuota](#PropertyQuota). + bool return_property_quota = 12; +} + +// The funnel report response contains two sub reports. The two sub reports are +// different combinations of dimensions and metrics. +message RunFunnelReportResponse { + // The funnel table is a report with the funnel step, segment, breakdown + // dimension, active users, completion rate, abandonments, and abandonments + // rate. + // + // The segment dimension is only present in this response if a segment was + // requested. The breakdown dimension is only present in this response if it + // was requested. + FunnelSubReport funnel_table = 1; + + // The funnel visualization is a report with the funnel step, segment, date, + // next action dimension, and active users. + // + // The segment dimension is only present in this response if a segment was + // requested. The date dimension is only present in this response if it was + // requested via the `TRENDED_FUNNEL` funnel type. The next action dimension + // is only present in the response if it was requested. + FunnelSubReport funnel_visualization = 2; + + // This Analytics Property's quota state including this request. + PropertyQuota property_quota = 3; + + // Identifies what kind of resource this message is. This `kind` is always the + // fixed string "analyticsData#runFunnelReport". Useful to distinguish between + // response types in JSON. + string kind = 4; +} diff --git a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto b/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto new file mode 100644 index 00000000..6c566e20 --- /dev/null +++ b/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto @@ -0,0 +1,1230 @@ +// Copyright 2022 Google LLC +// +// Licensed under the Apache License, Version 2.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.v1alpha; + +import "google/protobuf/duration.proto"; + +option go_package = "google.golang.org/genproto/googleapis/analytics/data/v1alpha;data"; +option java_multiple_files = true; +option java_outer_classname = "ReportingApiProto"; +option java_package = "com.google.analytics.data.v1alpha"; + +// 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; +} + +// 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, the city could be "Paris" or "New York". +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; + } +} + +// 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. In the same FilterExpression, all of the filter's + // field names need to be either all dimensions or all 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 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 = 2; + + // A filter for in list values. + InListFilter in_list_filter = 3; + + // A filter for numeric or date values. + NumericFilter numeric_filter = 4; + + // A filter for between two values. + BetweenFilter between_filter = 5; + } +} + +// 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 match for the regular expression with the string value. + FULL_REGEXP = 5; + + // Partial match for the regular expression 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; +} + +// 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; + } +} + +// 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; +} + +// 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; + } +} + +// 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; +} + +// Breakdowns add a dimension to the funnel table sub report response. +message FunnelBreakdown { + // The dimension column added to the funnel table sub report response. The + // breakdown dimension breaks down each funnel step. A valid + // `breakdownDimension` is required if `funnelBreakdown` is specified. + Dimension breakdown_dimension = 1; + + // The maximum number of distinct values of the breakdown dimension to return + // in the response. A `limit` of `5` is used if limit is not specified. Limit + // must exceed zero and cannot exceed 15. + optional int64 limit = 2; +} + +// Next actions state the value for a dimension after the user has achieved +// a step but before the same user has achieved the next step. For example if +// the `nextActionDimension` is `eventName`, then `nextActionDimension` in the +// `i`th funnel step row will return first event after the event that qualified +// the user into the `i`th funnel step but before the user achieved the `i+1`th +// funnel step. +message FunnelNextAction { + // The dimension column added to the funnel visualization sub report response. + // The next action dimension returns the next dimension value of this + // dimension after the user has attained the `i`th funnel step. + // `nextActionDimension` currently only supports the `eventName` dimension. + Dimension next_action_dimension = 1; + + // The maximum number of distinct values of the breakdown dimension to return + // in the response. A `limit` of `5` is used if limit is not specified. Limit + // must exceed zero and cannot exceed 5. + optional int64 limit = 2; +} + +// Configures the funnel in a funnel report request. A funnel reports on users +// as they pass through a sequence of steps. +// +// Funnel exploration lets you visualize the steps your users take to complete a +// task and quickly see how well they are succeeding or failing at each step. +// For example, how do prospects become shoppers and then become buyers? How do +// one time buyers become repeat buyers? With this information, you can improve +// inefficient or abandoned customer journeys. +message Funnel { + // In an open funnel, users can enter the funnel in any step, and in a closed + // funnel, users must enter the funnel in the first step. Optional. If + // unspecified, a closed funnel is used. + bool is_open_funnel = 1; + + // The sequential steps of this funnel. + repeated FunnelStep steps = 2; +} + +// Steps define the user journey you want to measure. Steps contain one or +// more conditions that your users must meet to be included in that step of +// the funnel journey. +message FunnelStep { + // The distinctive name for this step. If unspecified, steps will be named + // by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines + // string value returned by the `funnelStepName` dimension. For example, + // specifying `name = Purchase` in the request's third funnel step will + // produce `3. Purchase` in the funnel report response. + string name = 1; + + // If true, this step must directly follow the previous step. If false, + // there can be events between the previous step and this step. If + // unspecified, `isDirectlyFollowedBy` is treated as false. + bool is_directly_followed_by = 2; + + // If specified, this step must complete within this duration of the + // completion of the prior step. `withinDurationFromPriorStep` is inclusive + // of the endpoint at the microsecond granularity. For example a duration of + // 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 + // microsecond. + // + // `withinDurationFromPriorStep` is optional, and if unspecified, steps may + // be separated by any time duration. + optional google.protobuf.Duration within_duration_from_prior_step = 3; + + // The condition that your users must meet to be included in this step of + // the funnel journey. + FunnelFilterExpression filter_expression = 4; +} + +// Funnel sub reports contain the dimension and metric data values. For example, +// 12 users reached the second step of the funnel. +message FunnelSubReport { + // Describes dimension columns. Funnel reports always include the funnel step + // dimension in sub report responses. Additional dimensions like breakdowns, + // dates, and next actions may be present in the response if requested. + repeated DimensionHeader dimension_headers = 1; + + // Describes metric columns. Funnel reports always include active users in sub + // report responses. The funnel table includes additional metrics like + // completion rate, abandonments, and abandonments rate. + repeated MetricHeader metric_headers = 2; + + // Rows of dimension value combinations and metric values in the report. + repeated Row rows = 3; + + // Metadata for the funnel report. + FunnelResponseMetadata metadata = 4; +} + +// User segments are subsets of users who engaged with your site or app. For +// example, users who have previously purchased; users who added items to their +// shopping carts, but didn’t complete a purchase. +message UserSegment { + // Defines which users are included in this segment. Optional. + UserSegmentCriteria user_inclusion_criteria = 1; + + // Defines which users are excluded in this segment. Optional. + UserSegmentExclusion exclusion = 2; +} + +// A user matches a criteria if the user's events meet the conditions in the +// criteria. +message UserSegmentCriteria { + // A user matches this criteria if the user matches each of these + // `andConditionGroups` and each of the `andSequenceGroups`. + // `andConditionGroups` may be empty if `andSequenceGroups` are specified. + repeated UserSegmentConditionGroup and_condition_groups = 1; + + // A user matches this criteria if the user matches each of these + // `andSequenceGroups` and each of the `andConditionGroups`. + // `andSequenceGroups` may be empty if `andConditionGroups` are specified. + repeated UserSegmentSequenceGroup and_sequence_groups = 2; +} + +// Scoping specifies which events are considered when evaluating if a user +// meets a criteria. +enum UserCriteriaScoping { + // Unspecified criteria scoping. Do not specify. + USER_CRITERIA_SCOPING_UNSPECIFIED = 0; + + // If the criteria is satisfied within one event, the user matches the + // criteria. + USER_CRITERIA_WITHIN_SAME_EVENT = 1; + + // If the criteria is satisfied within one session, the user matches the + // criteria. + USER_CRITERIA_WITHIN_SAME_SESSION = 2; + + // If the criteria is satisfied by any events for the user, the user + // matches the criteria. + USER_CRITERIA_ACROSS_ALL_SESSIONS = 3; +} + +// Conditions tell Analytics what data to include in or exclude from the +// segment. +message UserSegmentConditionGroup { + // Data is included or excluded from the segment based on if it matches + // the condition group. This scoping defines how many events the + // `segmentFilterExpression` is evaluated on before the condition group + // is determined to be matched or not. For example if `conditionScoping = + // USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all + // events in a session, and then, the condition group is determined to be + // matched or not for this user. For example if `conditionScoping = + // USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single + // event, and then, the condition group is determined to be matched or not for + // this user. + // + // Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is + // used. + UserCriteriaScoping condition_scoping = 1; + + // Data is included or excluded from the segment based on if it matches + // this expression. Expressions express criteria on dimension, metrics, + // and/or parameters. + SegmentFilterExpression segment_filter_expression = 2; +} + +// Define conditions that must occur in a specific order for the user to be +// a member of the segment. +message UserSegmentSequenceGroup { + // All sequence steps must be satisfied in the scoping for the user to + // match the sequence. For example if `sequenceScoping = + // USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within + // one session for the user to match the sequence. `sequenceScoping = + // USER_CRITERIA_WITHIN_SAME_EVENT` is not supported. + // + // Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is + // used. + UserCriteriaScoping sequence_scoping = 1; + + // Defines the time period in which the whole sequence must occur; for + // example, 30 Minutes. `sequenceMaximumDuration` is inclusive + // of the endpoint at the microsecond granularity. For example a sequence + // with a maximum duration of 5 seconds can be completed at 4.9 or 5.0 + // seconds, but not 5 seconds and 1 microsecond. + // + // `sequenceMaximumDuration` is optional, and if unspecified, sequences can + // be completed in any time duration. + google.protobuf.Duration sequence_maximum_duration = 2; + + // An ordered sequence of condition steps. A user's events must complete + // each step in order for the user to match the + // `UserSegmentSequenceGroup`. + repeated UserSequenceStep user_sequence_steps = 3; +} + +// A condition that must occur in the specified step order for this user +// to match the sequence. +message UserSequenceStep { + // If true, the event satisfying this step must be the very next event + // after the event satifying the last step. If false, this step indirectly + // follows the prior step; for example, there may be events between the + // prior step and this step. `isDirectlyFollowedBy` must be false for + // the first step. + bool is_directly_followed_by = 1; + + // This sequence step must be satisfied in the scoping for the user to + // match the sequence. For example if `sequenceScoping = + // WITHIN_SAME_SESSION`, this sequence steps must complete within one + // session for the user to match the sequence. `stepScoping = + // ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping = + // ACROSS_ALL_SESSIONS`. + // + // Optional. If unspecified, `stepScoping` uses the same + // `UserCriteriaScoping` as the `sequenceScoping`. + UserCriteriaScoping step_scoping = 2; + + // A user matches this sequence step if their events match this + // expression. Expressions express criteria on dimension, metrics, + // and/or parameters. + SegmentFilterExpression segment_filter_expression = 3; +} + +// Specifies which users are excluded in this segment. +message UserSegmentExclusion { + // Specifies how long an exclusion will last if a user matches the + // `userExclusionCriteria`. + // + // Optional. If unspecified, `userExclusionDuration` of + // `USER_EXCLUSION_TEMPORARY` is used. + UserExclusionDuration user_exclusion_duration = 1; + + // If a user meets this condition, the user is excluded from membership in + // the segment for the `userExclusionDuration`. + UserSegmentCriteria user_exclusion_criteria = 2; +} + +// Enumerates options for how long an exclusion will last if a user matches +// the `userExclusionCriteria`. +enum UserExclusionDuration { + // Unspecified exclusion duration. Do not specify. + USER_EXCLUSION_DURATION_UNSPECIFIED = 0; + + // Temporarily exclude users from the segment during periods when the + // user meets the `userExclusionCriteria` condition. + USER_EXCLUSION_TEMPORARY = 1; + + // Permanently exclude users from the segment if the user ever meets the + // `userExclusionCriteria` condition. + USER_EXCLUSION_PERMANENT = 2; +} + +// Session segments are subsets of the sessions that occurred on your site or +// app: for example, all the sessions that originated from a particular +// advertising campaign. +message SessionSegment { + // Defines which sessions are included in this segment. Optional. + SessionSegmentCriteria session_inclusion_criteria = 1; + + // Defines which sessions are excluded in this segment. Optional. + SessionSegmentExclusion exclusion = 2; +} + +// A session matches a criteria if the session's events meet the conditions in +// the criteria. +message SessionSegmentCriteria { + // A session matches this criteria if the session matches each of these + // `andConditionGroups`. + repeated SessionSegmentConditionGroup and_condition_groups = 1; +} + +// Scoping specifies which events are considered when evaluating if a +// session meets a criteria. +enum SessionCriteriaScoping { + // Unspecified criteria scoping. Do not specify. + SESSION_CRITERIA_SCOPING_UNSPECIFIED = 0; + + // If the criteria is satisfied within one event, the session matches the + // criteria. + SESSION_CRITERIA_WITHIN_SAME_EVENT = 1; + + // If the criteria is satisfied within one session, the session matches + // the criteria. + SESSION_CRITERIA_WITHIN_SAME_SESSION = 2; +} + +// Conditions tell Analytics what data to include in or exclude from the +// segment. +message SessionSegmentConditionGroup { + // Data is included or excluded from the segment based on if it matches + // the condition group. This scoping defines how many events the + // `segmentFilterExpression` is evaluated on before the condition group + // is determined to be matched or not. For example if `conditionScoping = + // SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all + // events in a session, and then, the condition group is determined to be + // matched or not for this session. For example if `conditionScoping = + // SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a + // single event, and then, the condition group is determined to be matched or + // not for this session. + // + // Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION` + // is used. + SessionCriteriaScoping condition_scoping = 1; + + // Data is included or excluded from the segment based on if it matches + // this expression. Expressions express criteria on dimension, metrics, + // and/or parameters. + SegmentFilterExpression segment_filter_expression = 2; +} + +// Specifies which sessions are excluded in this segment. +message SessionSegmentExclusion { + // Specifies how long an exclusion will last if a session matches the + // `sessionExclusionCriteria`. + // + // Optional. If unspecified, a `sessionExclusionDuration` of + // `SESSION_EXCLUSION_TEMPORARY` is used. + SessionExclusionDuration session_exclusion_duration = 1; + + // If a session meets this condition, the session is excluded from + // membership in the segment for the `sessionExclusionDuration`. + SessionSegmentCriteria session_exclusion_criteria = 2; +} + +// Enumerates options for how long an exclusion will last if a session +// matches the `sessionExclusionCriteria`. +enum SessionExclusionDuration { + // Unspecified exclusion duration. Do not specify. + SESSION_EXCLUSION_DURATION_UNSPECIFIED = 0; + + // Temporarily exclude sessions from the segment during periods when the + // session meets the `sessionExclusionCriteria` condition. + SESSION_EXCLUSION_TEMPORARY = 1; + + // Permanently exclude sessions from the segment if the session ever meets + // the `sessionExclusionCriteria` condition. + SESSION_EXCLUSION_PERMANENT = 2; +} + +// Event segments are subsets of events that were triggered on your site or app. +// for example, all purchase events made in a particular location; app_exception +// events that occurred on a specific operating system. +message EventSegment { + // Defines which events are included in this segment. Optional. + EventSegmentCriteria event_inclusion_criteria = 1; + + // Defines which events are excluded in this segment. Optional. + EventSegmentExclusion exclusion = 2; +} + +// An event matches a criteria if the event meet the conditions in the +// criteria. +message EventSegmentCriteria { + // An event matches this criteria if the event matches each of these + // `andConditionGroups`. + repeated EventSegmentConditionGroup and_condition_groups = 1; +} + +// Scoping specifies which events are considered when evaluating if an event +// meets a criteria. +enum EventCriteriaScoping { + // Unspecified criteria scoping. Do not specify. + EVENT_CRITERIA_SCOPING_UNSPECIFIED = 0; + + // If the criteria is satisfied within one event, the event matches the + // criteria. + EVENT_CRITERIA_WITHIN_SAME_EVENT = 1; +} + +// Conditions tell Analytics what data to include in or exclude from the +// segment. +message EventSegmentConditionGroup { + // `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`. + // + // Optional. If unspecified, a `conditionScoping` of + // `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used. + EventCriteriaScoping condition_scoping = 1; + + // Data is included or excluded from the segment based on if it matches + // this expression. Expressions express criteria on dimension, metrics, + // and/or parameters. + SegmentFilterExpression segment_filter_expression = 2; +} + +// Specifies which events are excluded in this segment. +message EventSegmentExclusion { + // `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`. + // + // Optional. If unspecified, an `eventExclusionDuration` of + // `EVENT_EXCLUSION_PERMANENT` is used. + EventExclusionDuration event_exclusion_duration = 1; + + // If an event meets this condition, the event is excluded from membership + // in the segment for the `eventExclusionDuration`. + EventSegmentCriteria event_exclusion_criteria = 2; +} + +// Enumerates options for how long an exclusion will last if an event +// matches the `eventExclusionCriteria`. +enum EventExclusionDuration { + // Unspecified exclusion duration. Do not specify. + EVENT_EXCLUSION_DURATION_UNSPECIFIED = 0; + + // Permanently exclude events from the segment if the event ever meets + // the `eventExclusionCriteria` condition. + EVENT_EXCLUSION_PERMANENT = 1; +} + +// A segment is a subset of your Analytics data. For example, of your entire set +// of users, one segment might be users from a particular country or city. +// Another segment might be users who purchase a particular line of products or +// who visit a specific part of your site or trigger certain events in your app. +// +// To learn more, see [GA4 Segment +// Builder](https://support.google.com/analytics/answer/9304353). +message Segment { + // The name for this segment. If unspecified, segments are named "Segment". + // This name defines string value returned by the `segment` dimension. The + // `segment` dimension prefixes segment names by the 1-based index number of + // the segment in the request (i.e. "1. Segment", "2. Segment", etc.). + string name = 1; + + // A segment is specified in one scope. + oneof one_segment_scope { + // User segments are subsets of users who engaged with your site or app. + UserSegment user_segment = 2; + + // Session segments are subsets of the sessions that occurred on your site + // or app. + SessionSegment session_segment = 3; + + // Event segments are subsets of events that were triggered on your site or + // app. + EventSegment event_segment = 4; + } +} + +// Expresses combinations of segment filters. +message SegmentFilterExpression { + // Specify one type of filter for `SegmentFilterExpression`. + oneof expr { + // The SegmentFilterExpression in `andGroup` have an AND relationship. + SegmentFilterExpressionList and_group = 1; + + // The SegmentFilterExpression in `orGroup` have an OR relationship. + SegmentFilterExpressionList or_group = 2; + + // The SegmentFilterExpression is NOT of `notExpression`. + SegmentFilterExpression not_expression = 3; + + // A primitive segment filter. + SegmentFilter segment_filter = 4; + + // Creates a filter that matches events of a single event name. If a + // parameter filter expression is specified, only the subset of events that + // match both the single event name and the parameter filter expressions + // match this event filter. + SegmentEventFilter segment_event_filter = 5; + } +} + +// A list of segment filter expressions. +message SegmentFilterExpressionList { + // The list of segment filter expressions + repeated SegmentFilterExpression expressions = 1; +} + +// An expression to filter dimension or metric values. +message SegmentFilter { + // The dimension name or metric name. + string field_name = 1; + + // Specify one type of filter for `Filter`. + oneof one_filter { + // Strings related filter. + StringFilter string_filter = 4; + + // A filter for in list values. + InListFilter in_list_filter = 5; + + // A filter for numeric or date values. + NumericFilter numeric_filter = 6; + + // A filter for between two values. + BetweenFilter between_filter = 7; + } + + // Specifies the scope for the filter. + SegmentFilterScoping filter_scoping = 8; +} + +// Scopings specify how the dimensions & metrics of multiple events +// should be considered when evaluating a segment filter. +message SegmentFilterScoping { + // If `atAnyPointInTime` is true, this filter evaluates to true for all + // events if it evaluates to true for any event in the date range of the + // request. + // + // This `atAnyPointInTime` parameter does not extend the date range of + // events in the report. If `atAnyPointInTime` is true, only events within + // the report's date range are considered when evaluating this filter. + // + // This `atAnyPointInTime` is only able to be specified if the criteria + // scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in + // sequences. + // + // If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` = + // false is used if unspecified. + optional bool at_any_point_in_time = 1; +} + +// Creates a filter that matches events of a single event name. If a parameter +// filter expression is specified, only the subset of events that match both the +// single event name and the parameter filter expressions match this event +// filter. +message SegmentEventFilter { + // This filter matches events of this single event name. Event name is + // required. + optional string event_name = 1; + + // If specified, this filter matches events that match both the single event + // name and the parameter filter expressions. + // + // Inside the parameter filter expression, only parameter filters are + // available. + optional SegmentParameterFilterExpression segment_parameter_filter_expression = 2; +} + +// Expresses combinations of segment filter on parameters. +message SegmentParameterFilterExpression { + // Specify one type of filter for `SegmentParameterFilterExpression`. + oneof expr { + // The SegmentParameterFilterExpression in `andGroup` have an AND + // relationship. + SegmentParameterFilterExpressionList and_group = 1; + + // The SegmentParameterFilterExpression in `orGroup` have an OR + // relationship. + SegmentParameterFilterExpressionList or_group = 2; + + // The SegmentParameterFilterExpression is NOT of `notExpression`. + SegmentParameterFilterExpression not_expression = 3; + + // A primitive segment parameter filter. + SegmentParameterFilter segment_parameter_filter = 4; + } +} + +// A list of segment parameter filter expressions. +message SegmentParameterFilterExpressionList { + // The list of segment parameter filter expressions. + repeated SegmentParameterFilterExpression expressions = 1; +} + +// An expression to filter parameter values in a segment. +message SegmentParameterFilter { + // The field that is being filtered. + oneof one_parameter { + // This filter will be evaluated on the specified event parameter. Event + // parameters are logged as parameters of the event. Event parameters + // include fields like "firebase_screen" & "currency". + // + // Event parameters can only be used in segments & funnels and can only be + // used in a descendent filter from an EventFilter. In a descendent filter + // from an EventFilter either event or item parameters should be used. + string event_parameter_name = 1; + + // This filter will be evaluated on the specified item parameter. Item + // parameters are logged as parameters in the item array. Item parameters + // include fields like "item_name" & "item_category". + // + // Item parameters can only be used in segments & funnels and can only be + // used in a descendent filter from an EventFilter. In a descendent filter + // from an EventFilter either event or item parameters should be used. + // + // Item parameters are only available in ecommerce events. To learn more + // about ecommerce events, see the [Measure ecommerce] + // (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) + // guide. + string item_parameter_name = 2; + } + + // Specify one type of filter. + oneof one_filter { + // Strings related filter. + StringFilter string_filter = 4; + + // A filter for in list values. + InListFilter in_list_filter = 5; + + // A filter for numeric or date values. + NumericFilter numeric_filter = 6; + + // A filter for between two values. + BetweenFilter between_filter = 7; + } + + // Specifies the scope for the filter. + SegmentParameterFilterScoping filter_scoping = 8; +} + +// Scopings specify how multiple events should be considered when evaluating a +// segment parameter filter. +message SegmentParameterFilterScoping { + // Accumulates the parameter over the specified period of days before + // applying the filter. Only supported if criteria scoping is + // `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the + // parameter is `event_count`. + // + // For example if `inAnyNDayPeriod` is 3, the event_name is "purchase", + // the event parameter is "event_count", and the Filter's criteria is + // greater than 5, this filter will accumulate the event count of purchase + // events over every 3 consecutive day period in the report's date range; a + // user will pass this Filter's criteria to be included in this segment if + // their count of purchase events exceeds 5 in any 3 consecutive day period. + // For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to + // 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered. + // + // The date range is not extended for the purpose of having a full N day + // window near the start of the date range. For example if a report is for + // 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day + // period will be effectively shortened because no event data outside the + // report's date range will be read. For example, the first four periods + // will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02, + // 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04. + // + // `inAnyNDayPeriod` is optional. If not specified, the + // `segmentParameterFilter` is applied to each event individually. + optional int64 in_any_n_day_period = 1; +} + +// Expresses combinations of funnel filters. +message FunnelFilterExpression { + // Specify one type of filter for `FunnelFilterExpression`. + oneof expr { + // The FunnelFilterExpression in `andGroup` have an AND relationship. + FunnelFilterExpressionList and_group = 1; + + // The FunnelFilterExpression in `orGroup` have an OR relationship. + FunnelFilterExpressionList or_group = 2; + + // The FunnelFilterExpression is NOT of `notExpression`. + FunnelFilterExpression not_expression = 3; + + // A primitive funnel filter. + FunnelFilter funnel_filter = 4; + + // Creates a filter that matches events of a single event name. If a + // parameter filter expression is specified, only the subset of events that + // match both the single event name and the parameter filter expressions + // match this event filter. + FunnelEventFilter funnel_event_filter = 5; + } +} + +// A list of funnel filter expressions. +message FunnelFilterExpressionList { + // The list of funnel filter expressions. + repeated FunnelFilterExpression expressions = 1; +} + +// An expression to filter dimension or metric values. +message FunnelFilter { + // The dimension name or metric name. + string field_name = 1; + + // Specify one type of filter. + oneof one_filter { + // Strings related filter. + StringFilter string_filter = 4; + + // A filter for in list values. + InListFilter in_list_filter = 5; + + // A filter for numeric or date values. + NumericFilter numeric_filter = 6; + + // A filter for between two values. + BetweenFilter between_filter = 7; + } +} + +// Creates a filter that matches events of a single event name. If a parameter +// filter expression is specified, only the subset of events that match both the +// single event name and the parameter filter expressions match this event +// filter. +message FunnelEventFilter { + // This filter matches events of this single event name. Event name is + // required. + optional string event_name = 1; + + // If specified, this filter matches events that match both the single event + // name and the parameter filter expressions. + // + // Inside the parameter filter expression, only parameter filters are + // available. + optional FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; +} + +// Expresses combinations of funnel filters on parameters. +message FunnelParameterFilterExpression { + // Specify one type of filter for `FunnelParameterFilterExpression`. + oneof expr { + // The FunnelParameterFilterExpression in `andGroup` have an AND + // relationship. + FunnelParameterFilterExpressionList and_group = 1; + + // The FunnelParameterFilterExpression in `orGroup` have an OR + // relationship. + FunnelParameterFilterExpressionList or_group = 2; + + // The FunnelParameterFilterExpression is NOT of `notExpression`. + FunnelParameterFilterExpression not_expression = 3; + + // A primitive funnel parameter filter. + FunnelParameterFilter funnel_parameter_filter = 4; + } +} + +// A list of funnel parameter filter expressions. +message FunnelParameterFilterExpressionList { + // The list of funnel parameter filter expressions. + repeated FunnelParameterFilterExpression expressions = 1; +} + +// An expression to filter parameter values in a funnel. +message FunnelParameterFilter { + // The field that is being filtered. + oneof one_parameter { + // This filter will be evaluated on the specified event parameter. Event + // parameters are logged as parameters of the event. Event parameters + // include fields like "firebase_screen" & "currency". + // + // Event parameters can only be used in segments & funnels and can only be + // used in a descendent filter from an EventFilter. In a descendent filter + // from an EventFilter either event or item parameters should be used. + string event_parameter_name = 1; + + // This filter will be evaluated on the specified item parameter. Item + // parameters are logged as parameters in the item array. Item parameters + // include fields like "item_name" & "item_category". + // + // Item parameters can only be used in segments & funnels and can only be + // used in a descendent filter from an EventFilter. In a descendent filter + // from an EventFilter either event or item parameters should be used. + // + // Item parameters are only available in ecommerce events. To learn more + // about ecommerce events, see the [Measure ecommerce] + // (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) + // guide. + string item_parameter_name = 2; + } + + // Specify one type of filter. + oneof one_filter { + // Strings related filter. + StringFilter string_filter = 4; + + // A filter for in list values. + InListFilter in_list_filter = 5; + + // A filter for numeric or date values. + NumericFilter numeric_filter = 6; + + // A filter for between two values. + BetweenFilter between_filter = 7; + } +} + +// The funnel report's response metadata carries additional information about +// the funnel report. +message FunnelResponseMetadata { + // If funnel report results are + // [sampled](https://support.google.com/analytics/answer/2637192), this + // describes what percentage of events were used in this funnel report. One + // `samplingMetadatas` is populated for each date range. Each + // `samplingMetadatas` corresponds to a date range in order that date ranges + // were specified in the request. + // + // However if the results are not sampled, this field will not be defined. + repeated SamplingMetadata sampling_metadatas = 1; +} + +// If funnel report results are +// [sampled](https://support.google.com/analytics/answer/2637192), this +// metadata describes what percentage of events were used in this funnel +// report for a date range. Sampling is the practice of analyzing a subset of +// all data in order to uncover the meaningful information in the larger data +// set. +message SamplingMetadata { + // The total number of events read in this sampled report for a date range. + // This is the size of the subset this property's data that was analyzed in + // this funnel report. + int64 samples_read_count = 1; + + // The total number of events present in this property's data that could + // have been analyzed in this funnel report for a date range. Sampling + // uncovers the meaningful information about the larger data set, and this + // is the size of the larger data set. + // + // To calculate the percentage of available data that was used in this + // funnel report, compute `samplesReadCount/samplingSpaceSize`. + int64 sampling_space_size = 2; +} + +// 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; +} diff --git a/versions.txt b/versions.txt index 99fc3526..9d8530da 100644 --- a/versions.txt +++ b/versions.txt @@ -4,3 +4,5 @@ google-analytics-data:0.11.10:0.11.10 grpc-google-analytics-data-v1beta:0.11.10:0.11.10 proto-google-analytics-data-v1beta:0.11.10:0.11.10 +proto-google-analytics-data-v1alpha:0.11.10:0.11.10 +grpc-google-analytics-data-v1alpha:0.11.10:0.11.10 From 9dbe3e30f84dcf143a66b68a68ca95d50c4699c5 Mon Sep 17 00:00:00 2001 From: Anwesha Date: Tue, 17 May 2022 09:48:33 -0400 Subject: [PATCH 108/225] samples: add Java samples for date ranges (#470) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * A copy sample to test fork process * Adds sample RunReportSample * Modifies runReport sample to have headers printed * Addresses comment differences inbetween python and java sample * Changes println to printf for consistency * Test for run report * Fixes a matching tag * Fixes checkstyle violation * -Another commit to fix checkstyle violations * Changes to linting * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Adds samples related to date ranges for java * Removes spaces in readme * Fixes spacing * Fixes linting * Fixes linting violations * Style changes on comment * Makes review based changes to comments * Adds a comment explaining print method * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: ikuleshov --- README.md | 2 + .../RunReportWithDateRangesSample.java | 76 ++++++++++++++++ .../RunReportWithNamedDateRangesSample.java | 88 +++++++++++++++++++ .../RunReportWithDateRangesSampleTest.java | 54 ++++++++++++ .../RunReportWithNamedDateRangesTest.java | 54 ++++++++++++ 5 files changed, 274 insertions(+) create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithDateRangesSample.java create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithNamedDateRangesSample.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithDateRangesSampleTest.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithNamedDateRangesTest.java diff --git a/README.md b/README.md index 93d148ce..2449af8f 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-analytics-dat | 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 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) | diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithDateRangesSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithDateRangesSample.java new file mode 100644 index 00000000..42459294 --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportWithDateRangesSample.java @@ -0,0 +1,76 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the usage of +date ranges in a report. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.date_ranges +for more information. + +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.RunReportWithDateRangesSample" + */ + +// [START analyticsdata_run_report_with_date_ranges] + +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.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; + +public class RunReportWithDateRangesSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunReportWithDateRanges(propertyId); + } + + // Runs a report using two date ranges. + static void sampleRunReportWithDateRanges(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDateRanges( + DateRange.newBuilder().setStartDate("2019-08-01").setEndDate("2019-08-14")) + .addDateRanges( + DateRange.newBuilder().setStartDate("2020-08-01").setEndDate("2020-08-14")) + .addDimensions(Dimension.newBuilder().setName("platform")) + .addMetrics(Metric.newBuilder().setName("activeUsers")) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + // Prints the response using a method in RunReportSample.java + RunReportSample.printRunResponseResponse(response); + } + } +} +// [END analyticsdata_run_report_with_date_ranges] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithNamedDateRangesSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithNamedDateRangesSample.java new file mode 100644 index 00000000..9bdcce18 --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportWithNamedDateRangesSample.java @@ -0,0 +1,88 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the creation +of a basic report. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport +for more information. + +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.RunReportWithNamedDateRangesSample" + */ + +// [START analyticsdata_run_report_with_named_date_ranges] + +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.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; + +public class RunReportWithNamedDateRangesSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunReportWithNamedDateRanges(propertyId); + } + + // Runs a report using named date ranges. + static void sampleRunReportWithNamedDateRanges(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + + DateRange yearAgo = + DateRange.newBuilder() + .setStartDate("2020-01-01") + .setEndDate("2020-01-31") + .setName("year_ago") + .build(); + DateRange currentYear = + DateRange.newBuilder() + .setStartDate("2021-01-01") + .setEndDate("2021-01-31") + .setName("current_year") + .build(); + + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDateRanges(yearAgo) + .addDateRanges(currentYear) + .addDimensions(Dimension.newBuilder().setName("country")) + .addMetrics(Metric.newBuilder().setName("sessions")) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + // Prints the response using a method in RunReportSample.java + RunReportSample.printRunResponseResponse(response); + } + } +} +// [END analyticsdata_run_report_with_named_date_ranges] diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithDateRangesSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithDateRangesSampleTest.java new file mode 100644 index 00000000..bfb69a20 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportWithDateRangesSampleTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunReportWithDateRanges sample. */ +@RunWith(JUnit4.class) +public class RunReportWithDateRangesSampleTest { + + 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. + RunReportWithDateRangesSample.sampleRunReportWithDateRanges(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReportWithDateRanges() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithNamedDateRangesTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithNamedDateRangesTest.java new file mode 100644 index 00000000..5a37e3a5 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportWithNamedDateRangesTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunReportWithNamedDateRanges sample. */ +@RunWith(JUnit4.class) +public class RunReportWithNamedDateRangesTest { + + 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. + RunReportWithNamedDateRangesSample.sampleRunReportWithNamedDateRanges(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReportWithNamedDateRanges() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} From c325846927723a0b8c35c3e4f7c197cf92e335fb Mon Sep 17 00:00:00 2001 From: Anwesha Date: Tue, 17 May 2022 10:17:50 -0400 Subject: [PATCH 109/225] samples: add Java samples for ordering, pagination, property quota (#471) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * A copy sample to test fork process * Adds sample RunReportSample * Modifies runReport sample to have headers printed * Addresses comment differences inbetween python and java sample * Changes println to printf for consistency * Test for run report * Fixes a matching tag * Fixes checkstyle violation * -Another commit to fix checkstyle violations * Changes to linting * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Adds samples related to date ranges for java * Removes spaces in readme * Fixes spacing * Adds 3 java samples * Fixes linting * Fixes linting violations * Style change on comment * Modifies comment describing client creation * Changes to comments on samples * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: ikuleshov --- README.md | 3 + .../RunReportWithOrderingSample.java | 80 +++++++++++++ .../RunReportWithPaginationSample.java | 105 ++++++++++++++++++ .../RunReportWithPropertyQuotaSample.java | 96 ++++++++++++++++ .../analytics/RunReportWithOrderingTest.java | 54 +++++++++ .../RunReportWithPaginationTest.java | 54 +++++++++ .../RunReportWithPropertyQuotaTest.java | 54 +++++++++ 7 files changed, 446 insertions(+) create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithOrderingSample.java create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithPaginationSample.java create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithPropertyQuotaSample.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithOrderingTest.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithPaginationTest.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithPropertyQuotaTest.java diff --git a/README.md b/README.md index 2449af8f..6b48dc7e 100644 --- a/README.md +++ b/README.md @@ -86,6 +86,9 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-analytics-dat | 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 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) | diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithOrderingSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithOrderingSample.java new file mode 100644 index 00000000..d1ec79c9 --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportWithOrderingSample.java @@ -0,0 +1,80 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the ordering of report rows. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.order_bys +for more information. + +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.RunReportWithOrderingSample" + */ + +// [START analyticsdata_run_report_with_ordering] + +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.OrderBy; +import com.google.analytics.data.v1beta.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; + +public class RunReportWithOrderingSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunReportWithOrdering(propertyId); + } + + // Runs a report of active users grouped by three dimensions, ordered by the total revenue in + // descending order. + static void sampleRunReportWithOrdering(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDimensions(Dimension.newBuilder().setName("date")) + .addMetrics(Metric.newBuilder().setName("activeUsers")) + .addMetrics(Metric.newBuilder().setName("newUsers")) + .addMetrics(Metric.newBuilder().setName("totalRevenue")) + .addDateRanges(DateRange.newBuilder().setStartDate("7daysAgo").setEndDate("today")) + .addOrderBys( + OrderBy.newBuilder() + .setMetric(OrderBy.MetricOrderBy.newBuilder().setMetricName("totalRevenue")) + .setDesc(true)) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + // Prints the response using a method in RunReportSample.java + RunReportSample.printRunResponseResponse(response); + } + } +} +// [END analyticsdata_run_report_with_ordering] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithPaginationSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithPaginationSample.java new file mode 100644 index 00000000..3bd59726 --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportWithPaginationSample.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 application demonstrating the use of pagination to retrieve +large result sets. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.offset +for more information. + +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.RunReportWithPaginationSample" + */ + +// [START analyticsdata_run_report_with_pagination] + +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.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; + +public class RunReportWithPaginationSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunReportWithPagination(propertyId); + } + + // Runs a report several times, each time retrieving a portion of result using pagination. + static void sampleRunReportWithPagination(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + // [START analyticsdata_run_report_with_pagination_page1] + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDateRanges( + DateRange.newBuilder().setStartDate("365daysAgo").setEndDate("yesterday")) + .addDimensions(Dimension.newBuilder().setName("firstUserSource")) + .addDimensions(Dimension.newBuilder().setName("firstUserMedium")) + .addDimensions(Dimension.newBuilder().setName("firstUserCampaignName")) + .addMetrics(Metric.newBuilder().setName("sessions")) + .addMetrics(Metric.newBuilder().setName("conversions")) + .addMetrics(Metric.newBuilder().setName("totalRevenue")) + .setLimit(100000) + .setOffset(0) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + RunReportSample.printRunResponseResponse(response); + // [END analyticsdata_run_report_with_pagination_page1] + + // Run the same report with a different offset value to retrieve the second page of a + // response. + // [START analyticsdata_run_report_with_pagination_page2] + request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDateRanges( + DateRange.newBuilder().setStartDate("365daysAgo").setEndDate("yesterday")) + .addDimensions(Dimension.newBuilder().setName("firstUserSource")) + .addDimensions(Dimension.newBuilder().setName("firstUserMedium")) + .addDimensions(Dimension.newBuilder().setName("firstUserCampaignName")) + .addMetrics(Metric.newBuilder().setName("sessions")) + .addMetrics(Metric.newBuilder().setName("conversions")) + .addMetrics(Metric.newBuilder().setName("totalRevenue")) + .setLimit(100000) + .setOffset(100000) + .build(); + + // Make the request. + response = analyticsData.runReport(request); + // Prints the response using a method in RunReportSample.java + RunReportSample.printRunResponseResponse(response); + // [END analyticsdata_run_report_with_pagination_page2] + } + } +} +// [END analyticsdata_run_report_with_pagination] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithPropertyQuotaSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithPropertyQuotaSample.java new file mode 100644 index 00000000..03d7f3d2 --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportWithPropertyQuotaSample.java @@ -0,0 +1,96 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the usage of property quota metadata. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.return_property_quota +for more information. + +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.RunReportWithPropertyQuotaSample" + */ + +// [START analyticsdata_run_report_with_property_quota] + +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.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; + +public class RunReportWithPropertyQuotaSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunReportWithPropertyQuota(propertyId); + } + + // Runs a report and prints property quota information. + static void sampleRunReportWithPropertyQuota(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .setReturnPropertyQuota(true) + .addDimensions(Dimension.newBuilder().setName("country")) + .addMetrics(Metric.newBuilder().setName("activeUsers")) + .addDateRanges(DateRange.newBuilder().setStartDate("7daysAgo").setEndDate("today")) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + + // [START analyticsdata_run_report_with_property_quota_print_response] + if (response.hasPropertyQuota()) { + System.out.printf( + "Tokens per day quota consumed: %d, remaining: %d.%n", + response.getPropertyQuota().getTokensPerDay().getConsumed(), + response.getPropertyQuota().getTokensPerDay().getRemaining()); + System.out.printf( + "Tokens per hour quota consumed: %d, remaining: %d.%n", + response.getPropertyQuota().getTokensPerHour().getConsumed(), + response.getPropertyQuota().getTokensPerHour().getRemaining()); + System.out.printf( + "Concurrent requests quota consumed: %d, remaining: %d.%n", + response.getPropertyQuota().getConcurrentRequests().getConsumed(), + response.getPropertyQuota().getConcurrentRequests().getRemaining()); + System.out.printf( + "Server errors per project per hour quota consumed: %d, remaining: %d.%n", + response.getPropertyQuota().getServerErrorsPerProjectPerHour().getConsumed(), + response.getPropertyQuota().getServerErrorsPerProjectPerHour().getRemaining()); + System.out.printf( + "Potentially thresholded requests per hour quota consumed: %d, remaining: %d.%n", + response.getPropertyQuota().getPotentiallyThresholdedRequestsPerHour().getConsumed(), + response.getPropertyQuota().getPotentiallyThresholdedRequestsPerHour().getRemaining()); + } + // [END analyticsdata_run_report_with_property_quota_print_response] + } + } +} +// [END analyticsdata_run_report_with_property_quota] diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithOrderingTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithOrderingTest.java new file mode 100644 index 00000000..c64eb210 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportWithOrderingTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunReportWithOrdering sample. */ +@RunWith(JUnit4.class) +public class RunReportWithOrderingTest { + + 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. + RunReportWithOrderingSample.sampleRunReportWithOrdering(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReportWithOrdering() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithPaginationTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithPaginationTest.java new file mode 100644 index 00000000..7202313a --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportWithPaginationTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunReportWithPagination sample. */ +@RunWith(JUnit4.class) +public class RunReportWithPaginationTest { + + 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. + RunReportWithPaginationSample.sampleRunReportWithPagination(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReportWithPagination() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithPropertyQuotaTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithPropertyQuotaTest.java new file mode 100644 index 00000000..55e71287 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportWithPropertyQuotaTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunReportWithPropertyQuota sample. */ +@RunWith(JUnit4.class) +public class RunReportWithPropertyQuotaTest { + + 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. + RunReportWithPropertyQuotaSample.sampleRunReportWithPropertyQuota(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReportWithPropertyQuota() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Tokens per day quota consumed"); + } +} From 47ce0e206372226faa6a46cd4c46e2ba8ec74d79 Mon Sep 17 00:00:00 2001 From: Anwesha Date: Tue, 17 May 2022 13:00:38 -0400 Subject: [PATCH 110/225] samples: add Java samples for dimension in list filter and multiple dimension filters (#473) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * A copy sample to test fork process * Adds sample RunReportSample * Modifies runReport sample to have headers printed * Addresses comment differences inbetween python and java sample * Changes println to printf for consistency * Test for run report * Fixes a matching tag * Fixes checkstyle violation * -Another commit to fix checkstyle violations * Changes to linting * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Adds samples related to date ranges for java * Removes spaces in readme * Fixes spacing * Fixes linting * Fixes linting violations * Adds java samples with multiple metrics/dimensions * Fixes lines in README * Adds Java samples for dimension filters * Style changes on comment * Comment changes in samples * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: ikuleshov --- README.md | 2 + ...ReportWithDimensionInListFilterSample.java | 97 +++++++++++++++++ ...ortWithMultipleDimensionFiltersSample.java | 101 ++++++++++++++++++ ...unReportWithDimensionInListFilterTest.java | 55 ++++++++++ ...eportWithMultipleDimensionFiltersTest.java | 55 ++++++++++ 5 files changed, 310 insertions(+) create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionInListFilterSample.java create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionFiltersSample.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionInListFilterTest.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleDimensionFiltersTest.java diff --git a/README.md b/README.md index 6b48dc7e..adfc60f5 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-analytics-dat | 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 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 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) | diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionInListFilterSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionInListFilterSample.java new file mode 100644 index 00000000..2d97e12a --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionInListFilterSample.java @@ -0,0 +1,97 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the usage of +dimension and metric filters in a report. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.dimension_filter +for more information. + +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.RunReportWithDimensionInListFilterSample" + */ + +// [START analyticsdata_run_report_with_dimension_in_list_filter] + +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.Filter; +import com.google.analytics.data.v1beta.FilterExpression; +import com.google.analytics.data.v1beta.Metric; +import com.google.analytics.data.v1beta.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; +import java.util.ArrayList; + +public class RunReportWithDimensionInListFilterSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunReportWithDimensionInListFilter(propertyId); + } + + // Runs a report using a dimension filter with `in_list_filter` expression. The filter selects for + // when `eventName` is set to one of three event names specified in the query. + // This sample uses relative date range values. + // See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/DateRange + // for more information. + static void sampleRunReportWithDimensionInListFilter(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDimensions(Dimension.newBuilder().setName("eventName")) + .addMetrics(Metric.newBuilder().setName("sessions")) + .addDateRanges( + DateRange.newBuilder().setStartDate("7daysAgo").setEndDate("yesterday")) + .setDimensionFilter( + FilterExpression.newBuilder() + .setFilter( + Filter.newBuilder() + .setFieldName("eventName") + .setInListFilter( + Filter.InListFilter.newBuilder() + .addAllValues( + new ArrayList() { + { + add("purchase"); + add("in_app_purchase"); + add("app_store_subscription_renew"); + } + }) + .build()))) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + // Prints the response using a method in RunReportSample.java + RunReportSample.printRunResponseResponse(response); + } + } +} +// [END analyticsdata_run_report_with_dimension_in_list_filter] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionFiltersSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionFiltersSample.java new file mode 100644 index 00000000..65e969bf --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionFiltersSample.java @@ -0,0 +1,101 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the usage of +dimension and metric filters in a report. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.dimension_filter +for more information. + +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.RunReportWithMultipleDimensionFiltersSample" + */ + +// [START analyticsdata_run_report_with_multiple_dimension_filters] + +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.Filter; +import com.google.analytics.data.v1beta.FilterExpression; +import com.google.analytics.data.v1beta.FilterExpressionList; +import com.google.analytics.data.v1beta.Metric; +import com.google.analytics.data.v1beta.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; + +public class RunReportWithMultipleDimensionFiltersSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunReportWithMultipleDimensionFilters(propertyId); + } + + // Runs a report using multiple dimension filters joined as `and_group` expression. The filter + // selects for when both `browser` is `Chrome` and `countryId` is `US`. + // This sample uses relative date range values. + // See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/DateRange + // for more information. + static void sampleRunReportWithMultipleDimensionFilters(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDimensions(Dimension.newBuilder().setName("browser")) + .addMetrics(Metric.newBuilder().setName("activeUsers")) + .addDateRanges( + DateRange.newBuilder().setStartDate("7daysAgo").setEndDate("yesterday")) + .setDimensionFilter( + FilterExpression.newBuilder() + .setAndGroup( + FilterExpressionList.newBuilder() + .addExpressions( + FilterExpression.newBuilder() + .setFilter( + Filter.newBuilder() + .setFieldName("browser") + .setStringFilter( + Filter.StringFilter.newBuilder() + .setValue("Chrome")))) + .addExpressions( + FilterExpression.newBuilder() + .setFilter( + Filter.newBuilder() + .setFieldName("countryId") + .setStringFilter( + Filter.StringFilter.newBuilder() + .setValue("US")))))) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + // Prints the response using a method in RunReportSample.java + RunReportSample.printRunResponseResponse(response); + } + } +} +// [END analyticsdata_run_report_with_multiple_dimension_filters] diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionInListFilterTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionInListFilterTest.java new file mode 100644 index 00000000..84d64aec --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionInListFilterTest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunReportWithDimensionInListFilter sample. */ +@RunWith(JUnit4.class) +public class RunReportWithDimensionInListFilterTest { + + 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. + RunReportWithDimensionInListFilterSample.sampleRunReportWithDimensionInListFilter( + ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReportWithDimensionInListFilter() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleDimensionFiltersTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleDimensionFiltersTest.java new file mode 100644 index 00000000..3f3e55b3 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleDimensionFiltersTest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunReportWithMultipleDimensionFilters sample. */ +@RunWith(JUnit4.class) +public class RunReportWithMultipleDimensionFiltersTest { + + 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. + RunReportWithMultipleDimensionFiltersSample.sampleRunReportWithMultipleDimensionFilters( + ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReportWithMultipleDimensionFilters() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} From 69e2d967f9442194e471307d5f114f7ac0340f80 Mon Sep 17 00:00:00 2001 From: Anwesha Date: Tue, 17 May 2022 13:16:31 -0400 Subject: [PATCH 111/225] samples: add Java samples for to dimension filters (#474) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * A copy sample to test fork process * Adds sample RunReportSample * Modifies runReport sample to have headers printed * Addresses comment differences inbetween python and java sample * Changes println to printf for consistency * Test for run report * Fixes a matching tag * Fixes checkstyle violation * -Another commit to fix checkstyle violations * Changes to linting * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Adds samples related to date ranges for java * Removes spaces in readme * Fixes spacing * Fixes linting * Fixes linting violations * Adds java samples with multiple metrics/dimensions * Fixes lines in README * Adds Java samples for dimension filters * Adds java samples related to dimension filters * Style changes on comment * Comment changes to samples * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: ikuleshov --- README.md | 3 + ...rtWithDimensionAndMetricFiltersSample.java | 112 ++++++++++++++++++ ...eportWithDimensionExcludeFilterSample.java | 90 ++++++++++++++ .../RunReportWithDimensionFilterSample.java | 87 ++++++++++++++ ...thDimensionAndMetricFiltersSampleTest.java | 55 +++++++++ ...tWithDimensionExcludeFilterSampleTest.java | 55 +++++++++ .../RunReportWithDimensionFilterTest.java | 54 +++++++++ 7 files changed, 456 insertions(+) create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSample.java create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionExcludeFilterSample.java create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionFilterSample.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSampleTest.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionExcludeFilterSampleTest.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionFilterTest.java diff --git a/README.md b/README.md index adfc60f5..4c38ad07 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,9 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-analytics-dat | 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 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) | diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSample.java new file mode 100644 index 00000000..76cdb45e --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSample.java @@ -0,0 +1,112 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the usage of +dimension and metric filters in a report. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.dimension_filter +for more information. + +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.RunReportWithDimensionAndMetricFiltersSample" + */ + +// [START analyticsdata_run_report_with_dimension_and_metric_filters] + +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.Filter; +import com.google.analytics.data.v1beta.FilterExpression; +import com.google.analytics.data.v1beta.FilterExpressionList; +import com.google.analytics.data.v1beta.Metric; +import com.google.analytics.data.v1beta.NumericValue; +import com.google.analytics.data.v1beta.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; + +public class RunReportWithDimensionAndMetricFiltersSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunReportWithDimensionAndMetricFilters(propertyId); + } + + // Runs a report using both metric and dimension filters. A dimension filter limits the report to + // include only users who made an in-app purchase using Android platform. A metric filter + // specifies that only users with session counts larger than 1,000 should be included. + static void sampleRunReportWithDimensionAndMetricFilters(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + 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")) + .setDimensionFilter( + FilterExpression.newBuilder() + .setAndGroup( + FilterExpressionList.newBuilder() + .addExpressions( + FilterExpression.newBuilder() + .setFilter( + Filter.newBuilder() + .setFieldName("platform") + .setStringFilter( + Filter.StringFilter.newBuilder() + .setMatchType( + Filter.StringFilter.MatchType.EXACT) + .setValue("Android")))) + .addExpressions( + FilterExpression.newBuilder() + .setFilter( + Filter.newBuilder() + .setFieldName("eventName") + .setStringFilter( + Filter.StringFilter.newBuilder() + .setMatchType( + Filter.StringFilter.MatchType.EXACT) + .setValue("in_app_purchase")))))) + .setMetricFilter( + FilterExpression.newBuilder() + .setFilter( + Filter.newBuilder() + .setFieldName("sessions") + .setNumericFilter( + Filter.NumericFilter.newBuilder() + .setOperation(Filter.NumericFilter.Operation.GREATER_THAN) + .setValue(NumericValue.newBuilder().setInt64Value(1000))))) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + // Prints the response using a method in RunReportSample.java + RunReportSample.printRunResponseResponse(response); + } + } +} +// [END analyticsdata_run_report_with_dimension_and_metric_filters] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionExcludeFilterSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionExcludeFilterSample.java new file mode 100644 index 00000000..89999e60 --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionExcludeFilterSample.java @@ -0,0 +1,90 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the usage of +dimension and metric filters in a report. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.dimension_filter +for more information. + +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.RunReportWithDimensionExcludeFilterSample" + */ + +// [START analyticsdata_run_report_with_dimension_exclude_filter] + +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.Filter; +import com.google.analytics.data.v1beta.FilterExpression; +import com.google.analytics.data.v1beta.Metric; +import com.google.analytics.data.v1beta.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; + +public class RunReportWithDimensionExcludeFilterSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunReportWithDimensionExcludeFilter(propertyId); + } + + // Runs a report using a filter with `not_expression`. The dimension filter selects for when + // `pageTitle` is not `My Homepage`. + // This sample uses relative date range values. + // See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/DateRange + // for more information. + static void sampleRunReportWithDimensionExcludeFilter(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDimensions(Dimension.newBuilder().setName("pageTitle")) + .addMetrics(Metric.newBuilder().setName("sessions")) + .addDateRanges( + DateRange.newBuilder().setStartDate("7daysAgo").setEndDate("yesterday")) + .setDimensionFilter( + FilterExpression.newBuilder() + .setNotExpression( + FilterExpression.newBuilder() + .setFilter( + Filter.newBuilder() + .setFieldName("pageTitle") + .setStringFilter( + Filter.StringFilter.newBuilder() + .setValue("My Homepage"))))) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + // Prints the response using a method in RunReportSample.java + RunReportSample.printRunResponseResponse(response); + } + } +} +// [END analyticsdata_run_report_with_dimension_exclude_filter] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionFilterSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionFilterSample.java new file mode 100644 index 00000000..2e2ae79c --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionFilterSample.java @@ -0,0 +1,87 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the usage of +dimension and metric filters in a report. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.dimension_filter +for more information. + +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.RunReportWithDimensionFilterSample" + */ + +// [START analyticsdata_run_report_with_dimension_filter] + +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.Filter; +import com.google.analytics.data.v1beta.FilterExpression; +import com.google.analytics.data.v1beta.Metric; +import com.google.analytics.data.v1beta.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; + +public class RunReportWithDimensionFilterSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunReportWithDimensionFilter(propertyId); + } + + // Runs a report using a dimension filter. The call returns a time series report of `eventCount` + // when `eventName` is `first_open` for each date. + // This sample uses relative date range values. + // See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/DateRange + // for more information. + static void sampleRunReportWithDimensionFilter(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDimensions(Dimension.newBuilder().setName("date")) + .addMetrics(Metric.newBuilder().setName("eventCount")) + .addDateRanges( + DateRange.newBuilder().setStartDate("7daysAgo").setEndDate("yesterday")) + .setDimensionFilter( + FilterExpression.newBuilder() + .setFilter( + Filter.newBuilder() + .setFieldName("eventName") + .setStringFilter( + Filter.StringFilter.newBuilder().setValue("first_open")))) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + // Prints the response using a method in RunReportSample.java + RunReportSample.printRunResponseResponse(response); + } + } +} +// [END analyticsdata_run_report_with_dimension_filter] diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSampleTest.java new file mode 100644 index 00000000..afe83cfb --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSampleTest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunReportWithDimensionAndMetricFilters sample. */ +@RunWith(JUnit4.class) +public class RunReportWithDimensionAndMetricFiltersSampleTest { + + 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. + RunReportWithDimensionAndMetricFiltersSample.sampleRunReportWithDimensionAndMetricFilters( + ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReportDimensionAndMetricFilters() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionExcludeFilterSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionExcludeFilterSampleTest.java new file mode 100644 index 00000000..9ee6dacf --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionExcludeFilterSampleTest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunReportWithDimensionExcludeFilter sample. */ +@RunWith(JUnit4.class) +public class RunReportWithDimensionExcludeFilterSampleTest { + + 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. + RunReportWithDimensionExcludeFilterSample.sampleRunReportWithDimensionExcludeFilter( + ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReportWithDimensionExcludeFilter() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionFilterTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionFilterTest.java new file mode 100644 index 00000000..c8fb2ad3 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionFilterTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunReportWithDimensionFilter sample. */ +@RunWith(JUnit4.class) +public class RunReportWithDimensionFilterTest { + + 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. + RunReportWithDimensionFilterSample.sampleRunReportWithDimensionFilter(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReportWithDimensionFilter() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} From 83b6bc2ea3ce2014090721df1322eedcf1a7062d Mon Sep 17 00:00:00 2001 From: Anwesha Date: Tue, 17 May 2022 13:31:37 -0400 Subject: [PATCH 112/225] samples: add Java samples with multiple dimensions/metrics (#472) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * A copy sample to test fork process * Adds sample RunReportSample * Modifies runReport sample to have headers printed * Addresses comment differences inbetween python and java sample * Changes println to printf for consistency * Test for run report * Fixes a matching tag * Fixes checkstyle violation * -Another commit to fix checkstyle violations * Changes to linting * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Adds samples related to date ranges for java * Removes spaces in readme * Fixes spacing * Fixes linting * Fixes linting violations * Adds java samples with multiple metrics/dimensions * Fixes lines in README * Style changes on comment * Comment changes on samples * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: ikuleshov --- README.md | 2 + ...RunReportWithMultipleDimensionsSample.java | 75 +++++++++++++++++++ .../RunReportWithMultipleMetricsSample.java | 75 +++++++++++++++++++ .../RunReportWithMultipleDimensionsTest.java | 54 +++++++++++++ .../RunReportWithMultipleMetricsTest.java | 54 +++++++++++++ 5 files changed, 260 insertions(+) create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionsSample.java create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleMetricsSample.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleDimensionsTest.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleMetricsTest.java diff --git a/README.md b/README.md index 4c38ad07..e8c28bac 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-analytics-dat | 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) | diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionsSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionsSample.java new file mode 100644 index 00000000..506bd55b --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionsSample.java @@ -0,0 +1,75 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the creation +of a basic report. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport +for more information. + +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.RunReportWithMultipleDimensionsSample" + */ + +// [START analyticsdata_run_report_with_multiple_dimensions] + +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.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; + +public class RunReportWithMultipleDimensionsSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunReportWithMultipleDimensions(propertyId); + } + + // Runs a report of active users grouped by three dimensions. + static void sampleRunReportWithMultipleDimensions(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDimensions(Dimension.newBuilder().setName("country")) + .addDimensions(Dimension.newBuilder().setName("region")) + .addDimensions(Dimension.newBuilder().setName("city")) + .addMetrics(Metric.newBuilder().setName("activeUsers")) + .addDateRanges(DateRange.newBuilder().setStartDate("7daysAgo").setEndDate("today")) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + // Prints the response using a method in RunReportSample.java + RunReportSample.printRunResponseResponse(response); + } + } +} +// [END analyticsdata_run_report_with_multiple_dimensions] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleMetricsSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleMetricsSample.java new file mode 100644 index 00000000..20c8c6be --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleMetricsSample.java @@ -0,0 +1,75 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the creation +of a basic report. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport +for more information. + +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.RunReportWithMultipleMetricsSample" + */ + +// [START analyticsdata_run_report_with_multiple_metrics] + +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.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; + +public class RunReportWithMultipleMetricsSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunReportWithMultipleMetrics(propertyId); + } + + // Runs a report of active users, new users and total revenue grouped by date dimension. + static void sampleRunReportWithMultipleMetrics(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDimensions(Dimension.newBuilder().setName("date")) + .addMetrics(Metric.newBuilder().setName("activeUsers")) + .addMetrics(Metric.newBuilder().setName("newUsers")) + .addMetrics(Metric.newBuilder().setName("totalRevenue")) + .addDateRanges(DateRange.newBuilder().setStartDate("7daysAgo").setEndDate("today")) + .build(); + + // Make the request. + RunReportResponse response = analyticsData.runReport(request); + // Prints the response using a method in RunReportSample.java + RunReportSample.printRunResponseResponse(response); + } + } +} +// [END analyticsdata_run_report_with_multiple_metrics] diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleDimensionsTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleDimensionsTest.java new file mode 100644 index 00000000..84784104 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleDimensionsTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunReportWithMultipleDimensions sample. */ +@RunWith(JUnit4.class) +public class RunReportWithMultipleDimensionsTest { + + 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. + RunReportWithMultipleDimensionsSample.sampleRunReportWithMultipleDimensions(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReportWithMultipleDimensions() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleMetricsTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleMetricsTest.java new file mode 100644 index 00000000..b2da9c39 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleMetricsTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunReportWithMultipleMetrics sample. */ +@RunWith(JUnit4.class) +public class RunReportWithMultipleMetricsTest { + + 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. + RunReportWithMultipleMetricsSample.sampleRunReportWithMultipleMetrics(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunReportWithMultipleMetrics() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} From 7339374f298ba5089473bd1bca1851c5faa4d8e3 Mon Sep 17 00:00:00 2001 From: Anwesha Date: Tue, 17 May 2022 13:44:30 -0400 Subject: [PATCH 113/225] samples: add Java samples for metadata (#476) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * A copy sample to test fork process * Adds sample RunReportSample * Modifies runReport sample to have headers printed * Addresses comment differences inbetween python and java sample * Changes println to printf for consistency * Test for run report * Fixes a matching tag * Fixes checkstyle violation * -Another commit to fix checkstyle violations * Changes to linting * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Adds samples related to date ranges for java * Removes spaces in readme * Fixes spacing * Fixes linting * Fixes linting violations * Adds java samples with multiple metrics/dimensions * Fixes lines in README * Adds Java samples for dimension filters * Adds java samples related to dimension filters * Adds Java samples for RunRealtimeReport * Add Java samples for metadata * Fixes linting error with mismatched filename * Style changes on comment * Changes comments * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: ikuleshov --- README.md | 2 + .../analytics/GetCommonMetadataSample.java | 96 +++++++++++++++++++ .../GetMetadataByPropertyIdSample.java | 67 +++++++++++++ .../GetCommonMetadataSampleTest.java | 51 ++++++++++ .../GetMetadataByPropertyIdSampleTest.java | 54 +++++++++++ 5 files changed, 270 insertions(+) create mode 100644 samples/snippets/src/main/java/com/example/analytics/GetCommonMetadataSample.java create mode 100644 samples/snippets/src/main/java/com/example/analytics/GetMetadataByPropertyIdSample.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/GetCommonMetadataSampleTest.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/GetMetadataByPropertyIdSampleTest.java diff --git a/README.md b/README.md index e8c28bac..cea912b4 100644 --- a/README.md +++ b/README.md @@ -79,6 +79,8 @@ 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 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) | diff --git a/samples/snippets/src/main/java/com/example/analytics/GetCommonMetadataSample.java b/samples/snippets/src/main/java/com/example/analytics/GetCommonMetadataSample.java new file mode 100644 index 00000000..5f57cc2d --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/GetCommonMetadataSample.java @@ -0,0 +1,96 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application retrieving dimension and metrics +metadata. + +See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/getMetadata +for more information. + +To run this sample using Maven: + cd java-analytics-data/samples/snippets + mvn compile + mvn exec:java -Dexec.mainClass="com.example.analytics.GetCommonMetadataSample" + */ + +// [START analyticsdata_get_common_metadata] + +import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; +import com.google.analytics.data.v1beta.DimensionMetadata; +import com.google.analytics.data.v1beta.GetMetadataRequest; +import com.google.analytics.data.v1beta.Metadata; +import com.google.analytics.data.v1beta.MetricMetadata; + +public class GetCommonMetadataSample { + + public static void main(String... args) throws Exception { + // Runs the sample. + sampleGetCommonMetadata(); + } + + // Retrieves dimensions and metrics available for all Google Analytics 4 properties. + static void sampleGetCommonMetadata() throws Exception { + // 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 propertyId = "0"; + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + GetMetadataRequest request = + GetMetadataRequest.newBuilder().setName("properties/" + propertyId + "/metadata").build(); + + // Make the request. + Metadata response = analyticsData.getMetadata(request); + + System.out.println("Dimensions and metrics available for all Google Analytics 4 properties:"); + printGetMetadataResponse(response); + } + } + + // Prints results of the getMetadata call. + static void printGetMetadataResponse(Metadata response) { + // [START analyticsdata_print_get_metadata_response] + for (DimensionMetadata dimension : response.getDimensionsList()) { + System.out.println("DIMENSION"); + System.out.printf( + "%s (%s): %s%n", + dimension.getApiName(), dimension.getUiName(), dimension.getDescription()); + System.out.printf("custom definition: %s%n", dimension.getCustomDefinition()); + if (dimension.getDeprecatedApiNamesList() != null + && !dimension.getDeprecatedApiNamesList().isEmpty()) { + System.out.printf("Deprecated API names: %s%n", dimension.getDeprecatedApiNamesList()); + } + System.out.println(); + } + for (MetricMetadata metric : response.getMetricsList()) { + System.out.println("METRIC"); + System.out.printf( + "%s (%s): %s%n", metric.getApiName(), metric.getUiName(), metric.getDescription()); + System.out.printf("custom definition: %s%n", metric.getCustomDefinition()); + System.out.printf("Type: %s%n", metric.getType()); + if (metric.getDeprecatedApiNamesList() != null + && !metric.getDeprecatedApiNamesList().isEmpty()) { + System.out.printf("Deprecated API names: %s%n", metric.getDeprecatedApiNamesList()); + } + System.out.println(); + } + // [END analyticsdata_print_get_metadata_response] + } +} +// [END analyticsdata_get_common_metadata] diff --git a/samples/snippets/src/main/java/com/example/analytics/GetMetadataByPropertyIdSample.java b/samples/snippets/src/main/java/com/example/analytics/GetMetadataByPropertyIdSample.java new file mode 100644 index 00000000..f9be5f8d --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/GetMetadataByPropertyIdSample.java @@ -0,0 +1,67 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application retrieving dimension and metrics +metadata. + +See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/getMetadata +for more information. + +To run this sample using Maven: + cd java-analytics-data/samples/snippets + mvn compile + mvn exec:java -Dexec.mainClass="com.example.analytics.GetMetadataByPropertyIdSample" + */ + +// [START analyticsdata_get_metadata_by_property_id] + +import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; +import com.google.analytics.data.v1beta.GetMetadataRequest; +import com.google.analytics.data.v1beta.Metadata; + +public class GetMetadataByPropertyIdSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleGetMetadataByPropertyId(propertyId); + } + + // Retrieves dimensions and metrics available for a Google Analytics 4 property, including custom + // fields. + static void sampleGetMetadataByPropertyId(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + GetMetadataRequest request = + GetMetadataRequest.newBuilder().setName("properties/" + propertyId + "/metadata").build(); + + // Make the request. + Metadata response = analyticsData.getMetadata(request); + + System.out.printf( + "Dimensions and metrics available for Google Analytics 4 property %s " + + "(including custom fields):", + propertyId); + // Prints the response using a method in GetCommonMetadataSample.java + GetCommonMetadataSample.printGetMetadataResponse(response); + } + } +} +// [END analyticsdata_get_metadata_by_property_id] diff --git a/samples/snippets/src/test/java/com/example/analytics/GetCommonMetadataSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/GetCommonMetadataSampleTest.java new file mode 100644 index 00000000..5acd05b6 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/GetCommonMetadataSampleTest.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the GetCommonMetadata sample. */ +@RunWith(JUnit4.class) +public class GetCommonMetadataSampleTest { + + private String runSample() 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. + GetCommonMetadataSample.sampleGetCommonMetadata(); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testGetCommonMetadata() throws Exception { + // Act + String out = runSample(); + + // Assert + assertThat(out).contains("Dimensions and metrics"); + } +} diff --git a/samples/snippets/src/test/java/com/example/analytics/GetMetadataByPropertyIdSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/GetMetadataByPropertyIdSampleTest.java new file mode 100644 index 00000000..fb19f524 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/GetMetadataByPropertyIdSampleTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the GetMetadataByPropertyId sample. */ +@RunWith(JUnit4.class) +public class GetMetadataByPropertyIdSampleTest { + + 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. + GetMetadataByPropertyIdSample.sampleGetMetadataByPropertyId(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testGetMetadataByPropertyId() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Dimensions and metrics"); + } +} From fd8247dc99532d4ad0eaf2cf75a9610f054a0eff Mon Sep 17 00:00:00 2001 From: Anwesha Date: Tue, 17 May 2022 13:57:41 -0400 Subject: [PATCH 114/225] samples: add Java samples for batch and pivot reports (#477) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * A copy sample to test fork process * Adds sample RunReportSample * Modifies runReport sample to have headers printed * Addresses comment differences inbetween python and java sample * Changes println to printf for consistency * Test for run report * Fixes a matching tag * Fixes checkstyle violation * -Another commit to fix checkstyle violations * Changes to linting * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Adds samples related to date ranges for java * Removes spaces in readme * Fixes spacing * Fixes linting * Fixes linting violations * Adds java samples with multiple metrics/dimensions * Fixes lines in README * Adds Java samples for dimension filters * Adds java samples related to dimension filters * Adds Java samples for RunRealtimeReport * Add Java samples for metadata * Add Java samples for batch and pivot reports * Adds updated files * Style changes on comment * Changes comments * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: ikuleshov --- README.md | 2 + .../analytics/RunBatchReportSample.java | 95 +++++++++++++++ .../analytics/RunPivotReportSample.java | 114 ++++++++++++++++++ .../analytics/RunBatchReportSampleTest.java | 54 +++++++++ .../analytics/RunPivotReportSampleTest.java | 54 +++++++++ 5 files changed, 319 insertions(+) create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunBatchReportSample.java create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunPivotReportSample.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunBatchReportSampleTest.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunPivotReportSampleTest.java diff --git a/README.md b/README.md index cea912b4..5b3b0674 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,8 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-analytics-dat | 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 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) | diff --git a/samples/snippets/src/main/java/com/example/analytics/RunBatchReportSample.java b/samples/snippets/src/main/java/com/example/analytics/RunBatchReportSample.java new file mode 100644 index 00000000..273ebf0a --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunBatchReportSample.java @@ -0,0 +1,95 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the batch creation +of multiple reports. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/batchRunReports +for more information. + +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.RunBatchReportSample" + */ + +// [START analyticsdata_run_batch_report] + +import com.google.analytics.data.v1beta.BatchRunReportsRequest; +import com.google.analytics.data.v1beta.BatchRunReportsResponse; +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.RunReportRequest; +import com.google.analytics.data.v1beta.RunReportResponse; + +public class RunBatchReportSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunBatchReport(propertyId); + } + + // Runs a batch report on a Google Analytics 4 property. + static void sampleRunBatchReport(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + + BatchRunReportsRequest request = + BatchRunReportsRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addRequests( + RunReportRequest.newBuilder() + .addDimensions(Dimension.newBuilder().setName("country")) + .addDimensions(Dimension.newBuilder().setName("region")) + .addDimensions(Dimension.newBuilder().setName("city")) + .addMetrics(Metric.newBuilder().setName("activeUsers")) + .addDateRanges( + DateRange.newBuilder() + .setStartDate("2021-01-03") + .setEndDate("2021-01-09"))) + .addRequests( + RunReportRequest.newBuilder() + .addDimensions(Dimension.newBuilder().setName("browser")) + .addMetrics(Metric.newBuilder().setName("activeUsers")) + .addDateRanges( + DateRange.newBuilder() + .setStartDate("2021-01-01") + .setEndDate("2021-01-31"))) + .build(); + + // Make the request. + BatchRunReportsResponse response = analyticsData.batchRunReports(request); + + // Prints the response using a method in RunReportSample.java + System.out.println("Batch report results:"); + for (RunReportResponse report : response.getReportsList()) { + RunReportSample.printRunResponseResponse(report); + } + } + } +} +// [END analyticsdata_run_batch_report] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunPivotReportSample.java b/samples/snippets/src/main/java/com/example/analytics/RunPivotReportSample.java new file mode 100644 index 00000000..9170d18e --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunPivotReportSample.java @@ -0,0 +1,114 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the creation of +a pivot report. + +See +https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runPivotReport +for more information. + +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.RunPivotReportSample" + */ + +// [START analyticsdata_run_pivot_report] + +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.DimensionValue; +import com.google.analytics.data.v1beta.Metric; +import com.google.analytics.data.v1beta.MetricValue; +import com.google.analytics.data.v1beta.OrderBy; +import com.google.analytics.data.v1beta.Pivot; +import com.google.analytics.data.v1beta.Row; +import com.google.analytics.data.v1beta.RunPivotReportRequest; +import com.google.analytics.data.v1beta.RunPivotReportResponse; + +public class RunPivotReportSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunPivotReport(propertyId); + } + + // Runs a pivot query to build a report of session counts by country, pivoted by the browser + // dimension + static void sampleRunPivotReport(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunPivotReportRequest request = + RunPivotReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDateRanges( + DateRange.newBuilder().setStartDate("2021-01-01").setEndDate("2021-01-30")) + .addPivots( + Pivot.newBuilder() + .addFieldNames("country") + .setLimit(250) + .addOrderBys( + OrderBy.newBuilder() + .setDimension( + OrderBy.DimensionOrderBy.newBuilder() + .setDimensionName("country")))) + .addPivots( + Pivot.newBuilder() + .addFieldNames("browser") + .setOffset(3) + .setLimit(3) + .addOrderBys( + OrderBy.newBuilder() + .setMetric( + OrderBy.MetricOrderBy.newBuilder().setMetricName("sessions")) + .setDesc(true))) + .addMetrics(Metric.newBuilder().setName("sessions")) + .addDimensions(Dimension.newBuilder().setName("country")) + .addDimensions(Dimension.newBuilder().setName("browser")) + .build(); + + // Make the request. + RunPivotReportResponse response = analyticsData.runPivotReport(request); + printRunPivotReportResponse(response); + } + } + + // Prints results of a runPivotReport call. + static void printRunPivotReportResponse(RunPivotReportResponse response) { + // [START analyticsdata_print_run_pivot_report_response] + System.out.println("Report result:"); + for (Row row : response.getRowsList()) { + for (DimensionValue dimensionValue : row.getDimensionValuesList()) { + System.out.println(dimensionValue.getValue()); + } + for (MetricValue metricValue : row.getMetricValuesList()) { + System.out.println(metricValue.getValue()); + } + } + // [END analyticsdata_print_run_pivot_report_response] + } +} +// [END analyticsdata_run_pivot_report] diff --git a/samples/snippets/src/test/java/com/example/analytics/RunBatchReportSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunBatchReportSampleTest.java new file mode 100644 index 00000000..d029a05e --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunBatchReportSampleTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunBatchReport sample. */ +@RunWith(JUnit4.class) +public class RunBatchReportSampleTest { + + 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. + RunBatchReportSample.sampleRunBatchReport(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunBatchReport() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Batch report result"); + } +} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunPivotReportSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunPivotReportSampleTest.java new file mode 100644 index 00000000..6c422c7c --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunPivotReportSampleTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunPivotReport sample. */ +@RunWith(JUnit4.class) +public class RunPivotReportSampleTest { + + 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. + RunPivotReportSample.sampleRunPivotReport(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunPivotReport() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} From f885083c94af5ab4a9079d74021a6ce536bdc688 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 19 May 2022 15:00:17 +0000 Subject: [PATCH 115/225] chore(main): release 0.11.11-SNAPSHOT (#494) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index cee94a05..9e53f41d 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.10 + 0.11.11-SNAPSHOT pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.11.10 + 0.11.11-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.10 + 0.11.11-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.11.10 + 0.11.11-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.10 + 0.11.11-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.11.10 + 0.11.11-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index ae68608d..a96a6fba 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.10 + 0.11.11-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.10 + 0.11.11-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 921a9180..112ee641 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.11.10 + 0.11.11-SNAPSHOT grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.11.10 + 0.11.11-SNAPSHOT diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 42ef8430..0acb27d7 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.10 + 0.11.11-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.10 + 0.11.11-SNAPSHOT diff --git a/pom.xml b/pom.xml index 7c72eb5e..c0f466fa 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.10 + 0.11.11-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.11.10 + 0.11.11-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.11.10 + 0.11.11-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.11.10 + 0.11.11-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.10 + 0.11.11-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.10 + 0.11.11-SNAPSHOT diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index 99eeea6d..6beef72c 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.11.10 + 0.11.11-SNAPSHOT proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.11.10 + 0.11.11-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index f965f54e..2b03c6f4 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.10 + 0.11.11-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.10 + 0.11.11-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c2122821..75185d0b 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.10 + 0.11.11-SNAPSHOT diff --git a/versions.txt b/versions.txt index 9d8530da..d60db8e9 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.10:0.11.10 -grpc-google-analytics-data-v1beta:0.11.10:0.11.10 -proto-google-analytics-data-v1beta:0.11.10:0.11.10 -proto-google-analytics-data-v1alpha:0.11.10:0.11.10 -grpc-google-analytics-data-v1alpha:0.11.10:0.11.10 +google-analytics-data:0.11.10:0.11.11-SNAPSHOT +grpc-google-analytics-data-v1beta:0.11.10:0.11.11-SNAPSHOT +proto-google-analytics-data-v1beta:0.11.10:0.11.11-SNAPSHOT +proto-google-analytics-data-v1alpha:0.11.10:0.11.11-SNAPSHOT +grpc-google-analytics-data-v1alpha:0.11.10:0.11.11-SNAPSHOT From 964ce12c5a663cf5a754a1899a1e5501d81d01d9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 May 2022 17:13:11 +0200 Subject: [PATCH 116/225] chore(deps): update dependency com.google.cloud:libraries-bom to v25.3.0 (#491) --- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 75185d0b..f9461f19 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 25.2.0 + 25.3.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index f906f874..7081ec37 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 25.2.0 + 25.3.0 pom import From c09d6a3e7bba0ec26ac02e4d1ea928bd7ab64bcb Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 May 2022 17:14:13 +0200 Subject: [PATCH 117/225] deps: update dependency com.google.auth:google-auth-library-oauth2-http to v1.7.0 (#492) --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 071d4296..220f484c 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.auth google-auth-library-oauth2-http - 1.6.0 + 1.7.0 From 5e5cc70bf5ae8d30061a46b50d37347b576650f7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 May 2022 17:18:14 +0200 Subject: [PATCH 118/225] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 (#493) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.10.0` -> `2.11.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.11.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.11.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.11.0/compatibility-slim/2.10.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.11.0/confidence-slim/2.10.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.11.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2110-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2100v2110-2022-05-18) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.10.0...v2.11.0) ##### Features - next release from main branch is 2.11.0 ([#​674](https://togithub.com/googleapis/java-shared-dependencies/issues/674)) ([611e3b7](https://togithub.com/googleapis/java-shared-dependencies/commit/611e3b7c50108a71efc94415166b85d2bf8647e5)) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.13.3 ([#​689](https://togithub.com/googleapis/java-shared-dependencies/issues/689)) ([03897e3](https://togithub.com/googleapis/java-shared-dependencies/commit/03897e30a71f8f1aa37233da2433ee5afccc1d61)) - update dependency com.google.api-client:google-api-client-bom to v1.34.1 ([#​685](https://togithub.com/googleapis/java-shared-dependencies/issues/685)) ([9bc0557](https://togithub.com/googleapis/java-shared-dependencies/commit/9bc0557d8ce2f3d8dc7c8ffafdd36fd4c03e2df5)) - update dependency com.google.api:api-common to v2.2.0 ([#​690](https://togithub.com/googleapis/java-shared-dependencies/issues/690)) ([47a8736](https://togithub.com/googleapis/java-shared-dependencies/commit/47a87365e51f73132b15b054d85f8c9baa8e89f6)) - update dependency com.google.auth:google-auth-library-bom to v1.7.0 ([#​691](https://togithub.com/googleapis/java-shared-dependencies/issues/691)) ([ec6aab7](https://togithub.com/googleapis/java-shared-dependencies/commit/ec6aab72eaed43574efe47a696bba6a612f161bb)) - update dependency com.google.errorprone:error_prone_annotations to v2.13.1 ([#​672](https://togithub.com/googleapis/java-shared-dependencies/issues/672)) ([8c7e530](https://togithub.com/googleapis/java-shared-dependencies/commit/8c7e530d3c7170b2fb76cc27a05164524ba4e00b)) - update dependency com.google.http-client:google-http-client-bom to v1.41.8 ([#​684](https://togithub.com/googleapis/java-shared-dependencies/issues/684)) ([1305356](https://togithub.com/googleapis/java-shared-dependencies/commit/1305356775247dbb641b60654ac56da43513088e)) - update dependency com.google.protobuf:protobuf-bom to v3.20.1 ([#​678](https://togithub.com/googleapis/java-shared-dependencies/issues/678)) ([3e6d4a1](https://togithub.com/googleapis/java-shared-dependencies/commit/3e6d4a1a8e5d45723071a62c99bb1ab87d2b2b84)) - update dependency io.grpc:grpc-bom to v1.46.0 ([#​680](https://togithub.com/googleapis/java-shared-dependencies/issues/680)) ([b8a052b](https://togithub.com/googleapis/java-shared-dependencies/commit/b8a052b75a1bc2703500b4f31c5c6dac887ab8be)) - update dependency org.checkerframework:checker-qual to v3.22.0 ([#​683](https://togithub.com/googleapis/java-shared-dependencies/issues/683)) ([b0a30cd](https://togithub.com/googleapis/java-shared-dependencies/commit/b0a30cdecae8dcfb3a6d36e3f194c39a0086673e)) - update gax.version to v2.17.0 ([#​687](https://togithub.com/googleapis/java-shared-dependencies/issues/687)) ([e0e89ea](https://togithub.com/googleapis/java-shared-dependencies/commit/e0e89eade481effc723c9c7261f2ebf4e5883621)) - update gax.version to v2.18.0 ([#​692](https://togithub.com/googleapis/java-shared-dependencies/issues/692)) ([9536612](https://togithub.com/googleapis/java-shared-dependencies/commit/9536612c77af1e4d912c5b63515ea6f750e53810)) - update google.core.version to v2.6.1 ([#​671](https://togithub.com/googleapis/java-shared-dependencies/issues/671)) ([e3d1aeb](https://togithub.com/googleapis/java-shared-dependencies/commit/e3d1aebed31f8e91109d5865afd9525ac3595c90)) - update google.core.version to v2.7.0 ([#​693](https://togithub.com/googleapis/java-shared-dependencies/issues/693)) ([2171677](https://togithub.com/googleapis/java-shared-dependencies/commit/2171677e16190de9f37dc16c924d829ea8ccd86c)) - update iam.version to v1.3.2 ([#​673](https://togithub.com/googleapis/java-shared-dependencies/issues/673)) ([9882baa](https://togithub.com/googleapis/java-shared-dependencies/commit/9882baa3ecc8d7584788af1916f0d8c5ec670b5c)) - update iam.version to v1.3.3 ([#​679](https://togithub.com/googleapis/java-shared-dependencies/issues/679)) ([9fe34c8](https://togithub.com/googleapis/java-shared-dependencies/commit/9fe34c89eabed5eeebad986bffeeeb64dbbc38c1)) - update iam.version to v1.3.4 ([#​686](https://togithub.com/googleapis/java-shared-dependencies/issues/686)) ([4e95b3a](https://togithub.com/googleapis/java-shared-dependencies/commit/4e95b3a1d4302812338c220df316391c19ef7473)) - update opencensus.version to v0.31.1 ([#​682](https://togithub.com/googleapis/java-shared-dependencies/issues/682)) ([5d25746](https://togithub.com/googleapis/java-shared-dependencies/commit/5d25746bc6c9329b240204cbe7b83e2fee4c6cb3))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c0f466fa..8bad0041 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.10.0 + 2.11.0 pom import From 61db1a99d03bc98c3e83d96ee0cfc1f55bfd0bdd Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 19 May 2022 15:28:11 +0000 Subject: [PATCH 119/225] chore(main): release 0.12.0 (#495) :robot: I have created a release *beep* *boop* --- ## [0.12.0](https://github.com/googleapis/java-analytics-data/compare/v0.11.10...v0.12.0) (2022-05-19) ### Features * add `runFunnelReport` method to the Alpha version of the Data API ([#490](https://github.com/googleapis/java-analytics-data/issues/490)) ([1969fee](https://github.com/googleapis/java-analytics-data/commit/1969feecac73306525a79e39b7098fdb2a5a05d2)) ### Dependencies * update dependency com.google.auth:google-auth-library-oauth2-http to v1.7.0 ([#492](https://github.com/googleapis/java-analytics-data/issues/492)) ([c09d6a3](https://github.com/googleapis/java-analytics-data/commit/c09d6a3e7bba0ec26ac02e4d1ea928bd7ab64bcb)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 ([#493](https://github.com/googleapis/java-analytics-data/issues/493)) ([5e5cc70](https://github.com/googleapis/java-analytics-data/commit/5e5cc70bf5ae8d30061a46b50d37347b576650f7)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 13 +++++++++++++ google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 41 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6d15450b..c3b6551a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,18 @@ # Changelog +## [0.12.0](https://github.com/googleapis/java-analytics-data/compare/v0.11.10...v0.12.0) (2022-05-19) + + +### Features + +* add `runFunnelReport` method to the Alpha version of the Data API ([#490](https://github.com/googleapis/java-analytics-data/issues/490)) ([1969fee](https://github.com/googleapis/java-analytics-data/commit/1969feecac73306525a79e39b7098fdb2a5a05d2)) + + +### Dependencies + +* update dependency com.google.auth:google-auth-library-oauth2-http to v1.7.0 ([#492](https://github.com/googleapis/java-analytics-data/issues/492)) ([c09d6a3](https://github.com/googleapis/java-analytics-data/commit/c09d6a3e7bba0ec26ac02e4d1ea928bd7ab64bcb)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 ([#493](https://github.com/googleapis/java-analytics-data/issues/493)) ([5e5cc70](https://github.com/googleapis/java-analytics-data/commit/5e5cc70bf5ae8d30061a46b50d37347b576650f7)) + ### [0.11.10](https://github.com/googleapis/java-analytics-data/compare/v0.11.9...v0.11.10) (2022-04-15) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 9e53f41d..242e9f13 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.11.11-SNAPSHOT + 0.12.0 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.11.11-SNAPSHOT + 0.12.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.11-SNAPSHOT + 0.12.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.11.11-SNAPSHOT + 0.12.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.11-SNAPSHOT + 0.12.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.11.11-SNAPSHOT + 0.12.0
diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index a96a6fba..f57c591f 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.11.11-SNAPSHOT + 0.12.0 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.11.11-SNAPSHOT + 0.12.0 google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 112ee641..faa46e55 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.11.11-SNAPSHOT + 0.12.0 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.11.11-SNAPSHOT + 0.12.0 diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 0acb27d7..630bc699 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.11-SNAPSHOT + 0.12.0 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.11-SNAPSHOT + 0.12.0 diff --git a/pom.xml b/pom.xml index 8bad0041..dea69757 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.11.11-SNAPSHOT + 0.12.0 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.11.11-SNAPSHOT + 0.12.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.11.11-SNAPSHOT + 0.12.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.11.11-SNAPSHOT + 0.12.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.11-SNAPSHOT + 0.12.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.11.11-SNAPSHOT + 0.12.0 diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index 6beef72c..c7cc06d2 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.11.11-SNAPSHOT + 0.12.0 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.11.11-SNAPSHOT + 0.12.0 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 2b03c6f4..fa5818d2 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.11.11-SNAPSHOT + 0.12.0 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.11.11-SNAPSHOT + 0.12.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f9461f19..919f440a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.11-SNAPSHOT + 0.12.0 diff --git a/versions.txt b/versions.txt index d60db8e9..07efafa6 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.11.10:0.11.11-SNAPSHOT -grpc-google-analytics-data-v1beta:0.11.10:0.11.11-SNAPSHOT -proto-google-analytics-data-v1beta:0.11.10:0.11.11-SNAPSHOT -proto-google-analytics-data-v1alpha:0.11.10:0.11.11-SNAPSHOT -grpc-google-analytics-data-v1alpha:0.11.10:0.11.11-SNAPSHOT +google-analytics-data:0.12.0:0.12.0 +grpc-google-analytics-data-v1beta:0.12.0:0.12.0 +proto-google-analytics-data-v1beta:0.12.0:0.12.0 +proto-google-analytics-data-v1alpha:0.12.0:0.12.0 +grpc-google-analytics-data-v1alpha:0.12.0:0.12.0 From 6be41a673f3479e386bf435e33eb37c33da938cf Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 19 May 2022 15:44:12 +0000 Subject: [PATCH 120/225] chore(main): release 0.12.1-SNAPSHOT (#497) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 242e9f13..a61f5785 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.12.0 + 0.12.1-SNAPSHOT pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.12.0 + 0.12.1-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.12.0 + 0.12.1-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.12.0 + 0.12.1-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.12.0 + 0.12.1-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.12.0 + 0.12.1-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index f57c591f..637dee7c 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.12.0 + 0.12.1-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.12.0 + 0.12.1-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index faa46e55..051cc72e 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.12.0 + 0.12.1-SNAPSHOT grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.12.0 + 0.12.1-SNAPSHOT diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 630bc699..0133a7a5 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.12.0 + 0.12.1-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.12.0 + 0.12.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index dea69757..4fdbb97a 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.12.0 + 0.12.1-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.12.0 + 0.12.1-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.12.0 + 0.12.1-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.12.0 + 0.12.1-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.12.0 + 0.12.1-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.12.0 + 0.12.1-SNAPSHOT diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index c7cc06d2..48448a3c 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.12.0 + 0.12.1-SNAPSHOT proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.12.0 + 0.12.1-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index fa5818d2..a7876755 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.12.0 + 0.12.1-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.12.0 + 0.12.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 919f440a..b5ea6757 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.12.0 + 0.12.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 07efafa6..b5bcdf69 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.12.0:0.12.0 -grpc-google-analytics-data-v1beta:0.12.0:0.12.0 -proto-google-analytics-data-v1beta:0.12.0:0.12.0 -proto-google-analytics-data-v1alpha:0.12.0:0.12.0 -grpc-google-analytics-data-v1alpha:0.12.0:0.12.0 +google-analytics-data:0.12.0:0.12.1-SNAPSHOT +grpc-google-analytics-data-v1beta:0.12.0:0.12.1-SNAPSHOT +proto-google-analytics-data-v1beta:0.12.0:0.12.1-SNAPSHOT +proto-google-analytics-data-v1alpha:0.12.0:0.12.1-SNAPSHOT +grpc-google-analytics-data-v1alpha:0.12.0:0.12.1-SNAPSHOT From 63d3433a0864f1ce9b807c39361f87cada9b48fd Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 19 May 2022 21:04:23 +0000 Subject: [PATCH 121/225] feat: add build scripts for native image testing in Java 17 (#1440) (#496) Source-Link: https://github.com/googleapis/synthtool/commit/505ce5a7edb58bf6d9d4de10b4bb4e81000ae324 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74 --- .github/.OwlBot.lock.yaml | 4 +-- .kokoro/build.sh | 5 ++++ .kokoro/presubmit/graalvm-native-17.cfg | 33 +++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 2 deletions(-) create mode 100644 .kokoro/presubmit/graalvm-native-17.cfg diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index f60d7749..a79f0627 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:fc52b202aa298a50a12c64efd04fea3884d867947effe2fa85382a246c09e813 -# created: 2022-04-06T16:30:03.627422514Z + digest: sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74 +# created: 2022-05-19T15:12:45.278246753Z diff --git a/.kokoro/build.sh b/.kokoro/build.sh index a082dce4..749a38df 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -74,6 +74,11 @@ graalvm) mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test RETURN_CODE=$? ;; +graalvm17) + # Run Unit and Integration Tests with Native Image + mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test + RETURN_CODE=$? + ;; samples) SAMPLES_DIR=samples # only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise. diff --git a/.kokoro/presubmit/graalvm-native-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg new file mode 100644 index 00000000..a3f7fb9d --- /dev/null +++ b/.kokoro/presubmit/graalvm-native-17.cfg @@ -0,0 +1,33 @@ +# Format: //devtools/kokoro/config/proto/build.proto + +# Configure the docker image for kokoro-trampoline. +env_vars: { + key: "TRAMPOLINE_IMAGE" + value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17" +} + +env_vars: { + key: "JOB_TYPE" + value: "graalvm17" +} + +# TODO: remove this after we've migrated all tests and scripts +env_vars: { + key: "GCLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_CLOUD_PROJECT" + value: "gcloud-devel" +} + +env_vars: { + key: "GOOGLE_APPLICATION_CREDENTIALS" + value: "secret_manager/java-it-service-account" +} + +env_vars: { + key: "SECRET_MANAGER_KEYS" + value: "java-it-service-account" +} \ No newline at end of file From e87852000ccf416758c79f9456729c40e85a8d89 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 May 2022 23:08:13 +0200 Subject: [PATCH 122/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.12.0 (#498) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.11.10` -> `0.12.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.12.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.12.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.12.0/compatibility-slim/0.11.10)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.12.0/confidence-slim/0.11.10)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-analytics-data ### [`v0.12.0`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0120-httpsgithubcomgoogleapisjava-analytics-datacomparev01110v0120-2022-05-19) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.10...v0.12.0) ##### Features - add `runFunnelReport` method to the Alpha version of the Data API ([#​490](https://togithub.com/googleapis/java-analytics-data/issues/490)) ([1969fee](https://togithub.com/googleapis/java-analytics-data/commit/1969feecac73306525a79e39b7098fdb2a5a05d2)) ##### Dependencies - update dependency com.google.auth:google-auth-library-oauth2-http to v1.7.0 ([#​492](https://togithub.com/googleapis/java-analytics-data/issues/492)) ([c09d6a3](https://togithub.com/googleapis/java-analytics-data/commit/c09d6a3e7bba0ec26ac02e4d1ea928bd7ab64bcb)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 ([#​493](https://togithub.com/googleapis/java-analytics-data/issues/493)) ([5e5cc70](https://togithub.com/googleapis/java-analytics-data/commit/5e5cc70bf5ae8d30061a46b50d37347b576650f7)) ##### [0.11.10](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.9...v0.11.10) (2022-04-15) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#​478](https://togithub.com/googleapis/java-analytics-data/issues/478)) ([0346b09](https://togithub.com/googleapis/java-analytics-data/commit/0346b09955c53309cc4d34497f5f075f73c78a8e)) ##### [0.11.9](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.8...v0.11.9) (2022-03-29) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#​459](https://togithub.com/googleapis/java-analytics-data/issues/459)) ([19ff7fb](https://togithub.com/googleapis/java-analytics-data/commit/19ff7fb0e2100a7e71d27ce8163540419594a5c2)) ##### [0.11.8](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.7...v0.11.8) (2022-03-22) ##### Dependencies - update actions/checkout action to v3 ([#​435](https://togithub.com/googleapis/java-analytics-data/issues/435)) ([35cc323](https://togithub.com/googleapis/java-analytics-data/commit/35cc32386e17f1b8e8c5116e4453fac8076451b6)) ##### [0.11.7](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.6...v0.11.7) (2022-03-21) ##### Dependencies - **sample:** using newer google-analytics-data in snippet ([#​452](https://togithub.com/googleapis/java-analytics-data/issues/452)) ([74446cf](https://togithub.com/googleapis/java-analytics-data/commit/74446cf387d1f7ef3e1b61cd3a85e0700a874b2d)) ##### [0.11.6](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.5...v0.11.6) (2022-03-17) ##### Dependencies - update dependency com.google.auth:google-auth-library-oauth2-http to v1.6.0 ([#​448](https://togithub.com/googleapis/java-analytics-data/issues/448)) ([d07834d](https://togithub.com/googleapis/java-analytics-data/commit/d07834d29e78493a18b881aee6545f05139388f8)) ##### [0.11.5](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.4...v0.11.5) (2022-03-02) ##### Dependencies - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#​436](https://togithub.com/googleapis/java-analytics-data/issues/436)) ([ea835bc](https://togithub.com/googleapis/java-analytics-data/commit/ea835bc760850556d731a6adcb41f72a76645cf0)) ##### [0.11.4](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.3...v0.11.4) (2022-03-01) ##### Dependencies - update actions/setup-java action to v3 ([#​423](https://togithub.com/googleapis/java-analytics-data/issues/423)) ([9b0c521](https://togithub.com/googleapis/java-analytics-data/commit/9b0c521b26422dfeb12695b761583851967f5222)) ##### [0.11.3](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.2...v0.11.3) (2022-02-28) ##### Dependencies - update dependency com.google.auth:google-auth-library-oauth2-http to v1.5.3 ([#​421](https://togithub.com/googleapis/java-analytics-data/issues/421)) ([99a3382](https://togithub.com/googleapis/java-analytics-data/commit/99a33829b10b1f56be86690b4218a7ccc7970f0e)) ##### [0.11.2](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.1...v0.11.2) (2022-02-11) ##### Dependencies - update actions/github-script action to v6 ([#​412](https://togithub.com/googleapis/java-analytics-data/issues/412)) ([831d07f](https://togithub.com/googleapis/java-analytics-data/commit/831d07fbe3dff2d7d2519a7c13e977d08dbedcaf)) ##### [0.11.1](https://togithub.com/googleapis/java-analytics-data/compare/v0.11.0...v0.11.1) (2022-02-08) ##### Dependencies - **java:** update actions/github-script action to v5 ([#​1339](https://togithub.com/googleapis/java-analytics-data/issues/1339)) ([#​400](https://togithub.com/googleapis/java-analytics-data/issues/400)) ([6784822](https://togithub.com/googleapis/java-analytics-data/commit/67848224b156a1f4f6a156deb2446604213d9303)) - update dependency com.google.auth:google-auth-library-oauth2-http to v1.4.0 ([#​399](https://togithub.com/googleapis/java-analytics-data/issues/399)) ([7b37e6c](https://togithub.com/googleapis/java-analytics-data/commit/7b37e6c9ce37e8a9e511c6db8a05aa7d705190d8)) - update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#​402](https://togithub.com/googleapis/java-analytics-data/issues/402)) ([2c6e3d7](https://togithub.com/googleapis/java-analytics-data/commit/2c6e3d73bed5fe0cff44061dd1ce7e7f80df4ecc))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5b3b0674..aafaba93 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.11.10 + 0.12.0 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.11.10' +implementation 'com.google.analytics:google-analytics-data:0.12.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.11.10" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.12.0" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 220f484c..5bd9739d 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.11.10 + 0.12.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 7081ec37..ae108661 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.11.10 + 0.12.0 com.google.auth From 4307f112950508a4912e78aa57c31232e4ce3eae Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 20 May 2022 00:56:27 +0200 Subject: [PATCH 123/225] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 (#500) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.11.0` -> `2.12.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.12.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.12.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.12.0/compatibility-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.12.0/confidence-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.12.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2120-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2110v2120-2022-05-19) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.11.0...v2.12.0) ##### Features - add build scripts for native image testing in Java 17 ([#​1440](https://togithub.com/googleapis/java-shared-dependencies/issues/1440)) ([#​697](https://togithub.com/googleapis/java-shared-dependencies/issues/697)) ([f10ec4e](https://togithub.com/googleapis/java-shared-dependencies/commit/f10ec4e664d8fde868effe366b7182a5fad08dd0)) ##### Dependencies - update gax.version to v2.18.1 ([#​695](https://togithub.com/googleapis/java-shared-dependencies/issues/695)) ([09bc61c](https://togithub.com/googleapis/java-shared-dependencies/commit/09bc61c9152a99bfe87554a07324f15ae6217d6e)) - update google.core.version to v2.7.1 ([#​698](https://togithub.com/googleapis/java-shared-dependencies/issues/698)) ([43de259](https://togithub.com/googleapis/java-shared-dependencies/commit/43de2593f1a6e8fa5e34799364ab683246ddd449))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4fdbb97a..1258e283 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.11.0 + 2.12.0 pom import From c81dd6287327ee94981f3f3ba2b515388e8b5d18 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 24 May 2022 03:34:19 +0000 Subject: [PATCH 124/225] chore(main): release 0.13.0 (#499) :robot: I have created a release *beep* *boop* --- ## [0.13.0](https://github.com/googleapis/java-analytics-data/compare/v0.12.0...v0.13.0) (2022-05-19) ### Features * add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-analytics-data/issues/1440)) ([#496](https://github.com/googleapis/java-analytics-data/issues/496)) ([63d3433](https://github.com/googleapis/java-analytics-data/commit/63d3433a0864f1ce9b807c39361f87cada9b48fd)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#500](https://github.com/googleapis/java-analytics-data/issues/500)) ([4307f11](https://github.com/googleapis/java-analytics-data/commit/4307f112950508a4912e78aa57c31232e4ce3eae)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 12 ++++++++++++ google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 40 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c3b6551a..abe5028d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [0.13.0](https://github.com/googleapis/java-analytics-data/compare/v0.12.0...v0.13.0) (2022-05-19) + + +### Features + +* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-analytics-data/issues/1440)) ([#496](https://github.com/googleapis/java-analytics-data/issues/496)) ([63d3433](https://github.com/googleapis/java-analytics-data/commit/63d3433a0864f1ce9b807c39361f87cada9b48fd)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#500](https://github.com/googleapis/java-analytics-data/issues/500)) ([4307f11](https://github.com/googleapis/java-analytics-data/commit/4307f112950508a4912e78aa57c31232e4ce3eae)) + ## [0.12.0](https://github.com/googleapis/java-analytics-data/compare/v0.11.10...v0.12.0) (2022-05-19) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index a61f5785..58e51b7a 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.12.1-SNAPSHOT + 0.13.0 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.12.1-SNAPSHOT + 0.13.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.12.1-SNAPSHOT + 0.13.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.12.1-SNAPSHOT + 0.13.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.12.1-SNAPSHOT + 0.13.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.12.1-SNAPSHOT + 0.13.0
diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 637dee7c..df921937 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.12.1-SNAPSHOT + 0.13.0 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.12.1-SNAPSHOT + 0.13.0 google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 051cc72e..16532d45 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.12.1-SNAPSHOT + 0.13.0 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.12.1-SNAPSHOT + 0.13.0 diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 0133a7a5..c3f6d00c 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.12.1-SNAPSHOT + 0.13.0 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.12.1-SNAPSHOT + 0.13.0 diff --git a/pom.xml b/pom.xml index 1258e283..496cc5b5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.12.1-SNAPSHOT + 0.13.0 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.12.1-SNAPSHOT + 0.13.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.12.1-SNAPSHOT + 0.13.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.12.1-SNAPSHOT + 0.13.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.12.1-SNAPSHOT + 0.13.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.12.1-SNAPSHOT + 0.13.0 diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index 48448a3c..c877d9d4 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.12.1-SNAPSHOT + 0.13.0 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.12.1-SNAPSHOT + 0.13.0 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index a7876755..100c493b 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.12.1-SNAPSHOT + 0.13.0 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.12.1-SNAPSHOT + 0.13.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index b5ea6757..41733146 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.12.1-SNAPSHOT + 0.13.0 diff --git a/versions.txt b/versions.txt index b5bcdf69..e404ca40 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.12.0:0.12.1-SNAPSHOT -grpc-google-analytics-data-v1beta:0.12.0:0.12.1-SNAPSHOT -proto-google-analytics-data-v1beta:0.12.0:0.12.1-SNAPSHOT -proto-google-analytics-data-v1alpha:0.12.0:0.12.1-SNAPSHOT -grpc-google-analytics-data-v1alpha:0.12.0:0.12.1-SNAPSHOT +google-analytics-data:0.13.0:0.13.0 +grpc-google-analytics-data-v1beta:0.13.0:0.13.0 +proto-google-analytics-data-v1beta:0.13.0:0.13.0 +proto-google-analytics-data-v1alpha:0.13.0:0.13.0 +grpc-google-analytics-data-v1alpha:0.13.0:0.13.0 From d39cc8ca75d73af661efc7820833c2583bb3b670 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 24 May 2022 04:00:25 +0000 Subject: [PATCH 125/225] chore(main): release 0.13.1-SNAPSHOT (#502) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 58e51b7a..05dc3066 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.13.0 + 0.13.1-SNAPSHOT pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.13.0 + 0.13.1-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.13.0 + 0.13.1-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.13.0 + 0.13.1-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.13.0 + 0.13.1-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.13.0 + 0.13.1-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index df921937..1c51b291 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.13.0 + 0.13.1-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.13.0 + 0.13.1-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 16532d45..96fd065a 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.13.0 + 0.13.1-SNAPSHOT grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.13.0 + 0.13.1-SNAPSHOT diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index c3f6d00c..66e9377b 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.13.0 + 0.13.1-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.13.0 + 0.13.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index 496cc5b5..6ca29fb6 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.13.0 + 0.13.1-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.13.0 + 0.13.1-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.13.0 + 0.13.1-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.13.0 + 0.13.1-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.13.0 + 0.13.1-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.13.0 + 0.13.1-SNAPSHOT diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index c877d9d4..d4fb8d25 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.13.0 + 0.13.1-SNAPSHOT proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.13.0 + 0.13.1-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 100c493b..fb238932 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.13.0 + 0.13.1-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.13.0 + 0.13.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 41733146..bef01bc8 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.13.0 + 0.13.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index e404ca40..0c2dfc84 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.13.0:0.13.0 -grpc-google-analytics-data-v1beta:0.13.0:0.13.0 -proto-google-analytics-data-v1beta:0.13.0:0.13.0 -proto-google-analytics-data-v1alpha:0.13.0:0.13.0 -grpc-google-analytics-data-v1alpha:0.13.0:0.13.0 +google-analytics-data:0.13.0:0.13.1-SNAPSHOT +grpc-google-analytics-data-v1beta:0.13.0:0.13.1-SNAPSHOT +proto-google-analytics-data-v1beta:0.13.0:0.13.1-SNAPSHOT +proto-google-analytics-data-v1alpha:0.13.0:0.13.1-SNAPSHOT +grpc-google-analytics-data-v1alpha:0.13.0:0.13.1-SNAPSHOT From df2dc50296d3dd2da4a4f5eecdc63deb79ab1d6a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 26 May 2022 00:24:24 +0200 Subject: [PATCH 126/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.13.0 (#503) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.12.0` -> `0.13.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.13.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.13.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.13.0/compatibility-slim/0.12.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.13.0/confidence-slim/0.12.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index aafaba93..eaf565c3 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.12.0' +implementation 'com.google.analytics:google-analytics-data:0.13.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.12.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.13.0" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 5bd9739d..88a7b3a0 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.12.0 + 0.13.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index ae108661..bc92f84c 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.12.0 + 0.13.0 com.google.auth From b87dec12952020739ab87d947e8628732ef877fd Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 27 May 2022 04:08:32 +0000 Subject: [PATCH 127/225] chore(deps): upgrade gapic-generator-java to 2.8.0 and update gax-java to 2.18.1 (#501) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 450543911 Source-Link: https://github.com/googleapis/googleapis/commit/55283447ab72f10b6c2571d770af0498b593e84f Source-Link: https://github.com/googleapis/googleapis-gen/commit/9f6775cab1958982b88967a43e5e806af0f135db Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiOWY2Nzc1Y2FiMTk1ODk4MmI4ODk2N2E0M2U1ZTgwNmFmMGYxMzVkYiJ9 --- .../analytics/data/v1alpha/AlphaAnalyticsDataClient.java | 3 --- .../data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java | 1 - .../google/analytics/data/v1beta/BetaAnalyticsDataClient.java | 3 --- .../data/v1beta/stub/BetaAnalyticsDataStubSettings.java | 1 - 4 files changed, 8 deletions(-) diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java index 37078f50..908ec2a1 100644 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java @@ -129,7 +129,6 @@ public static final AlphaAnalyticsDataClient create(AlphaAnalyticsDataSettings s * Constructs an instance of AlphaAnalyticsDataClient, using the given stub for making calls. This * is for advanced usage - prefer using create(AlphaAnalyticsDataSettings). */ - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public static final AlphaAnalyticsDataClient create(AlphaAnalyticsDataStub stub) { return new AlphaAnalyticsDataClient(stub); } @@ -144,7 +143,6 @@ protected AlphaAnalyticsDataClient(AlphaAnalyticsDataSettings settings) throws I this.stub = ((AlphaAnalyticsDataStubSettings) settings.getStubSettings()).createStub(); } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") protected AlphaAnalyticsDataClient(AlphaAnalyticsDataStub stub) { this.settings = null; this.stub = stub; @@ -154,7 +152,6 @@ public final AlphaAnalyticsDataSettings getSettings() { return settings; } - @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public AlphaAnalyticsDataStub getStub() { return stub; } diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java index b0a94da0..62618585 100644 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java @@ -96,7 +96,6 @@ public class AlphaAnalyticsDataStubSettings extends StubSettings getMetadataSettings() { 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() From 92743376c5b6e42e7b2537418720c8ea0721d922 Mon Sep 17 00:00:00 2001 From: Anwesha Date: Fri, 27 May 2022 05:30:30 -0400 Subject: [PATCH 128/225] samples: add Java samples for RunRealtimeReport (#475) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * A copy sample to test fork process * Adds sample RunReportSample * Modifies runReport sample to have headers printed * Addresses comment differences inbetween python and java sample * Changes println to printf for consistency * Test for run report * Fixes a matching tag * Fixes checkstyle violation * -Another commit to fix checkstyle violations * Changes to linting * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Adds samples related to date ranges for java * Removes spaces in readme * Fixes spacing * Fixes linting * Fixes linting violations * Adds java samples with multiple metrics/dimensions * Fixes lines in README * Adds Java samples for dimension filters * Adds java samples related to dimension filters * Adds Java samples for RunRealtimeReport * Style changes on comment * Comment changes on files * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Fixes incorrect metric * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: ikuleshov --- README.md | 3 + .../analytics/RunRealtimeReportSample.java | 95 +++++++++++++++++++ ...imeReportWithMultipleDimensionsSample.java | 71 ++++++++++++++ ...altimeReportWithMultipleMetricsSample.java | 71 ++++++++++++++ .../RunRealtimeReportSampleTest.java | 54 +++++++++++ ...eportWithMultipleDimensionsSampleTest.java | 55 +++++++++++ ...meReportWithMultipleMetricsSampleTest.java | 55 +++++++++++ 7 files changed, 404 insertions(+) create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportSample.java create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSample.java create mode 100644 samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSample.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportSampleTest.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSampleTest.java create mode 100644 samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSampleTest.java diff --git a/README.md b/README.md index eaf565c3..29810c23 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,9 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-analytics-dat | 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) | diff --git a/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportSample.java b/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportSample.java new file mode 100644 index 00000000..c39a7f78 --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportSample.java @@ -0,0 +1,95 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the creation of +a realtime report. + +See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runRealtimeReport +for more information. + +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.RunRealtimeReportSample" + */ + +// [START analyticsdata_run_realtime_report] + +import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; +import com.google.analytics.data.v1beta.Dimension; +import com.google.analytics.data.v1beta.DimensionHeader; +import com.google.analytics.data.v1beta.Metric; +import com.google.analytics.data.v1beta.MetricHeader; +import com.google.analytics.data.v1beta.Row; +import com.google.analytics.data.v1beta.RunRealtimeReportRequest; +import com.google.analytics.data.v1beta.RunRealtimeReportResponse; + +public class RunRealtimeReportSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunRealtimeReport(propertyId); + } + + // Runs a realtime report on a Google Analytics 4 property. + static void sampleRunRealtimeReport(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunRealtimeReportRequest request = + RunRealtimeReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDimensions(Dimension.newBuilder().setName("country")) + .addMetrics(Metric.newBuilder().setName("activeUsers")) + .build(); + + // Make the request. + RunRealtimeReportResponse response = analyticsData.runRealtimeReport(request); + printRunRealtimeReportResponse(response); + } + } + + // Prints results of a runRealReport call. + static void printRunRealtimeReportResponse(RunRealtimeReportResponse response) { + // [START analyticsdata_print_run_realtime_report_response_header] + System.out.printf("%s rows received%n", response.getRowsList().size()); + + for (DimensionHeader header : response.getDimensionHeadersList()) { + System.out.printf("Dimension header name: %s%n", header.getName()); + } + + for (MetricHeader header : response.getMetricHeadersList()) { + System.out.printf("Metric header name: %s (%s)%n", header.getName(), header.getType()); + } + // [END analyticsdata_print_run_realtime_report_response_header] + + // [START analyticsdata_print_run_realtime_report_response_rows] + System.out.println("Report result:"); + for (Row row : response.getRowsList()) { + System.out.printf( + "%s, %s%n", row.getDimensionValues(0).getValue(), row.getMetricValues(0).getValue()); + } + // [END analyticsdata_print_run_realtime_report_response_rows] + } +} +// [END analyticsdata_run_realtime_report] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSample.java b/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSample.java new file mode 100644 index 00000000..ee6da60b --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSample.java @@ -0,0 +1,71 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the creation of +a realtime report. + +See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runRealtimeReport +for more information. + +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.RunRealtimeReportWithMultipleDimensionsSample" + */ + +// [START analyticsdata_run_realtime_report_with_multiple_dimensions] + +import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; +import com.google.analytics.data.v1beta.Dimension; +import com.google.analytics.data.v1beta.Metric; +import com.google.analytics.data.v1beta.RunRealtimeReportRequest; +import com.google.analytics.data.v1beta.RunRealtimeReportResponse; + +public class RunRealtimeReportWithMultipleDimensionsSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunRealtimeReportWithMultipleDimensions(propertyId); + } + + // Runs a realtime report on a Google Analytics 4 property. + static void sampleRunRealtimeReportWithMultipleDimensions(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunRealtimeReportRequest request = + RunRealtimeReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDimensions(Dimension.newBuilder().setName("country")) + .addDimensions(Dimension.newBuilder().setName(("city"))) + .addMetrics(Metric.newBuilder().setName("activeUsers")) + .build(); + + // Make the request. + RunRealtimeReportResponse response = analyticsData.runRealtimeReport(request); + // Prints the response using a method in RunRealtimeReportSample.java + RunRealtimeReportSample.printRunRealtimeReportResponse(response); + } + } +} +// [END analyticsdata_run_realtime_report_with_multiple_dimensions] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSample.java b/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSample.java new file mode 100644 index 00000000..1141c1f2 --- /dev/null +++ b/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSample.java @@ -0,0 +1,71 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.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 application demonstrating the creation of +a realtime report. + +See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runRealtimeReport +for more information. + +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.RunRealtimeReportWithMultipleMetricsSample" + */ + +// [START analyticsdata_run_realtime_report_with_multiple_metrics] + +import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; +import com.google.analytics.data.v1beta.Dimension; +import com.google.analytics.data.v1beta.Metric; +import com.google.analytics.data.v1beta.RunRealtimeReportRequest; +import com.google.analytics.data.v1beta.RunRealtimeReportResponse; + +public class RunRealtimeReportWithMultipleMetricsSample { + + public static void main(String... args) throws Exception { + // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. + String propertyId = "YOUR-GA4-PROPERTY-ID"; + sampleRunRealtimeReportWithMultipleMetrics(propertyId); + } + + // Runs a realtime report on a Google Analytics 4 property. + static void sampleRunRealtimeReportWithMultipleMetrics(String propertyId) throws Exception { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { + RunRealtimeReportRequest request = + RunRealtimeReportRequest.newBuilder() + .setProperty("properties/" + propertyId) + .addDimensions(Dimension.newBuilder().setName("unifiedScreenName")) + .addMetrics(Metric.newBuilder().setName(("screenPageViews"))) + .addMetrics(Metric.newBuilder().setName("conversions")) + .build(); + + // Make the request. + RunRealtimeReportResponse response = analyticsData.runRealtimeReport(request); + // Prints the response using a method in RunRealtimeReportSample.java + RunRealtimeReportSample.printRunRealtimeReportResponse(response); + } + } +} +// [END analyticsdata_run_realtime_report_with_multiple_metrics] diff --git a/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportSampleTest.java new file mode 100644 index 00000000..0f6ff8b1 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportSampleTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunRealtimeReport sample. */ +@RunWith(JUnit4.class) +public class RunRealtimeReportSampleTest { + + 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. + RunRealtimeReportSample.sampleRunRealtimeReport(ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunRealtimeReport() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSampleTest.java new file mode 100644 index 00000000..1d392d4d --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSampleTest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunRealtimeReportWithMultipleDimensions sample. */ +@RunWith(JUnit4.class) +public class RunRealtimeReportWithMultipleDimensionsSampleTest { + + 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. + RunRealtimeReportWithMultipleDimensionsSample.sampleRunRealtimeReportWithMultipleDimensions( + ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunRealtimeReportWithMultipleDimensions() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSampleTest.java new file mode 100644 index 00000000..00f362a4 --- /dev/null +++ b/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSampleTest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * 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 the RunRealtimeReportWithMultipleMetrics sample. */ +@RunWith(JUnit4.class) +public class RunRealtimeReportWithMultipleMetricsSampleTest { + + 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. + RunRealtimeReportWithMultipleMetricsSample.sampleRunRealtimeReportWithMultipleMetrics( + ga4PropertyId); + System.setOut(stdOut); + return bout.toString(); + } + + @Test + public void testRunRealtimeReportWithMultipleMetrics() throws Exception { + // Act + String out = runSample(ga4PropertyId); + + // Assert + assertThat(out).contains("Report result:"); + } +} From bd4c79542e0ce9c63b5b10a7f58bd8b94276ffbc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Jun 2022 19:10:27 +0200 Subject: [PATCH 129/225] chore(deps): update dependency com.google.cloud:libraries-bom to v25.4.0 (#504) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.3.0` -> `25.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/compatibility-slim/25.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/confidence-slim/25.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index bef01bc8..32d4179d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 25.3.0 + 25.4.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index bc92f84c..ff7b0308 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 25.3.0 + 25.4.0 pom import From 55e8a1ba582c05dae2eb8c8e0880cfb780fe9268 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 13 Jun 2022 18:56:37 +0200 Subject: [PATCH 130/225] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.0 (#506) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.4.0` -> `1.5.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/compatibility-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.0/confidence-slim/1.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.5.0`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​150-httpsgithubcomgoogleapisjava-shared-configcomparev140v150-2022-06-10) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.4.0...v1.5.0) ##### Features - add build scripts for native image testing in Java 17 ([#​1440](https://togithub.com/googleapis/java-shared-config/issues/1440)) ([#​475](https://togithub.com/googleapis/java-shared-config/issues/475)) ([e4dfc1b](https://togithub.com/googleapis/java-shared-config/commit/e4dfc1ba29295158c78c8fcf94467d2a6a33538a)) - to produce Java 8 compatible bytecode when using JDK 9+ ([2468276](https://togithub.com/googleapis/java-shared-config/commit/2468276145cdfe1ca911b52f765e026e77661a09)) ##### Dependencies - update surefire.version to v3.0.0-m7 ([bbfe663](https://togithub.com/googleapis/java-shared-config/commit/bbfe66393af3e49612c9c1e4334ba39c133ea1d0))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- google-analytics-data-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 05dc3066..5eda5b70 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.4.0 + 1.5.0 Google Analytics Data BOM diff --git a/pom.xml b/pom.xml index 6ca29fb6..719e36db 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.4.0 + 1.5.0 From c864df4d54144195c83948ff695c6c8b671f5807 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 21 Jun 2022 17:52:28 +0000 Subject: [PATCH 131/225] fix!: rename the type `FunnelFilter` to `FunnelFieldFilter` (#505) - [ ] Regenerate this pull request now. fix!: rename the `funnel_filter` field of the `FunnelFilterExpression` type to `funnel_field_filter` PiperOrigin-RevId: 455204231 Source-Link: https://github.com/googleapis/googleapis/commit/48494807478bb592357bd4d115c13a0224020450 Source-Link: https://github.com/googleapis/googleapis-gen/commit/589642d0a68a2c519273cf0f7d7947b19cd99eac Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTg5NjQyZDBhNjhhMmM1MTkyNzNjZjBmN2Q3OTQ3YjE5Y2Q5OWVhYyJ9 chore: update gapic-generator-java PiperOrigin-RevId: 454939894 Source-Link: https://github.com/googleapis/googleapis/commit/519ca445965b3f94f9e32ae511c154488d2054e9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/fc639d21a7cbc30aa0a9b862586942a0fb46c5c8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZmM2MzlkMjFhN2NiYzMwYWEwYTliODYyNTg2OTQyYTBmYjQ2YzVjOCJ9 feat: Add Java REST transport to analytics, servicecontrol, servicemanagement, serviceusage and langauge APIs PiperOrigin-RevId: 454254635 Source-Link: https://github.com/googleapis/googleapis/commit/84fb82208e15c45d1732b5eeba7f70828935b97b Source-Link: https://github.com/googleapis/googleapis-gen/commit/4ffb61264d6fb634c430829dd2da75c5bed08304 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGZmYjYxMjY0ZDZmYjYzNGM0MzA4MjlkZDJkYTc1YzViZWQwODMwNCJ9 --- google-analytics-data/pom.xml | 16 + .../v1alpha/AlphaAnalyticsDataClient.java | 15 + .../v1alpha/AlphaAnalyticsDataSettings.java | 23 +- .../stub/AlphaAnalyticsDataStubSettings.java | 53 +- ...JsonAlphaAnalyticsDataCallableFactory.java | 105 ++++ .../stub/HttpJsonAlphaAnalyticsDataStub.java | 198 ++++++ .../data/v1beta/BetaAnalyticsDataClient.java | 15 + .../v1beta/BetaAnalyticsDataSettings.java | 23 +- .../stub/BetaAnalyticsDataStubSettings.java | 53 +- ...pJsonBetaAnalyticsDataCallableFactory.java | 105 ++++ .../stub/HttpJsonBetaAnalyticsDataStub.java | 532 ++++++++++++++++ .../AlphaAnalyticsDataClientHttpJsonTest.java | 143 +++++ .../BetaAnalyticsDataClientHttpJsonTest.java | 571 ++++++++++++++++++ ...nnelFilter.java => FunnelFieldFilter.java} | 132 ++-- ...r.java => FunnelFieldFilterOrBuilder.java} | 6 +- .../data/v1alpha/FunnelFilterExpression.java | 202 ++++--- .../FunnelFilterExpressionOrBuilder.java | 22 +- .../data/v1alpha/FunnelNextAction.java | 48 +- .../v1alpha/FunnelNextActionOrBuilder.java | 12 +- .../data/v1alpha/ReportingApiProto.java | 176 +++--- .../data/v1alpha/RunFunnelReportRequest.java | 48 +- .../RunFunnelReportRequestOrBuilder.java | 12 +- .../data/v1alpha/analytics_data_api.proto | 5 +- .../google/analytics/data/v1alpha/data.proto | 11 +- 24 files changed, 2219 insertions(+), 307 deletions(-) create mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataCallableFactory.java create mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java create mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataCallableFactory.java create mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataStub.java create mode 100644 google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientHttpJsonTest.java create mode 100644 google-analytics-data/src/test/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClientHttpJsonTest.java rename proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/{FunnelFilter.java => FunnelFieldFilter.java} (93%) rename proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/{FunnelFilterOrBuilder.java => FunnelFieldFilterOrBuilder.java} (96%) diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 1c51b291..fbe83db3 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -62,6 +62,10 @@ com.google.api gax-grpc
+ + com.google.api + gax-httpjson + org.threeten threetenbp @@ -86,12 +90,24 @@ test + + com.google.api + gax + testlib + test + com.google.api gax-grpc testlib test + + com.google.api + gax-httpjson + testlib + test +
diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java index 908ec2a1..4962c6b9 100644 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java @@ -103,6 +103,21 @@ * AlphaAnalyticsDataClient.create(alphaAnalyticsDataSettings); * } * + *

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

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * AlphaAnalyticsDataSettings alphaAnalyticsDataSettings =
+ *     AlphaAnalyticsDataSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             AlphaAnalyticsDataSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * AlphaAnalyticsDataClient alphaAnalyticsDataClient =
+ *     AlphaAnalyticsDataClient.create(alphaAnalyticsDataSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java index 12452b95..d5e7182c 100644 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java @@ -22,6 +22,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -101,11 +102,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return AlphaAnalyticsDataStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return AlphaAnalyticsDataStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AlphaAnalyticsDataStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return AlphaAnalyticsDataStubSettings.defaultTransportChannelProvider(); } @@ -115,11 +123,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return AlphaAnalyticsDataStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -157,6 +171,11 @@ private static Builder createDefault() { return new Builder(AlphaAnalyticsDataStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(AlphaAnalyticsDataStubSettings.newHttpJsonBuilder()); + } + public AlphaAnalyticsDataStubSettings.Builder getStubSettingsBuilder() { return ((AlphaAnalyticsDataStubSettings.Builder) getStubSettings()); } diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java index 62618585..a775cee5 100644 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java @@ -26,6 +26,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; @@ -102,6 +105,11 @@ public AlphaAnalyticsDataStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcAlphaAnalyticsDataStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAlphaAnalyticsDataStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -134,18 +142,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(AlphaAnalyticsDataStubSettings.class)) @@ -153,11 +168,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AlphaAnalyticsDataStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AlphaAnalyticsDataStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -243,6 +277,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .runFunnelReportSettings() diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataCallableFactory.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataCallableFactory.java new file mode 100644 index 00000000..0d45a48a --- /dev/null +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.data.v1alpha.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AlphaAnalyticsData service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAlphaAnalyticsDataCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java new file mode 100644 index 00000000..3de65b61 --- /dev/null +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java @@ -0,0 +1,198 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha.stub; + +import com.google.analytics.data.v1alpha.RunFunnelReportRequest; +import com.google.analytics.data.v1alpha.RunFunnelReportResponse; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AlphaAnalyticsData service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + runFunnelReportMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.analytics.data.v1alpha.AlphaAnalyticsData/RunFunnelReport") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{property=properties/*}:runFunnelReport", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "property", request.getProperty()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearProperty().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RunFunnelReportResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + runFunnelReportCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAlphaAnalyticsDataStub create(AlphaAnalyticsDataStubSettings settings) + throws IOException { + return new HttpJsonAlphaAnalyticsDataStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAlphaAnalyticsDataStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAlphaAnalyticsDataStub( + AlphaAnalyticsDataStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAlphaAnalyticsDataStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAlphaAnalyticsDataStub( + AlphaAnalyticsDataStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonAlphaAnalyticsDataStub, 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 HttpJsonAlphaAnalyticsDataStub( + AlphaAnalyticsDataStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAlphaAnalyticsDataCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAlphaAnalyticsDataStub, 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 HttpJsonAlphaAnalyticsDataStub( + AlphaAnalyticsDataStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + runFunnelReportTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runFunnelReportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + + this.runFunnelReportCallable = + callableFactory.createUnaryCallable( + runFunnelReportTransportSettings, settings.runFunnelReportSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(runFunnelReportMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable runFunnelReportCallable() { + return runFunnelReportCallable; + } + + @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/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java index 5448f0d1..5f9178fc 100644 --- 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 @@ -108,6 +108,21 @@ * BetaAnalyticsDataClient.create(betaAnalyticsDataSettings); * } * + *

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

{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
+ * BetaAnalyticsDataSettings betaAnalyticsDataSettings =
+ *     BetaAnalyticsDataSettings.newBuilder()
+ *         .setTransportChannelProvider(
+ *             BetaAnalyticsDataSettings.defaultHttpJsonTransportProviderBuilder().build())
+ *         .build();
+ * BetaAnalyticsDataClient betaAnalyticsDataClient =
+ *     BetaAnalyticsDataClient.create(betaAnalyticsDataSettings);
+ * }
+ * *

Please refer to the GitHub repository's samples for more quickstart code snippets. */ @BetaApi 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 index bc1d0cee..f23e6db9 100644 --- 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 @@ -22,6 +22,7 @@ import com.google.api.gax.core.GoogleCredentialsProvider; import com.google.api.gax.core.InstantiatingExecutorProvider; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; @@ -133,11 +134,18 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde return BetaAnalyticsDataStubSettings.defaultCredentialsProviderBuilder(); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return BetaAnalyticsDataStubSettings.defaultGrpcTransportProviderBuilder(); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return BetaAnalyticsDataStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return BetaAnalyticsDataStubSettings.defaultTransportChannelProvider(); } @@ -147,11 +155,17 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil return BetaAnalyticsDataStubSettings.defaultApiClientHeaderProviderBuilder(); } - /** Returns a new builder for this class. */ + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + @BetaApi + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -189,6 +203,11 @@ private static Builder createDefault() { return new Builder(BetaAnalyticsDataStubSettings.newBuilder()); } + @BetaApi + private static Builder createHttpJsonDefault() { + return new Builder(BetaAnalyticsDataStubSettings.newHttpJsonBuilder()); + } + public BetaAnalyticsDataStubSettings.Builder getStubSettingsBuilder() { return ((BetaAnalyticsDataStubSettings.Builder) getStubSettings()); } 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 index 55706fd6..42182f46 100644 --- 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 @@ -38,6 +38,9 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; @@ -157,6 +160,11 @@ public BetaAnalyticsDataStub createStub() throws IOException { .equals(GrpcTransportChannel.getGrpcTransportName())) { return GrpcBetaAnalyticsDataStub.create(this); } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonBetaAnalyticsDataStub.create(this); + } throw new UnsupportedOperationException( String.format( "Transport not supported: %s", getTransportChannelProvider().getTransportName())); @@ -189,18 +197,25 @@ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilde .setUseJwtAccessWithScope(true); } - /** Returns a builder for the default ChannelProvider for this service. */ + /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { return InstantiatingGrpcChannelProvider.newBuilder() .setMaxInboundMessageSize(Integer.MAX_VALUE); } + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + public static TransportChannelProvider defaultTransportChannelProvider() { return defaultGrpcTransportProviderBuilder().build(); } @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( "gapic", GaxProperties.getLibraryVersion(BetaAnalyticsDataStubSettings.class)) @@ -208,11 +223,30 @@ public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuil GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } - /** Returns a new builder for this class. */ + @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(BetaAnalyticsDataStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return BetaAnalyticsDataStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ public static Builder newBuilder() { return Builder.createDefault(); } + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + /** Returns a new builder for this class. */ public static Builder newBuilder(ClientContext clientContext) { return new Builder(clientContext); @@ -354,6 +388,19 @@ private static Builder createDefault() { return initDefaults(builder); } + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setEndpoint(getDefaultEndpoint()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + private static Builder initDefaults(Builder builder) { builder .runReportSettings() diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataCallableFactory.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataCallableFactory.java new file mode 100644 index 00000000..e5094846 --- /dev/null +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.data.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the BetaAnalyticsData service API. + * + *

This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonBetaAnalyticsDataCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @BetaApi( + "The surface for long-running operations is not stable yet and may change in the future.") + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataStub.java new file mode 100644 index 00000000..3f13d461 --- /dev/null +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataStub.java @@ -0,0 +1,532 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the BetaAnalyticsData service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonBetaAnalyticsDataStub extends BetaAnalyticsDataStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + runReportMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.analytics.data.v1beta.BetaAnalyticsData/RunReport") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{property=properties/*}:runReport", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "property", request.getProperty()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearProperty().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RunReportResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + runPivotReportMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.analytics.data.v1beta.BetaAnalyticsData/RunPivotReport") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{property=properties/*}:runPivotReport", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "property", request.getProperty()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearProperty().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RunPivotReportResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + batchRunReportsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.analytics.data.v1beta.BetaAnalyticsData/BatchRunReports") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{property=properties/*}:batchRunReports", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "property", request.getProperty()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearProperty().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchRunReportsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + BatchRunPivotReportsRequest, BatchRunPivotReportsResponse> + batchRunPivotReportsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.analytics.data.v1beta.BetaAnalyticsData/BatchRunPivotReports") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{property=properties/*}:batchRunPivotReports", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "property", request.getProperty()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearProperty().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(BatchRunPivotReportsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getMetadataMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.analytics.data.v1beta.BetaAnalyticsData/GetMetadata") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=properties/*/metadata}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Metadata.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + runRealtimeReportMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.analytics.data.v1beta.BetaAnalyticsData/RunRealtimeReport") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{property=properties/*}:runRealtimeReport", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "property", request.getProperty()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearProperty().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RunRealtimeReportResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + checkCompatibilityMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.analytics.data.v1beta.BetaAnalyticsData/CheckCompatibility") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{property=properties/*}:checkCompatibility", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "property", request.getProperty()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearProperty().build())) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CheckCompatibilityResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .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 HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonBetaAnalyticsDataStub create(BetaAnalyticsDataStubSettings settings) + throws IOException { + return new HttpJsonBetaAnalyticsDataStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonBetaAnalyticsDataStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonBetaAnalyticsDataStub( + BetaAnalyticsDataStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonBetaAnalyticsDataStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonBetaAnalyticsDataStub( + BetaAnalyticsDataStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonBetaAnalyticsDataStub, 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 HttpJsonBetaAnalyticsDataStub( + BetaAnalyticsDataStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonBetaAnalyticsDataCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonBetaAnalyticsDataStub, 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 HttpJsonBetaAnalyticsDataStub( + BetaAnalyticsDataStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings runReportTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runReportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + runPivotReportTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runPivotReportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + batchRunReportsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(batchRunReportsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + batchRunPivotReportsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(batchRunPivotReportsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings getMetadataTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getMetadataMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + runRealtimeReportTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runRealtimeReportMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); + HttpJsonCallSettings + checkCompatibilityTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(checkCompatibilityMethodDescriptor) + .setTypeRegistry(typeRegistry) + .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()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(runReportMethodDescriptor); + methodDescriptors.add(runPivotReportMethodDescriptor); + methodDescriptors.add(batchRunReportsMethodDescriptor); + methodDescriptors.add(batchRunPivotReportsMethodDescriptor); + methodDescriptors.add(getMetadataMethodDescriptor); + methodDescriptors.add(runRealtimeReportMethodDescriptor); + methodDescriptors.add(checkCompatibilityMethodDescriptor); + return methodDescriptors; + } + + @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/v1alpha/AlphaAnalyticsDataClientHttpJsonTest.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientHttpJsonTest.java new file mode 100644 index 00000000..b2d7572d --- /dev/null +++ b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientHttpJsonTest.java @@ -0,0 +1,143 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha; + +import com.google.analytics.data.v1alpha.stub.HttpJsonAlphaAnalyticsDataStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AlphaAnalyticsDataClientHttpJsonTest { + private static MockHttpService mockService; + private static AlphaAnalyticsDataClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAlphaAnalyticsDataStub.getMethodDescriptors(), + AlphaAnalyticsDataSettings.getDefaultEndpoint()); + AlphaAnalyticsDataSettings settings = + AlphaAnalyticsDataSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AlphaAnalyticsDataSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AlphaAnalyticsDataClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void runFunnelReportTest() throws Exception { + RunFunnelReportResponse expectedResponse = + RunFunnelReportResponse.newBuilder() + .setFunnelTable(FunnelSubReport.newBuilder().build()) + .setFunnelVisualization(FunnelSubReport.newBuilder().build()) + .setPropertyQuota(PropertyQuota.newBuilder().build()) + .setKind("kind3292052") + .build(); + mockService.addResponse(expectedResponse); + + RunFunnelReportRequest request = + RunFunnelReportRequest.newBuilder() + .setProperty("properties/propertie-2179") + .addAllDateRanges(new ArrayList()) + .setFunnel(Funnel.newBuilder().build()) + .setFunnelBreakdown(FunnelBreakdown.newBuilder().build()) + .setFunnelNextAction(FunnelNextAction.newBuilder().build()) + .addAllSegments(new ArrayList()) + .setLimit(102976443) + .setDimensionFilter(FilterExpression.newBuilder().build()) + .setReturnPropertyQuota(true) + .build(); + + RunFunnelReportResponse actualResponse = client.runFunnelReport(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runFunnelReportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RunFunnelReportRequest request = + RunFunnelReportRequest.newBuilder() + .setProperty("properties/propertie-2179") + .addAllDateRanges(new ArrayList()) + .setFunnel(Funnel.newBuilder().build()) + .setFunnelBreakdown(FunnelBreakdown.newBuilder().build()) + .setFunnelNextAction(FunnelNextAction.newBuilder().build()) + .addAllSegments(new ArrayList()) + .setLimit(102976443) + .setDimensionFilter(FilterExpression.newBuilder().build()) + .setReturnPropertyQuota(true) + .build(); + client.runFunnelReport(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/BetaAnalyticsDataClientHttpJsonTest.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClientHttpJsonTest.java new file mode 100644 index 00000000..0d070d5c --- /dev/null +++ b/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClientHttpJsonTest.java @@ -0,0 +1,571 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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.HttpJsonBetaAnalyticsDataStub; +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class BetaAnalyticsDataClientHttpJsonTest { + private static MockHttpService mockService; + private static BetaAnalyticsDataClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonBetaAnalyticsDataStub.getMethodDescriptors(), + BetaAnalyticsDataSettings.getDefaultEndpoint()); + BetaAnalyticsDataSettings settings = + BetaAnalyticsDataSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + BetaAnalyticsDataSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = BetaAnalyticsDataClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @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(); + mockService.addResponse(expectedResponse); + + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/propertie-2179") + .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 = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runReportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RunReportRequest request = + RunReportRequest.newBuilder() + .setProperty("properties/propertie-2179") + .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(); + mockService.addResponse(expectedResponse); + + RunPivotReportRequest request = + RunPivotReportRequest.newBuilder() + .setProperty("properties/propertie-2179") + .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 = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runPivotReportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RunPivotReportRequest request = + RunPivotReportRequest.newBuilder() + .setProperty("properties/propertie-2179") + .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(); + mockService.addResponse(expectedResponse); + + BatchRunReportsRequest request = + BatchRunReportsRequest.newBuilder() + .setProperty("properties/propertie-2179") + .addAllRequests(new ArrayList()) + .build(); + + BatchRunReportsResponse actualResponse = client.batchRunReports(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchRunReportsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchRunReportsRequest request = + BatchRunReportsRequest.newBuilder() + .setProperty("properties/propertie-2179") + .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(); + mockService.addResponse(expectedResponse); + + BatchRunPivotReportsRequest request = + BatchRunPivotReportsRequest.newBuilder() + .setProperty("properties/propertie-2179") + .addAllRequests(new ArrayList()) + .build(); + + BatchRunPivotReportsResponse actualResponse = client.batchRunPivotReports(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void batchRunPivotReportsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + BatchRunPivotReportsRequest request = + BatchRunPivotReportsRequest.newBuilder() + .setProperty("properties/propertie-2179") + .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(); + mockService.addResponse(expectedResponse); + + MetadataName name = MetadataName.of("[PROPERTY]"); + + Metadata actualResponse = client.getMetadata(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getMetadataExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.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(); + mockService.addResponse(expectedResponse); + + String name = "properties/propertie-8635/metadata"; + + Metadata actualResponse = client.getMetadata(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getMetadataExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "properties/propertie-8635/metadata"; + 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(); + mockService.addResponse(expectedResponse); + + RunRealtimeReportRequest request = + RunRealtimeReportRequest.newBuilder() + .setProperty("properties/propertie-2179") + .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 = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void runRealtimeReportExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RunRealtimeReportRequest request = + RunRealtimeReportRequest.newBuilder() + .setProperty("properties/propertie-2179") + .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(); + mockService.addResponse(expectedResponse); + + CheckCompatibilityRequest request = + CheckCompatibilityRequest.newBuilder() + .setProperty("properties/propertie-2179") + .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 = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void checkCompatibilityExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CheckCompatibilityRequest request = + CheckCompatibilityRequest.newBuilder() + .setProperty("properties/propertie-2179") + .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/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilter.java similarity index 93% rename from proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilter.java rename to proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilter.java index a5a228dd..a613e147 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilter.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilter.java @@ -25,26 +25,26 @@ * An expression to filter dimension or metric values. * * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilter} + * Protobuf type {@code google.analytics.data.v1alpha.FunnelFieldFilter} */ -public final class FunnelFilter extends com.google.protobuf.GeneratedMessageV3 +public final class FunnelFieldFilter extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelFilter) - FunnelFilterOrBuilder { + // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelFieldFilter) + FunnelFieldFilterOrBuilder { private static final long serialVersionUID = 0L; - // Use FunnelFilter.newBuilder() to construct. - private FunnelFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use FunnelFieldFilter.newBuilder() to construct. + private FunnelFieldFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private FunnelFilter() { + private FunnelFieldFilter() { fieldName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FunnelFilter(); + return new FunnelFieldFilter(); } @java.lang.Override @@ -52,7 +52,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FunnelFilter( + private FunnelFieldFilter( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -168,17 +168,17 @@ private FunnelFilter( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFilter_descriptor; + .internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFilter_fieldAccessorTable + .internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelFilter.class, - com.google.analytics.data.v1alpha.FunnelFilter.Builder.class); + com.google.analytics.data.v1alpha.FunnelFieldFilter.class, + com.google.analytics.data.v1alpha.FunnelFieldFilter.Builder.class); } private int oneFilterCase_ = 0; @@ -558,11 +558,11 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.analytics.data.v1alpha.FunnelFilter)) { + if (!(obj instanceof com.google.analytics.data.v1alpha.FunnelFieldFilter)) { return super.equals(obj); } - com.google.analytics.data.v1alpha.FunnelFilter other = - (com.google.analytics.data.v1alpha.FunnelFilter) obj; + com.google.analytics.data.v1alpha.FunnelFieldFilter other = + (com.google.analytics.data.v1alpha.FunnelFieldFilter) obj; if (!getFieldName().equals(other.getFieldName())) return false; if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; @@ -620,71 +620,71 @@ public int hashCode() { return hash; } - public static com.google.analytics.data.v1alpha.FunnelFilter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.data.v1alpha.FunnelFilter parseFrom( + public static com.google.analytics.data.v1alpha.FunnelFieldFilter 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.v1alpha.FunnelFilter parseFrom( + public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.data.v1alpha.FunnelFilter parseFrom( + public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseFrom( 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.v1alpha.FunnelFilter parseFrom(byte[] data) + public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.data.v1alpha.FunnelFilter parseFrom( + public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.analytics.data.v1alpha.FunnelFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { + public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.analytics.data.v1alpha.FunnelFilter parseFrom( + public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseFrom( java.io.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.v1alpha.FunnelFilter parseDelimitedFrom( + public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.analytics.data.v1alpha.FunnelFilter parseDelimitedFrom( + public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseDelimitedFrom( java.io.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.v1alpha.FunnelFilter parseFrom( + public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.analytics.data.v1alpha.FunnelFilter parseFrom( + public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -701,7 +701,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.analytics.data.v1alpha.FunnelFilter prototype) { + public static Builder newBuilder(com.google.analytics.data.v1alpha.FunnelFieldFilter prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -722,28 +722,28 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * An expression to filter dimension or metric values. * * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilter} + * Protobuf type {@code google.analytics.data.v1alpha.FunnelFieldFilter} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelFilter) - com.google.analytics.data.v1alpha.FunnelFilterOrBuilder { + // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelFieldFilter) + com.google.analytics.data.v1alpha.FunnelFieldFilterOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFilter_descriptor; + .internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFilter_fieldAccessorTable + .internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelFilter.class, - com.google.analytics.data.v1alpha.FunnelFilter.Builder.class); + com.google.analytics.data.v1alpha.FunnelFieldFilter.class, + com.google.analytics.data.v1alpha.FunnelFieldFilter.Builder.class); } - // Construct using com.google.analytics.data.v1alpha.FunnelFilter.newBuilder() + // Construct using com.google.analytics.data.v1alpha.FunnelFieldFilter.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -770,17 +770,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFilter_descriptor; + .internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor; } @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance(); + public com.google.analytics.data.v1alpha.FunnelFieldFilter getDefaultInstanceForType() { + return com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance(); } @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilter build() { - com.google.analytics.data.v1alpha.FunnelFilter result = buildPartial(); + public com.google.analytics.data.v1alpha.FunnelFieldFilter build() { + com.google.analytics.data.v1alpha.FunnelFieldFilter result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -788,9 +788,9 @@ public com.google.analytics.data.v1alpha.FunnelFilter build() { } @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilter buildPartial() { - com.google.analytics.data.v1alpha.FunnelFilter result = - new com.google.analytics.data.v1alpha.FunnelFilter(this); + public com.google.analytics.data.v1alpha.FunnelFieldFilter buildPartial() { + com.google.analytics.data.v1alpha.FunnelFieldFilter result = + new com.google.analytics.data.v1alpha.FunnelFieldFilter(this); result.fieldName_ = fieldName_; if (oneFilterCase_ == 4) { if (stringFilterBuilder_ == null) { @@ -860,16 +860,17 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1alpha.FunnelFilter) { - return mergeFrom((com.google.analytics.data.v1alpha.FunnelFilter) other); + if (other instanceof com.google.analytics.data.v1alpha.FunnelFieldFilter) { + return mergeFrom((com.google.analytics.data.v1alpha.FunnelFieldFilter) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelFilter other) { - if (other == com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance()) return this; + public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelFieldFilter other) { + if (other == com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance()) + return this; if (!other.getFieldName().isEmpty()) { fieldName_ = other.fieldName_; onChanged(); @@ -915,11 +916,12 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.FunnelFilter parsedMessage = null; + com.google.analytics.data.v1alpha.FunnelFieldFilter parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.FunnelFilter) e.getUnfinishedMessage(); + parsedMessage = + (com.google.analytics.data.v1alpha.FunnelFieldFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -1900,42 +1902,42 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.FunnelFilter) + // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.FunnelFieldFilter) } - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelFilter) - private static final com.google.analytics.data.v1alpha.FunnelFilter DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelFieldFilter) + private static final com.google.analytics.data.v1alpha.FunnelFieldFilter DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelFilter(); + DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelFieldFilter(); } - public static com.google.analytics.data.v1alpha.FunnelFilter getDefaultInstance() { + public static com.google.analytics.data.v1alpha.FunnelFieldFilter getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { @java.lang.Override - public FunnelFilter parsePartialFrom( + public FunnelFieldFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FunnelFilter(input, extensionRegistry); + return new FunnelFieldFilter(input, extensionRegistry); } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilter getDefaultInstanceForType() { + public com.google.analytics.data.v1alpha.FunnelFieldFilter getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilterOrBuilder.java similarity index 96% rename from proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterOrBuilder.java rename to proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilterOrBuilder.java index 003dbe0c..5c105956 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterOrBuilder.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilterOrBuilder.java @@ -18,9 +18,9 @@ package com.google.analytics.data.v1alpha; -public interface FunnelFilterOrBuilder +public interface FunnelFieldFilterOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelFilter) + // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelFieldFilter) com.google.protobuf.MessageOrBuilder { /** @@ -188,5 +188,5 @@ public interface FunnelFilterOrBuilder */ com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder(); - public com.google.analytics.data.v1alpha.FunnelFilter.OneFilterCase getOneFilterCase(); + public com.google.analytics.data.v1alpha.FunnelFieldFilter.OneFilterCase getOneFilterCase(); } diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpression.java index db112542..ec95a99a 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpression.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpression.java @@ -131,15 +131,17 @@ private FunnelFilterExpression( } case 34: { - com.google.analytics.data.v1alpha.FunnelFilter.Builder subBuilder = null; + com.google.analytics.data.v1alpha.FunnelFieldFilter.Builder subBuilder = null; if (exprCase_ == 4) { - subBuilder = ((com.google.analytics.data.v1alpha.FunnelFilter) expr_).toBuilder(); + subBuilder = + ((com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_).toBuilder(); } expr_ = input.readMessage( - com.google.analytics.data.v1alpha.FunnelFilter.parser(), extensionRegistry); + com.google.analytics.data.v1alpha.FunnelFieldFilter.parser(), + extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.FunnelFilter) expr_); + subBuilder.mergeFrom((com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_); expr_ = subBuilder.buildPartial(); } exprCase_ = 4; @@ -209,7 +211,7 @@ public enum ExprCase AND_GROUP(1), OR_GROUP(2), NOT_EXPRESSION(3), - FUNNEL_FILTER(4), + FUNNEL_FIELD_FILTER(4), FUNNEL_EVENT_FILTER(5), EXPR_NOT_SET(0); private final int value; @@ -236,7 +238,7 @@ public static ExprCase forNumber(int value) { case 3: return NOT_EXPRESSION; case 4: - return FUNNEL_FILTER; + return FUNNEL_FIELD_FILTER; case 5: return FUNNEL_EVENT_FILTER; case 0: @@ -411,55 +413,56 @@ public com.google.analytics.data.v1alpha.FunnelFilterExpression getNotExpression return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance(); } - public static final int FUNNEL_FILTER_FIELD_NUMBER = 4; + public static final int FUNNEL_FIELD_FILTER_FIELD_NUMBER = 4; /** * * *

-   * A primitive funnel filter.
+   * A funnel filter for a dimension or metric.
    * 
* - * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; * - * @return Whether the funnelFilter field is set. + * @return Whether the funnelFieldFilter field is set. */ @java.lang.Override - public boolean hasFunnelFilter() { + public boolean hasFunnelFieldFilter() { return exprCase_ == 4; } /** * * *
-   * A primitive funnel filter.
+   * A funnel filter for a dimension or metric.
    * 
* - * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; * - * @return The funnelFilter. + * @return The funnelFieldFilter. */ @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilter getFunnelFilter() { + public com.google.analytics.data.v1alpha.FunnelFieldFilter getFunnelFieldFilter() { if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.FunnelFilter) expr_; + return (com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_; } - return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance(); + return com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance(); } /** * * *
-   * A primitive funnel filter.
+   * A funnel filter for a dimension or metric.
    * 
* - * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; */ @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterOrBuilder getFunnelFilterOrBuilder() { + public com.google.analytics.data.v1alpha.FunnelFieldFilterOrBuilder + getFunnelFieldFilterOrBuilder() { if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.FunnelFilter) expr_; + return (com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_; } - return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance(); + return com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance(); } public static final int FUNNEL_EVENT_FILTER_FIELD_NUMBER = 5; @@ -547,7 +550,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(3, (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_); } if (exprCase_ == 4) { - output.writeMessage(4, (com.google.analytics.data.v1alpha.FunnelFilter) expr_); + output.writeMessage(4, (com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_); } if (exprCase_ == 5) { output.writeMessage(5, (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_); @@ -579,7 +582,7 @@ public int getSerializedSize() { if (exprCase_ == 4) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.data.v1alpha.FunnelFilter) expr_); + 4, (com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_); } if (exprCase_ == 5) { size += @@ -614,7 +617,7 @@ public boolean equals(final java.lang.Object obj) { if (!getNotExpression().equals(other.getNotExpression())) return false; break; case 4: - if (!getFunnelFilter().equals(other.getFunnelFilter())) return false; + if (!getFunnelFieldFilter().equals(other.getFunnelFieldFilter())) return false; break; case 5: if (!getFunnelEventFilter().equals(other.getFunnelEventFilter())) return false; @@ -647,8 +650,8 @@ public int hashCode() { hash = (53 * hash) + getNotExpression().hashCode(); break; case 4: - hash = (37 * hash) + FUNNEL_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFunnelFilter().hashCode(); + hash = (37 * hash) + FUNNEL_FIELD_FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFunnelFieldFilter().hashCode(); break; case 5: hash = (37 * hash) + FUNNEL_EVENT_FILTER_FIELD_NUMBER; @@ -854,10 +857,10 @@ public com.google.analytics.data.v1alpha.FunnelFilterExpression buildPartial() { } } if (exprCase_ == 4) { - if (funnelFilterBuilder_ == null) { + if (funnelFieldFilterBuilder_ == null) { result.expr_ = expr_; } else { - result.expr_ = funnelFilterBuilder_.build(); + result.expr_ = funnelFieldFilterBuilder_.build(); } } if (exprCase_ == 5) { @@ -934,9 +937,9 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelFilterExpressio mergeNotExpression(other.getNotExpression()); break; } - case FUNNEL_FILTER: + case FUNNEL_FIELD_FILTER: { - mergeFunnelFilter(other.getFunnelFilter()); + mergeFunnelFieldFilter(other.getFunnelFieldFilter()); break; } case FUNNEL_EVENT_FILTER: @@ -1639,68 +1642,68 @@ public Builder clearNotExpression() { } private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFilter, - com.google.analytics.data.v1alpha.FunnelFilter.Builder, - com.google.analytics.data.v1alpha.FunnelFilterOrBuilder> - funnelFilterBuilder_; + com.google.analytics.data.v1alpha.FunnelFieldFilter, + com.google.analytics.data.v1alpha.FunnelFieldFilter.Builder, + com.google.analytics.data.v1alpha.FunnelFieldFilterOrBuilder> + funnelFieldFilterBuilder_; /** * * *
-     * A primitive funnel filter.
+     * A funnel filter for a dimension or metric.
      * 
* - * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; * - * @return Whether the funnelFilter field is set. + * @return Whether the funnelFieldFilter field is set. */ @java.lang.Override - public boolean hasFunnelFilter() { + public boolean hasFunnelFieldFilter() { return exprCase_ == 4; } /** * * *
-     * A primitive funnel filter.
+     * A funnel filter for a dimension or metric.
      * 
* - * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; * - * @return The funnelFilter. + * @return The funnelFieldFilter. */ @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilter getFunnelFilter() { - if (funnelFilterBuilder_ == null) { + public com.google.analytics.data.v1alpha.FunnelFieldFilter getFunnelFieldFilter() { + if (funnelFieldFilterBuilder_ == null) { if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.FunnelFilter) expr_; + return (com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_; } - return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance(); + return com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance(); } else { if (exprCase_ == 4) { - return funnelFilterBuilder_.getMessage(); + return funnelFieldFilterBuilder_.getMessage(); } - return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance(); + return com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance(); } } /** * * *
-     * A primitive funnel filter.
+     * A funnel filter for a dimension or metric.
      * 
* - * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; */ - public Builder setFunnelFilter(com.google.analytics.data.v1alpha.FunnelFilter value) { - if (funnelFilterBuilder_ == null) { + public Builder setFunnelFieldFilter(com.google.analytics.data.v1alpha.FunnelFieldFilter value) { + if (funnelFieldFilterBuilder_ == null) { if (value == null) { throw new NullPointerException(); } expr_ = value; onChanged(); } else { - funnelFilterBuilder_.setMessage(value); + funnelFieldFilterBuilder_.setMessage(value); } exprCase_ = 4; return this; @@ -1709,18 +1712,18 @@ public Builder setFunnelFilter(com.google.analytics.data.v1alpha.FunnelFilter va * * *
-     * A primitive funnel filter.
+     * A funnel filter for a dimension or metric.
      * 
* - * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; */ - public Builder setFunnelFilter( - com.google.analytics.data.v1alpha.FunnelFilter.Builder builderForValue) { - if (funnelFilterBuilder_ == null) { + public Builder setFunnelFieldFilter( + com.google.analytics.data.v1alpha.FunnelFieldFilter.Builder builderForValue) { + if (funnelFieldFilterBuilder_ == null) { expr_ = builderForValue.build(); onChanged(); } else { - funnelFilterBuilder_.setMessage(builderForValue.build()); + funnelFieldFilterBuilder_.setMessage(builderForValue.build()); } exprCase_ = 4; return this; @@ -1729,18 +1732,19 @@ public Builder setFunnelFilter( * * *
-     * A primitive funnel filter.
+     * A funnel filter for a dimension or metric.
      * 
* - * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; */ - public Builder mergeFunnelFilter(com.google.analytics.data.v1alpha.FunnelFilter value) { - if (funnelFilterBuilder_ == null) { + public Builder mergeFunnelFieldFilter( + com.google.analytics.data.v1alpha.FunnelFieldFilter value) { + if (funnelFieldFilterBuilder_ == null) { if (exprCase_ == 4 - && expr_ != com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance()) { + && expr_ != com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance()) { expr_ = - com.google.analytics.data.v1alpha.FunnelFilter.newBuilder( - (com.google.analytics.data.v1alpha.FunnelFilter) expr_) + com.google.analytics.data.v1alpha.FunnelFieldFilter.newBuilder( + (com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_) .mergeFrom(value) .buildPartial(); } else { @@ -1749,9 +1753,9 @@ public Builder mergeFunnelFilter(com.google.analytics.data.v1alpha.FunnelFilter onChanged(); } else { if (exprCase_ == 4) { - funnelFilterBuilder_.mergeFrom(value); + funnelFieldFilterBuilder_.mergeFrom(value); } else { - funnelFilterBuilder_.setMessage(value); + funnelFieldFilterBuilder_.setMessage(value); } } exprCase_ = 4; @@ -1761,13 +1765,13 @@ public Builder mergeFunnelFilter(com.google.analytics.data.v1alpha.FunnelFilter * * *
-     * A primitive funnel filter.
+     * A funnel filter for a dimension or metric.
      * 
* - * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; */ - public Builder clearFunnelFilter() { - if (funnelFilterBuilder_ == null) { + public Builder clearFunnelFieldFilter() { + if (funnelFieldFilterBuilder_ == null) { if (exprCase_ == 4) { exprCase_ = 0; expr_ = null; @@ -1778,7 +1782,7 @@ public Builder clearFunnelFilter() { exprCase_ = 0; expr_ = null; } - funnelFilterBuilder_.clear(); + funnelFieldFilterBuilder_.clear(); } return this; } @@ -1786,58 +1790,60 @@ public Builder clearFunnelFilter() { * * *
-     * A primitive funnel filter.
+     * A funnel filter for a dimension or metric.
      * 
* - * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; */ - public com.google.analytics.data.v1alpha.FunnelFilter.Builder getFunnelFilterBuilder() { - return getFunnelFilterFieldBuilder().getBuilder(); + public com.google.analytics.data.v1alpha.FunnelFieldFilter.Builder + getFunnelFieldFilterBuilder() { + return getFunnelFieldFilterFieldBuilder().getBuilder(); } /** * * *
-     * A primitive funnel filter.
+     * A funnel filter for a dimension or metric.
      * 
* - * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; */ @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterOrBuilder getFunnelFilterOrBuilder() { - if ((exprCase_ == 4) && (funnelFilterBuilder_ != null)) { - return funnelFilterBuilder_.getMessageOrBuilder(); + public com.google.analytics.data.v1alpha.FunnelFieldFilterOrBuilder + getFunnelFieldFilterOrBuilder() { + if ((exprCase_ == 4) && (funnelFieldFilterBuilder_ != null)) { + return funnelFieldFilterBuilder_.getMessageOrBuilder(); } else { if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.FunnelFilter) expr_; + return (com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_; } - return com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance(); + return com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance(); } } /** * * *
-     * A primitive funnel filter.
+     * A funnel filter for a dimension or metric.
      * 
* - * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFilter, - com.google.analytics.data.v1alpha.FunnelFilter.Builder, - com.google.analytics.data.v1alpha.FunnelFilterOrBuilder> - getFunnelFilterFieldBuilder() { - if (funnelFilterBuilder_ == null) { + com.google.analytics.data.v1alpha.FunnelFieldFilter, + com.google.analytics.data.v1alpha.FunnelFieldFilter.Builder, + com.google.analytics.data.v1alpha.FunnelFieldFilterOrBuilder> + getFunnelFieldFilterFieldBuilder() { + if (funnelFieldFilterBuilder_ == null) { if (!(exprCase_ == 4)) { - expr_ = com.google.analytics.data.v1alpha.FunnelFilter.getDefaultInstance(); + expr_ = com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance(); } - funnelFilterBuilder_ = + funnelFieldFilterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFilter, - com.google.analytics.data.v1alpha.FunnelFilter.Builder, - com.google.analytics.data.v1alpha.FunnelFilterOrBuilder>( - (com.google.analytics.data.v1alpha.FunnelFilter) expr_, + com.google.analytics.data.v1alpha.FunnelFieldFilter, + com.google.analytics.data.v1alpha.FunnelFieldFilter.Builder, + com.google.analytics.data.v1alpha.FunnelFieldFilterOrBuilder>( + (com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_, getParentForChildren(), isClean()); expr_ = null; @@ -1845,7 +1851,7 @@ public com.google.analytics.data.v1alpha.FunnelFilterOrBuilder getFunnelFilterOr exprCase_ = 4; onChanged(); ; - return funnelFilterBuilder_; + return funnelFieldFilterBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionOrBuilder.java index b731f681..ebf68b15 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionOrBuilder.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionOrBuilder.java @@ -132,36 +132,36 @@ public interface FunnelFilterExpressionOrBuilder * * *
-   * A primitive funnel filter.
+   * A funnel filter for a dimension or metric.
    * 
* - * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; * - * @return Whether the funnelFilter field is set. + * @return Whether the funnelFieldFilter field is set. */ - boolean hasFunnelFilter(); + boolean hasFunnelFieldFilter(); /** * * *
-   * A primitive funnel filter.
+   * A funnel filter for a dimension or metric.
    * 
* - * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; * - * @return The funnelFilter. + * @return The funnelFieldFilter. */ - com.google.analytics.data.v1alpha.FunnelFilter getFunnelFilter(); + com.google.analytics.data.v1alpha.FunnelFieldFilter getFunnelFieldFilter(); /** * * *
-   * A primitive funnel filter.
+   * A funnel filter for a dimension or metric.
    * 
* - * .google.analytics.data.v1alpha.FunnelFilter funnel_filter = 4; + * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; */ - com.google.analytics.data.v1alpha.FunnelFilterOrBuilder getFunnelFilterOrBuilder(); + com.google.analytics.data.v1alpha.FunnelFieldFilterOrBuilder getFunnelFieldFilterOrBuilder(); /** * diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java index 75f16313..25c03ce9 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java @@ -142,7 +142,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * The dimension column added to the funnel visualization sub report response. * The next action dimension returns the next dimension value of this * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports the `eventName` dimension. + * `nextActionDimension` currently only supports `eventName` and most Page / + * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` + * cannot be a dimension expression. * * * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; @@ -160,7 +162,9 @@ public boolean hasNextActionDimension() { * The dimension column added to the funnel visualization sub report response. * The next action dimension returns the next dimension value of this * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports the `eventName` dimension. + * `nextActionDimension` currently only supports `eventName` and most Page / + * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` + * cannot be a dimension expression. * * * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; @@ -180,7 +184,9 @@ public com.google.analytics.data.v1alpha.Dimension getNextActionDimension() { * The dimension column added to the funnel visualization sub report response. * The next action dimension returns the next dimension value of this * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports the `eventName` dimension. + * `nextActionDimension` currently only supports `eventName` and most Page / + * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` + * cannot be a dimension expression. * * * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; @@ -603,7 +609,9 @@ public Builder mergeFrom( * The dimension column added to the funnel visualization sub report response. * The next action dimension returns the next dimension value of this * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports the `eventName` dimension. + * `nextActionDimension` currently only supports `eventName` and most Page / + * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` + * cannot be a dimension expression. * * * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; @@ -620,7 +628,9 @@ public boolean hasNextActionDimension() { * The dimension column added to the funnel visualization sub report response. * The next action dimension returns the next dimension value of this * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports the `eventName` dimension. + * `nextActionDimension` currently only supports `eventName` and most Page / + * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` + * cannot be a dimension expression. * * * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; @@ -643,7 +653,9 @@ public com.google.analytics.data.v1alpha.Dimension getNextActionDimension() { * The dimension column added to the funnel visualization sub report response. * The next action dimension returns the next dimension value of this * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports the `eventName` dimension. + * `nextActionDimension` currently only supports `eventName` and most Page / + * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` + * cannot be a dimension expression. * * * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; @@ -668,7 +680,9 @@ public Builder setNextActionDimension(com.google.analytics.data.v1alpha.Dimensio * The dimension column added to the funnel visualization sub report response. * The next action dimension returns the next dimension value of this * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports the `eventName` dimension. + * `nextActionDimension` currently only supports `eventName` and most Page / + * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` + * cannot be a dimension expression. * * * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; @@ -691,7 +705,9 @@ public Builder setNextActionDimension( * The dimension column added to the funnel visualization sub report response. * The next action dimension returns the next dimension value of this * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports the `eventName` dimension. + * `nextActionDimension` currently only supports `eventName` and most Page / + * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` + * cannot be a dimension expression. * * * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; @@ -720,7 +736,9 @@ public Builder mergeNextActionDimension(com.google.analytics.data.v1alpha.Dimens * The dimension column added to the funnel visualization sub report response. * The next action dimension returns the next dimension value of this * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports the `eventName` dimension. + * `nextActionDimension` currently only supports `eventName` and most Page / + * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` + * cannot be a dimension expression. * * * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; @@ -743,7 +761,9 @@ public Builder clearNextActionDimension() { * The dimension column added to the funnel visualization sub report response. * The next action dimension returns the next dimension value of this * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports the `eventName` dimension. + * `nextActionDimension` currently only supports `eventName` and most Page / + * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` + * cannot be a dimension expression. * * * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; @@ -760,7 +780,9 @@ public com.google.analytics.data.v1alpha.Dimension.Builder getNextActionDimensio * The dimension column added to the funnel visualization sub report response. * The next action dimension returns the next dimension value of this * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports the `eventName` dimension. + * `nextActionDimension` currently only supports `eventName` and most Page / + * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` + * cannot be a dimension expression. * * * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; @@ -781,7 +803,9 @@ public com.google.analytics.data.v1alpha.DimensionOrBuilder getNextActionDimensi * The dimension column added to the funnel visualization sub report response. * The next action dimension returns the next dimension value of this * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports the `eventName` dimension. + * `nextActionDimension` currently only supports `eventName` and most Page / + * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` + * cannot be a dimension expression. * * * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextActionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextActionOrBuilder.java index 398dd665..404a3869 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextActionOrBuilder.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextActionOrBuilder.java @@ -30,7 +30,9 @@ public interface FunnelNextActionOrBuilder * The dimension column added to the funnel visualization sub report response. * The next action dimension returns the next dimension value of this * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports the `eventName` dimension. + * `nextActionDimension` currently only supports `eventName` and most Page / + * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` + * cannot be a dimension expression. * * * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; @@ -45,7 +47,9 @@ public interface FunnelNextActionOrBuilder * The dimension column added to the funnel visualization sub report response. * The next action dimension returns the next dimension value of this * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports the `eventName` dimension. + * `nextActionDimension` currently only supports `eventName` and most Page / + * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` + * cannot be a dimension expression. * * * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; @@ -60,7 +64,9 @@ public interface FunnelNextActionOrBuilder * The dimension column added to the funnel visualization sub report response. * The next action dimension returns the next dimension value of this * dimension after the user has attained the `i`th funnel step. - * `nextActionDimension` currently only supports the `eventName` dimension. + * `nextActionDimension` currently only supports `eventName` and most Page / + * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` + * cannot be a dimension expression. * * * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java index 7ea0ea7d..a9d41197 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java @@ -232,9 +232,9 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FunnelFilter_descriptor; + internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FunnelFilter_fieldAccessorTable; + internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -499,91 +499,92 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "terScopingB\017\n\rone_parameterB\014\n\none_filte" + "r\"Y\n\035SegmentParameterFilterScoping\022 \n\023in" + "_any_n_day_period\030\001 \001(\003H\000\210\001\001B\026\n\024_in_any_" - + "n_day_period\"\247\003\n\026FunnelFilterExpression\022" + + "n_day_period\"\262\003\n\026FunnelFilterExpression\022" + "N\n\tand_group\030\001 \001(\01329.google.analytics.da" + "ta.v1alpha.FunnelFilterExpressionListH\000\022" + "M\n\010or_group\030\002 \001(\01329.google.analytics.dat" + "a.v1alpha.FunnelFilterExpressionListH\000\022O" + "\n\016not_expression\030\003 \001(\01325.google.analytic" + "s.data.v1alpha.FunnelFilterExpressionH\000\022" - + "D\n\rfunnel_filter\030\004 \001(\0132+.google.analytic" - + "s.data.v1alpha.FunnelFilterH\000\022O\n\023funnel_" - + "event_filter\030\005 \001(\01320.google.analytics.da" - + "ta.v1alpha.FunnelEventFilterH\000B\006\n\004expr\"h" - + "\n\032FunnelFilterExpressionList\022J\n\013expressi" - + "ons\030\001 \003(\01325.google.analytics.data.v1alph" - + "a.FunnelFilterExpression\"\315\002\n\014FunnelFilte" - + "r\022\022\n\nfield_name\030\001 \001(\t\022D\n\rstring_filter\030\004" - + " \001(\0132+.google.analytics.data.v1alpha.Str" - + "ingFilterH\000\022E\n\016in_list_filter\030\005 \001(\0132+.go" - + "ogle.analytics.data.v1alpha.InListFilter" - + "H\000\022F\n\016numeric_filter\030\006 \001(\0132,.google.anal" - + "ytics.data.v1alpha.NumericFilterH\000\022F\n\016be" - + "tween_filter\030\007 \001(\0132,.google.analytics.da" - + "ta.v1alpha.BetweenFilterH\000B\014\n\none_filter" - + "\"\323\001\n\021FunnelEventFilter\022\027\n\nevent_name\030\001 \001" - + "(\tH\000\210\001\001\022o\n\"funnel_parameter_filter_expre" - + "ssion\030\002 \001(\0132>.google.analytics.data.v1al" - + "pha.FunnelParameterFilterExpressionH\001\210\001\001" - + "B\r\n\013_event_nameB%\n#_funnel_parameter_fil" - + "ter_expression\"\215\003\n\037FunnelParameterFilter" - + "Expression\022W\n\tand_group\030\001 \001(\0132B.google.a" - + "nalytics.data.v1alpha.FunnelParameterFil" - + "terExpressionListH\000\022V\n\010or_group\030\002 \001(\0132B." - + "google.analytics.data.v1alpha.FunnelPara" - + "meterFilterExpressionListH\000\022X\n\016not_expre" - + "ssion\030\003 \001(\0132>.google.analytics.data.v1al" - + "pha.FunnelParameterFilterExpressionH\000\022W\n" - + "\027funnel_parameter_filter\030\004 \001(\01324.google." - + "analytics.data.v1alpha.FunnelParameterFi" - + "lterH\000B\006\n\004expr\"z\n#FunnelParameterFilterE" - + "xpressionList\022S\n\013expressions\030\001 \003(\0132>.goo" - + "gle.analytics.data.v1alpha.FunnelParamet" - + "erFilterExpression\"\222\003\n\025FunnelParameterFi" - + "lter\022\036\n\024event_parameter_name\030\001 \001(\tH\000\022\035\n\023" - + "item_parameter_name\030\002 \001(\tH\000\022D\n\rstring_fi" - + "lter\030\004 \001(\0132+.google.analytics.data.v1alp" - + "ha.StringFilterH\001\022E\n\016in_list_filter\030\005 \001(" - + "\0132+.google.analytics.data.v1alpha.InList" - + "FilterH\001\022F\n\016numeric_filter\030\006 \001(\0132,.googl" - + "e.analytics.data.v1alpha.NumericFilterH\001" - + "\022F\n\016between_filter\030\007 \001(\0132,.google.analyt" - + "ics.data.v1alpha.BetweenFilterH\001B\017\n\rone_" - + "parameterB\014\n\none_filter\"e\n\026FunnelRespons" - + "eMetadata\022K\n\022sampling_metadatas\030\001 \003(\0132/." - + "google.analytics.data.v1alpha.SamplingMe" - + "tadata\"K\n\020SamplingMetadata\022\032\n\022samples_re" - + "ad_count\030\001 \001(\003\022\033\n\023sampling_space_size\030\002 " - + "\001(\003*\257\001\n\023UserCriteriaScoping\022%\n!USER_CRIT" - + "ERIA_SCOPING_UNSPECIFIED\020\000\022#\n\037USER_CRITE" - + "RIA_WITHIN_SAME_EVENT\020\001\022%\n!USER_CRITERIA" - + "_WITHIN_SAME_SESSION\020\002\022%\n!USER_CRITERIA_" - + "ACROSS_ALL_SESSIONS\020\003*|\n\025UserExclusionDu" - + "ration\022\'\n#USER_EXCLUSION_DURATION_UNSPEC" - + "IFIED\020\000\022\034\n\030USER_EXCLUSION_TEMPORARY\020\001\022\034\n" - + "\030USER_EXCLUSION_PERMANENT\020\002*\224\001\n\026SessionC" - + "riteriaScoping\022(\n$SESSION_CRITERIA_SCOPI" - + "NG_UNSPECIFIED\020\000\022&\n\"SESSION_CRITERIA_WIT" - + "HIN_SAME_EVENT\020\001\022(\n$SESSION_CRITERIA_WIT" - + "HIN_SAME_SESSION\020\002*\210\001\n\030SessionExclusionD" - + "uration\022*\n&SESSION_EXCLUSION_DURATION_UN" - + "SPECIFIED\020\000\022\037\n\033SESSION_EXCLUSION_TEMPORA" - + "RY\020\001\022\037\n\033SESSION_EXCLUSION_PERMANENT\020\002*d\n" - + "\024EventCriteriaScoping\022&\n\"EVENT_CRITERIA_" - + "SCOPING_UNSPECIFIED\020\000\022$\n EVENT_CRITERIA_" - + "WITHIN_SAME_EVENT\020\001*a\n\026EventExclusionDur" - + "ation\022(\n$EVENT_EXCLUSION_DURATION_UNSPEC" - + "IFIED\020\000\022\035\n\031EVENT_EXCLUSION_PERMANENT\020\001*\201" - + "\002\n\nMetricType\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\014" - + "TYPE_SECONDS\020\004\022\025\n\021TYPE_MILLISECONDS\020\005\022\020\n" - + "\014TYPE_MINUTES\020\006\022\016\n\nTYPE_HOURS\020\007\022\021\n\rTYPE_" - + "STANDARD\020\010\022\021\n\rTYPE_CURRENCY\020\t\022\r\n\tTYPE_FE" - + "ET\020\n\022\016\n\nTYPE_MILES\020\013\022\017\n\013TYPE_METERS\020\014\022\023\n" - + "\017TYPE_KILOMETERS\020\rB{\n!com.google.analyti" - + "cs.data.v1alphaB\021ReportingApiProtoP\001ZAgo" - + "ogle.golang.org/genproto/googleapis/anal" - + "ytics/data/v1alpha;datab\006proto3" + + "O\n\023funnel_field_filter\030\004 \001(\01320.google.an" + + "alytics.data.v1alpha.FunnelFieldFilterH\000" + + "\022O\n\023funnel_event_filter\030\005 \001(\01320.google.a" + + "nalytics.data.v1alpha.FunnelEventFilterH" + + "\000B\006\n\004expr\"h\n\032FunnelFilterExpressionList\022" + + "J\n\013expressions\030\001 \003(\01325.google.analytics." + + "data.v1alpha.FunnelFilterExpression\"\322\002\n\021" + + "FunnelFieldFilter\022\022\n\nfield_name\030\001 \001(\t\022D\n" + + "\rstring_filter\030\004 \001(\0132+.google.analytics." + + "data.v1alpha.StringFilterH\000\022E\n\016in_list_f" + + "ilter\030\005 \001(\0132+.google.analytics.data.v1al" + + "pha.InListFilterH\000\022F\n\016numeric_filter\030\006 \001" + + "(\0132,.google.analytics.data.v1alpha.Numer" + + "icFilterH\000\022F\n\016between_filter\030\007 \001(\0132,.goo" + + "gle.analytics.data.v1alpha.BetweenFilter" + + "H\000B\014\n\none_filter\"\323\001\n\021FunnelEventFilter\022\027" + + "\n\nevent_name\030\001 \001(\tH\000\210\001\001\022o\n\"funnel_parame" + + "ter_filter_expression\030\002 \001(\0132>.google.ana" + + "lytics.data.v1alpha.FunnelParameterFilte" + + "rExpressionH\001\210\001\001B\r\n\013_event_nameB%\n#_funn" + + "el_parameter_filter_expression\"\215\003\n\037Funne" + + "lParameterFilterExpression\022W\n\tand_group\030" + + "\001 \001(\0132B.google.analytics.data.v1alpha.Fu" + + "nnelParameterFilterExpressionListH\000\022V\n\010o" + + "r_group\030\002 \001(\0132B.google.analytics.data.v1" + + "alpha.FunnelParameterFilterExpressionLis" + + "tH\000\022X\n\016not_expression\030\003 \001(\0132>.google.ana" + + "lytics.data.v1alpha.FunnelParameterFilte" + + "rExpressionH\000\022W\n\027funnel_parameter_filter" + + "\030\004 \001(\01324.google.analytics.data.v1alpha.F" + + "unnelParameterFilterH\000B\006\n\004expr\"z\n#Funnel" + + "ParameterFilterExpressionList\022S\n\013express" + + "ions\030\001 \003(\0132>.google.analytics.data.v1alp" + + "ha.FunnelParameterFilterExpression\"\222\003\n\025F" + + "unnelParameterFilter\022\036\n\024event_parameter_" + + "name\030\001 \001(\tH\000\022\035\n\023item_parameter_name\030\002 \001(" + + "\tH\000\022D\n\rstring_filter\030\004 \001(\0132+.google.anal" + + "ytics.data.v1alpha.StringFilterH\001\022E\n\016in_" + + "list_filter\030\005 \001(\0132+.google.analytics.dat" + + "a.v1alpha.InListFilterH\001\022F\n\016numeric_filt" + + "er\030\006 \001(\0132,.google.analytics.data.v1alpha" + + ".NumericFilterH\001\022F\n\016between_filter\030\007 \001(\013" + + "2,.google.analytics.data.v1alpha.Between" + + "FilterH\001B\017\n\rone_parameterB\014\n\none_filter\"" + + "e\n\026FunnelResponseMetadata\022K\n\022sampling_me" + + "tadatas\030\001 \003(\0132/.google.analytics.data.v1" + + "alpha.SamplingMetadata\"K\n\020SamplingMetada" + + "ta\022\032\n\022samples_read_count\030\001 \001(\003\022\033\n\023sampli" + + "ng_space_size\030\002 \001(\003*\257\001\n\023UserCriteriaScop" + + "ing\022%\n!USER_CRITERIA_SCOPING_UNSPECIFIED" + + "\020\000\022#\n\037USER_CRITERIA_WITHIN_SAME_EVENT\020\001\022" + + "%\n!USER_CRITERIA_WITHIN_SAME_SESSION\020\002\022%" + + "\n!USER_CRITERIA_ACROSS_ALL_SESSIONS\020\003*|\n" + + "\025UserExclusionDuration\022\'\n#USER_EXCLUSION" + + "_DURATION_UNSPECIFIED\020\000\022\034\n\030USER_EXCLUSIO" + + "N_TEMPORARY\020\001\022\034\n\030USER_EXCLUSION_PERMANEN" + + "T\020\002*\224\001\n\026SessionCriteriaScoping\022(\n$SESSIO" + + "N_CRITERIA_SCOPING_UNSPECIFIED\020\000\022&\n\"SESS" + + "ION_CRITERIA_WITHIN_SAME_EVENT\020\001\022(\n$SESS" + + "ION_CRITERIA_WITHIN_SAME_SESSION\020\002*\210\001\n\030S" + + "essionExclusionDuration\022*\n&SESSION_EXCLU" + + "SION_DURATION_UNSPECIFIED\020\000\022\037\n\033SESSION_E" + + "XCLUSION_TEMPORARY\020\001\022\037\n\033SESSION_EXCLUSIO" + + "N_PERMANENT\020\002*d\n\024EventCriteriaScoping\022&\n" + + "\"EVENT_CRITERIA_SCOPING_UNSPECIFIED\020\000\022$\n" + + " EVENT_CRITERIA_WITHIN_SAME_EVENT\020\001*a\n\026E" + + "ventExclusionDuration\022(\n$EVENT_EXCLUSION" + + "_DURATION_UNSPECIFIED\020\000\022\035\n\031EVENT_EXCLUSI" + + "ON_PERMANENT\020\001*\201\002\n\nMetricType\022\033\n\027METRIC_" + + "TYPE_UNSPECIFIED\020\000\022\020\n\014TYPE_INTEGER\020\001\022\016\n\n" + + "TYPE_FLOAT\020\002\022\020\n\014TYPE_SECONDS\020\004\022\025\n\021TYPE_M" + + "ILLISECONDS\020\005\022\020\n\014TYPE_MINUTES\020\006\022\016\n\nTYPE_" + + "HOURS\020\007\022\021\n\rTYPE_STANDARD\020\010\022\021\n\rTYPE_CURRE" + + "NCY\020\t\022\r\n\tTYPE_FEET\020\n\022\016\n\nTYPE_MILES\020\013\022\017\n\013" + + "TYPE_METERS\020\014\022\023\n\017TYPE_KILOMETERS\020\rB{\n!co" + + "m.google.analytics.data.v1alphaB\021Reporti" + + "ngApiProtoP\001ZAgoogle.golang.org/genproto" + + "/googleapis/analytics/data/v1alpha;datab" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1023,7 +1024,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor, new java.lang.String[] { - "AndGroup", "OrGroup", "NotExpression", "FunnelFilter", "FunnelEventFilter", "Expr", + "AndGroup", + "OrGroup", + "NotExpression", + "FunnelFieldFilter", + "FunnelEventFilter", + "Expr", }); internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor = getDescriptor().getMessageTypes().get(48); @@ -1033,11 +1039,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Expressions", }); - internal_static_google_analytics_data_v1alpha_FunnelFilter_descriptor = + internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor = getDescriptor().getMessageTypes().get(49); - internal_static_google_analytics_data_v1alpha_FunnelFilter_fieldAccessorTable = + internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FunnelFilter_descriptor, + internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor, new java.lang.String[] { "FieldName", "StringFilter", diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java index 894352f3..40f94f8e 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java @@ -662,9 +662,11 @@ public com.google.analytics.data.v1alpha.FunnelBreakdownOrBuilder getFunnelBreak *
    * If specified, next action adds a dimension to the funnel visualization sub
    * report response. This next action dimension expands each funnel step to the
-   * unique values of the next action. For example a breakdown by the
+   * unique values of the next action. For example a next action of the
    * `eventName` dimension will create rows for several events (i.e.
    * `session_start` & `click`) and the total.
+   * Next action only supports `eventName` and most Page / Screen dimensions
+   * like `pageTitle` and `pagePath`.
    * 
* * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; @@ -681,9 +683,11 @@ public boolean hasFunnelNextAction() { *
    * If specified, next action adds a dimension to the funnel visualization sub
    * report response. This next action dimension expands each funnel step to the
-   * unique values of the next action. For example a breakdown by the
+   * unique values of the next action. For example a next action of the
    * `eventName` dimension will create rows for several events (i.e.
    * `session_start` & `click`) and the total.
+   * Next action only supports `eventName` and most Page / Screen dimensions
+   * like `pageTitle` and `pagePath`.
    * 
* * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; @@ -702,9 +706,11 @@ public com.google.analytics.data.v1alpha.FunnelNextAction getFunnelNextAction() *
    * If specified, next action adds a dimension to the funnel visualization sub
    * report response. This next action dimension expands each funnel step to the
-   * unique values of the next action. For example a breakdown by the
+   * unique values of the next action. For example a next action of the
    * `eventName` dimension will create rows for several events (i.e.
    * `session_start` & `click`) and the total.
+   * Next action only supports `eventName` and most Page / Screen dimensions
+   * like `pageTitle` and `pagePath`.
    * 
* * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; @@ -2520,9 +2526,11 @@ public com.google.analytics.data.v1alpha.FunnelBreakdown.Builder getFunnelBreakd *
      * If specified, next action adds a dimension to the funnel visualization sub
      * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a breakdown by the
+     * unique values of the next action. For example a next action of the
      * `eventName` dimension will create rows for several events (i.e.
      * `session_start` & `click`) and the total.
+     * Next action only supports `eventName` and most Page / Screen dimensions
+     * like `pageTitle` and `pagePath`.
      * 
* * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; @@ -2538,9 +2546,11 @@ public boolean hasFunnelNextAction() { *
      * If specified, next action adds a dimension to the funnel visualization sub
      * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a breakdown by the
+     * unique values of the next action. For example a next action of the
      * `eventName` dimension will create rows for several events (i.e.
      * `session_start` & `click`) and the total.
+     * Next action only supports `eventName` and most Page / Screen dimensions
+     * like `pageTitle` and `pagePath`.
      * 
* * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; @@ -2562,9 +2572,11 @@ public com.google.analytics.data.v1alpha.FunnelNextAction getFunnelNextAction() *
      * If specified, next action adds a dimension to the funnel visualization sub
      * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a breakdown by the
+     * unique values of the next action. For example a next action of the
      * `eventName` dimension will create rows for several events (i.e.
      * `session_start` & `click`) and the total.
+     * Next action only supports `eventName` and most Page / Screen dimensions
+     * like `pageTitle` and `pagePath`.
      * 
* * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; @@ -2588,9 +2600,11 @@ public Builder setFunnelNextAction(com.google.analytics.data.v1alpha.FunnelNextA *
      * If specified, next action adds a dimension to the funnel visualization sub
      * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a breakdown by the
+     * unique values of the next action. For example a next action of the
      * `eventName` dimension will create rows for several events (i.e.
      * `session_start` & `click`) and the total.
+     * Next action only supports `eventName` and most Page / Screen dimensions
+     * like `pageTitle` and `pagePath`.
      * 
* * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; @@ -2612,9 +2626,11 @@ public Builder setFunnelNextAction( *
      * If specified, next action adds a dimension to the funnel visualization sub
      * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a breakdown by the
+     * unique values of the next action. For example a next action of the
      * `eventName` dimension will create rows for several events (i.e.
      * `session_start` & `click`) and the total.
+     * Next action only supports `eventName` and most Page / Screen dimensions
+     * like `pageTitle` and `pagePath`.
      * 
* * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; @@ -2642,9 +2658,11 @@ public Builder mergeFunnelNextAction(com.google.analytics.data.v1alpha.FunnelNex *
      * If specified, next action adds a dimension to the funnel visualization sub
      * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a breakdown by the
+     * unique values of the next action. For example a next action of the
      * `eventName` dimension will create rows for several events (i.e.
      * `session_start` & `click`) and the total.
+     * Next action only supports `eventName` and most Page / Screen dimensions
+     * like `pageTitle` and `pagePath`.
      * 
* * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; @@ -2666,9 +2684,11 @@ public Builder clearFunnelNextAction() { *
      * If specified, next action adds a dimension to the funnel visualization sub
      * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a breakdown by the
+     * unique values of the next action. For example a next action of the
      * `eventName` dimension will create rows for several events (i.e.
      * `session_start` & `click`) and the total.
+     * Next action only supports `eventName` and most Page / Screen dimensions
+     * like `pageTitle` and `pagePath`.
      * 
* * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; @@ -2684,9 +2704,11 @@ public com.google.analytics.data.v1alpha.FunnelNextAction.Builder getFunnelNextA *
      * If specified, next action adds a dimension to the funnel visualization sub
      * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a breakdown by the
+     * unique values of the next action. For example a next action of the
      * `eventName` dimension will create rows for several events (i.e.
      * `session_start` & `click`) and the total.
+     * Next action only supports `eventName` and most Page / Screen dimensions
+     * like `pageTitle` and `pagePath`.
      * 
* * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; @@ -2707,9 +2729,11 @@ public com.google.analytics.data.v1alpha.FunnelNextAction.Builder getFunnelNextA *
      * If specified, next action adds a dimension to the funnel visualization sub
      * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a breakdown by the
+     * unique values of the next action. For example a next action of the
      * `eventName` dimension will create rows for several events (i.e.
      * `session_start` & `click`) and the total.
+     * Next action only supports `eventName` and most Page / Screen dimensions
+     * like `pageTitle` and `pagePath`.
      * 
* * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequestOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequestOrBuilder.java index 8bdda226..b95cef5f 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequestOrBuilder.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequestOrBuilder.java @@ -218,9 +218,11 @@ public interface RunFunnelReportRequestOrBuilder *
    * If specified, next action adds a dimension to the funnel visualization sub
    * report response. This next action dimension expands each funnel step to the
-   * unique values of the next action. For example a breakdown by the
+   * unique values of the next action. For example a next action of the
    * `eventName` dimension will create rows for several events (i.e.
    * `session_start` & `click`) and the total.
+   * Next action only supports `eventName` and most Page / Screen dimensions
+   * like `pageTitle` and `pagePath`.
    * 
* * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; @@ -234,9 +236,11 @@ public interface RunFunnelReportRequestOrBuilder *
    * If specified, next action adds a dimension to the funnel visualization sub
    * report response. This next action dimension expands each funnel step to the
-   * unique values of the next action. For example a breakdown by the
+   * unique values of the next action. For example a next action of the
    * `eventName` dimension will create rows for several events (i.e.
    * `session_start` & `click`) and the total.
+   * Next action only supports `eventName` and most Page / Screen dimensions
+   * like `pageTitle` and `pagePath`.
    * 
* * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; @@ -250,9 +254,11 @@ public interface RunFunnelReportRequestOrBuilder *
    * If specified, next action adds a dimension to the funnel visualization sub
    * report response. This next action dimension expands each funnel step to the
-   * unique values of the next action. For example a breakdown by the
+   * unique values of the next action. For example a next action of the
    * `eventName` dimension will create rows for several events (i.e.
    * `session_start` & `click`) and the total.
+   * Next action only supports `eventName` and most Page / Screen dimensions
+   * like `pageTitle` and `pagePath`.
    * 
* * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; diff --git a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto b/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto index 64be8151..f86cf8db 100644 --- a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto +++ b/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto @@ -96,9 +96,12 @@ message RunFunnelReportRequest { // If specified, next action adds a dimension to the funnel visualization sub // report response. This next action dimension expands each funnel step to the - // unique values of the next action. For example a breakdown by the + // unique values of the next action. For example a next action of the // `eventName` dimension will create rows for several events (i.e. // `session_start` & `click`) and the total. + // + // Next action only supports `eventName` and most Page / Screen dimensions + // like `pageTitle` and `pagePath`. FunnelNextAction funnel_next_action = 5; // The funnel visualization type controls the dimensions present in the funnel diff --git a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto b/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto index 6c566e20..9ef9f614 100644 --- a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto +++ b/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto @@ -403,7 +403,10 @@ message FunnelNextAction { // The dimension column added to the funnel visualization sub report response. // The next action dimension returns the next dimension value of this // dimension after the user has attained the `i`th funnel step. - // `nextActionDimension` currently only supports the `eventName` dimension. + // + // `nextActionDimension` currently only supports `eventName` and most Page / + // Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` + // cannot be a dimension expression. Dimension next_action_dimension = 1; // The maximum number of distinct values of the breakdown dimension to return @@ -1026,8 +1029,8 @@ message FunnelFilterExpression { // The FunnelFilterExpression is NOT of `notExpression`. FunnelFilterExpression not_expression = 3; - // A primitive funnel filter. - FunnelFilter funnel_filter = 4; + // A funnel filter for a dimension or metric. + FunnelFieldFilter funnel_field_filter = 4; // Creates a filter that matches events of a single event name. If a // parameter filter expression is specified, only the subset of events that @@ -1044,7 +1047,7 @@ message FunnelFilterExpressionList { } // An expression to filter dimension or metric values. -message FunnelFilter { +message FunnelFieldFilter { // The dimension name or metric name. string field_name = 1; From 14d86842eb1a67b9144fe2c48ac4e6a92689ef69 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 23 Jun 2022 17:32:32 +0200 Subject: [PATCH 132/225] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 (#508) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.12.0` -> `2.13.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/compatibility-slim/2.12.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/2.13.0/confidence-slim/2.12.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v2.13.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​2130-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2120v2130-2022-06-22) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.12.0...v2.13.0) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.35.0 ([#​709](https://togithub.com/googleapis/java-shared-dependencies/issues/709)) ([239f8c3](https://togithub.com/googleapis/java-shared-dependencies/commit/239f8c33a11e233e6af79aee8c7e68cd156a0554)) - update dependency com.google.api-client:google-api-client-bom to v1.35.1 ([#​713](https://togithub.com/googleapis/java-shared-dependencies/issues/713)) ([6559b45](https://togithub.com/googleapis/java-shared-dependencies/commit/6559b45b027dba783a9525d35e32183d78773cbe)) - update dependency com.google.api:api-common to v2.2.1 ([#​710](https://togithub.com/googleapis/java-shared-dependencies/issues/710)) ([650d4c5](https://togithub.com/googleapis/java-shared-dependencies/commit/650d4c5f8c3cfce711257d47280ad773cd2e2414)) - update dependency com.google.errorprone:error_prone_annotations to v2.14.0 ([#​701](https://togithub.com/googleapis/java-shared-dependencies/issues/701)) ([d24730f](https://togithub.com/googleapis/java-shared-dependencies/commit/d24730f78669f80b109e590b903446e5552e3e36)) - update dependency com.google.http-client:google-http-client-bom to v1.42.0 ([#​711](https://togithub.com/googleapis/java-shared-dependencies/issues/711)) ([5168a18](https://togithub.com/googleapis/java-shared-dependencies/commit/5168a181722128d434a0d0d2ab5cc485686bbc78)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.34.0 ([#​708](https://togithub.com/googleapis/java-shared-dependencies/issues/708)) ([620336e](https://togithub.com/googleapis/java-shared-dependencies/commit/620336e6733e2017116e5e8a7b403b183a728bc1)) - update dependency com.google.oauth-client:google-oauth-client-bom to v1.34.1 ([#​712](https://togithub.com/googleapis/java-shared-dependencies/issues/712)) ([a2c18a5](https://togithub.com/googleapis/java-shared-dependencies/commit/a2c18a5bc4152cc9034cec691a29f54a35c38a51)) - update dependency com.google.protobuf:protobuf-bom to v3.21.0 ([#​703](https://togithub.com/googleapis/java-shared-dependencies/issues/703)) ([5f9fe12](https://togithub.com/googleapis/java-shared-dependencies/commit/5f9fe1200b4bdf4c54bf947c21bd3ed02f26f990)) - update dependency com.google.protobuf:protobuf-bom to v3.21.1 ([#​705](https://togithub.com/googleapis/java-shared-dependencies/issues/705)) ([c68edfb](https://togithub.com/googleapis/java-shared-dependencies/commit/c68edfbe7e1993e1112640b867b29aa2fbcf7579)) - update dependency io.grpc:grpc-bom to v1.47.0 ([#​707](https://togithub.com/googleapis/java-shared-dependencies/issues/707)) ([d02918a](https://togithub.com/googleapis/java-shared-dependencies/commit/d02918a0418cd65d1d247f27afb0637f1f8f5666)) - update dependency org.checkerframework:checker-qual to v3.22.1 ([#​706](https://togithub.com/googleapis/java-shared-dependencies/issues/706)) ([545843b](https://togithub.com/googleapis/java-shared-dependencies/commit/545843b492cead230b8cc72a1dae7d4922f33b39)) - update dependency org.checkerframework:checker-qual to v3.22.2 ([#​717](https://togithub.com/googleapis/java-shared-dependencies/issues/717)) ([142852a](https://togithub.com/googleapis/java-shared-dependencies/commit/142852a37140f221197f5c71aed451def353b1e0)) - update gax.version to v2.18.2 ([#​718](https://togithub.com/googleapis/java-shared-dependencies/issues/718)) ([5f8156e](https://togithub.com/googleapis/java-shared-dependencies/commit/5f8156e55c6a07b018a8c5efafa68be781b4288b)) - update google.common-protos.version to v2.9.0 ([#​714](https://togithub.com/googleapis/java-shared-dependencies/issues/714)) ([9e5591e](https://togithub.com/googleapis/java-shared-dependencies/commit/9e5591ec3035350450ecbfebd00e08216433b06c)) - update google.core.version to v2.8.0 ([#​719](https://togithub.com/googleapis/java-shared-dependencies/issues/719)) ([4023c60](https://togithub.com/googleapis/java-shared-dependencies/commit/4023c6063a2c5b5308da531df1a08c90c491965d)) - update iam.version to v1.4.0 ([#​700](https://togithub.com/googleapis/java-shared-dependencies/issues/700)) ([c1097a4](https://togithub.com/googleapis/java-shared-dependencies/commit/c1097a46ab0739b0b7234bc510e4c3d9ce2c2861)) - update iam.version to v1.4.1 ([#​716](https://togithub.com/googleapis/java-shared-dependencies/issues/716)) ([e2dc7c2](https://togithub.com/googleapis/java-shared-dependencies/commit/e2dc7c21c39e007878841e2664d548ec44a72d54))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 719e36db..f11e7acb 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.12.0 + 2.13.0 pom import From d842df1cbc0baa68bf6d9fc227d4ec4d6e519561 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 27 Jun 2022 19:32:14 +0000 Subject: [PATCH 133/225] chore: update dependencies for regapic (#1467) (#509) * chore: update dependencies for regapic * add more dependencies and trigger comment * update goldens * fix indentation * remove duplicate gax-httpjson dependency * remove duplicated dependencies Source-Link: https://github.com/googleapis/synthtool/commit/fa54eb2a78c6ee48613fd33152e2130e949dcbd9 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:1ec28a46062b19135b11178ceee60231e5f5a92dab454e23ae0aab72cd875906 --- .github/.OwlBot.lock.yaml | 4 ++-- .kokoro/common.sh | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a79f0627..f0625e4d 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:2567a120ce90fadb6201999b87d649d9f67459de28815ad239bce9ebfaa18a74 -# created: 2022-05-19T15:12:45.278246753Z + digest: sha256:1ec28a46062b19135b11178ceee60231e5f5a92dab454e23ae0aab72cd875906 +# created: 2022-06-27T15:01:06.405564326Z diff --git a/.kokoro/common.sh b/.kokoro/common.sh index ace89f45..f8f957af 100644 --- a/.kokoro/common.sh +++ b/.kokoro/common.sh @@ -55,4 +55,6 @@ function retry_with_backoff { ## Helper functionss function now() { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n'; } function msg() { println "$*" >&2; } -function println() { printf '%s\n' "$(now) $*"; } \ No newline at end of file +function println() { printf '%s\n' "$(now) $*"; } + +## Helper comment to trigger updated repo dependency release \ No newline at end of file From 99a8080cc02a10a682fd2472764ad4098ba808cf Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 30 Jun 2022 02:20:15 +0000 Subject: [PATCH 134/225] chore: Disable CLIRR checks on releas (#1474) (#513) Source-Link: https://github.com/googleapis/synthtool/commit/7a220e27993a25ab3cda26510d5619d97b6952a9 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:6d4e3a15c62cfdcb823d60e16da7521e7c6fc00eba07c8ff12e4de9924a57d28 --- .github/.OwlBot.lock.yaml | 4 ++-- .kokoro/release/stage.sh | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index f0625e4d..a454a61e 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:1ec28a46062b19135b11178ceee60231e5f5a92dab454e23ae0aab72cd875906 -# created: 2022-06-27T15:01:06.405564326Z + digest: sha256:6d4e3a15c62cfdcb823d60e16da7521e7c6fc00eba07c8ff12e4de9924a57d28 +# created: 2022-06-29T23:17:33.110417661Z diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh index 77dc4e8f..1dba8de1 100755 --- a/.kokoro/release/stage.sh +++ b/.kokoro/release/stage.sh @@ -32,6 +32,7 @@ retry_with_backoff 3 10 \ mvn clean deploy -B \ --settings ${MAVEN_SETTINGS_FILE} \ -DskipTests=true \ + -Dclirr.skip=true \ -DperformRelease=true \ -Dgpg.executable=gpg \ -Dgpg.passphrase=${GPG_PASSPHRASE} \ @@ -42,4 +43,4 @@ then mvn nexus-staging:release -B \ -DperformRelease=true \ --settings=settings.xml -fi \ No newline at end of file +fi From 8fc1e1373aa2e2648552735b0b6acfeacc72a2ac Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Fri, 1 Jul 2022 10:24:23 -0400 Subject: [PATCH 135/225] ci: removing clirr from required checks (#512) Making CLIRR not required. The version bumps are now controlled by the Release Please and OwlBot. The CL authors create appropriate change description to control major version bumps. --- .github/sync-repo-settings.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 8c84835d..4543e6d2 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -11,7 +11,6 @@ branchProtectionRules: - dependencies (8) - dependencies (11) - lint - - clirr - units (8) - units (11) - 'Kokoro - Test: Integration' @@ -26,7 +25,6 @@ branchProtectionRules: - dependencies (8) - dependencies (11) - lint - - clirr - units (7) - units (8) - units (11) From a136c54c08602ad0a2bd73dd99083fd0d2bd37bb Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 17:30:10 +0000 Subject: [PATCH 136/225] chore(main): release 0.14.0 (#507) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit :robot: I have created a release *beep* *boop* --- ## [0.14.0](https://github.com/googleapis/java-analytics-data/compare/v0.13.0...v0.14.0) (2022-07-01) ### ⚠ BREAKING CHANGES * rename the `funnel_filter` field of the `FunnelFilterExpression` type to `funnel_field_filter` * rename the type `FunnelFilter` to `FunnelFieldFilter` (#505) ### Features * Add Java REST transport to analytics, servicecontrol, servicemanagement, serviceusage and langauge APIs ([c864df4](https://github.com/googleapis/java-analytics-data/commit/c864df4d54144195c83948ff695c6c8b671f5807)) ### Bug Fixes * rename the `funnel_filter` field of the `FunnelFilterExpression` type to `funnel_field_filter` ([c864df4](https://github.com/googleapis/java-analytics-data/commit/c864df4d54144195c83948ff695c6c8b671f5807)) * rename the type `FunnelFilter` to `FunnelFieldFilter` ([#505](https://github.com/googleapis/java-analytics-data/issues/505)) ([c864df4](https://github.com/googleapis/java-analytics-data/commit/c864df4d54144195c83948ff695c6c8b671f5807)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#508](https://github.com/googleapis/java-analytics-data/issues/508)) ([14d8684](https://github.com/googleapis/java-analytics-data/commit/14d86842eb1a67b9144fe2c48ac4e6a92689ef69)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 23 +++++++++++++++++++++ google-analytics-data-bom/pom.xml | 12 +++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 +++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 ++++----- 10 files changed, 51 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index abe5028d..9d2a1b69 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,28 @@ # Changelog +## [0.14.0](https://github.com/googleapis/java-analytics-data/compare/v0.13.0...v0.14.0) (2022-07-01) + + +### ⚠ BREAKING CHANGES + +* rename the `funnel_filter` field of the `FunnelFilterExpression` type to `funnel_field_filter` +* rename the type `FunnelFilter` to `FunnelFieldFilter` (#505) + +### Features + +* Add Java REST transport to analytics, servicecontrol, servicemanagement, serviceusage and langauge APIs ([c864df4](https://github.com/googleapis/java-analytics-data/commit/c864df4d54144195c83948ff695c6c8b671f5807)) + + +### Bug Fixes + +* rename the `funnel_filter` field of the `FunnelFilterExpression` type to `funnel_field_filter` ([c864df4](https://github.com/googleapis/java-analytics-data/commit/c864df4d54144195c83948ff695c6c8b671f5807)) +* rename the type `FunnelFilter` to `FunnelFieldFilter` ([#505](https://github.com/googleapis/java-analytics-data/issues/505)) ([c864df4](https://github.com/googleapis/java-analytics-data/commit/c864df4d54144195c83948ff695c6c8b671f5807)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#508](https://github.com/googleapis/java-analytics-data/issues/508)) ([14d8684](https://github.com/googleapis/java-analytics-data/commit/14d86842eb1a67b9144fe2c48ac4e6a92689ef69)) + ## [0.13.0](https://github.com/googleapis/java-analytics-data/compare/v0.12.0...v0.13.0) (2022-05-19) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 5eda5b70..9452f7c0 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.13.1-SNAPSHOT + 0.14.0 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.13.1-SNAPSHOT + 0.14.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.13.1-SNAPSHOT + 0.14.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.13.1-SNAPSHOT + 0.14.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.13.1-SNAPSHOT + 0.14.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.13.1-SNAPSHOT + 0.14.0
diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index fbe83db3..15a69818 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.13.1-SNAPSHOT + 0.14.0 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.13.1-SNAPSHOT + 0.14.0 google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 96fd065a..be393852 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.13.1-SNAPSHOT + 0.14.0 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.13.1-SNAPSHOT + 0.14.0 diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 66e9377b..38203975 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.13.1-SNAPSHOT + 0.14.0 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.13.1-SNAPSHOT + 0.14.0 diff --git a/pom.xml b/pom.xml index f11e7acb..dc121003 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.13.1-SNAPSHOT + 0.14.0 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.13.1-SNAPSHOT + 0.14.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.13.1-SNAPSHOT + 0.14.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.13.1-SNAPSHOT + 0.14.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.13.1-SNAPSHOT + 0.14.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.13.1-SNAPSHOT + 0.14.0 diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index d4fb8d25..1e6444f5 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.13.1-SNAPSHOT + 0.14.0 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.13.1-SNAPSHOT + 0.14.0 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index fb238932..7a3a1744 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.13.1-SNAPSHOT + 0.14.0 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.13.1-SNAPSHOT + 0.14.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 32d4179d..c46e165f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.13.1-SNAPSHOT + 0.14.0 diff --git a/versions.txt b/versions.txt index 0c2dfc84..9b2f1861 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.13.0:0.13.1-SNAPSHOT -grpc-google-analytics-data-v1beta:0.13.0:0.13.1-SNAPSHOT -proto-google-analytics-data-v1beta:0.13.0:0.13.1-SNAPSHOT -proto-google-analytics-data-v1alpha:0.13.0:0.13.1-SNAPSHOT -grpc-google-analytics-data-v1alpha:0.13.0:0.13.1-SNAPSHOT +google-analytics-data:0.14.0:0.14.0 +grpc-google-analytics-data-v1beta:0.14.0:0.14.0 +proto-google-analytics-data-v1beta:0.14.0:0.14.0 +proto-google-analytics-data-v1alpha:0.14.0:0.14.0 +grpc-google-analytics-data-v1alpha:0.14.0:0.14.0 From c92cc6c10f792d83a6278c2bfbcc39311a4cefa1 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 17:52:20 +0000 Subject: [PATCH 137/225] chore(main): release 0.14.1-SNAPSHOT (#514) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 9452f7c0..332f492f 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.0 + 0.14.1-SNAPSHOT pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.0 + 0.14.1-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.0 + 0.14.1-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.0 + 0.14.1-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.0 + 0.14.1-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.0 + 0.14.1-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 15a69818..bda1cbc9 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.0 + 0.14.1-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.0 + 0.14.1-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index be393852..ae5128a7 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.0 + 0.14.1-SNAPSHOT grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.0 + 0.14.1-SNAPSHOT diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 38203975..0d718ebd 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.0 + 0.14.1-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.0 + 0.14.1-SNAPSHOT diff --git a/pom.xml b/pom.xml index dc121003..9f50b250 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.0 + 0.14.1-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.0 + 0.14.1-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.0 + 0.14.1-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.0 + 0.14.1-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.0 + 0.14.1-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.0 + 0.14.1-SNAPSHOT diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index 1e6444f5..7f352770 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.0 + 0.14.1-SNAPSHOT proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.0 + 0.14.1-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 7a3a1744..46d7adfd 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.0 + 0.14.1-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.0 + 0.14.1-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c46e165f..a35cfe4f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.0 + 0.14.1-SNAPSHOT diff --git a/versions.txt b/versions.txt index 9b2f1861..eef7a5fa 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.0:0.14.0 -grpc-google-analytics-data-v1beta:0.14.0:0.14.0 -proto-google-analytics-data-v1beta:0.14.0:0.14.0 -proto-google-analytics-data-v1alpha:0.14.0:0.14.0 -grpc-google-analytics-data-v1alpha:0.14.0:0.14.0 +google-analytics-data:0.14.0:0.14.1-SNAPSHOT +grpc-google-analytics-data-v1beta:0.14.0:0.14.1-SNAPSHOT +proto-google-analytics-data-v1beta:0.14.0:0.14.1-SNAPSHOT +proto-google-analytics-data-v1alpha:0.14.0:0.14.1-SNAPSHOT +grpc-google-analytics-data-v1alpha:0.14.0:0.14.1-SNAPSHOT From 1ba0b233425dbbc69e102ed6d25eb0aafab9041c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Jul 2022 23:06:12 +0200 Subject: [PATCH 138/225] deps: update dependency com.google.auth:google-auth-library-oauth2-http to v1.8.0 (#511) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.auth:google-auth-library-oauth2-http](https://togithub.com/googleapis/google-auth-library-java) | `1.7.0` -> `1.8.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.8.0/compatibility-slim/1.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.8.0/confidence-slim/1.7.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/google-auth-library-java ### [`v1.8.0`](https://togithub.com/googleapis/google-auth-library-java/blob/HEAD/CHANGELOG.md#​180-httpsgithubcomgoogleapisgoogle-auth-library-javacomparev170v180-2022-06-27) [Compare Source](https://togithub.com/googleapis/google-auth-library-java/compare/v1.7.0...v1.8.0) ##### Features - add build scripts for native image testing in Java 17 ([#​1440](https://togithub.com/googleapis/google-auth-library-java/issues/1440)) ([#​923](https://togithub.com/googleapis/google-auth-library-java/issues/923)) ([bbb51ce](https://togithub.com/googleapis/google-auth-library-java/commit/bbb51ce7a9265cb991739cd90e1ccf65675d05dc)) - Adds Pluggable Auth support (WIF) ([#​908](https://togithub.com/googleapis/google-auth-library-java/issues/908)) ([c3e8d16](https://togithub.com/googleapis/google-auth-library-java/commit/c3e8d169704943735c6b3df7bd0187f04fdd9aa5)) ##### Documentation - updates README for Pluggable Auth ([#​921](https://togithub.com/googleapis/google-auth-library-java/issues/921)) ([23716b8](https://togithub.com/googleapis/google-auth-library-java/commit/23716b82fb3000f5210bb5604127aad7ef52cb76))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 88a7b3a0..c7493741 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.auth google-auth-library-oauth2-http - 1.7.0 + 1.8.0 From 184d29b7328b04eea775b58389aebc486aa25f26 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 21:30:15 +0000 Subject: [PATCH 139/225] chore(main): release 0.14.1 (#517) :robot: I have created a release *beep* *boop* --- ## [0.14.1](https://github.com/googleapis/java-analytics-data/compare/v0.14.0...v0.14.1) (2022-07-01) ### Dependencies * update dependency com.google.auth:google-auth-library-oauth2-http to v1.8.0 ([#511](https://github.com/googleapis/java-analytics-data/issues/511)) ([1ba0b23](https://github.com/googleapis/java-analytics-data/commit/1ba0b233425dbbc69e102ed6d25eb0aafab9041c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ README.md | 6 +++--- google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 11 files changed, 38 insertions(+), 31 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9d2a1b69..2a439ee2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.14.1](https://github.com/googleapis/java-analytics-data/compare/v0.14.0...v0.14.1) (2022-07-01) + + +### Dependencies + +* update dependency com.google.auth:google-auth-library-oauth2-http to v1.8.0 ([#511](https://github.com/googleapis/java-analytics-data/issues/511)) ([1ba0b23](https://github.com/googleapis/java-analytics-data/commit/1ba0b233425dbbc69e102ed6d25eb0aafab9041c)) + ## [0.14.0](https://github.com/googleapis/java-analytics-data/compare/v0.13.0...v0.14.0) (2022-07-01) diff --git a/README.md b/README.md index 29810c23..e986b1a8 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.13.0 + 0.14.0 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.13.0' +implementation 'com.google.analytics:google-analytics-data:0.14.0' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.13.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.14.0" ``` ## Authentication diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 332f492f..5b2bbfa7 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.1-SNAPSHOT + 0.14.1 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.1-SNAPSHOT + 0.14.1 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.1-SNAPSHOT + 0.14.1 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.1-SNAPSHOT + 0.14.1 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.1-SNAPSHOT + 0.14.1 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.1-SNAPSHOT + 0.14.1
diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index bda1cbc9..fd5789e3 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.1-SNAPSHOT + 0.14.1 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.1-SNAPSHOT + 0.14.1 google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index ae5128a7..8a876d56 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.1-SNAPSHOT + 0.14.1 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.1-SNAPSHOT + 0.14.1 diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 0d718ebd..734ab5c3 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.1-SNAPSHOT + 0.14.1 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.1-SNAPSHOT + 0.14.1 diff --git a/pom.xml b/pom.xml index 9f50b250..b1053c3f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.1-SNAPSHOT + 0.14.1 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.1-SNAPSHOT + 0.14.1 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.1-SNAPSHOT + 0.14.1 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.1-SNAPSHOT + 0.14.1 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.1-SNAPSHOT + 0.14.1 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.1-SNAPSHOT + 0.14.1 diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index 7f352770..fc419a8d 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.1-SNAPSHOT + 0.14.1 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.1-SNAPSHOT + 0.14.1 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 46d7adfd..ff32a334 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.1-SNAPSHOT + 0.14.1 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.1-SNAPSHOT + 0.14.1 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index a35cfe4f..9f9a619a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.1-SNAPSHOT + 0.14.1 diff --git a/versions.txt b/versions.txt index eef7a5fa..90ad2c78 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.0:0.14.1-SNAPSHOT -grpc-google-analytics-data-v1beta:0.14.0:0.14.1-SNAPSHOT -proto-google-analytics-data-v1beta:0.14.0:0.14.1-SNAPSHOT -proto-google-analytics-data-v1alpha:0.14.0:0.14.1-SNAPSHOT -grpc-google-analytics-data-v1alpha:0.14.0:0.14.1-SNAPSHOT +google-analytics-data:0.14.1:0.14.1 +grpc-google-analytics-data-v1beta:0.14.1:0.14.1 +proto-google-analytics-data-v1beta:0.14.1:0.14.1 +proto-google-analytics-data-v1alpha:0.14.1:0.14.1 +grpc-google-analytics-data-v1alpha:0.14.1:0.14.1 From c4decec61ac4c2e3a22972e20aed885a0e1b8322 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 21:46:14 +0000 Subject: [PATCH 140/225] chore(main): release 0.14.2-SNAPSHOT (#518) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 5b2bbfa7..c50cd582 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.1 + 0.14.2-SNAPSHOT pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.1 + 0.14.2-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.1 + 0.14.2-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.1 + 0.14.2-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.1 + 0.14.2-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.1 + 0.14.2-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index fd5789e3..eac6478e 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.1 + 0.14.2-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.1 + 0.14.2-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 8a876d56..39509fb7 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.1 + 0.14.2-SNAPSHOT grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.1 + 0.14.2-SNAPSHOT diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 734ab5c3..4c1de4c8 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.1 + 0.14.2-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.1 + 0.14.2-SNAPSHOT diff --git a/pom.xml b/pom.xml index b1053c3f..32eb00f9 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.1 + 0.14.2-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.1 + 0.14.2-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.1 + 0.14.2-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.1 + 0.14.2-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.1 + 0.14.2-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.1 + 0.14.2-SNAPSHOT diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index fc419a8d..ddc0c45a 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.1 + 0.14.2-SNAPSHOT proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.1 + 0.14.2-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index ff32a334..6603313a 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.1 + 0.14.2-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.1 + 0.14.2-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 9f9a619a..f2e74885 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.1 + 0.14.2-SNAPSHOT diff --git a/versions.txt b/versions.txt index 90ad2c78..db66ee8e 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.1:0.14.1 -grpc-google-analytics-data-v1beta:0.14.1:0.14.1 -proto-google-analytics-data-v1beta:0.14.1:0.14.1 -proto-google-analytics-data-v1alpha:0.14.1:0.14.1 -grpc-google-analytics-data-v1alpha:0.14.1:0.14.1 +google-analytics-data:0.14.1:0.14.2-SNAPSHOT +grpc-google-analytics-data-v1beta:0.14.1:0.14.2-SNAPSHOT +proto-google-analytics-data-v1beta:0.14.1:0.14.2-SNAPSHOT +proto-google-analytics-data-v1alpha:0.14.1:0.14.2-SNAPSHOT +grpc-google-analytics-data-v1alpha:0.14.1:0.14.2-SNAPSHOT From b269e0092aee6843ad6554ed63ffdd4bc7860ede Mon Sep 17 00:00:00 2001 From: Mridula <66699525+mpeddada1@users.noreply.github.com> Date: Fri, 8 Jul 2022 15:58:19 -0400 Subject: [PATCH 141/225] chore: add native image checks as required (#510) --- .github/sync-repo-settings.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml index 4543e6d2..01f6272e 100644 --- a/.github/sync-repo-settings.yaml +++ b/.github/sync-repo-settings.yaml @@ -16,6 +16,8 @@ branchProtectionRules: - 'Kokoro - Test: Integration' - cla/google - OwlBot Post Processor + - 'Kokoro - Test: Java GraalVM Native Image' + - 'Kokoro - Test: Java 17 GraalVM Native Image' - pattern: java7 isAdminEnforced: true requiredApprovingReviewCount: 1 From a1f2fa9147bfaae3efdeb1e4c524f463dc4285ae Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 8 Jul 2022 21:58:34 +0200 Subject: [PATCH 142/225] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.1 (#515) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.1 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- google-analytics-data-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index c50cd582..f4111d02 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.0 + 1.5.1 Google Analytics Data BOM diff --git a/pom.xml b/pom.xml index 32eb00f9..b3e56bad 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.0 + 1.5.1 From ae843f541ea6fd201e9463d739f062647a172e02 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 8 Jul 2022 21:59:02 +0200 Subject: [PATCH 143/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.14.0 (#516) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.analytics:google-analytics-data to v0.14.0 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index c7493741..45e814c2 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.13.0 + 0.14.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index ff7b0308..6931515c 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.13.0 + 0.14.0 com.google.auth From 9dc897c50f186c47cc73e685e33b973f00149769 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 8 Jul 2022 15:59:22 -0400 Subject: [PATCH 144/225] chore: fix minor typos in README and pom templates (#1479) (#519) Source-Link: https://github.com/googleapis/synthtool/commit/18d4e9bb50d0dfb3291de18c51b96a2c835e2446 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:f8374176dc59291f05dd3fec927a9da2cda687a9ef4de32e77f699a2be12ab45 Co-authored-by: Owl Bot --- .github/.OwlBot.lock.yaml | 4 ++-- README.md | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index a454a61e..1b645c01 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:6d4e3a15c62cfdcb823d60e16da7521e7c6fc00eba07c8ff12e4de9924a57d28 -# created: 2022-06-29T23:17:33.110417661Z + digest: sha256:f8374176dc59291f05dd3fec927a9da2cda687a9ef4de32e77f699a2be12ab45 +# created: 2022-07-07T14:26:11.880812641Z diff --git a/README.md b/README.md index e986b1a8..d4078b1d 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.14.0 + 0.14.1 ``` -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.14.0' +implementation 'com.google.analytics:google-analytics-data:0.14.1' ``` -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.14.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.14.1" ``` ## Authentication From 17f34e2bfeb0d02a4259bec2004c6489f75f6a94 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 8 Jul 2022 22:00:00 +0200 Subject: [PATCH 145/225] chore(deps): update dependency com.google.cloud:libraries-bom to v26 (#520) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f2e74885..1c7f51a1 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 25.4.0 + 26.0.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 6931515c..164a637b 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 25.4.0 + 26.0.0 pom import From 8eb30ca273b009e05e64b05f83a736a2113b8151 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 13 Jul 2022 19:32:20 +0000 Subject: [PATCH 146/225] fix: enable longpaths support for windows test (#1485) (#521) Source-Link: https://github.com/googleapis/synthtool/commit/73365620c41d96e97ff474b2c4d39b890ad51967 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00 --- .github/.OwlBot.lock.yaml | 4 ++-- .github/workflows/ci.yaml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 1b645c01..de9173d9 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:f8374176dc59291f05dd3fec927a9da2cda687a9ef4de32e77f699a2be12ab45 -# created: 2022-07-07T14:26:11.880812641Z + digest: sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00 +# created: 2022-07-13T13:53:17.676447481Z diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 83ef7f9c..e3bb26e3 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -39,6 +39,8 @@ jobs: windows: runs-on: windows-latest steps: + - name: Support longpaths + run: git config --system core.longpaths true - uses: actions/checkout@v3 - uses: actions/setup-java@v3 with: From 7ba53efe4dbb50f9a64282dd00e803f2855fe265 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 14 Jul 2022 14:08:23 +0000 Subject: [PATCH 147/225] chore(main): release 0.14.2 (#522) :robot: I have created a release *beep* *boop* --- ## [0.14.2](https://github.com/googleapis/java-analytics-data/compare/v0.14.1...v0.14.2) (2022-07-13) ### Bug Fixes * enable longpaths support for windows test ([#1485](https://github.com/googleapis/java-analytics-data/issues/1485)) ([#521](https://github.com/googleapis/java-analytics-data/issues/521)) ([8eb30ca](https://github.com/googleapis/java-analytics-data/commit/8eb30ca273b009e05e64b05f83a736a2113b8151)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2a439ee2..42d9f4e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.14.2](https://github.com/googleapis/java-analytics-data/compare/v0.14.1...v0.14.2) (2022-07-13) + + +### Bug Fixes + +* enable longpaths support for windows test ([#1485](https://github.com/googleapis/java-analytics-data/issues/1485)) ([#521](https://github.com/googleapis/java-analytics-data/issues/521)) ([8eb30ca](https://github.com/googleapis/java-analytics-data/commit/8eb30ca273b009e05e64b05f83a736a2113b8151)) + ## [0.14.1](https://github.com/googleapis/java-analytics-data/compare/v0.14.0...v0.14.1) (2022-07-01) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index f4111d02..12750da4 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.2-SNAPSHOT + 0.14.2 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.2-SNAPSHOT + 0.14.2 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.2-SNAPSHOT + 0.14.2 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.2-SNAPSHOT + 0.14.2 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.2-SNAPSHOT + 0.14.2 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.2-SNAPSHOT + 0.14.2 diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index eac6478e..95c81716 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.2-SNAPSHOT + 0.14.2 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.2-SNAPSHOT + 0.14.2 google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 39509fb7..9973d458 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.2-SNAPSHOT + 0.14.2 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.2-SNAPSHOT + 0.14.2 diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 4c1de4c8..894482b7 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.2-SNAPSHOT + 0.14.2 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.2-SNAPSHOT + 0.14.2 diff --git a/pom.xml b/pom.xml index b3e56bad..57b58be1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.2-SNAPSHOT + 0.14.2 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.2-SNAPSHOT + 0.14.2 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.2-SNAPSHOT + 0.14.2 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.2-SNAPSHOT + 0.14.2 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.2-SNAPSHOT + 0.14.2 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.2-SNAPSHOT + 0.14.2 diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index ddc0c45a..89ca474c 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.2-SNAPSHOT + 0.14.2 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.2-SNAPSHOT + 0.14.2 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 6603313a..70ec9281 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.2-SNAPSHOT + 0.14.2 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.2-SNAPSHOT + 0.14.2 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 1c7f51a1..647d961d 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.2-SNAPSHOT + 0.14.2 diff --git a/versions.txt b/versions.txt index db66ee8e..57e92131 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.1:0.14.2-SNAPSHOT -grpc-google-analytics-data-v1beta:0.14.1:0.14.2-SNAPSHOT -proto-google-analytics-data-v1beta:0.14.1:0.14.2-SNAPSHOT -proto-google-analytics-data-v1alpha:0.14.1:0.14.2-SNAPSHOT -grpc-google-analytics-data-v1alpha:0.14.1:0.14.2-SNAPSHOT +google-analytics-data:0.14.2:0.14.2 +grpc-google-analytics-data-v1beta:0.14.2:0.14.2 +proto-google-analytics-data-v1beta:0.14.2:0.14.2 +proto-google-analytics-data-v1alpha:0.14.2:0.14.2 +grpc-google-analytics-data-v1alpha:0.14.2:0.14.2 From 94c015dc36960093476eed77e53dc1fea0c0f693 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 15 Jul 2022 19:00:13 +0200 Subject: [PATCH 148/225] deps: update dependency com.google.auth:google-auth-library-oauth2-http to v1.8.1 (#525) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.auth:google-auth-library-oauth2-http](https://togithub.com/googleapis/google-auth-library-java) | `1.8.0` -> `1.8.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.8.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.8.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.8.1/compatibility-slim/1.8.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.8.1/confidence-slim/1.8.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/google-auth-library-java ### [`v1.8.1`](https://togithub.com/googleapis/google-auth-library-java/blob/HEAD/CHANGELOG.md#​181-httpsgithubcomgoogleapisgoogle-auth-library-javacomparev180v181-2022-07-13) [Compare Source](https://togithub.com/googleapis/google-auth-library-java/compare/v1.8.0...v1.8.1) ##### Bug Fixes - enable longpaths support for windows test ([#​1485](https://togithub.com/googleapis/google-auth-library-java/issues/1485)) ([#​943](https://togithub.com/googleapis/google-auth-library-java/issues/943)) ([c21ec6c](https://togithub.com/googleapis/google-auth-library-java/commit/c21ec6c952b8bb8fb8bc2e2f1b260beb330a3cd2))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 45e814c2..19d41236 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.auth google-auth-library-oauth2-http - 1.8.0 + 1.8.1 From f93ad5b1d80d265233d975241848ad2bbc0b8dd6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 18 Jul 2022 17:02:25 +0200 Subject: [PATCH 149/225] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.0 (#526) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) ([source](https://togithub.com/apache/maven-project-info-reports-plugin)) | `3.3.0` -> `3.4.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/compatibility-slim/3.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/confidence-slim/3.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 57b58be1..c2daddc4 100644 --- a/pom.xml +++ b/pom.xml @@ -125,7 +125,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.3.0 + 3.4.0 From 586b978d0b7508b4ac99a6276f6e57247363a648 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 19 Jul 2022 13:36:33 +0000 Subject: [PATCH 150/225] ci: update template so GAPIC_AUTO repos do not require special approvers for Java code (#1494) (#527) Source-Link: https://github.com/googleapis/synthtool/commit/da89e53878d92467eb648c610e64f94a614915cc Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:04f254abfe5f47fe73ae6f91d68d55c3b76e722a4943066c3bb0ce03573b4ad9 --- .github/.OwlBot.lock.yaml | 4 ++-- .github/CODEOWNERS | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index de9173d9..6610882f 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:d4b80feffe1579818cdc39466152e9de95789a193408506cd4a1ffbe8804dc00 -# created: 2022-07-13T13:53:17.676447481Z + digest: sha256:04f254abfe5f47fe73ae6f91d68d55c3b76e722a4943066c3bb0ce03573b4ad9 +# created: 2022-07-18T21:44:23.94208526Z diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 4f568975..64d122b8 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -6,7 +6,7 @@ # 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 From de2295490c48151c9e54d1be15ae889df50219aa Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 Jul 2022 19:20:28 +0200 Subject: [PATCH 151/225] build(deps): update dependency org.apache.maven.plugins:maven-deploy-plugin to v3 (#528) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-deploy-plugin](https://maven.apache.org/plugins/) | `2.8.2` -> `3.0.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/compatibility-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-deploy-plugin/3.0.0/confidence-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/pom.xml b/samples/pom.xml index 8b9749bf..379bc10c 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -38,7 +38,7 @@ org.apache.maven.plugins maven-deploy-plugin - 2.8.2 + 3.0.0 true From 628c10131840b3d87744551d7bbffa83755044c5 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 26 Jul 2022 19:20:28 +0000 Subject: [PATCH 152/225] chore(bazel): update protobuf to v3.21.3 (#529) - [ ] Regenerate this pull request now. chore(bazel): update gax-java to 2.18.4 PiperOrigin-RevId: 463115700 Source-Link: https://github.com/googleapis/googleapis/commit/52130a9c3c289e6bc4ab1784bdde6081abdf3dd9 Source-Link: https://github.com/googleapis/googleapis-gen/commit/6a4d9d9bb3afb20b0f5fa4f5d9f6740b1d0eb19a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNmE0ZDlkOWJiM2FmYjIwYjBmNWZhNGY1ZDlmNjc0MGIxZDBlYjE5YSJ9 --- .../java/com/google/analytics/data/v1beta/MetricMetadata.java | 4 ++-- .../src/main/java/com/google/analytics/data/v1beta/Pivot.java | 4 ++-- .../com/google/analytics/data/v1beta/ResponseMetaData.java | 4 ++-- .../analytics/data/v1beta/RunRealtimeReportRequest.java | 4 ++-- .../com/google/analytics/data/v1beta/RunReportRequest.java | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) 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 index f2baaf5b..08239153 100644 --- 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 @@ -2410,8 +2410,8 @@ public int getBlockedReasonsValue(int index) { * 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. + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for blockedReasons to set. * @return This builder for chaining. */ public Builder setBlockedReasonsValue(int index, int value) { 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 index 9917b4f6..7cc8e955 100644 --- 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 @@ -1875,8 +1875,8 @@ public int getMetricAggregationsValue(int index) { * 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. + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for metricAggregations to set. * @return This builder for chaining. */ public Builder setMetricAggregationsValue(int index, int value) { 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 index d04a9ce2..a1a6e56a 100644 --- 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 @@ -1539,8 +1539,8 @@ public int getRestrictedMetricTypesValue(int index) { * 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. + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for restrictedMetricTypes to set. * @return This builder for chaining. */ public Builder setRestrictedMetricTypesValue(int index, int value) { 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 index 2fdc5925..e6acee8e 100644 --- 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 @@ -3016,8 +3016,8 @@ public int getMetricAggregationsValue(int index) { * 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. + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for metricAggregations to set. * @return This builder for chaining. */ public Builder setMetricAggregationsValue(int index, int value) { 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 index a9921b3f..8e358f9e 100644 --- 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 @@ -3795,8 +3795,8 @@ public int getMetricAggregationsValue(int index) { * 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. + * @param index The index to set the value at. + * @param value The enum numeric value on the wire for metricAggregations to set. * @return This builder for chaining. */ public Builder setMetricAggregationsValue(int index, int value) { From 8defeeaf619a1c630bb38019855c05e6f7a6daf5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 21:00:35 +0200 Subject: [PATCH 153/225] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.5.3 (#531) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.5.1` -> `1.5.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/compatibility-slim/1.5.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.5.3/confidence-slim/1.5.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.5.3`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​153-httpsgithubcomgoogleapisjava-shared-configcomparev152v153-2022-07-27) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.5.2...v1.5.3) ##### Dependencies - update dependency org.junit.vintage:junit-vintage-engine to v5.9.0 ([#​497](https://togithub.com/googleapis/java-shared-config/issues/497)) ([1fc6ab4](https://togithub.com/googleapis/java-shared-config/commit/1fc6ab445624cd4f9c8b161d109f346a9e5ed09a)) - Update doclet to latest version 1.6.0 ([38fb7c3](https://togithub.com/googleapis/java-shared-config/commit/38fb7c3957fb6c9b2da10f9e463cc93a8b80a3a4)) ### [`v1.5.2`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​152-httpsgithubcomgoogleapisjava-shared-configcomparev151v152-2022-07-25) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.5.1...v1.5.2) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v10 ([#​435](https://togithub.com/googleapis/java-shared-config/issues/435)) ([bfc8ce1](https://togithub.com/googleapis/java-shared-config/commit/bfc8ce1deca6292147d002d3afe22a09840aa5d6)) - update dependency org.graalvm.buildtools:junit-platform-native to v0.9.13 ([#​488](https://togithub.com/googleapis/java-shared-config/issues/488)) ([39b91ee](https://togithub.com/googleapis/java-shared-config/commit/39b91ee1283f0a5fbbe63e8bfd1ec97ab4ab377e)) - update dependency org.graalvm.buildtools:native-maven-plugin to v0.9.13 ([#​489](https://togithub.com/googleapis/java-shared-config/issues/489)) ([cc3bcfa](https://togithub.com/googleapis/java-shared-config/commit/cc3bcfa2d6717441a8d5b5048fa78c2cf7aabf2b))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- google-analytics-data-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 12750da4..a61a83df 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.5.1 + 1.5.3 Google Analytics Data BOM diff --git a/pom.xml b/pom.xml index c2daddc4..40258a88 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.5.1 + 1.5.3 From e5137c0393fc8f9a5cd5b37df038c6545ad4566e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 21:02:17 +0200 Subject: [PATCH 154/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.14.1 (#532) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.14.0` -> `0.14.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.1/compatibility-slim/0.14.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.1/confidence-slim/0.14.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-analytics-data ### [`v0.14.1`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0141-httpsgithubcomgoogleapisjava-analytics-datacomparev0140v0141-2022-07-01) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.14.0...v0.14.1) ##### Dependencies - update dependency com.google.auth:google-auth-library-oauth2-http to v1.8.0 ([#​511](https://togithub.com/googleapis/java-analytics-data/issues/511)) ([1ba0b23](https://togithub.com/googleapis/java-analytics-data/commit/1ba0b233425dbbc69e102ed6d25eb0aafab9041c))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 19d41236..4cd52b8b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.14.0 + 0.14.1 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 164a637b..5bcc8c01 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.0 + 0.14.1 com.google.auth From 84d1523bfbc315307aeb2b886d88ad863c770368 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 2 Aug 2022 21:18:33 +0200 Subject: [PATCH 155/225] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3 (#530) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `2.13.0` -> `3.0.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/compatibility-slim/2.13.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.1/confidence-slim/2.13.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v3.0.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​301-httpsgithubcomgoogleapisjava-shared-dependenciescomparev300v301-2022-08-02) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.0...v3.0.1) ##### Dependencies - update dependency com.google.code.gson:gson to v2.9.1 ([#​766](https://togithub.com/googleapis/java-shared-dependencies/issues/766)) ([f7b2b06](https://togithub.com/googleapis/java-shared-dependencies/commit/f7b2b06b80e3e95ff8ab9b1d6a2638ef3069298a)) - update gax.version to v2.18.7 ([#​767](https://togithub.com/googleapis/java-shared-dependencies/issues/767)) ([9650368](https://togithub.com/googleapis/java-shared-dependencies/commit/96503682e98cdf348ea2c1365a03a60f4322c712)) - update google.core.version to v2.8.6 ([#​770](https://togithub.com/googleapis/java-shared-dependencies/issues/770)) ([cfd4377](https://togithub.com/googleapis/java-shared-dependencies/commit/cfd4377dc178cebb4724065d55d185ce03988d55)) ### [`v3.0.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​300-httpsgithubcomgoogleapisjava-shared-dependenciescomparev2130v300-2022-07-29) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v2.13.0...v3.0.0) ##### Bug Fixes - enable longpaths support for windows test ([#​1485](https://togithub.com/googleapis/java-shared-dependencies/issues/1485)) ([#​738](https://togithub.com/googleapis/java-shared-dependencies/issues/738)) ([11bc8f8](https://togithub.com/googleapis/java-shared-dependencies/commit/11bc8f81f28be88a97fdeafca21724e33638770c)) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.35.2 ([#​729](https://togithub.com/googleapis/java-shared-dependencies/issues/729)) ([1fa59af](https://togithub.com/googleapis/java-shared-dependencies/commit/1fa59af80abb9f278f57658c10158567e825fec6)) - update dependency com.google.api-client:google-api-client-bom to v2 ([#​746](https://togithub.com/googleapis/java-shared-dependencies/issues/746)) ([2dcb2e0](https://togithub.com/googleapis/java-shared-dependencies/commit/2dcb2e071e0ba0eea21bb575bd13cd559d4a1ca6)) - update dependency com.google.api.grpc:grpc-google-common-protos to v2.9.2 ([#​741](https://togithub.com/googleapis/java-shared-dependencies/issues/741)) ([3352d6c](https://togithub.com/googleapis/java-shared-dependencies/commit/3352d6c36111c04e3f6f3e6360470fa3efb10d8f)) - update dependency com.google.auth:google-auth-library-bom to v1.8.0 ([#​726](https://togithub.com/googleapis/java-shared-dependencies/issues/726)) ([2c5d64c](https://togithub.com/googleapis/java-shared-dependencies/commit/2c5d64c127db8384e49113acfeac6928716a2d7f)) - update dependency com.google.auth:google-auth-library-bom to v1.8.1 ([#​742](https://togithub.com/googleapis/java-shared-dependencies/issues/742)) ([4f53527](https://togithub.com/googleapis/java-shared-dependencies/commit/4f53527bda7f40896711b7c1d1c02453321ffbc8)) - update dependency com.google.cloud:first-party-dependencies to v2 ([#​747](https://togithub.com/googleapis/java-shared-dependencies/issues/747)) ([e970ac0](https://togithub.com/googleapis/java-shared-dependencies/commit/e970ac0599941c825dc2516146a7c6673e68a9b9)) - update dependency com.google.cloud:grpc-gcp to v1.2.1 ([#​751](https://togithub.com/googleapis/java-shared-dependencies/issues/751)) ([b3284b6](https://togithub.com/googleapis/java-shared-dependencies/commit/b3284b6ee52a96a6ea8696a05a94443df9ee5b9f)) - update dependency com.google.cloud:third-party-dependencies to v2 ([#​748](https://togithub.com/googleapis/java-shared-dependencies/issues/748)) ([573b41a](https://togithub.com/googleapis/java-shared-dependencies/commit/573b41a69504372741cbeb01dd200e7c71967186)) - update dependency com.google.http-client:google-http-client-bom to v1.42.1 ([#​730](https://togithub.com/googleapis/java-shared-dependencies/issues/730)) ([6b47126](https://togithub.com/googleapis/java-shared-dependencies/commit/6b47126686b603a5d112e097ce6aa3a1880daf6f)) - update dependency com.google.http-client:google-http-client-bom to v1.42.2 ([#​749](https://togithub.com/googleapis/java-shared-dependencies/issues/749)) ([299d7b0](https://togithub.com/googleapis/java-shared-dependencies/commit/299d7b0d4920644e2c3070d12dd1d97da17a5e88)) - update dependency com.google.protobuf:protobuf-bom to v3.21.2 ([#​722](https://togithub.com/googleapis/java-shared-dependencies/issues/722)) ([7a96b12](https://togithub.com/googleapis/java-shared-dependencies/commit/7a96b1259a526b63e9376fd6cc18b27cddeb5f0f)) - update dependency com.google.protobuf:protobuf-bom to v3.21.3 ([#​756](https://togithub.com/googleapis/java-shared-dependencies/issues/756)) ([3d0bac2](https://togithub.com/googleapis/java-shared-dependencies/commit/3d0bac23487aebb94267c0708f41ff6c02a028a4)) - update dependency com.google.protobuf:protobuf-bom to v3.21.4 ([#​759](https://togithub.com/googleapis/java-shared-dependencies/issues/759)) ([5a54ef1](https://togithub.com/googleapis/java-shared-dependencies/commit/5a54ef1a2d56244166d4fcc46041d62c0dc4b411)) - update dependency io.grpc:grpc-bom to v1.48.0 ([#​752](https://togithub.com/googleapis/java-shared-dependencies/issues/752)) ([20ac908](https://togithub.com/googleapis/java-shared-dependencies/commit/20ac908932a5e7c8e581bdfcd68579d7e1cedd5f)) - update dependency org.checkerframework:checker-qual to v3.23.0 ([#​736](https://togithub.com/googleapis/java-shared-dependencies/issues/736)) ([fc01d8f](https://togithub.com/googleapis/java-shared-dependencies/commit/fc01d8f93f391f12fdb800d5006f0b4505832eeb)) - update gax.version to v2.18.3 ([#​731](https://togithub.com/googleapis/java-shared-dependencies/issues/731)) ([e8ee554](https://togithub.com/googleapis/java-shared-dependencies/commit/e8ee554707acb2f71c739d08e2ff02fbe43ffa52)) - update gax.version to v2.18.4 ([#​735](https://togithub.com/googleapis/java-shared-dependencies/issues/735)) ([11c7415](https://togithub.com/googleapis/java-shared-dependencies/commit/11c74152a84697924de3a0e838b05f606c3098f7)) - update gax.version to v2.18.5 ([#​758](https://togithub.com/googleapis/java-shared-dependencies/issues/758)) ([7469fc1](https://togithub.com/googleapis/java-shared-dependencies/commit/7469fc1cc5095b39a5738e60156711a268f6e052)) - update gax.version to v2.18.6 ([#​763](https://togithub.com/googleapis/java-shared-dependencies/issues/763)) ([b5ca2f7](https://togithub.com/googleapis/java-shared-dependencies/commit/b5ca2f7b4d81c705823253f4f03363a32d2be48b)) - update google.common-protos.version to v2.9.1 ([#​724](https://togithub.com/googleapis/java-shared-dependencies/issues/724)) ([5213dbb](https://togithub.com/googleapis/java-shared-dependencies/commit/5213dbbfa9c9b73d2420ec2be7782f16c9c4955f)) - update google.core.version to v2.8.1 ([#​725](https://togithub.com/googleapis/java-shared-dependencies/issues/725)) ([575858a](https://togithub.com/googleapis/java-shared-dependencies/commit/575858a60f76e46bbc2a2435c2b6c01c8f4ab681)) - update google.core.version to v2.8.3 ([#​760](https://togithub.com/googleapis/java-shared-dependencies/issues/760)) ([cb10ae4](https://togithub.com/googleapis/java-shared-dependencies/commit/cb10ae4b76939215ea465af74163b3d4ad65a548)) - update google.core.version to v2.8.4 ([#​762](https://togithub.com/googleapis/java-shared-dependencies/issues/762)) ([821daaf](https://togithub.com/googleapis/java-shared-dependencies/commit/821daafefdbcfdfe6e363e580747538096a562ef)) - update google.core.version to v2.8.5 ([#​764](https://togithub.com/googleapis/java-shared-dependencies/issues/764)) ([a1f8f50](https://togithub.com/googleapis/java-shared-dependencies/commit/a1f8f501b54143a2cec8e72efd4ceb3ce47f13ae)) - update iam.version to v1.5.0 ([#​732](https://togithub.com/googleapis/java-shared-dependencies/issues/732)) ([9dce0e5](https://togithub.com/googleapis/java-shared-dependencies/commit/9dce0e5199c1e425119adc804304958f58003a27)) - update iam.version to v1.5.1 ([#​737](https://togithub.com/googleapis/java-shared-dependencies/issues/737)) ([df39168](https://togithub.com/googleapis/java-shared-dependencies/commit/df391685d42fcb1b04f03ab1380a594893bdce37)) - update iam.version to v1.5.2 ([#​743](https://togithub.com/googleapis/java-shared-dependencies/issues/743)) ([cdde697](https://togithub.com/googleapis/java-shared-dependencies/commit/cdde697f25a89fc8c2ec7eae6b7c54f69977bb1c))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 40258a88..df68fb4a 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 2.13.0 + 3.0.1 pom import From 396a4a3cd60f06a381e362cb467b61cb03ef3be0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 3 Aug 2022 17:00:23 +0200 Subject: [PATCH 156/225] deps: update dependency com.google.auth:google-auth-library-oauth2-http to v1.9.0 (#533) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.auth:google-auth-library-oauth2-http](https://togithub.com/googleapis/google-auth-library-java) | `1.8.1` -> `1.9.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.9.0/compatibility-slim/1.8.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.9.0/confidence-slim/1.8.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/google-auth-library-java ### [`v1.9.0`](https://togithub.com/googleapis/google-auth-library-java/blob/HEAD/CHANGELOG.md#​190-httpsgithubcomgoogleapisgoogle-auth-library-javacomparev181v190-2022-08-02) [Compare Source](https://togithub.com/googleapis/google-auth-library-java/compare/v1.8.1...v1.9.0) ##### Features - integration tests for pluggable auth ([#​939](https://togithub.com/googleapis/google-auth-library-java/issues/939)) ([22f37aa](https://togithub.com/googleapis/google-auth-library-java/commit/22f37aa687b7ffb4209a131860ccdd02f6fc4d42)) ##### Bug Fixes - expiration time of the ImpersonatedCredentials token depending on the current host's timezone ([#​932](https://togithub.com/googleapis/google-auth-library-java/issues/932)) ([73af08a](https://togithub.com/googleapis/google-auth-library-java/commit/73af08a1c5f14e18936e9dbd3d1ba29c2675961d)) ##### Documentation - update wif documentation with enable-imdsv2 flag ([#​940](https://togithub.com/googleapis/google-auth-library-java/issues/940)) ([acc1ce3](https://togithub.com/googleapis/google-auth-library-java/commit/acc1ce3603435f1c0cf23b8606af71b05e566f2f))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 4cd52b8b..030c4b5b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.auth google-auth-library-oauth2-http - 1.8.1 + 1.9.0 From 53653ff3abf40aee810f725357d780e25236e966 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 9 Aug 2022 05:04:19 +0000 Subject: [PATCH 157/225] chore(main): release 0.14.3-SNAPSHOT (#523) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index a61a83df..26d4c639 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.2 + 0.14.3-SNAPSHOT pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.2 + 0.14.3-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.2 + 0.14.3-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.2 + 0.14.3-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.2 + 0.14.3-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.2 + 0.14.3-SNAPSHOT
diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 95c81716..ef943fc1 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.2 + 0.14.3-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.2 + 0.14.3-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 9973d458..6b27ff78 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.2 + 0.14.3-SNAPSHOT grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.2 + 0.14.3-SNAPSHOT diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 894482b7..85491ef7 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.2 + 0.14.3-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.2 + 0.14.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index df68fb4a..08fb2b99 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.2 + 0.14.3-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.2 + 0.14.3-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.2 + 0.14.3-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.2 + 0.14.3-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.2 + 0.14.3-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.2 + 0.14.3-SNAPSHOT diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index 89ca474c..e4a3283c 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.2 + 0.14.3-SNAPSHOT proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.2 + 0.14.3-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 70ec9281..a7750667 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.2 + 0.14.3-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.2 + 0.14.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 647d961d..f0e913c8 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.2 + 0.14.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 57e92131..596ed018 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.2:0.14.2 -grpc-google-analytics-data-v1beta:0.14.2:0.14.2 -proto-google-analytics-data-v1beta:0.14.2:0.14.2 -proto-google-analytics-data-v1alpha:0.14.2:0.14.2 -grpc-google-analytics-data-v1alpha:0.14.2:0.14.2 +google-analytics-data:0.14.2:0.14.3-SNAPSHOT +grpc-google-analytics-data-v1beta:0.14.2:0.14.3-SNAPSHOT +proto-google-analytics-data-v1beta:0.14.2:0.14.3-SNAPSHOT +proto-google-analytics-data-v1alpha:0.14.2:0.14.3-SNAPSHOT +grpc-google-analytics-data-v1alpha:0.14.2:0.14.3-SNAPSHOT From 9c3ef4d57cd3c479f0c7488864d04ff8c1b34e37 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 9 Aug 2022 05:20:11 +0000 Subject: [PATCH 158/225] chore(main): release 0.14.3 (#534) :robot: I have created a release *beep* *boop* --- ## [0.14.3](https://github.com/googleapis/java-analytics-data/compare/v0.14.2...v0.14.3) (2022-08-09) ### Dependencies * update dependency com.google.auth:google-auth-library-oauth2-http to v1.8.1 ([#525](https://github.com/googleapis/java-analytics-data/issues/525)) ([94c015d](https://github.com/googleapis/java-analytics-data/commit/94c015dc36960093476eed77e53dc1fea0c0f693)) * update dependency com.google.auth:google-auth-library-oauth2-http to v1.9.0 ([#533](https://github.com/googleapis/java-analytics-data/issues/533)) ([396a4a3](https://github.com/googleapis/java-analytics-data/commit/396a4a3cd60f06a381e362cb467b61cb03ef3be0)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#530](https://github.com/googleapis/java-analytics-data/issues/530)) ([84d1523](https://github.com/googleapis/java-analytics-data/commit/84d1523bfbc315307aeb2b886d88ad863c770368)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 9 +++++++++ google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 37 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 42d9f4e1..f06815ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## [0.14.3](https://github.com/googleapis/java-analytics-data/compare/v0.14.2...v0.14.3) (2022-08-09) + + +### Dependencies + +* update dependency com.google.auth:google-auth-library-oauth2-http to v1.8.1 ([#525](https://github.com/googleapis/java-analytics-data/issues/525)) ([94c015d](https://github.com/googleapis/java-analytics-data/commit/94c015dc36960093476eed77e53dc1fea0c0f693)) +* update dependency com.google.auth:google-auth-library-oauth2-http to v1.9.0 ([#533](https://github.com/googleapis/java-analytics-data/issues/533)) ([396a4a3](https://github.com/googleapis/java-analytics-data/commit/396a4a3cd60f06a381e362cb467b61cb03ef3be0)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#530](https://github.com/googleapis/java-analytics-data/issues/530)) ([84d1523](https://github.com/googleapis/java-analytics-data/commit/84d1523bfbc315307aeb2b886d88ad863c770368)) + ## [0.14.2](https://github.com/googleapis/java-analytics-data/compare/v0.14.1...v0.14.2) (2022-07-13) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 26d4c639..4c9219b2 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.3-SNAPSHOT + 0.14.3 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.3-SNAPSHOT + 0.14.3 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.3-SNAPSHOT + 0.14.3 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.3-SNAPSHOT + 0.14.3 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.3-SNAPSHOT + 0.14.3 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.3-SNAPSHOT + 0.14.3 diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index ef943fc1..83bc9a58 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.3-SNAPSHOT + 0.14.3 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.3-SNAPSHOT + 0.14.3 google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 6b27ff78..0810b4ec 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.3-SNAPSHOT + 0.14.3 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.3-SNAPSHOT + 0.14.3 diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 85491ef7..8ecf01dc 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.3-SNAPSHOT + 0.14.3 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.3-SNAPSHOT + 0.14.3 diff --git a/pom.xml b/pom.xml index 08fb2b99..6a38a599 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.3-SNAPSHOT + 0.14.3 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.3-SNAPSHOT + 0.14.3 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.3-SNAPSHOT + 0.14.3 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.3-SNAPSHOT + 0.14.3 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.3-SNAPSHOT + 0.14.3 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.3-SNAPSHOT + 0.14.3 diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index e4a3283c..6b0b1414 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.3-SNAPSHOT + 0.14.3 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.3-SNAPSHOT + 0.14.3 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index a7750667..0fb27e63 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.3-SNAPSHOT + 0.14.3 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.3-SNAPSHOT + 0.14.3 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f0e913c8..e30addfe 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.3-SNAPSHOT + 0.14.3 diff --git a/versions.txt b/versions.txt index 596ed018..20c226db 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.2:0.14.3-SNAPSHOT -grpc-google-analytics-data-v1beta:0.14.2:0.14.3-SNAPSHOT -proto-google-analytics-data-v1beta:0.14.2:0.14.3-SNAPSHOT -proto-google-analytics-data-v1alpha:0.14.2:0.14.3-SNAPSHOT -grpc-google-analytics-data-v1alpha:0.14.2:0.14.3-SNAPSHOT +google-analytics-data:0.14.3:0.14.3 +grpc-google-analytics-data-v1beta:0.14.3:0.14.3 +proto-google-analytics-data-v1beta:0.14.3:0.14.3 +proto-google-analytics-data-v1alpha:0.14.3:0.14.3 +grpc-google-analytics-data-v1alpha:0.14.3:0.14.3 From d9e91bb5a47de7eb9c5287648448933fac0e3be2 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 9 Aug 2022 05:38:13 +0000 Subject: [PATCH 159/225] chore(main): release 0.14.4-SNAPSHOT (#535) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 4c9219b2..cf40fdc4 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.3 + 0.14.4-SNAPSHOT pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.3 + 0.14.4-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.3 + 0.14.4-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.3 + 0.14.4-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.3 + 0.14.4-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.3 + 0.14.4-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 83bc9a58..abec9e5a 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.3 + 0.14.4-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.3 + 0.14.4-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 0810b4ec..f35e407f 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.3 + 0.14.4-SNAPSHOT grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.3 + 0.14.4-SNAPSHOT diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 8ecf01dc..7609ac59 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.3 + 0.14.4-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.3 + 0.14.4-SNAPSHOT diff --git a/pom.xml b/pom.xml index 6a38a599..29914b95 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.3 + 0.14.4-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.3 + 0.14.4-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.3 + 0.14.4-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.3 + 0.14.4-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.3 + 0.14.4-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.3 + 0.14.4-SNAPSHOT diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index 6b0b1414..a7d7c82d 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.3 + 0.14.4-SNAPSHOT proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.3 + 0.14.4-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 0fb27e63..723dcc13 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.3 + 0.14.4-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.3 + 0.14.4-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e30addfe..e0187858 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.3 + 0.14.4-SNAPSHOT diff --git a/versions.txt b/versions.txt index 20c226db..63d8176d 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.3:0.14.3 -grpc-google-analytics-data-v1beta:0.14.3:0.14.3 -proto-google-analytics-data-v1beta:0.14.3:0.14.3 -proto-google-analytics-data-v1alpha:0.14.3:0.14.3 -grpc-google-analytics-data-v1alpha:0.14.3:0.14.3 +google-analytics-data:0.14.3:0.14.4-SNAPSHOT +grpc-google-analytics-data-v1beta:0.14.3:0.14.4-SNAPSHOT +proto-google-analytics-data-v1beta:0.14.3:0.14.4-SNAPSHOT +proto-google-analytics-data-v1alpha:0.14.3:0.14.4-SNAPSHOT +grpc-google-analytics-data-v1alpha:0.14.3:0.14.4-SNAPSHOT From 2496a389b2b1ccc6d513f135093d6b225bb60628 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 17:48:24 +0200 Subject: [PATCH 160/225] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.0 (#538) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.0.0` -> `26.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/compatibility-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/confidence-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- README.md | 6 +++--- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d4078b1d..a0aedef3 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.14.1 + 0.14.3 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.14.1' +implementation 'com.google.analytics:google-analytics-data:0.14.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.14.1" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.14.3" ``` ## Authentication diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e0187858..739312f4 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 26.0.0 + 26.1.0 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5bcc8c01..3f111b56 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 26.0.0 + 26.1.0 pom import From a752d59cb4fef08bd45d7b5d46009e7a38fed710 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 17:48:28 +0200 Subject: [PATCH 161/225] deps: update dependency com.google.auth:google-auth-library-oauth2-http to v1.10.0 (#537) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.auth:google-auth-library-oauth2-http](https://togithub.com/googleapis/google-auth-library-java) | `1.9.0` -> `1.10.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.10.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.10.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.10.0/compatibility-slim/1.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.10.0/confidence-slim/1.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 030c4b5b..e02b0be4 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.auth google-auth-library-oauth2-http - 1.9.0 + 1.10.0 From 2ab32b06d95028551b6cd2d83b0cecfad547ad3a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 21:18:12 +0200 Subject: [PATCH 162/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.14.3 (#536) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.14.1` -> `0.14.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.3/compatibility-slim/0.14.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.3/confidence-slim/0.14.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index e02b0be4..ef7cffde 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.14.1 + 0.14.3 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 3f111b56..fb6499ca 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.1 + 0.14.3 com.google.auth From ea36d32d1bcd0890497a2a9594454e66fd75be5f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 22:26:21 +0200 Subject: [PATCH 163/225] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.4.1 (#539) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-javadoc-plugin](https://maven.apache.org/plugins/) | `3.4.0` -> `3.4.1` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/compatibility-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-javadoc-plugin/3.4.1/confidence-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 29914b95..1f02e4a4 100644 --- a/pom.xml +++ b/pom.xml @@ -152,7 +152,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.4.0 + 3.4.1 html From 8531603ac03ddc590b6eb8e17d3ca07e9ab38b84 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 23:08:22 +0200 Subject: [PATCH 164/225] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.4.1 (#540) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.4.0` -> `3.4.1` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/compatibility-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.1/confidence-slim/3.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1f02e4a4..be60a1b2 100644 --- a/pom.xml +++ b/pom.xml @@ -125,7 +125,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.4.0 + 3.4.1 From ea9313729b8a3a2c622c23ad6a197e0153276175 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 31 Aug 2022 22:42:32 +0200 Subject: [PATCH 165/225] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.1 (#542) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.0` -> `26.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/compatibility-slim/26.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/confidence-slim/26.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 739312f4..cdc69b42 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 26.1.0 + 26.1.1 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index fb6499ca..9d3c9245 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 26.1.0 + 26.1.1 pom import From 232fde682f2d8c7862d3600d89f666d656bef4ff Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 31 Aug 2022 21:00:18 +0000 Subject: [PATCH 166/225] chore(main): release 0.14.4 (#541) :robot: I have created a release *beep* *boop* --- ## [0.14.4](https://github.com/googleapis/java-analytics-data/compare/v0.14.3...v0.14.4) (2022-08-31) ### Dependencies * update dependency com.google.auth:google-auth-library-oauth2-http to v1.10.0 ([#537](https://github.com/googleapis/java-analytics-data/issues/537)) ([a752d59](https://github.com/googleapis/java-analytics-data/commit/a752d59cb4fef08bd45d7b5d46009e7a38fed710)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f06815ee..34655d9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.14.4](https://github.com/googleapis/java-analytics-data/compare/v0.14.3...v0.14.4) (2022-08-31) + + +### Dependencies + +* update dependency com.google.auth:google-auth-library-oauth2-http to v1.10.0 ([#537](https://github.com/googleapis/java-analytics-data/issues/537)) ([a752d59](https://github.com/googleapis/java-analytics-data/commit/a752d59cb4fef08bd45d7b5d46009e7a38fed710)) + ## [0.14.3](https://github.com/googleapis/java-analytics-data/compare/v0.14.2...v0.14.3) (2022-08-09) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index cf40fdc4..e16d51a0 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.4-SNAPSHOT + 0.14.4 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.4-SNAPSHOT + 0.14.4 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.4-SNAPSHOT + 0.14.4 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.4-SNAPSHOT + 0.14.4 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.4-SNAPSHOT + 0.14.4 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.4-SNAPSHOT + 0.14.4 diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index abec9e5a..d85cc8e0 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.4-SNAPSHOT + 0.14.4 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.4-SNAPSHOT + 0.14.4 google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index f35e407f..017b0b28 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.4-SNAPSHOT + 0.14.4 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.4-SNAPSHOT + 0.14.4 diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 7609ac59..dd7214d3 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.4-SNAPSHOT + 0.14.4 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.4-SNAPSHOT + 0.14.4 diff --git a/pom.xml b/pom.xml index be60a1b2..011508c5 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.4-SNAPSHOT + 0.14.4 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.4-SNAPSHOT + 0.14.4 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.4-SNAPSHOT + 0.14.4 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.4-SNAPSHOT + 0.14.4 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.4-SNAPSHOT + 0.14.4 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.4-SNAPSHOT + 0.14.4 diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index a7d7c82d..213189fe 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.4-SNAPSHOT + 0.14.4 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.4-SNAPSHOT + 0.14.4 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 723dcc13..c26a11ad 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.4-SNAPSHOT + 0.14.4 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.4-SNAPSHOT + 0.14.4 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index cdc69b42..8ef258b3 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.4-SNAPSHOT + 0.14.4 diff --git a/versions.txt b/versions.txt index 63d8176d..a11f1cc8 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.3:0.14.4-SNAPSHOT -grpc-google-analytics-data-v1beta:0.14.3:0.14.4-SNAPSHOT -proto-google-analytics-data-v1beta:0.14.3:0.14.4-SNAPSHOT -proto-google-analytics-data-v1alpha:0.14.3:0.14.4-SNAPSHOT -grpc-google-analytics-data-v1alpha:0.14.3:0.14.4-SNAPSHOT +google-analytics-data:0.14.4:0.14.4 +grpc-google-analytics-data-v1beta:0.14.4:0.14.4 +proto-google-analytics-data-v1beta:0.14.4:0.14.4 +proto-google-analytics-data-v1alpha:0.14.4:0.14.4 +grpc-google-analytics-data-v1alpha:0.14.4:0.14.4 From dae9fc9d3717eefe4a2c5e2167b479ece6efd043 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 31 Aug 2022 21:22:14 +0000 Subject: [PATCH 167/225] chore(main): release 0.14.5-SNAPSHOT (#543) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index e16d51a0..6fc72d99 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.4 + 0.14.5-SNAPSHOT pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.4 + 0.14.5-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.4 + 0.14.5-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.4 + 0.14.5-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.4 + 0.14.5-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.4 + 0.14.5-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index d85cc8e0..32bc4d0a 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.4 + 0.14.5-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.4 + 0.14.5-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 017b0b28..2ae8ab8e 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.4 + 0.14.5-SNAPSHOT grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.4 + 0.14.5-SNAPSHOT diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index dd7214d3..00e5cd77 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.4 + 0.14.5-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.4 + 0.14.5-SNAPSHOT diff --git a/pom.xml b/pom.xml index 011508c5..b242a1a3 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.4 + 0.14.5-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.4 + 0.14.5-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.4 + 0.14.5-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.4 + 0.14.5-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.4 + 0.14.5-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.4 + 0.14.5-SNAPSHOT diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index 213189fe..639e36c0 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.4 + 0.14.5-SNAPSHOT proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.4 + 0.14.5-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index c26a11ad..056e6bde 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.4 + 0.14.5-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.4 + 0.14.5-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8ef258b3..0e578435 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.4 + 0.14.5-SNAPSHOT diff --git a/versions.txt b/versions.txt index a11f1cc8..7da66bd9 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.4:0.14.4 -grpc-google-analytics-data-v1beta:0.14.4:0.14.4 -proto-google-analytics-data-v1beta:0.14.4:0.14.4 -proto-google-analytics-data-v1alpha:0.14.4:0.14.4 -grpc-google-analytics-data-v1alpha:0.14.4:0.14.4 +google-analytics-data:0.14.4:0.14.5-SNAPSHOT +grpc-google-analytics-data-v1beta:0.14.4:0.14.5-SNAPSHOT +proto-google-analytics-data-v1beta:0.14.4:0.14.5-SNAPSHOT +proto-google-analytics-data-v1alpha:0.14.4:0.14.5-SNAPSHOT +grpc-google-analytics-data-v1alpha:0.14.4:0.14.5-SNAPSHOT From d74834a85438449a215aa5a3e8ab0b55d7a22697 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 2 Sep 2022 06:57:02 +0200 Subject: [PATCH 168/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.14.4 (#544) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.14.3` -> `0.14.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.4/compatibility-slim/0.14.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.4/confidence-slim/0.14.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a0aedef3..03b9c19e 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.14.3 + 0.14.4 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.14.3' +implementation 'com.google.analytics:google-analytics-data:0.14.4' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.14.3" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.14.4" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index ef7cffde..adcca5ce 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.14.3 + 0.14.4 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 9d3c9245..b0ca5683 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.3 + 0.14.4 com.google.auth From 1480fb275d56b082dd8c31b6b6a2f2ce3c5e3473 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 8 Sep 2022 22:36:29 +0200 Subject: [PATCH 169/225] deps: update dependency com.google.auth:google-auth-library-oauth2-http to v1.11.0 (#546) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.auth:google-auth-library-oauth2-http](https://togithub.com/googleapis/google-auth-library-java) | `1.10.0` -> `1.11.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.11.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.11.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.11.0/compatibility-slim/1.10.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.auth:google-auth-library-oauth2-http/1.11.0/confidence-slim/1.10.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/google-auth-library-java ### [`v1.11.0`](https://togithub.com/googleapis/google-auth-library-java/blob/HEAD/CHANGELOG.md#​1110-httpsgithubcomgoogleapisgoogle-auth-library-javacomparev1100v1110-2022-09-08) [Compare Source](https://togithub.com/googleapis/google-auth-library-java/compare/v1.10.0...v1.11.0) ##### Features - Adds configurable token lifetime support ([#​982](https://togithub.com/googleapis/google-auth-library-java/issues/982)) ([0198733](https://togithub.com/googleapis/google-auth-library-java/commit/0198733b9d294cbee95f1170f814fbfe94baa6fc)) ##### Bug Fixes - Add retries to public key fetch ([#​983](https://togithub.com/googleapis/google-auth-library-java/issues/983)) ([1200a39](https://togithub.com/googleapis/google-auth-library-java/commit/1200a39361e2a1767ef95306ba3ece1b749e82a8)) - Add Test to validate 0x20 in token ([#​971](https://togithub.com/googleapis/google-auth-library-java/issues/971)) ([612db0a](https://togithub.com/googleapis/google-auth-library-java/commit/612db0af3afa70b5400891ba3c7eab18ea5eb6bf)) - Change revoke request from get to post ([#​979](https://togithub.com/googleapis/google-auth-library-java/issues/979)) ([ead58b2](https://togithub.com/googleapis/google-auth-library-java/commit/ead58b22e04c00ece9f0ea55cbec20d2953f5460)) - Setting the retry count to default value and enabling ioexceptions to retry ([#​988](https://togithub.com/googleapis/google-auth-library-java/issues/988)) ([257071a](https://togithub.com/googleapis/google-auth-library-java/commit/257071aeb39c4441bd152813d727f83d433f346f)) - Updates IdTokenVerifier so that it does not cache a failed public key response ([#​967](https://togithub.com/googleapis/google-auth-library-java/issues/967)) ([1f4c9c7](https://togithub.com/googleapis/google-auth-library-java/commit/1f4c9c77a38fb6dfb751447361af9cf00964f96b))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/install-without-bom/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index adcca5ce..65a6b5a4 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -35,7 +35,7 @@ com.google.auth google-auth-library-oauth2-http - 1.10.0 + 1.11.0 From df7d6253d23603c281b346042697ae72fe4d0bcd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 8 Sep 2022 23:04:18 +0200 Subject: [PATCH 170/225] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 (#547) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.1` -> `3.0.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/compatibility-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/confidence-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v3.0.2`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​302-httpsgithubcomgoogleapisjava-shared-dependenciescomparev301v302-2022-09-08) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.1...v3.0.2) ##### Dependencies - Update dependency com.fasterxml.jackson:jackson-bom to v2.13.4 ([#​789](https://togithub.com/googleapis/java-shared-dependencies/issues/789)) ([6cf91a9](https://togithub.com/googleapis/java-shared-dependencies/commit/6cf91a96b9ea6af0fb845b50582dac7aa2892cab)) - Update dependency com.google.auth:google-auth-library-bom to v1.10.0 ([#​781](https://togithub.com/googleapis/java-shared-dependencies/issues/781)) ([8859e61](https://togithub.com/googleapis/java-shared-dependencies/commit/8859e61808bfc5cd9546e27e945fc855b36d2554)) - Update dependency com.google.auth:google-auth-library-bom to v1.11.0 ([#​790](https://togithub.com/googleapis/java-shared-dependencies/issues/790)) ([3431a47](https://togithub.com/googleapis/java-shared-dependencies/commit/3431a471cbf874a67a4f1a42e31f0ed891dedc92)) - Update dependency com.google.auth:google-auth-library-bom to v1.9.0 ([#​773](https://togithub.com/googleapis/java-shared-dependencies/issues/773)) ([27fc79f](https://togithub.com/googleapis/java-shared-dependencies/commit/27fc79f00ee70011df6a368bb8fcfad7f0ce41f0)) - Update dependency com.google.errorprone:error_prone_annotations to v2.15.0 ([#​776](https://togithub.com/googleapis/java-shared-dependencies/issues/776)) ([bf333b8](https://togithub.com/googleapis/java-shared-dependencies/commit/bf333b8c88072d21cb959db4d3328bbb55d9ef5c)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.5 ([#​780](https://togithub.com/googleapis/java-shared-dependencies/issues/780)) ([da7f44d](https://togithub.com/googleapis/java-shared-dependencies/commit/da7f44d71d6d7f372b5313dab68ce220308614d4)) - Update dependency io.grpc:grpc-bom to v1.48.1 ([#​768](https://togithub.com/googleapis/java-shared-dependencies/issues/768)) ([5c7768d](https://togithub.com/googleapis/java-shared-dependencies/commit/5c7768d3c9665dd356de6c39c0a6a5fa6e992f2e)) - Update dependency io.grpc:grpc-bom to v1.49.0 ([#​786](https://togithub.com/googleapis/java-shared-dependencies/issues/786)) ([8734812](https://togithub.com/googleapis/java-shared-dependencies/commit/8734812f1b4e2faaa48caf41eff59a85892ae344)) - Update dependency org.checkerframework:checker-qual to v3.24.0 ([#​775](https://togithub.com/googleapis/java-shared-dependencies/issues/775)) ([df74b7b](https://togithub.com/googleapis/java-shared-dependencies/commit/df74b7b0dd5dd592523f302d9fb36adb5991cb0b)) - Update dependency org.checkerframework:checker-qual to v3.25.0 ([#​788](https://togithub.com/googleapis/java-shared-dependencies/issues/788)) ([207035b](https://togithub.com/googleapis/java-shared-dependencies/commit/207035bd04c9305899eea540acbefaf06a7b1ec9)) - Update dependency org.threeten:threetenbp to v1.6.1 ([#​782](https://togithub.com/googleapis/java-shared-dependencies/issues/782)) ([0f218ae](https://togithub.com/googleapis/java-shared-dependencies/commit/0f218aeb6aa33cf1da4a8b1d6c82bbf87946dab9)) - Update gax.version to v2.19.0 ([#​785](https://togithub.com/googleapis/java-shared-dependencies/issues/785)) ([4448331](https://togithub.com/googleapis/java-shared-dependencies/commit/4448331c4c6d88ea8076260776d1d47d24aa19fa)) - Update google.core.version to v2.8.10 ([#​787](https://togithub.com/googleapis/java-shared-dependencies/issues/787)) ([3c344d5](https://togithub.com/googleapis/java-shared-dependencies/commit/3c344d515e3b9215db5a1f8ef550d800d974e558)) - Update google.core.version to v2.8.7 ([#​774](https://togithub.com/googleapis/java-shared-dependencies/issues/774)) ([d0cd5e8](https://togithub.com/googleapis/java-shared-dependencies/commit/d0cd5e8f6ca88787fe0dbf7f30c849cb4c4fae5e)) - Update google.core.version to v2.8.8 ([#​777](https://togithub.com/googleapis/java-shared-dependencies/issues/777)) ([f00571c](https://togithub.com/googleapis/java-shared-dependencies/commit/f00571cd1e9f1c4e011fba4a1e1674c1d8d60200)) - Update google.core.version to v2.8.9 ([#​784](https://togithub.com/googleapis/java-shared-dependencies/issues/784)) ([aa8e505](https://togithub.com/googleapis/java-shared-dependencies/commit/aa8e505dbb1214b2239e55d5ac83b00c167d77e4))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index b242a1a3..b9699200 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.1 + 3.0.2 pom import From 9b77691add96be3a9c2451f4d68406008fa4d40d Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 8 Sep 2022 21:20:16 +0000 Subject: [PATCH 171/225] chore(main): release 0.14.5 (#548) :robot: I have created a release *beep* *boop* --- ## [0.14.5](https://github.com/googleapis/java-analytics-data/compare/v0.14.4...v0.14.5) (2022-09-08) ### Dependencies * Update dependency com.google.auth:google-auth-library-oauth2-http to v1.11.0 ([#546](https://github.com/googleapis/java-analytics-data/issues/546)) ([1480fb2](https://github.com/googleapis/java-analytics-data/commit/1480fb275d56b082dd8c31b6b6a2f2ce3c5e3473)) * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#547](https://github.com/googleapis/java-analytics-data/issues/547)) ([df7d625](https://github.com/googleapis/java-analytics-data/commit/df7d6253d23603c281b346042697ae72fe4d0bcd)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 8 ++++++++ google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 36 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 34655d9b..e1b625c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## [0.14.5](https://github.com/googleapis/java-analytics-data/compare/v0.14.4...v0.14.5) (2022-09-08) + + +### Dependencies + +* Update dependency com.google.auth:google-auth-library-oauth2-http to v1.11.0 ([#546](https://github.com/googleapis/java-analytics-data/issues/546)) ([1480fb2](https://github.com/googleapis/java-analytics-data/commit/1480fb275d56b082dd8c31b6b6a2f2ce3c5e3473)) +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#547](https://github.com/googleapis/java-analytics-data/issues/547)) ([df7d625](https://github.com/googleapis/java-analytics-data/commit/df7d6253d23603c281b346042697ae72fe4d0bcd)) + ## [0.14.4](https://github.com/googleapis/java-analytics-data/compare/v0.14.3...v0.14.4) (2022-08-31) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 6fc72d99..6cfcedce 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.5-SNAPSHOT + 0.14.5 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.5-SNAPSHOT + 0.14.5 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.5-SNAPSHOT + 0.14.5 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.5-SNAPSHOT + 0.14.5 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.5-SNAPSHOT + 0.14.5 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.5-SNAPSHOT + 0.14.5
diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 32bc4d0a..94644875 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.5-SNAPSHOT + 0.14.5 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.5-SNAPSHOT + 0.14.5 google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 2ae8ab8e..e0551b58 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.5-SNAPSHOT + 0.14.5 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.5-SNAPSHOT + 0.14.5 diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 00e5cd77..e8af1a0d 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.5-SNAPSHOT + 0.14.5 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.5-SNAPSHOT + 0.14.5 diff --git a/pom.xml b/pom.xml index b9699200..7574f69d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.5-SNAPSHOT + 0.14.5 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.5-SNAPSHOT + 0.14.5 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.5-SNAPSHOT + 0.14.5 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.5-SNAPSHOT + 0.14.5 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.5-SNAPSHOT + 0.14.5 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.5-SNAPSHOT + 0.14.5 diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index 639e36c0..c2f4ba61 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.5-SNAPSHOT + 0.14.5 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.5-SNAPSHOT + 0.14.5 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 056e6bde..96265206 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.5-SNAPSHOT + 0.14.5 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.5-SNAPSHOT + 0.14.5 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 0e578435..a10f5695 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.5-SNAPSHOT + 0.14.5 diff --git a/versions.txt b/versions.txt index 7da66bd9..abe8bcff 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.4:0.14.5-SNAPSHOT -grpc-google-analytics-data-v1beta:0.14.4:0.14.5-SNAPSHOT -proto-google-analytics-data-v1beta:0.14.4:0.14.5-SNAPSHOT -proto-google-analytics-data-v1alpha:0.14.4:0.14.5-SNAPSHOT -grpc-google-analytics-data-v1alpha:0.14.4:0.14.5-SNAPSHOT +google-analytics-data:0.14.5:0.14.5 +grpc-google-analytics-data-v1beta:0.14.5:0.14.5 +proto-google-analytics-data-v1beta:0.14.5:0.14.5 +proto-google-analytics-data-v1alpha:0.14.5:0.14.5 +grpc-google-analytics-data-v1alpha:0.14.5:0.14.5 From 5b370d12eb482f861547e2ae4590c11b5e252718 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 8 Sep 2022 21:54:21 +0000 Subject: [PATCH 172/225] chore(main): release 0.14.6-SNAPSHOT (#549) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 6cfcedce..3d8ad8a6 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.5 + 0.14.6-SNAPSHOT pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.5 + 0.14.6-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.5 + 0.14.6-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.5 + 0.14.6-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.5 + 0.14.6-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.5 + 0.14.6-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 94644875..b225e42c 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.5 + 0.14.6-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.5 + 0.14.6-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index e0551b58..2a38df43 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.5 + 0.14.6-SNAPSHOT grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.5 + 0.14.6-SNAPSHOT diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index e8af1a0d..ec0a6fb1 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.5 + 0.14.6-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.5 + 0.14.6-SNAPSHOT diff --git a/pom.xml b/pom.xml index 7574f69d..600f8bcf 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.5 + 0.14.6-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.5 + 0.14.6-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.5 + 0.14.6-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.5 + 0.14.6-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.5 + 0.14.6-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.5 + 0.14.6-SNAPSHOT diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index c2f4ba61..62b89708 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.5 + 0.14.6-SNAPSHOT proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.5 + 0.14.6-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 96265206..3c14afdc 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.5 + 0.14.6-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.5 + 0.14.6-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index a10f5695..39888a9a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.5 + 0.14.6-SNAPSHOT diff --git a/versions.txt b/versions.txt index abe8bcff..ef1d6908 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.5:0.14.5 -grpc-google-analytics-data-v1beta:0.14.5:0.14.5 -proto-google-analytics-data-v1beta:0.14.5:0.14.5 -proto-google-analytics-data-v1alpha:0.14.5:0.14.5 -grpc-google-analytics-data-v1alpha:0.14.5:0.14.5 +google-analytics-data:0.14.5:0.14.6-SNAPSHOT +grpc-google-analytics-data-v1beta:0.14.5:0.14.6-SNAPSHOT +proto-google-analytics-data-v1beta:0.14.5:0.14.6-SNAPSHOT +proto-google-analytics-data-v1alpha:0.14.5:0.14.6-SNAPSHOT +grpc-google-analytics-data-v1alpha:0.14.5:0.14.6-SNAPSHOT From 61e0f04e182424d571c97e460f8671c20f941185 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Sep 2022 05:40:19 +0200 Subject: [PATCH 173/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.14.5 (#550) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.14.4` -> `0.14.5` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.5/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.5/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.5/compatibility-slim/0.14.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.5/confidence-slim/0.14.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-analytics-data ### [`v0.14.5`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0145-httpsgithubcomgoogleapisjava-analytics-datacomparev0144v0145-2022-09-08) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.14.4...v0.14.5) ##### Dependencies - Update dependency com.google.auth:google-auth-library-oauth2-http to v1.11.0 ([#​546](https://togithub.com/googleapis/java-analytics-data/issues/546)) ([1480fb2](https://togithub.com/googleapis/java-analytics-data/commit/1480fb275d56b082dd8c31b6b6a2f2ce3c5e3473)) - Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#​547](https://togithub.com/googleapis/java-analytics-data/issues/547)) ([df7d625](https://togithub.com/googleapis/java-analytics-data/commit/df7d6253d23603c281b346042697ae72fe4d0bcd))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 03b9c19e..86000f8d 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.14.4 + 0.14.5 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.14.4' +implementation 'com.google.analytics:google-analytics-data:0.14.5' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.14.4" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.14.5" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 65a6b5a4..64f4aa15 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.14.4 + 0.14.5 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index b0ca5683..cd4df447 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.4 + 0.14.5 com.google.auth From ea1c38ee68651298e13a41c3c595b9d65af960d7 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 14:20:17 +0000 Subject: [PATCH 174/225] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#545) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../v1alpha/AlphaAnalyticsDataClient.java | 42 ++++-- .../v1alpha/AlphaAnalyticsDataSettings.java | 7 +- .../analytics/data/v1alpha/package-info.java | 7 +- .../stub/AlphaAnalyticsDataStubSettings.java | 7 +- .../stub/HttpJsonAlphaAnalyticsDataStub.java | 2 +- .../data/v1beta/BetaAnalyticsDataClient.java | 140 +++++++++++++----- .../v1beta/BetaAnalyticsDataSettings.java | 12 +- .../analytics/data/v1beta/package-info.java | 7 +- .../stub/BetaAnalyticsDataStubSettings.java | 12 +- .../stub/HttpJsonBetaAnalyticsDataStub.java | 12 +- 10 files changed, 169 insertions(+), 79 deletions(-) diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java index 4962c6b9..6746f674 100644 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java @@ -33,8 +33,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
  *   RunFunnelReportRequest request =
  *       RunFunnelReportRequest.newBuilder()
@@ -82,8 +85,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * AlphaAnalyticsDataSettings alphaAnalyticsDataSettings =
  *     AlphaAnalyticsDataSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -95,8 +101,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * AlphaAnalyticsDataSettings alphaAnalyticsDataSettings =
  *     AlphaAnalyticsDataSettings.newBuilder().setEndpoint(myEndpoint).build();
  * AlphaAnalyticsDataClient alphaAnalyticsDataClient =
@@ -107,8 +116,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * AlphaAnalyticsDataSettings alphaAnalyticsDataSettings =
  *     AlphaAnalyticsDataSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -185,8 +197,11 @@ public AlphaAnalyticsDataStub getStub() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
    *   RunFunnelReportRequest request =
    *       RunFunnelReportRequest.newBuilder()
@@ -225,8 +240,11 @@ public final RunFunnelReportResponse runFunnelReport(RunFunnelReportRequest requ
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
    *   RunFunnelReportRequest request =
    *       RunFunnelReportRequest.newBuilder()
diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java
index d5e7182c..9ec486c1 100644
--- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java
+++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java
@@ -50,8 +50,11 @@
  * 

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

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * AlphaAnalyticsDataSettings.Builder alphaAnalyticsDataSettingsBuilder =
  *     AlphaAnalyticsDataSettings.newBuilder();
  * alphaAnalyticsDataSettingsBuilder
diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java
index 67b78cb9..9a8f36d7 100644
--- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java
+++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java
@@ -26,8 +26,11 @@
  * 

Sample for AlphaAnalyticsDataClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
  *   RunFunnelReportRequest request =
  *       RunFunnelReportRequest.newBuilder()
diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java
index a775cee5..a03234e7 100644
--- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java
+++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java
@@ -63,8 +63,11 @@
  * 

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

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * AlphaAnalyticsDataStubSettings.Builder alphaAnalyticsDataSettingsBuilder =
  *     AlphaAnalyticsDataStubSettings.newBuilder();
  * alphaAnalyticsDataSettingsBuilder
diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java
index 3de65b61..6ee5506d 100644
--- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java
+++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java
@@ -77,7 +77,7 @@ public class HttpJsonAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearProperty().build()))
+                                  .toBody("*", request.toBuilder().clearProperty().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
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
index 5f9178fc..53016599 100644
--- 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
@@ -33,8 +33,11 @@
  * calls that map to API methods. Sample code to get started:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
  *   RunReportRequest request =
  *       RunReportRequest.newBuilder()
@@ -87,8 +90,11 @@
  * 

To customize credentials: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * BetaAnalyticsDataSettings betaAnalyticsDataSettings =
  *     BetaAnalyticsDataSettings.newBuilder()
  *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -100,8 +106,11 @@
  * 

To customize the endpoint: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * BetaAnalyticsDataSettings betaAnalyticsDataSettings =
  *     BetaAnalyticsDataSettings.newBuilder().setEndpoint(myEndpoint).build();
  * BetaAnalyticsDataClient betaAnalyticsDataClient =
@@ -112,8 +121,11 @@
  * the wire:
  *
  * 
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * BetaAnalyticsDataSettings betaAnalyticsDataSettings =
  *     BetaAnalyticsDataSettings.newBuilder()
  *         .setTransportChannelProvider(
@@ -187,8 +199,11 @@ public BetaAnalyticsDataStub getStub() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   RunReportRequest request =
    *       RunReportRequest.newBuilder()
@@ -229,8 +244,11 @@ public final RunReportResponse runReport(RunReportRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   RunReportRequest request =
    *       RunReportRequest.newBuilder()
@@ -270,8 +288,11 @@ public final UnaryCallable runReportCallabl
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   RunPivotReportRequest request =
    *       RunPivotReportRequest.newBuilder()
@@ -308,8 +329,11 @@ public final RunPivotReportResponse runPivotReport(RunPivotReportRequest request
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   RunPivotReportRequest request =
    *       RunPivotReportRequest.newBuilder()
@@ -344,8 +368,11 @@ public final RunPivotReportResponse runPivotReport(RunPivotReportRequest request
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   BatchRunReportsRequest request =
    *       BatchRunReportsRequest.newBuilder()
@@ -370,8 +397,11 @@ public final BatchRunReportsResponse batchRunReports(BatchRunReportsRequest requ
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   BatchRunReportsRequest request =
    *       BatchRunReportsRequest.newBuilder()
@@ -397,8 +427,11 @@ public final BatchRunReportsResponse batchRunReports(BatchRunReportsRequest requ
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   BatchRunPivotReportsRequest request =
    *       BatchRunPivotReportsRequest.newBuilder()
@@ -424,8 +457,11 @@ public final BatchRunPivotReportsResponse batchRunPivotReports(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   BatchRunPivotReportsRequest request =
    *       BatchRunPivotReportsRequest.newBuilder()
@@ -458,8 +494,11 @@ public final BatchRunPivotReportsResponse batchRunPivotReports(
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   MetadataName name = MetadataName.of("[PROPERTY]");
    *   Metadata response = betaAnalyticsDataClient.getMetadata(name);
@@ -495,8 +534,11 @@ public final Metadata getMetadata(MetadataName name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   String name = MetadataName.of("[PROPERTY]").toString();
    *   Metadata response = betaAnalyticsDataClient.getMetadata(name);
@@ -531,8 +573,11 @@ public final Metadata getMetadata(String name) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   GetMetadataRequest request =
    *       GetMetadataRequest.newBuilder().setName(MetadataName.of("[PROPERTY]").toString()).build();
@@ -561,8 +606,11 @@ public final Metadata getMetadata(GetMetadataRequest request) {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   GetMetadataRequest request =
    *       GetMetadataRequest.newBuilder().setName(MetadataName.of("[PROPERTY]").toString()).build();
@@ -585,8 +633,11 @@ public final UnaryCallable getMetadataCallable() {
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   RunRealtimeReportRequest request =
    *       RunRealtimeReportRequest.newBuilder()
@@ -620,8 +671,11 @@ public final RunRealtimeReportResponse runRealtimeReport(RunRealtimeReportReques
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   RunRealtimeReportRequest request =
    *       RunRealtimeReportRequest.newBuilder()
@@ -664,8 +718,11 @@ public final RunRealtimeReportResponse runRealtimeReport(RunRealtimeReportReques
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   CheckCompatibilityRequest request =
    *       CheckCompatibilityRequest.newBuilder()
@@ -703,8 +760,11 @@ public final CheckCompatibilityResponse checkCompatibility(CheckCompatibilityReq
    * 

Sample code: * *

{@code
-   * // This snippet has been automatically generated for illustrative purposes only.
-   * // It may require modifications to work in your environment.
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
    *   CheckCompatibilityRequest request =
    *       CheckCompatibilityRequest.newBuilder()
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
index f23e6db9..dd7f7779 100644
--- 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
@@ -50,17 +50,17 @@
  * 

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

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * BetaAnalyticsDataSettings.Builder betaAnalyticsDataSettingsBuilder =
  *     BetaAnalyticsDataSettings.newBuilder();
  * betaAnalyticsDataSettingsBuilder
  *     .runReportSettings()
  *     .setRetrySettings(
- *         betaAnalyticsDataSettingsBuilder
- *             .runReportSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         betaAnalyticsDataSettingsBuilder.runReportSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * BetaAnalyticsDataSettings betaAnalyticsDataSettings = betaAnalyticsDataSettingsBuilder.build();
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
index 9fce29c0..06382cc7 100644
--- 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
@@ -24,8 +24,11 @@
  * 

Sample for BetaAnalyticsDataClient: * *

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * try (BetaAnalyticsDataClient betaAnalyticsDataClient = BetaAnalyticsDataClient.create()) {
  *   RunReportRequest request =
  *       RunReportRequest.newBuilder()
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
index 42182f46..8f1e0a55 100644
--- 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
@@ -75,17 +75,17 @@
  * 

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

{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
  * BetaAnalyticsDataStubSettings.Builder betaAnalyticsDataSettingsBuilder =
  *     BetaAnalyticsDataStubSettings.newBuilder();
  * betaAnalyticsDataSettingsBuilder
  *     .runReportSettings()
  *     .setRetrySettings(
- *         betaAnalyticsDataSettingsBuilder
- *             .runReportSettings()
- *             .getRetrySettings()
- *             .toBuilder()
+ *         betaAnalyticsDataSettingsBuilder.runReportSettings().getRetrySettings().toBuilder()
  *             .setTotalTimeout(Duration.ofSeconds(30))
  *             .build());
  * BetaAnalyticsDataStubSettings betaAnalyticsDataSettings =
diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataStub.java
index 3f13d461..92511960 100644
--- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataStub.java
+++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataStub.java
@@ -89,7 +89,7 @@ public class HttpJsonBetaAnalyticsDataStub extends BetaAnalyticsDataStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearProperty().build()))
+                                  .toBody("*", request.toBuilder().clearProperty().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -125,7 +125,7 @@ public class HttpJsonBetaAnalyticsDataStub extends BetaAnalyticsDataStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearProperty().build()))
+                                  .toBody("*", request.toBuilder().clearProperty().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -161,7 +161,7 @@ public class HttpJsonBetaAnalyticsDataStub extends BetaAnalyticsDataStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearProperty().build()))
+                                  .toBody("*", request.toBuilder().clearProperty().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -200,7 +200,7 @@ public class HttpJsonBetaAnalyticsDataStub extends BetaAnalyticsDataStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearProperty().build()))
+                                  .toBody("*", request.toBuilder().clearProperty().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -269,7 +269,7 @@ public class HttpJsonBetaAnalyticsDataStub extends BetaAnalyticsDataStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearProperty().build()))
+                                  .toBody("*", request.toBuilder().clearProperty().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()
@@ -306,7 +306,7 @@ public class HttpJsonBetaAnalyticsDataStub extends BetaAnalyticsDataStub {
                       .setRequestBodyExtractor(
                           request ->
                               ProtoRestSerializer.create()
-                                  .toBody("*", request.toBuilder().clearProperty().build()))
+                                  .toBody("*", request.toBuilder().clearProperty().build(), false))
                       .build())
               .setResponseParser(
                   ProtoMessageResponseParser.newBuilder()

From 463ac4bbc3791ccbe45b71ed6f338d77b8fa8df9 Mon Sep 17 00:00:00 2001
From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com>
Date: Sat, 10 Sep 2022 02:14:21 +0000
Subject: [PATCH 175/225] chore: Generated snippets should not be owned by
 samples reviewers (#1575) (#551)

Source-Link: https://github.com/googleapis/synthtool/commit/2e9ac19d5b8181af77cdc5337cf922517813cc49
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
---
 .github/.OwlBot.lock.yaml | 3 +--
 .github/CODEOWNERS        | 3 +++
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml
index 6610882f..62592923 100644
--- a/.github/.OwlBot.lock.yaml
+++ b/.github/.OwlBot.lock.yaml
@@ -13,5 +13,4 @@
 # limitations under the License.
 docker:
   image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest
-  digest: sha256:04f254abfe5f47fe73ae6f91d68d55c3b76e722a4943066c3bb0ce03573b4ad9
-# created: 2022-07-18T21:44:23.94208526Z
+  digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 64d122b8..96ee1fd7 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -10,3 +10,6 @@
 
 # The java-samples-reviewers team is the default owner for samples changes
 samples/**/*.java       @googleapis/java-samples-reviewers
+
+# Generated snippets should not be owned by samples reviewers
+samples/snippets/generated/       @googleapis/yoshi-java

From 2e2004cfa2b9a09f825c496574e6165ab58f9cf6 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Thu, 15 Sep 2022 15:48:23 +0200
Subject: [PATCH 176/225] deps: update dependency
 com.google.cloud:google-cloud-shared-dependencies to v3.0.3 (#552)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.2` -> `3.0.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/compatibility-slim/3.0.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.3/confidence-slim/3.0.2)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

googleapis/java-shared-dependencies ### [`v3.0.3`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​303-httpsgithubcomgoogleapisjava-shared-dependenciescomparev302v303-2022-09-14) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.2...v3.0.3) ##### Dependencies - Google-cloud-core 2.8.12 ([#​799](https://togithub.com/googleapis/java-shared-dependencies/issues/799)) ([1b3db8d](https://togithub.com/googleapis/java-shared-dependencies/commit/1b3db8d1e17c49ebae79fc96164fa9058e1df6e3)) - Moving gson to first-party-dependencies ([#​800](https://togithub.com/googleapis/java-shared-dependencies/issues/800)) ([a41fcc1](https://togithub.com/googleapis/java-shared-dependencies/commit/a41fcc11d32e02e5af2837561792e3919f6d4b3f)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.6 ([#​797](https://togithub.com/googleapis/java-shared-dependencies/issues/797)) ([bc5fdc9](https://togithub.com/googleapis/java-shared-dependencies/commit/bc5fdc9b3af7973c28f063a9ac156fe2af562814)) - Update gax.version to v2.19.1 ([#​798](https://togithub.com/googleapis/java-shared-dependencies/issues/798)) ([84e5487](https://togithub.com/googleapis/java-shared-dependencies/commit/84e5487b2e3dce4bb60badecebde788c3cb702b8)) - Update google.core.version to v2.8.11 ([#​793](https://togithub.com/googleapis/java-shared-dependencies/issues/793)) ([63c1297](https://togithub.com/googleapis/java-shared-dependencies/commit/63c129722aa0b821031ff5b4c11004adf7b12044))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 600f8bcf..1bef2b3d 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.2 + 3.0.3 pom import From 9d2367a5dc10d38e0e023f433450745f5b2669b4 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 15 Sep 2022 14:04:16 +0000 Subject: [PATCH 177/225] chore(main): release 0.14.6 (#553) :robot: I have created a release *beep* *boop* --- ## [0.14.6](https://github.com/googleapis/java-analytics-data/compare/v0.14.5...v0.14.6) (2022-09-15) ### Dependencies * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#552](https://github.com/googleapis/java-analytics-data/issues/552)) ([2e2004c](https://github.com/googleapis/java-analytics-data/commit/2e2004cfa2b9a09f825c496574e6165ab58f9cf6)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e1b625c2..3bcedb30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.14.6](https://github.com/googleapis/java-analytics-data/compare/v0.14.5...v0.14.6) (2022-09-15) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#552](https://github.com/googleapis/java-analytics-data/issues/552)) ([2e2004c](https://github.com/googleapis/java-analytics-data/commit/2e2004cfa2b9a09f825c496574e6165ab58f9cf6)) + ## [0.14.5](https://github.com/googleapis/java-analytics-data/compare/v0.14.4...v0.14.5) (2022-09-08) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 3d8ad8a6..d166d965 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.6-SNAPSHOT + 0.14.6 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.6-SNAPSHOT + 0.14.6 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.6-SNAPSHOT + 0.14.6 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.6-SNAPSHOT + 0.14.6 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.6-SNAPSHOT + 0.14.6 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.6-SNAPSHOT + 0.14.6 diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index b225e42c..a9fea601 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.6-SNAPSHOT + 0.14.6 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.6-SNAPSHOT + 0.14.6 google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 2a38df43..239f5046 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.6-SNAPSHOT + 0.14.6 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.6-SNAPSHOT + 0.14.6 diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index ec0a6fb1..c00ad089 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.6-SNAPSHOT + 0.14.6 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.6-SNAPSHOT + 0.14.6 diff --git a/pom.xml b/pom.xml index 1bef2b3d..d583838b 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.6-SNAPSHOT + 0.14.6 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.6-SNAPSHOT + 0.14.6 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.6-SNAPSHOT + 0.14.6 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.6-SNAPSHOT + 0.14.6 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.6-SNAPSHOT + 0.14.6 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.6-SNAPSHOT + 0.14.6 diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index 62b89708..775b36ae 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.6-SNAPSHOT + 0.14.6 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.6-SNAPSHOT + 0.14.6 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 3c14afdc..d5ad08b4 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.6-SNAPSHOT + 0.14.6 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.6-SNAPSHOT + 0.14.6 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 39888a9a..41bd786e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.6-SNAPSHOT + 0.14.6 diff --git a/versions.txt b/versions.txt index ef1d6908..f0c0babf 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.5:0.14.6-SNAPSHOT -grpc-google-analytics-data-v1beta:0.14.5:0.14.6-SNAPSHOT -proto-google-analytics-data-v1beta:0.14.5:0.14.6-SNAPSHOT -proto-google-analytics-data-v1alpha:0.14.5:0.14.6-SNAPSHOT -grpc-google-analytics-data-v1alpha:0.14.5:0.14.6-SNAPSHOT +google-analytics-data:0.14.6:0.14.6 +grpc-google-analytics-data-v1beta:0.14.6:0.14.6 +proto-google-analytics-data-v1beta:0.14.6:0.14.6 +proto-google-analytics-data-v1alpha:0.14.6:0.14.6 +grpc-google-analytics-data-v1alpha:0.14.6:0.14.6 From 1c9d9f19aa063f9b529b77978039d47a22c69303 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 15 Sep 2022 14:20:15 +0000 Subject: [PATCH 178/225] chore(main): release 0.14.7-SNAPSHOT (#554) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index d166d965..5e9b9206 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.6 + 0.14.7-SNAPSHOT pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.6 + 0.14.7-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.6 + 0.14.7-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.6 + 0.14.7-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.6 + 0.14.7-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.6 + 0.14.7-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index a9fea601..913a9a91 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.6 + 0.14.7-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.6 + 0.14.7-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 239f5046..659f6871 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.6 + 0.14.7-SNAPSHOT grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.6 + 0.14.7-SNAPSHOT diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index c00ad089..c70abbcc 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.6 + 0.14.7-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.6 + 0.14.7-SNAPSHOT diff --git a/pom.xml b/pom.xml index d583838b..fb7f59ea 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.6 + 0.14.7-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.6 + 0.14.7-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.6 + 0.14.7-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.6 + 0.14.7-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.6 + 0.14.7-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.6 + 0.14.7-SNAPSHOT diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index 775b36ae..9a5a7c5a 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.6 + 0.14.7-SNAPSHOT proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.6 + 0.14.7-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index d5ad08b4..825b5b28 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.6 + 0.14.7-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.6 + 0.14.7-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 41bd786e..ba34c3fb 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.6 + 0.14.7-SNAPSHOT diff --git a/versions.txt b/versions.txt index f0c0babf..c362f6c0 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.6:0.14.6 -grpc-google-analytics-data-v1beta:0.14.6:0.14.6 -proto-google-analytics-data-v1beta:0.14.6:0.14.6 -proto-google-analytics-data-v1alpha:0.14.6:0.14.6 -grpc-google-analytics-data-v1alpha:0.14.6:0.14.6 +google-analytics-data:0.14.6:0.14.7-SNAPSHOT +grpc-google-analytics-data-v1beta:0.14.6:0.14.7-SNAPSHOT +proto-google-analytics-data-v1beta:0.14.6:0.14.7-SNAPSHOT +proto-google-analytics-data-v1alpha:0.14.6:0.14.7-SNAPSHOT +grpc-google-analytics-data-v1alpha:0.14.6:0.14.7-SNAPSHOT From 52836453d4b2ad3ec4b2efedae9763890dc2b0a1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 16:02:25 +0200 Subject: [PATCH 179/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.14.6 (#555) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.14.5` -> `0.14.6` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.6/compatibility-slim/0.14.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.6/confidence-slim/0.14.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 86000f8d..43938850 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.14.5 + 0.14.6 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.14.5' +implementation 'com.google.analytics:google-analytics-data:0.14.6' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.14.5" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.14.6" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index 64f4aa15..d8bcf3f8 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.14.5 + 0.14.6 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index cd4df447..e6e58cef 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.5 + 0.14.6 com.google.auth From 3f0ae523b77c59e471c291af661a5719f579d427 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 17:36:31 +0200 Subject: [PATCH 180/225] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.2 (#556) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.1` -> `26.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/compatibility-slim/26.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/confidence-slim/26.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index ba34c3fb..b79b28e9 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 26.1.1 + 26.1.2 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index e6e58cef..2ef44010 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 26.1.1 + 26.1.2 pom import From 0360811080756b0734599e92dd8260bf80855103 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 26 Sep 2022 21:54:13 +0000 Subject: [PATCH 181/225] chore: exclude requirements.txt file from renovate-bot (#1594) (#558) Source-Link: https://github.com/googleapis/synthtool/commit/f58d3135a2fab20e225d98741dbc06d57459b816 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/release/publish_javadoc.sh | 2 +- .kokoro/release/publish_javadoc11.sh | 2 +- .kokoro/release/stage.sh | 3 +- .kokoro/requirements.in | 31 ++ .kokoro/requirements.txt | 452 +++++++++++++++++++++++++++ renovate.json | 1 + 7 files changed, 489 insertions(+), 4 deletions(-) create mode 100644 .kokoro/requirements.in create mode 100644 .kokoro/requirements.txt diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 62592923..42327db5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:8175681a918181d306d9c370d3262f16b4c724cc73d74111b7d42fc985ca7f93 + digest: sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index e90f0e3f..1a118d54 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -28,7 +28,7 @@ fi pushd $(dirname "$0")/../../ # install docuploader package -python3 -m pip install gcp-docuploader +python3 -m pip install --require-hashes -r .kokoro/requirements.txt # compile all packages mvn clean install -B -q -DskipTests=true diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index c131f1b4..f5f43f24 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -28,7 +28,7 @@ fi pushd $(dirname "$0")/../../ # install docuploader package -python3 -m pip install gcp-docuploader +python3 -m pip install --require-hashes -r .kokoro/requirements.txt # compile all packages mvn clean install -B -q -DskipTests=true diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh index 1dba8de1..61e714d6 100755 --- a/.kokoro/release/stage.sh +++ b/.kokoro/release/stage.sh @@ -16,7 +16,8 @@ set -eo pipefail # Start the releasetool reporter -python3 -m pip install gcp-releasetool +requirementsFile=$(realpath $(dirname "${BASH_SOURCE[0]}")/../requirements.txt) +python3 -m pip install --require-hashes -r $requirementsFile python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script source $(dirname "$0")/common.sh diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in new file mode 100644 index 00000000..cfdc2e7e --- /dev/null +++ b/.kokoro/requirements.in @@ -0,0 +1,31 @@ +gcp-docuploader==0.6.3 +google-crc32c==1.3.0 +googleapis-common-protos==1.56.3 +gcp-releasetool==1.8.7 +cachetools==4.2.4 +cffi==1.15.1 +jeepney==0.7.1 +jinja2==3.0.3 +markupsafe==2.0.1 +keyring==23.4.1 +packaging==21.3 +protobuf==3.19.5 +pyjwt==2.4.0 +pyparsing==3.0.9 +pycparser==2.21 +pyperclip==1.8.2 +python-dateutil==2.8.2 +requests==2.27.1 +importlib-metadata==4.8.3 +zipp==3.6.0 +google_api_core==2.8.2 +google-cloud-storage==2.0.0 +google-cloud-core==2.3.1 +typing-extensions==4.1.1 +urllib3==1.26.12 +zipp==3.6.0 +rsa==4.9 +six==1.16.0 +attrs==22.1.0 +google-auth==2.11.0 +idna==3.4 \ No newline at end of file diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt new file mode 100644 index 00000000..170f1c63 --- /dev/null +++ b/.kokoro/requirements.txt @@ -0,0 +1,452 @@ +# +# This file is autogenerated by pip-compile with python 3.10 +# To update, run: +# +# pip-compile --allow-unsafe --generate-hashes requirements.in +# +attrs==22.1.0 \ + --hash=sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \ + --hash=sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c + # via + # -r requirements.in + # gcp-releasetool +cachetools==4.2.4 \ + --hash=sha256:89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693 \ + --hash=sha256:92971d3cb7d2a97efff7c7bb1657f21a8f5fb309a37530537c71b1774189f2d1 + # via + # -r requirements.in + # google-auth +certifi==2022.9.14 \ + --hash=sha256:36973885b9542e6bd01dea287b2b4b3b21236307c56324fcc3f1160f2d655ed5 \ + --hash=sha256:e232343de1ab72c2aa521b625c80f699e356830fd0e2c620b465b304b17b0516 + # via requests +cffi==1.15.1 \ + --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ + --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ + --hash=sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104 \ + --hash=sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426 \ + --hash=sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405 \ + --hash=sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375 \ + --hash=sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a \ + --hash=sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e \ + --hash=sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc \ + --hash=sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf \ + --hash=sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185 \ + --hash=sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497 \ + --hash=sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3 \ + --hash=sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35 \ + --hash=sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c \ + --hash=sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83 \ + --hash=sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21 \ + --hash=sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca \ + --hash=sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984 \ + --hash=sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac \ + --hash=sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd \ + --hash=sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee \ + --hash=sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a \ + --hash=sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2 \ + --hash=sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192 \ + --hash=sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7 \ + --hash=sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585 \ + --hash=sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f \ + --hash=sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e \ + --hash=sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27 \ + --hash=sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b \ + --hash=sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e \ + --hash=sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e \ + --hash=sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d \ + --hash=sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c \ + --hash=sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415 \ + --hash=sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82 \ + --hash=sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02 \ + --hash=sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314 \ + --hash=sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325 \ + --hash=sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c \ + --hash=sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3 \ + --hash=sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914 \ + --hash=sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045 \ + --hash=sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d \ + --hash=sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9 \ + --hash=sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5 \ + --hash=sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2 \ + --hash=sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c \ + --hash=sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3 \ + --hash=sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2 \ + --hash=sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8 \ + --hash=sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d \ + --hash=sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d \ + --hash=sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9 \ + --hash=sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162 \ + --hash=sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76 \ + --hash=sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4 \ + --hash=sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e \ + --hash=sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9 \ + --hash=sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6 \ + --hash=sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b \ + --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 \ + --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0 + # via + # -r requirements.in + # cryptography +charset-normalizer==2.0.12 \ + --hash=sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597 \ + --hash=sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df + # via requests +click==8.0.4 \ + --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \ + --hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb + # via + # gcp-docuploader + # gcp-releasetool +colorlog==6.7.0 \ + --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ + --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 + # via gcp-docuploader +cryptography==38.0.1 \ + --hash=sha256:0297ffc478bdd237f5ca3a7dc96fc0d315670bfa099c04dc3a4a2172008a405a \ + --hash=sha256:10d1f29d6292fc95acb597bacefd5b9e812099d75a6469004fd38ba5471a977f \ + --hash=sha256:16fa61e7481f4b77ef53991075de29fc5bacb582a1244046d2e8b4bb72ef66d0 \ + --hash=sha256:194044c6b89a2f9f169df475cc167f6157eb9151cc69af8a2a163481d45cc407 \ + --hash=sha256:1db3d807a14931fa317f96435695d9ec386be7b84b618cc61cfa5d08b0ae33d7 \ + --hash=sha256:3261725c0ef84e7592597606f6583385fed2a5ec3909f43bc475ade9729a41d6 \ + --hash=sha256:3b72c360427889b40f36dc214630e688c2fe03e16c162ef0aa41da7ab1455153 \ + --hash=sha256:3e3a2599e640927089f932295a9a247fc40a5bdf69b0484532f530471a382750 \ + --hash=sha256:3fc26e22840b77326a764ceb5f02ca2d342305fba08f002a8c1f139540cdfaad \ + --hash=sha256:5067ee7f2bce36b11d0e334abcd1ccf8c541fc0bbdaf57cdd511fdee53e879b6 \ + --hash=sha256:52e7bee800ec869b4031093875279f1ff2ed12c1e2f74923e8f49c916afd1d3b \ + --hash=sha256:64760ba5331e3f1794d0bcaabc0d0c39e8c60bf67d09c93dc0e54189dfd7cfe5 \ + --hash=sha256:765fa194a0f3372d83005ab83ab35d7c5526c4e22951e46059b8ac678b44fa5a \ + --hash=sha256:79473cf8a5cbc471979bd9378c9f425384980fcf2ab6534b18ed7d0d9843987d \ + --hash=sha256:896dd3a66959d3a5ddcfc140a53391f69ff1e8f25d93f0e2e7830c6de90ceb9d \ + --hash=sha256:89ed49784ba88c221756ff4d4755dbc03b3c8d2c5103f6d6b4f83a0fb1e85294 \ + --hash=sha256:ac7e48f7e7261207d750fa7e55eac2d45f720027d5703cd9007e9b37bbb59ac0 \ + --hash=sha256:ad7353f6ddf285aeadfaf79e5a6829110106ff8189391704c1d8801aa0bae45a \ + --hash=sha256:b0163a849b6f315bf52815e238bc2b2346604413fa7c1601eea84bcddb5fb9ac \ + --hash=sha256:b6c9b706316d7b5a137c35e14f4103e2115b088c412140fdbd5f87c73284df61 \ + --hash=sha256:c2e5856248a416767322c8668ef1845ad46ee62629266f84a8f007a317141013 \ + --hash=sha256:ca9f6784ea96b55ff41708b92c3f6aeaebde4c560308e5fbbd3173fbc466e94e \ + --hash=sha256:d1a5bd52d684e49a36582193e0b89ff267704cd4025abefb9e26803adeb3e5fb \ + --hash=sha256:d3971e2749a723e9084dd507584e2a2761f78ad2c638aa31e80bc7a15c9db4f9 \ + --hash=sha256:d4ef6cc305394ed669d4d9eebf10d3a101059bdcf2669c366ec1d14e4fb227bd \ + --hash=sha256:d9e69ae01f99abe6ad646947bba8941e896cb3aa805be2597a0400e0764b5818 + # via + # gcp-releasetool + # secretstorage +gcp-docuploader==0.6.3 \ + --hash=sha256:ba8c9d76b3bbac54b0311c503a373b00edc2dc02d6d54ea9507045adb8e870f7 \ + --hash=sha256:c0f5aaa82ce1854a386197e4e359b120ad6d4e57ae2c812fce42219a3288026b + # via -r requirements.in +gcp-releasetool==1.8.7 \ + --hash=sha256:3d2a67c9db39322194afb3b427e9cb0476ce8f2a04033695f0aeb63979fc2b37 \ + --hash=sha256:5e4d28f66e90780d77f3ecf1e9155852b0c3b13cbccb08ab07e66b2357c8da8d + # via -r requirements.in +google-api-core==2.8.2 \ + --hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \ + --hash=sha256:93c6a91ccac79079ac6bbf8b74ee75db970cc899278b97d53bc012f35908cf50 + # via + # -r requirements.in + # google-cloud-core + # google-cloud-storage +google-auth==2.11.0 \ + --hash=sha256:be62acaae38d0049c21ca90f27a23847245c9f161ff54ede13af2cb6afecbac9 \ + --hash=sha256:ed65ecf9f681832298e29328e1ef0a3676e3732b2e56f41532d45f70a22de0fb + # via + # -r requirements.in + # gcp-releasetool + # google-api-core + # google-cloud-core + # google-cloud-storage +google-cloud-core==2.3.1 \ + --hash=sha256:113ba4f492467d5bd442c8d724c1a25ad7384045c3178369038840ecdd19346c \ + --hash=sha256:34334359cb04187bdc80ddcf613e462dfd7a3aabbc3fe4d118517ab4b9303d53 + # via + # -r requirements.in + # google-cloud-storage +google-cloud-storage==2.0.0 \ + --hash=sha256:a57a15aead0f9dfbd4381f1bfdbe8bf89818a4bd75bab846cafcefb2db846c47 \ + --hash=sha256:ec4be60bb223a3a960f0d01697d849b86d91cad815a84915a32ed3635e93a5e7 + # via + # -r requirements.in + # gcp-docuploader +google-crc32c==1.3.0 \ + --hash=sha256:04e7c220798a72fd0f08242bc8d7a05986b2a08a0573396187fd32c1dcdd58b3 \ + --hash=sha256:05340b60bf05b574159e9bd940152a47d38af3fb43803ffe71f11d704b7696a6 \ + --hash=sha256:12674a4c3b56b706153a358eaa1018c4137a5a04635b92b4652440d3d7386206 \ + --hash=sha256:127f9cc3ac41b6a859bd9dc4321097b1a4f6aa7fdf71b4f9227b9e3ebffb4422 \ + --hash=sha256:13af315c3a0eec8bb8b8d80b8b128cb3fcd17d7e4edafc39647846345a3f003a \ + --hash=sha256:1926fd8de0acb9d15ee757175ce7242e235482a783cd4ec711cc999fc103c24e \ + --hash=sha256:226f2f9b8e128a6ca6a9af9b9e8384f7b53a801907425c9a292553a3a7218ce0 \ + --hash=sha256:276de6273eb074a35bc598f8efbc00c7869c5cf2e29c90748fccc8c898c244df \ + --hash=sha256:318f73f5484b5671f0c7f5f63741ab020a599504ed81d209b5c7129ee4667407 \ + --hash=sha256:3bbce1be3687bbfebe29abdb7631b83e6b25da3f4e1856a1611eb21854b689ea \ + --hash=sha256:42ae4781333e331a1743445931b08ebdad73e188fd554259e772556fc4937c48 \ + --hash=sha256:58be56ae0529c664cc04a9c76e68bb92b091e0194d6e3c50bea7e0f266f73713 \ + --hash=sha256:5da2c81575cc3ccf05d9830f9e8d3c70954819ca9a63828210498c0774fda1a3 \ + --hash=sha256:6311853aa2bba4064d0c28ca54e7b50c4d48e3de04f6770f6c60ebda1e975267 \ + --hash=sha256:650e2917660e696041ab3dcd7abac160b4121cd9a484c08406f24c5964099829 \ + --hash=sha256:6a4db36f9721fdf391646685ecffa404eb986cbe007a3289499020daf72e88a2 \ + --hash=sha256:779cbf1ce375b96111db98fca913c1f5ec11b1d870e529b1dc7354b2681a8c3a \ + --hash=sha256:7f6fe42536d9dcd3e2ffb9d3053f5d05221ae3bbcefbe472bdf2c71c793e3183 \ + --hash=sha256:891f712ce54e0d631370e1f4997b3f182f3368179198efc30d477c75d1f44942 \ + --hash=sha256:95c68a4b9b7828ba0428f8f7e3109c5d476ca44996ed9a5f8aac6269296e2d59 \ + --hash=sha256:96a8918a78d5d64e07c8ea4ed2bc44354e3f93f46a4866a40e8db934e4c0d74b \ + --hash=sha256:9c3cf890c3c0ecfe1510a452a165431b5831e24160c5fcf2071f0f85ca5a47cd \ + --hash=sha256:9f58099ad7affc0754ae42e6d87443299f15d739b0ce03c76f515153a5cda06c \ + --hash=sha256:a0b9e622c3b2b8d0ce32f77eba617ab0d6768b82836391e4f8f9e2074582bf02 \ + --hash=sha256:a7f9cbea4245ee36190f85fe1814e2d7b1e5f2186381b082f5d59f99b7f11328 \ + --hash=sha256:bab4aebd525218bab4ee615786c4581952eadc16b1ff031813a2fd51f0cc7b08 \ + --hash=sha256:c124b8c8779bf2d35d9b721e52d4adb41c9bfbde45e6a3f25f0820caa9aba73f \ + --hash=sha256:c9da0a39b53d2fab3e5467329ed50e951eb91386e9d0d5b12daf593973c3b168 \ + --hash=sha256:ca60076c388728d3b6ac3846842474f4250c91efbfe5afa872d3ffd69dd4b318 \ + --hash=sha256:cb6994fff247987c66a8a4e550ef374671c2b82e3c0d2115e689d21e511a652d \ + --hash=sha256:d1c1d6236feab51200272d79b3d3e0f12cf2cbb12b208c835b175a21efdb0a73 \ + --hash=sha256:dd7760a88a8d3d705ff562aa93f8445ead54f58fd482e4f9e2bafb7e177375d4 \ + --hash=sha256:dda4d8a3bb0b50f540f6ff4b6033f3a74e8bf0bd5320b70fab2c03e512a62812 \ + --hash=sha256:e0f1ff55dde0ebcfbef027edc21f71c205845585fffe30d4ec4979416613e9b3 \ + --hash=sha256:e7a539b9be7b9c00f11ef16b55486141bc2cdb0c54762f84e3c6fc091917436d \ + --hash=sha256:eb0b14523758e37802f27b7f8cd973f5f3d33be7613952c0df904b68c4842f0e \ + --hash=sha256:ed447680ff21c14aaceb6a9f99a5f639f583ccfe4ce1a5e1d48eb41c3d6b3217 \ + --hash=sha256:f52a4ad2568314ee713715b1e2d79ab55fab11e8b304fd1462ff5cccf4264b3e \ + --hash=sha256:fbd60c6aaa07c31d7754edbc2334aef50601b7f1ada67a96eb1eb57c7c72378f \ + --hash=sha256:fc28e0db232c62ca0c3600884933178f0825c99be4474cdd645e378a10588125 \ + --hash=sha256:fe31de3002e7b08eb20823b3735b97c86c5926dd0581c7710a680b418a8709d4 \ + --hash=sha256:fec221a051150eeddfdfcff162e6db92c65ecf46cb0f7bb1bf812a1520ec026b \ + --hash=sha256:ff71073ebf0e42258a42a0b34f2c09ec384977e7f6808999102eedd5b49920e3 + # via + # -r requirements.in + # google-resumable-media +google-resumable-media==2.3.3 \ + --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ + --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 + # via google-cloud-storage +googleapis-common-protos==1.56.3 \ + --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ + --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 + # via + # -r requirements.in + # google-api-core +idna==3.4 \ + --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \ + --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2 + # via + # -r requirements.in + # requests +importlib-metadata==4.8.3 \ + --hash=sha256:65a9576a5b2d58ca44d133c42a241905cc45e34d2c06fd5ba2bafa221e5d7b5e \ + --hash=sha256:766abffff765960fcc18003801f7044eb6755ffae4521c8e8ce8e83b9c9b0668 + # via + # -r requirements.in + # keyring +jeepney==0.7.1 \ + --hash=sha256:1b5a0ea5c0e7b166b2f5895b91a08c14de8915afda4407fb5022a195224958ac \ + --hash=sha256:fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f + # via + # -r requirements.in + # keyring + # secretstorage +jinja2==3.0.3 \ + --hash=sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8 \ + --hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7 + # via + # -r requirements.in + # gcp-releasetool +keyring==23.4.1 \ + --hash=sha256:17e49fb0d6883c2b4445359434dba95aad84aabb29bbff044ad0ed7100232eca \ + --hash=sha256:89cbd74d4683ed164c8082fb38619341097741323b3786905c6dac04d6915a55 + # via + # -r requirements.in + # gcp-releasetool +markupsafe==2.0.1 \ + --hash=sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298 \ + --hash=sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64 \ + --hash=sha256:0446679737af14f45767963a1a9ef7620189912317d095f2d9ffa183a4d25d2b \ + --hash=sha256:04635854b943835a6ea959e948d19dcd311762c5c0c6e1f0e16ee57022669194 \ + --hash=sha256:0717a7390a68be14b8c793ba258e075c6f4ca819f15edfc2a3a027c823718567 \ + --hash=sha256:0955295dd5eec6cb6cc2fe1698f4c6d84af2e92de33fbcac4111913cd100a6ff \ + --hash=sha256:0d4b31cc67ab36e3392bbf3862cfbadac3db12bdd8b02a2731f509ed5b829724 \ + --hash=sha256:10f82115e21dc0dfec9ab5c0223652f7197feb168c940f3ef61563fc2d6beb74 \ + --hash=sha256:168cd0a3642de83558a5153c8bd34f175a9a6e7f6dc6384b9655d2697312a646 \ + --hash=sha256:1d609f577dc6e1aa17d746f8bd3c31aa4d258f4070d61b2aa5c4166c1539de35 \ + --hash=sha256:1f2ade76b9903f39aa442b4aadd2177decb66525062db244b35d71d0ee8599b6 \ + --hash=sha256:20dca64a3ef2d6e4d5d615a3fd418ad3bde77a47ec8a23d984a12b5b4c74491a \ + --hash=sha256:2a7d351cbd8cfeb19ca00de495e224dea7e7d919659c2841bbb7f420ad03e2d6 \ + --hash=sha256:2d7d807855b419fc2ed3e631034685db6079889a1f01d5d9dac950f764da3dad \ + --hash=sha256:2ef54abee730b502252bcdf31b10dacb0a416229b72c18b19e24a4509f273d26 \ + --hash=sha256:36bc903cbb393720fad60fc28c10de6acf10dc6cc883f3e24ee4012371399a38 \ + --hash=sha256:37205cac2a79194e3750b0af2a5720d95f786a55ce7df90c3af697bfa100eaac \ + --hash=sha256:3c112550557578c26af18a1ccc9e090bfe03832ae994343cfdacd287db6a6ae7 \ + --hash=sha256:3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6 \ + --hash=sha256:4296f2b1ce8c86a6aea78613c34bb1a672ea0e3de9c6ba08a960efe0b0a09047 \ + --hash=sha256:47ab1e7b91c098ab893b828deafa1203de86d0bc6ab587b160f78fe6c4011f75 \ + --hash=sha256:49e3ceeabbfb9d66c3aef5af3a60cc43b85c33df25ce03d0031a608b0a8b2e3f \ + --hash=sha256:4dc8f9fb58f7364b63fd9f85013b780ef83c11857ae79f2feda41e270468dd9b \ + --hash=sha256:4efca8f86c54b22348a5467704e3fec767b2db12fc39c6d963168ab1d3fc9135 \ + --hash=sha256:53edb4da6925ad13c07b6d26c2a852bd81e364f95301c66e930ab2aef5b5ddd8 \ + --hash=sha256:5855f8438a7d1d458206a2466bf82b0f104a3724bf96a1c781ab731e4201731a \ + --hash=sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a \ + --hash=sha256:5b6d930f030f8ed98e3e6c98ffa0652bdb82601e7a016ec2ab5d7ff23baa78d1 \ + --hash=sha256:5bb28c636d87e840583ee3adeb78172efc47c8b26127267f54a9c0ec251d41a9 \ + --hash=sha256:60bf42e36abfaf9aff1f50f52644b336d4f0a3fd6d8a60ca0d054ac9f713a864 \ + --hash=sha256:611d1ad9a4288cf3e3c16014564df047fe08410e628f89805e475368bd304914 \ + --hash=sha256:6300b8454aa6930a24b9618fbb54b5a68135092bc666f7b06901f897fa5c2fee \ + --hash=sha256:63f3268ba69ace99cab4e3e3b5840b03340efed0948ab8f78d2fd87ee5442a4f \ + --hash=sha256:6557b31b5e2c9ddf0de32a691f2312a32f77cd7681d8af66c2692efdbef84c18 \ + --hash=sha256:693ce3f9e70a6cf7d2fb9e6c9d8b204b6b39897a2c4a1aa65728d5ac97dcc1d8 \ + --hash=sha256:6a7fae0dd14cf60ad5ff42baa2e95727c3d81ded453457771d02b7d2b3f9c0c2 \ + --hash=sha256:6c4ca60fa24e85fe25b912b01e62cb969d69a23a5d5867682dd3e80b5b02581d \ + --hash=sha256:6fcf051089389abe060c9cd7caa212c707e58153afa2c649f00346ce6d260f1b \ + --hash=sha256:7d91275b0245b1da4d4cfa07e0faedd5b0812efc15b702576d103293e252af1b \ + --hash=sha256:89c687013cb1cd489a0f0ac24febe8c7a666e6e221b783e53ac50ebf68e45d86 \ + --hash=sha256:8d206346619592c6200148b01a2142798c989edcb9c896f9ac9722a99d4e77e6 \ + --hash=sha256:905fec760bd2fa1388bb5b489ee8ee5f7291d692638ea5f67982d968366bef9f \ + --hash=sha256:97383d78eb34da7e1fa37dd273c20ad4320929af65d156e35a5e2d89566d9dfb \ + --hash=sha256:984d76483eb32f1bcb536dc27e4ad56bba4baa70be32fa87152832cdd9db0833 \ + --hash=sha256:99df47edb6bda1249d3e80fdabb1dab8c08ef3975f69aed437cb69d0a5de1e28 \ + --hash=sha256:9f02365d4e99430a12647f09b6cc8bab61a6564363f313126f775eb4f6ef798e \ + --hash=sha256:a30e67a65b53ea0a5e62fe23682cfe22712e01f453b95233b25502f7c61cb415 \ + --hash=sha256:ab3ef638ace319fa26553db0624c4699e31a28bb2a835c5faca8f8acf6a5a902 \ + --hash=sha256:aca6377c0cb8a8253e493c6b451565ac77e98c2951c45f913e0b52facdcff83f \ + --hash=sha256:add36cb2dbb8b736611303cd3bfcee00afd96471b09cda130da3581cbdc56a6d \ + --hash=sha256:b2f4bf27480f5e5e8ce285a8c8fd176c0b03e93dcc6646477d4630e83440c6a9 \ + --hash=sha256:b7f2d075102dc8c794cbde1947378051c4e5180d52d276987b8d28a3bd58c17d \ + --hash=sha256:baa1a4e8f868845af802979fcdbf0bb11f94f1cb7ced4c4b8a351bb60d108145 \ + --hash=sha256:be98f628055368795d818ebf93da628541e10b75b41c559fdf36d104c5787066 \ + --hash=sha256:bf5d821ffabf0ef3533c39c518f3357b171a1651c1ff6827325e4489b0e46c3c \ + --hash=sha256:c47adbc92fc1bb2b3274c4b3a43ae0e4573d9fbff4f54cd484555edbf030baf1 \ + --hash=sha256:cdfba22ea2f0029c9261a4bd07e830a8da012291fbe44dc794e488b6c9bb353a \ + --hash=sha256:d6c7ebd4e944c85e2c3421e612a7057a2f48d478d79e61800d81468a8d842207 \ + --hash=sha256:d7f9850398e85aba693bb640262d3611788b1f29a79f0c93c565694658f4071f \ + --hash=sha256:d8446c54dc28c01e5a2dbac5a25f071f6653e6e40f3a8818e8b45d790fe6ef53 \ + --hash=sha256:deb993cacb280823246a026e3b2d81c493c53de6acfd5e6bfe31ab3402bb37dd \ + --hash=sha256:e0f138900af21926a02425cf736db95be9f4af72ba1bb21453432a07f6082134 \ + --hash=sha256:e9936f0b261d4df76ad22f8fee3ae83b60d7c3e871292cd42f40b81b70afae85 \ + --hash=sha256:f0567c4dc99f264f49fe27da5f735f414c4e7e7dd850cfd8e69f0862d7c74ea9 \ + --hash=sha256:f5653a225f31e113b152e56f154ccbe59eeb1c7487b39b9d9f9cdb58e6c79dc5 \ + --hash=sha256:f826e31d18b516f653fe296d967d700fddad5901ae07c622bb3705955e1faa94 \ + --hash=sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509 \ + --hash=sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51 \ + --hash=sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872 + # via + # -r requirements.in + # jinja2 +packaging==21.3 \ + --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ + --hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522 + # via + # -r requirements.in + # gcp-releasetool +protobuf==3.19.5 \ + --hash=sha256:1867f93b06a183f87696871bb8d1e99ee71dbb69d468ce1f0cc8bf3d30f982f3 \ + --hash=sha256:3c4160b601220627f7e91154e572baf5e161a9c3f445a8242d536ee3d0b7b17c \ + --hash=sha256:4ee2af7051d3b10c8a4fe6fd1a2c69f201fea36aeee7086cf202a692e1b99ee1 \ + --hash=sha256:5266c36cc0af3bb3dbf44f199d225b33da66a9a5c3bdc2b14865ad10eddf0e37 \ + --hash=sha256:5470f892961af464ae6eaf0f3099e2c1190ae8c7f36f174b89491281341f79ca \ + --hash=sha256:66d14b5b90090353efe75c9fb1bf65ef7267383034688d255b500822e37d5c2f \ + --hash=sha256:67efb5d20618020aa9596e17bfc37ca068c28ec0c1507d9507f73c93d46c9855 \ + --hash=sha256:696e6cfab94cc15a14946f2bf72719dced087d437adbd994fff34f38986628bc \ + --hash=sha256:6a02172b9650f819d01fb8e224fc69b0706458fc1ab4f1c669281243c71c1a5e \ + --hash=sha256:6eca9ae238ba615d702387a2ddea635d535d769994a9968c09a4ca920c487ab9 \ + --hash=sha256:950abd6c00e7b51f87ae8b18a0ce4d69fea217f62f171426e77de5061f6d9850 \ + --hash=sha256:9e1d74032f56ff25f417cfe84c8147047732e5059137ca42efad20cbbd25f5e0 \ + --hash=sha256:9e42b1cf2ecd8a1bd161239e693f22035ba99905ae6d7efeac8a0546c7ec1a27 \ + --hash=sha256:9f957ef53e872d58a0afd3bf6d80d48535d28c99b40e75e6634cbc33ea42fd54 \ + --hash=sha256:a89aa0c042e61e11ade320b802d6db4ee5391d8d973e46d3a48172c1597789f8 \ + --hash=sha256:c0f80876a8ff0ae7064084ed094eb86497bd5a3812e6fc96a05318b92301674e \ + --hash=sha256:c44e3282cff74ad18c7e8a0375f407f69ee50c2116364b44492a196293e08b21 \ + --hash=sha256:d249519ba5ecf5dd6b18150c9b6bcde510b273714b696f3923ff8308fc11ae49 \ + --hash=sha256:d3973a2d58aefc7d1230725c2447ce7f86a71cbc094b86a77c6ee1505ac7cdb1 \ + --hash=sha256:dca2284378a5f2a86ffed35c6ac147d14c48b525eefcd1083e5a9ce28dfa8657 \ + --hash=sha256:e63b0b3c42e51c94add62b010366cd4979cb6d5f06158bcae8faac4c294f91e1 \ + --hash=sha256:f2b599a21c9a32e171ec29a2ac54e03297736c578698e11b099d031f79da114b \ + --hash=sha256:f2bde37667b18c2b5280df83bc799204394a5d2d774e4deaf9de0eb741df6833 \ + --hash=sha256:f4f909f4dde413dec435a44b0894956d55bb928ded7d6e3c726556ca4c796e84 \ + --hash=sha256:f976234e20ab2785f54224bcdafa027674e23663b132fa3ca0caa291a6cfbde7 \ + --hash=sha256:f9cebda093c2f6bfed88f1c17cdade09d4d96096421b344026feee236532d4de + # via + # -r requirements.in + # gcp-docuploader + # gcp-releasetool + # google-api-core + # google-cloud-storage + # googleapis-common-protos +pyasn1==0.4.8 \ + --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ + --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba + # via + # pyasn1-modules + # rsa +pyasn1-modules==0.2.8 \ + --hash=sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e \ + --hash=sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74 + # via google-auth +pycparser==2.21 \ + --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \ + --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 + # via + # -r requirements.in + # cffi +pyjwt==2.4.0 \ + --hash=sha256:72d1d253f32dbd4f5c88eaf1fdc62f3a19f676ccbadb9dbc5d07e951b2b26daf \ + --hash=sha256:d42908208c699b3b973cbeb01a969ba6a96c821eefb1c5bfe4c390c01d67abba + # via + # -r requirements.in + # gcp-releasetool +pyparsing==3.0.9 \ + --hash=sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb \ + --hash=sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc + # via + # -r requirements.in + # packaging +pyperclip==1.8.2 \ + --hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57 + # via + # -r requirements.in + # gcp-releasetool +python-dateutil==2.8.2 \ + --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \ + --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9 + # via + # -r requirements.in + # gcp-releasetool +requests==2.27.1 \ + --hash=sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61 \ + --hash=sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d + # via + # -r requirements.in + # gcp-releasetool + # google-api-core + # google-cloud-storage +rsa==4.9 \ + --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \ + --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 + # via + # -r requirements.in + # google-auth +secretstorage==3.3.3 \ + --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ + --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 + # via keyring +six==1.16.0 \ + --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ + --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 + # via + # -r requirements.in + # gcp-docuploader + # google-auth + # python-dateutil +typing-extensions==4.1.1 \ + --hash=sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42 \ + --hash=sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2 + # via -r requirements.in +urllib3==1.26.12 \ + --hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \ + --hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997 + # via + # -r requirements.in + # requests +zipp==3.6.0 \ + --hash=sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832 \ + --hash=sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc + # via + # -r requirements.in + # importlib-metadata diff --git a/renovate.json b/renovate.json index 4eb23765..916149cc 100644 --- a/renovate.json +++ b/renovate.json @@ -10,6 +10,7 @@ ":maintainLockFilesDisabled", ":autodetectPinVersions" ], + "ignorePaths": [".kokoro/requirements.txt"], "packageRules": [ { "packagePatterns": [ From 37d3a5275602b5b36ef0d4f45fbfa3096fe25fdc Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Wed, 28 Sep 2022 01:48:19 +0000 Subject: [PATCH 182/225] chore: pin versions of dependencies for compatibility with Python 3.6 (#1588) (#557) * chore: pin versions of dependencies for compatibility with Python 3.6 * fix path of requirements file in synthtool Source-Link: https://github.com/googleapis/synthtool/commit/69cdb47824170d0b02bf694649ce66613c889040 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:6566dc8226f20993af18e5a4e7a2b1ba85a292b02dedb6a1634cf10e1b418fa5 --- .github/.OwlBot.lock.yaml | 3 ++- renovate.json | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 42327db5..0a5cae5a 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 + digest: sha256:6566dc8226f20993af18e5a4e7a2b1ba85a292b02dedb6a1634cf10e1b418fa5 + diff --git a/renovate.json b/renovate.json index 916149cc..4eb23765 100644 --- a/renovate.json +++ b/renovate.json @@ -10,7 +10,6 @@ ":maintainLockFilesDisabled", ":autodetectPinVersions" ], - "ignorePaths": [".kokoro/requirements.txt"], "packageRules": [ { "packagePatterns": [ From 4014dbf40a1f9f1ff7f63594ee25ceba78ff9ca7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 16:34:18 +0200 Subject: [PATCH 183/225] deps: update dependency typing-extensions to v4.3.0 (#576) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [typing-extensions](https://togithub.com/python/typing_extensions) ([changelog](https://togithub.com/python/typing_extensions/blob/main/CHANGELOG.md)) | `==4.1.1` -> `==4.3.0` | [![age](https://badges.renovateapi.com/packages/pypi/typing-extensions/4.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/typing-extensions/4.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/typing-extensions/4.3.0/compatibility-slim/4.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/typing-extensions/4.3.0/confidence-slim/4.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From e36085df4ad67764b6b44603aa78588599f8b6fc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 16:34:33 +0200 Subject: [PATCH 184/225] deps: update dependency requests to v2.28.1 (#575) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [requests](https://requests.readthedocs.io) ([source](https://togithub.com/psf/requests), [changelog](https://togithub.com/psf/requests/blob/master/HISTORY.md)) | `==2.27.1` -> `==2.28.1` | [![age](https://badges.renovateapi.com/packages/pypi/requests/2.28.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/requests/2.28.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/requests/2.28.1/compatibility-slim/2.27.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/requests/2.28.1/confidence-slim/2.27.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From aaef32a1a4f8cfe36c707ad31772a7a1aff7d179 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 16:36:14 +0200 Subject: [PATCH 185/225] deps: update dependency pyjwt to v2.5.0 (#574) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [pyjwt](https://togithub.com/jpadilla/pyjwt) | `==2.4.0` -> `==2.5.0` | [![age](https://badges.renovateapi.com/packages/pypi/pyjwt/2.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/pyjwt/2.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/pyjwt/2.5.0/compatibility-slim/2.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/pyjwt/2.5.0/confidence-slim/2.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From c8a4ef50cb79eb3fa2483b3692d878eff44f5614 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 16:36:32 +0200 Subject: [PATCH 186/225] deps: update dependency protobuf to v4 (#579) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [protobuf](https://developers.google.com/protocol-buffers/) | `==3.19.5` -> `==4.21.6` | [![age](https://badges.renovateapi.com/packages/pypi/protobuf/4.21.6/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/protobuf/4.21.6/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/protobuf/4.21.6/compatibility-slim/3.19.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/protobuf/4.21.6/confidence-slim/3.19.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From ba5b244fdbaa2e734c8672d8f9629557c6d4d54a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 16:38:13 +0200 Subject: [PATCH 187/225] deps: update dependency keyring to v23.9.3 (#569) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [keyring](https://togithub.com/jaraco/keyring) | `==23.4.1` -> `==23.9.3` | [![age](https://badges.renovateapi.com/packages/pypi/keyring/23.9.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/keyring/23.9.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/keyring/23.9.3/compatibility-slim/23.4.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/keyring/23.9.3/confidence-slim/23.4.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From 468e5aa70ce50181e5a65b5c82683cc4f91c7b19 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 16:38:29 +0200 Subject: [PATCH 188/225] deps: update dependency google-auth to v2.12.0 (#563) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-auth](https://togithub.com/googleapis/google-auth-library-python) | `==2.11.0` -> `==2.12.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-auth/2.12.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-auth/2.12.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-auth/2.12.0/compatibility-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-auth/2.12.0/confidence-slim/2.11.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From 90bbb3a25fa9882d13411d82cb3355925420c014 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 16:38:43 +0200 Subject: [PATCH 189/225] deps: update dependency google-api-core to v2.10.1 (#562) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-api-core](https://togithub.com/googleapis/python-api-core) | `==2.8.2` -> `==2.10.1` | [![age](https://badges.renovateapi.com/packages/pypi/google-api-core/2.10.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-api-core/2.10.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-api-core/2.10.1/compatibility-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-api-core/2.10.1/confidence-slim/2.8.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From 3fc77f312ca2f0ad2f51c4d79df46fba0a57eb11 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 16:40:18 +0200 Subject: [PATCH 190/225] deps: update dependency click to v8.1.3 (#561) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [click](https://palletsprojects.com/p/click/) ([changelog](https://click.palletsprojects.com/changes/)) | `==8.0.4` -> `==8.1.3` | [![age](https://badges.renovateapi.com/packages/pypi/click/8.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/click/8.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/click/8.1.3/compatibility-slim/8.0.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/click/8.1.3/confidence-slim/8.0.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From 1c470fdd0640cd8e640d2d457f98b69f8a91600c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 16:42:32 +0200 Subject: [PATCH 191/225] deps: update dependency google-crc32c to v1.5.0 (#565) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-crc32c](https://togithub.com/googleapis/python-crc32c) | `==1.3.0` -> `==1.5.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-crc32c/1.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-crc32c/1.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-crc32c/1.5.0/compatibility-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-crc32c/1.5.0/confidence-slim/1.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From 0136c7a54180af83b334d737d7ae21e3a8493621 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 16:46:27 +0200 Subject: [PATCH 192/225] deps: update dependency protobuf to v3.20.2 (#573) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [protobuf](https://developers.google.com/protocol-buffers/) | `==3.19.5` -> `==3.20.2` | [![age](https://badges.renovateapi.com/packages/pypi/protobuf/3.20.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/protobuf/3.20.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/protobuf/3.20.2/compatibility-slim/3.19.5)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/protobuf/3.20.2/confidence-slim/3.19.5)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From 8c52d4a4d391fe55f0b8b1482fcf79c488e223d1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 16:50:27 +0200 Subject: [PATCH 193/225] deps: update dependency markupsafe to v2.1.1 (#570) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [markupsafe](https://palletsprojects.com/p/markupsafe/) ([changelog](https://markupsafe.palletsprojects.com/changes/)) | `==2.0.1` -> `==2.1.1` | [![age](https://badges.renovateapi.com/packages/pypi/markupsafe/2.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/markupsafe/2.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/markupsafe/2.1.1/compatibility-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/markupsafe/2.1.1/confidence-slim/2.0.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From be87c83fba956f4ac4d7b111ea47d88df8e5d22b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 16:56:13 +0200 Subject: [PATCH 194/225] deps: update dependency jeepney to v0.8.0 (#567) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jeepney](https://gitlab.com/takluyver/jeepney) | `==0.7.1` -> `==0.8.0` | [![age](https://badges.renovateapi.com/packages/pypi/jeepney/0.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/jeepney/0.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/jeepney/0.8.0/compatibility-slim/0.7.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/jeepney/0.8.0/confidence-slim/0.7.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From 92d1f52fd8dde9c1aad5f464d58b633c4a4f489b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 16:56:18 +0200 Subject: [PATCH 195/225] deps: update dependency jinja2 to v3.1.2 (#568) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [jinja2](https://palletsprojects.com/p/jinja/) ([changelog](https://jinja.palletsprojects.com/changes/)) | `==3.0.3` -> `==3.1.2` | [![age](https://badges.renovateapi.com/packages/pypi/jinja2/3.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/jinja2/3.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/jinja2/3.1.2/compatibility-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/jinja2/3.1.2/confidence-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From 6e4f1304221e41c1a066cb72a837b056c8274197 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 16:56:23 +0200 Subject: [PATCH 196/225] deps: update dependency charset-normalizer to v2.1.1 (#572) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [charset-normalizer](https://togithub.com/ousret/charset_normalizer) | `==2.0.12` -> `==2.1.1` | [![age](https://badges.renovateapi.com/packages/pypi/charset-normalizer/2.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/charset-normalizer/2.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/charset-normalizer/2.1.1/compatibility-slim/2.0.12)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/charset-normalizer/2.1.1/confidence-slim/2.0.12)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From 1dc721000a0ad218462965eb2091753e255f9e59 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 17:00:44 +0200 Subject: [PATCH 197/225] deps: update dependency google-cloud-storage to v2.5.0 (#564) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-cloud-storage](https://togithub.com/googleapis/python-storage) | `==2.0.0` -> `==2.5.0` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/2.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/2.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/2.5.0/compatibility-slim/2.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-storage/2.5.0/confidence-slim/2.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From d2f98b5be4ca9de842d76ce9f40f25dcad05be4a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 17:02:13 +0200 Subject: [PATCH 198/225] deps: update dependency gcp-releasetool to v1.8.8 (#560) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | gcp-releasetool | `==1.8.7` -> `==1.8.8` | [![age](https://badges.renovateapi.com/packages/pypi/gcp-releasetool/1.8.8/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/gcp-releasetool/1.8.8/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/gcp-releasetool/1.8.8/compatibility-slim/1.8.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/gcp-releasetool/1.8.8/confidence-slim/1.8.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From 957fba0bc078d8b8241b279828e3c0971d977e77 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 17:04:32 +0200 Subject: [PATCH 199/225] deps: update dependency googleapis-common-protos to v1.56.4 (#571) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [googleapis-common-protos](https://togithub.com/googleapis/python-api-common-protos) | `==1.56.3` -> `==1.56.4` | [![age](https://badges.renovateapi.com/packages/pypi/googleapis-common-protos/1.56.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/googleapis-common-protos/1.56.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/googleapis-common-protos/1.56.4/compatibility-slim/1.56.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/googleapis-common-protos/1.56.4/confidence-slim/1.56.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From 426169f583bf0bf83397ad783c2a7ae64d70074b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 17:06:15 +0200 Subject: [PATCH 200/225] deps: update dependency importlib-metadata to v4.12.0 (#566) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [importlib-metadata](https://togithub.com/python/importlib_metadata) | `==4.8.3` -> `==4.12.0` | [![age](https://badges.renovateapi.com/packages/pypi/importlib-metadata/4.12.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/importlib-metadata/4.12.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/importlib-metadata/4.12.0/compatibility-slim/4.8.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/importlib-metadata/4.12.0/confidence-slim/4.8.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From 3c345e1b26da1db3892ea5ac67b6fa0702b91b0d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 17:10:20 +0200 Subject: [PATCH 201/225] deps: update dependency zipp to v3.8.1 (#577) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [zipp](https://togithub.com/jaraco/zipp) | `==3.6.0` -> `==3.8.1` | [![age](https://badges.renovateapi.com/packages/pypi/zipp/3.8.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/zipp/3.8.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/zipp/3.8.1/compatibility-slim/3.6.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/zipp/3.8.1/confidence-slim/3.6.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From a9233905d876a553b6c0b6d5474156bf4698c9e0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 17:14:18 +0200 Subject: [PATCH 202/225] deps: update dependency certifi to v2022.9.24 (#559) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [certifi](https://togithub.com/certifi/python-certifi) | `==2022.9.14` -> `==2022.9.24` | [![age](https://badges.renovateapi.com/packages/pypi/certifi/2022.9.24/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/certifi/2022.9.24/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/certifi/2022.9.24/compatibility-slim/2022.9.14)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/certifi/2022.9.24/confidence-slim/2022.9.14)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From 6ce95c5c4306369c26c2f0d253ae2c6914906dd5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Sep 2022 17:18:25 +0200 Subject: [PATCH 203/225] deps: update dependency cachetools to v5 (#578) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [cachetools](https://togithub.com/tkem/cachetools) | `==4.2.4` -> `==5.2.0` | [![age](https://badges.renovateapi.com/packages/pypi/cachetools/5.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/cachetools/5.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/cachetools/5.2.0/compatibility-slim/4.2.4)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/cachetools/5.2.0/confidence-slim/4.2.4)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From d343a1ed8d270fb81cc30aa8c069ea150f741bcf Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 02:40:12 +0200 Subject: [PATCH 204/225] deps: update dependency google-cloud-core to v2.3.2 (#580) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [google-cloud-core](https://togithub.com/googleapis/python-cloud-core) | `==2.3.1` -> `==2.3.2` | [![age](https://badges.renovateapi.com/packages/pypi/google-cloud-core/2.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/pypi/google-cloud-core/2.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/pypi/google-cloud-core/2.3.2/compatibility-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/pypi/google-cloud-core/2.3.2/confidence-slim/2.3.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). From cab92a76a03d58f5f96984b4d05057ea72f3d909 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 29 Sep 2022 01:56:20 +0000 Subject: [PATCH 205/225] chore(main): release 0.14.7 (#581) :robot: I have created a release *beep* *boop* --- ## [0.14.7](https://github.com/googleapis/java-analytics-data/compare/v0.14.6...v0.14.7) (2022-09-29) ### Dependencies * Update dependency cachetools to v5 ([#578](https://github.com/googleapis/java-analytics-data/issues/578)) ([6ce95c5](https://github.com/googleapis/java-analytics-data/commit/6ce95c5c4306369c26c2f0d253ae2c6914906dd5)) * Update dependency certifi to v2022.9.24 ([#559](https://github.com/googleapis/java-analytics-data/issues/559)) ([a923390](https://github.com/googleapis/java-analytics-data/commit/a9233905d876a553b6c0b6d5474156bf4698c9e0)) * Update dependency charset-normalizer to v2.1.1 ([#572](https://github.com/googleapis/java-analytics-data/issues/572)) ([6e4f130](https://github.com/googleapis/java-analytics-data/commit/6e4f1304221e41c1a066cb72a837b056c8274197)) * Update dependency click to v8.1.3 ([#561](https://github.com/googleapis/java-analytics-data/issues/561)) ([3fc77f3](https://github.com/googleapis/java-analytics-data/commit/3fc77f312ca2f0ad2f51c4d79df46fba0a57eb11)) * Update dependency gcp-releasetool to v1.8.8 ([#560](https://github.com/googleapis/java-analytics-data/issues/560)) ([d2f98b5](https://github.com/googleapis/java-analytics-data/commit/d2f98b5be4ca9de842d76ce9f40f25dcad05be4a)) * Update dependency google-api-core to v2.10.1 ([#562](https://github.com/googleapis/java-analytics-data/issues/562)) ([90bbb3a](https://github.com/googleapis/java-analytics-data/commit/90bbb3a25fa9882d13411d82cb3355925420c014)) * Update dependency google-auth to v2.12.0 ([#563](https://github.com/googleapis/java-analytics-data/issues/563)) ([468e5aa](https://github.com/googleapis/java-analytics-data/commit/468e5aa70ce50181e5a65b5c82683cc4f91c7b19)) * Update dependency google-cloud-core to v2.3.2 ([#580](https://github.com/googleapis/java-analytics-data/issues/580)) ([d343a1e](https://github.com/googleapis/java-analytics-data/commit/d343a1ed8d270fb81cc30aa8c069ea150f741bcf)) * Update dependency google-cloud-storage to v2.5.0 ([#564](https://github.com/googleapis/java-analytics-data/issues/564)) ([1dc7210](https://github.com/googleapis/java-analytics-data/commit/1dc721000a0ad218462965eb2091753e255f9e59)) * Update dependency google-crc32c to v1.5.0 ([#565](https://github.com/googleapis/java-analytics-data/issues/565)) ([1c470fd](https://github.com/googleapis/java-analytics-data/commit/1c470fdd0640cd8e640d2d457f98b69f8a91600c)) * Update dependency googleapis-common-protos to v1.56.4 ([#571](https://github.com/googleapis/java-analytics-data/issues/571)) ([957fba0](https://github.com/googleapis/java-analytics-data/commit/957fba0bc078d8b8241b279828e3c0971d977e77)) * Update dependency importlib-metadata to v4.12.0 ([#566](https://github.com/googleapis/java-analytics-data/issues/566)) ([426169f](https://github.com/googleapis/java-analytics-data/commit/426169f583bf0bf83397ad783c2a7ae64d70074b)) * Update dependency jeepney to v0.8.0 ([#567](https://github.com/googleapis/java-analytics-data/issues/567)) ([be87c83](https://github.com/googleapis/java-analytics-data/commit/be87c83fba956f4ac4d7b111ea47d88df8e5d22b)) * Update dependency jinja2 to v3.1.2 ([#568](https://github.com/googleapis/java-analytics-data/issues/568)) ([92d1f52](https://github.com/googleapis/java-analytics-data/commit/92d1f52fd8dde9c1aad5f464d58b633c4a4f489b)) * Update dependency keyring to v23.9.3 ([#569](https://github.com/googleapis/java-analytics-data/issues/569)) ([ba5b244](https://github.com/googleapis/java-analytics-data/commit/ba5b244fdbaa2e734c8672d8f9629557c6d4d54a)) * Update dependency markupsafe to v2.1.1 ([#570](https://github.com/googleapis/java-analytics-data/issues/570)) ([8c52d4a](https://github.com/googleapis/java-analytics-data/commit/8c52d4a4d391fe55f0b8b1482fcf79c488e223d1)) * Update dependency protobuf to v3.20.2 ([#573](https://github.com/googleapis/java-analytics-data/issues/573)) ([0136c7a](https://github.com/googleapis/java-analytics-data/commit/0136c7a54180af83b334d737d7ae21e3a8493621)) * Update dependency protobuf to v4 ([#579](https://github.com/googleapis/java-analytics-data/issues/579)) ([c8a4ef5](https://github.com/googleapis/java-analytics-data/commit/c8a4ef50cb79eb3fa2483b3692d878eff44f5614)) * Update dependency pyjwt to v2.5.0 ([#574](https://github.com/googleapis/java-analytics-data/issues/574)) ([aaef32a](https://github.com/googleapis/java-analytics-data/commit/aaef32a1a4f8cfe36c707ad31772a7a1aff7d179)) * Update dependency requests to v2.28.1 ([#575](https://github.com/googleapis/java-analytics-data/issues/575)) ([e36085d](https://github.com/googleapis/java-analytics-data/commit/e36085df4ad67764b6b44603aa78588599f8b6fc)) * Update dependency typing-extensions to v4.3.0 ([#576](https://github.com/googleapis/java-analytics-data/issues/576)) ([4014dbf](https://github.com/googleapis/java-analytics-data/commit/4014dbf40a1f9f1ff7f63594ee25ceba78ff9ca7)) * Update dependency zipp to v3.8.1 ([#577](https://github.com/googleapis/java-analytics-data/issues/577)) ([3c345e1](https://github.com/googleapis/java-analytics-data/commit/3c345e1b26da1db3892ea5ac67b6fa0702b91b0d)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- CHANGELOG.md | 28 +++++++++++++++++++++ google-analytics-data-bom/pom.xml | 12 ++++----- google-analytics-data/pom.xml | 4 +-- grpc-google-analytics-data-v1alpha/pom.xml | 4 +-- grpc-google-analytics-data-v1beta/pom.xml | 4 +-- pom.xml | 12 ++++----- proto-google-analytics-data-v1alpha/pom.xml | 4 +-- proto-google-analytics-data-v1beta/pom.xml | 4 +-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 ++++---- 10 files changed, 56 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bcedb30..af06204a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,33 @@ # Changelog +## [0.14.7](https://github.com/googleapis/java-analytics-data/compare/v0.14.6...v0.14.7) (2022-09-29) + + +### Dependencies + +* Update dependency cachetools to v5 ([#578](https://github.com/googleapis/java-analytics-data/issues/578)) ([6ce95c5](https://github.com/googleapis/java-analytics-data/commit/6ce95c5c4306369c26c2f0d253ae2c6914906dd5)) +* Update dependency certifi to v2022.9.24 ([#559](https://github.com/googleapis/java-analytics-data/issues/559)) ([a923390](https://github.com/googleapis/java-analytics-data/commit/a9233905d876a553b6c0b6d5474156bf4698c9e0)) +* Update dependency charset-normalizer to v2.1.1 ([#572](https://github.com/googleapis/java-analytics-data/issues/572)) ([6e4f130](https://github.com/googleapis/java-analytics-data/commit/6e4f1304221e41c1a066cb72a837b056c8274197)) +* Update dependency click to v8.1.3 ([#561](https://github.com/googleapis/java-analytics-data/issues/561)) ([3fc77f3](https://github.com/googleapis/java-analytics-data/commit/3fc77f312ca2f0ad2f51c4d79df46fba0a57eb11)) +* Update dependency gcp-releasetool to v1.8.8 ([#560](https://github.com/googleapis/java-analytics-data/issues/560)) ([d2f98b5](https://github.com/googleapis/java-analytics-data/commit/d2f98b5be4ca9de842d76ce9f40f25dcad05be4a)) +* Update dependency google-api-core to v2.10.1 ([#562](https://github.com/googleapis/java-analytics-data/issues/562)) ([90bbb3a](https://github.com/googleapis/java-analytics-data/commit/90bbb3a25fa9882d13411d82cb3355925420c014)) +* Update dependency google-auth to v2.12.0 ([#563](https://github.com/googleapis/java-analytics-data/issues/563)) ([468e5aa](https://github.com/googleapis/java-analytics-data/commit/468e5aa70ce50181e5a65b5c82683cc4f91c7b19)) +* Update dependency google-cloud-core to v2.3.2 ([#580](https://github.com/googleapis/java-analytics-data/issues/580)) ([d343a1e](https://github.com/googleapis/java-analytics-data/commit/d343a1ed8d270fb81cc30aa8c069ea150f741bcf)) +* Update dependency google-cloud-storage to v2.5.0 ([#564](https://github.com/googleapis/java-analytics-data/issues/564)) ([1dc7210](https://github.com/googleapis/java-analytics-data/commit/1dc721000a0ad218462965eb2091753e255f9e59)) +* Update dependency google-crc32c to v1.5.0 ([#565](https://github.com/googleapis/java-analytics-data/issues/565)) ([1c470fd](https://github.com/googleapis/java-analytics-data/commit/1c470fdd0640cd8e640d2d457f98b69f8a91600c)) +* Update dependency googleapis-common-protos to v1.56.4 ([#571](https://github.com/googleapis/java-analytics-data/issues/571)) ([957fba0](https://github.com/googleapis/java-analytics-data/commit/957fba0bc078d8b8241b279828e3c0971d977e77)) +* Update dependency importlib-metadata to v4.12.0 ([#566](https://github.com/googleapis/java-analytics-data/issues/566)) ([426169f](https://github.com/googleapis/java-analytics-data/commit/426169f583bf0bf83397ad783c2a7ae64d70074b)) +* Update dependency jeepney to v0.8.0 ([#567](https://github.com/googleapis/java-analytics-data/issues/567)) ([be87c83](https://github.com/googleapis/java-analytics-data/commit/be87c83fba956f4ac4d7b111ea47d88df8e5d22b)) +* Update dependency jinja2 to v3.1.2 ([#568](https://github.com/googleapis/java-analytics-data/issues/568)) ([92d1f52](https://github.com/googleapis/java-analytics-data/commit/92d1f52fd8dde9c1aad5f464d58b633c4a4f489b)) +* Update dependency keyring to v23.9.3 ([#569](https://github.com/googleapis/java-analytics-data/issues/569)) ([ba5b244](https://github.com/googleapis/java-analytics-data/commit/ba5b244fdbaa2e734c8672d8f9629557c6d4d54a)) +* Update dependency markupsafe to v2.1.1 ([#570](https://github.com/googleapis/java-analytics-data/issues/570)) ([8c52d4a](https://github.com/googleapis/java-analytics-data/commit/8c52d4a4d391fe55f0b8b1482fcf79c488e223d1)) +* Update dependency protobuf to v3.20.2 ([#573](https://github.com/googleapis/java-analytics-data/issues/573)) ([0136c7a](https://github.com/googleapis/java-analytics-data/commit/0136c7a54180af83b334d737d7ae21e3a8493621)) +* Update dependency protobuf to v4 ([#579](https://github.com/googleapis/java-analytics-data/issues/579)) ([c8a4ef5](https://github.com/googleapis/java-analytics-data/commit/c8a4ef50cb79eb3fa2483b3692d878eff44f5614)) +* Update dependency pyjwt to v2.5.0 ([#574](https://github.com/googleapis/java-analytics-data/issues/574)) ([aaef32a](https://github.com/googleapis/java-analytics-data/commit/aaef32a1a4f8cfe36c707ad31772a7a1aff7d179)) +* Update dependency requests to v2.28.1 ([#575](https://github.com/googleapis/java-analytics-data/issues/575)) ([e36085d](https://github.com/googleapis/java-analytics-data/commit/e36085df4ad67764b6b44603aa78588599f8b6fc)) +* Update dependency typing-extensions to v4.3.0 ([#576](https://github.com/googleapis/java-analytics-data/issues/576)) ([4014dbf](https://github.com/googleapis/java-analytics-data/commit/4014dbf40a1f9f1ff7f63594ee25ceba78ff9ca7)) +* Update dependency zipp to v3.8.1 ([#577](https://github.com/googleapis/java-analytics-data/issues/577)) ([3c345e1](https://github.com/googleapis/java-analytics-data/commit/3c345e1b26da1db3892ea5ac67b6fa0702b91b0d)) + ## [0.14.6](https://github.com/googleapis/java-analytics-data/compare/v0.14.5...v0.14.6) (2022-09-15) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 5e9b9206..01a122ae 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.7-SNAPSHOT + 0.14.7 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.7-SNAPSHOT + 0.14.7 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.7-SNAPSHOT + 0.14.7 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.7-SNAPSHOT + 0.14.7 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.7-SNAPSHOT + 0.14.7 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.7-SNAPSHOT + 0.14.7 diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 913a9a91..455f51b6 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.7-SNAPSHOT + 0.14.7 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.7-SNAPSHOT + 0.14.7 google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 659f6871..5f10bff0 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.7-SNAPSHOT + 0.14.7 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.7-SNAPSHOT + 0.14.7 diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index c70abbcc..086bcd71 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.7-SNAPSHOT + 0.14.7 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.7-SNAPSHOT + 0.14.7 diff --git a/pom.xml b/pom.xml index fb7f59ea..eba4538c 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.7-SNAPSHOT + 0.14.7 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.7-SNAPSHOT + 0.14.7 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.7-SNAPSHOT + 0.14.7 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.7-SNAPSHOT + 0.14.7 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.7-SNAPSHOT + 0.14.7 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.7-SNAPSHOT + 0.14.7 diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index 9a5a7c5a..7252ef40 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.7-SNAPSHOT + 0.14.7 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.7-SNAPSHOT + 0.14.7 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 825b5b28..e855bec6 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.7-SNAPSHOT + 0.14.7 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.7-SNAPSHOT + 0.14.7 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index b79b28e9..94ba9f03 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.7-SNAPSHOT + 0.14.7 diff --git a/versions.txt b/versions.txt index c362f6c0..d6f9121c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.6:0.14.7-SNAPSHOT -grpc-google-analytics-data-v1beta:0.14.6:0.14.7-SNAPSHOT -proto-google-analytics-data-v1beta:0.14.6:0.14.7-SNAPSHOT -proto-google-analytics-data-v1alpha:0.14.6:0.14.7-SNAPSHOT -grpc-google-analytics-data-v1alpha:0.14.6:0.14.7-SNAPSHOT +google-analytics-data:0.14.7:0.14.7 +grpc-google-analytics-data-v1beta:0.14.7:0.14.7 +proto-google-analytics-data-v1beta:0.14.7:0.14.7 +proto-google-analytics-data-v1alpha:0.14.7:0.14.7 +grpc-google-analytics-data-v1alpha:0.14.7:0.14.7 From d4e4f4986f790839934fc392d3e7848133023695 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 29 Sep 2022 02:14:25 +0000 Subject: [PATCH 206/225] chore(main): release 0.14.8-SNAPSHOT (#582) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 01a122ae..1b5c4f7e 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.7 + 0.14.8-SNAPSHOT pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.7 + 0.14.8-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.7 + 0.14.8-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.7 + 0.14.8-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.7 + 0.14.8-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.7 + 0.14.8-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 455f51b6..15780b5c 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.7 + 0.14.8-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.7 + 0.14.8-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 5f10bff0..c57df183 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.7 + 0.14.8-SNAPSHOT grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.7 + 0.14.8-SNAPSHOT diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 086bcd71..916228dc 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.7 + 0.14.8-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.7 + 0.14.8-SNAPSHOT diff --git a/pom.xml b/pom.xml index eba4538c..c09e6c65 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.7 + 0.14.8-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.7 + 0.14.8-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.7 + 0.14.8-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.7 + 0.14.8-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.7 + 0.14.8-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.7 + 0.14.8-SNAPSHOT diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index 7252ef40..d5f6a9fd 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.7 + 0.14.8-SNAPSHOT proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.7 + 0.14.8-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index e855bec6..c13650bd 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.7 + 0.14.8-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.7 + 0.14.8-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 94ba9f03..979d099f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.7 + 0.14.8-SNAPSHOT diff --git a/versions.txt b/versions.txt index d6f9121c..2e1450ef 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.7:0.14.7 -grpc-google-analytics-data-v1beta:0.14.7:0.14.7 -proto-google-analytics-data-v1beta:0.14.7:0.14.7 -proto-google-analytics-data-v1alpha:0.14.7:0.14.7 -grpc-google-analytics-data-v1alpha:0.14.7:0.14.7 +google-analytics-data:0.14.7:0.14.8-SNAPSHOT +grpc-google-analytics-data-v1beta:0.14.7:0.14.8-SNAPSHOT +proto-google-analytics-data-v1beta:0.14.7:0.14.8-SNAPSHOT +proto-google-analytics-data-v1alpha:0.14.7:0.14.8-SNAPSHOT +grpc-google-analytics-data-v1alpha:0.14.7:0.14.8-SNAPSHOT From 23df2634dbc88defd531012ee589042cc9ecfa74 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Sep 2022 17:22:28 +0200 Subject: [PATCH 207/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.14.7 (#583) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.14.6` -> `0.14.7` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.7/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.7/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.7/compatibility-slim/0.14.6)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.7/confidence-slim/0.14.6)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-analytics-data ### [`v0.14.7`](https://togithub.com/googleapis/java-analytics-data/blob/HEAD/CHANGELOG.md#​0147-httpsgithubcomgoogleapisjava-analytics-datacomparev0146v0147-2022-09-29) [Compare Source](https://togithub.com/googleapis/java-analytics-data/compare/v0.14.6...v0.14.7) ##### Dependencies - Update dependency cachetools to v5 ([#​578](https://togithub.com/googleapis/java-analytics-data/issues/578)) ([6ce95c5](https://togithub.com/googleapis/java-analytics-data/commit/6ce95c5c4306369c26c2f0d253ae2c6914906dd5)) - Update dependency certifi to v2022.9.24 ([#​559](https://togithub.com/googleapis/java-analytics-data/issues/559)) ([a923390](https://togithub.com/googleapis/java-analytics-data/commit/a9233905d876a553b6c0b6d5474156bf4698c9e0)) - Update dependency charset-normalizer to v2.1.1 ([#​572](https://togithub.com/googleapis/java-analytics-data/issues/572)) ([6e4f130](https://togithub.com/googleapis/java-analytics-data/commit/6e4f1304221e41c1a066cb72a837b056c8274197)) - Update dependency click to v8.1.3 ([#​561](https://togithub.com/googleapis/java-analytics-data/issues/561)) ([3fc77f3](https://togithub.com/googleapis/java-analytics-data/commit/3fc77f312ca2f0ad2f51c4d79df46fba0a57eb11)) - Update dependency gcp-releasetool to v1.8.8 ([#​560](https://togithub.com/googleapis/java-analytics-data/issues/560)) ([d2f98b5](https://togithub.com/googleapis/java-analytics-data/commit/d2f98b5be4ca9de842d76ce9f40f25dcad05be4a)) - Update dependency google-api-core to v2.10.1 ([#​562](https://togithub.com/googleapis/java-analytics-data/issues/562)) ([90bbb3a](https://togithub.com/googleapis/java-analytics-data/commit/90bbb3a25fa9882d13411d82cb3355925420c014)) - Update dependency google-auth to v2.12.0 ([#​563](https://togithub.com/googleapis/java-analytics-data/issues/563)) ([468e5aa](https://togithub.com/googleapis/java-analytics-data/commit/468e5aa70ce50181e5a65b5c82683cc4f91c7b19)) - Update dependency google-cloud-core to v2.3.2 ([#​580](https://togithub.com/googleapis/java-analytics-data/issues/580)) ([d343a1e](https://togithub.com/googleapis/java-analytics-data/commit/d343a1ed8d270fb81cc30aa8c069ea150f741bcf)) - Update dependency google-cloud-storage to v2.5.0 ([#​564](https://togithub.com/googleapis/java-analytics-data/issues/564)) ([1dc7210](https://togithub.com/googleapis/java-analytics-data/commit/1dc721000a0ad218462965eb2091753e255f9e59)) - Update dependency google-crc32c to v1.5.0 ([#​565](https://togithub.com/googleapis/java-analytics-data/issues/565)) ([1c470fd](https://togithub.com/googleapis/java-analytics-data/commit/1c470fdd0640cd8e640d2d457f98b69f8a91600c)) - Update dependency googleapis-common-protos to v1.56.4 ([#​571](https://togithub.com/googleapis/java-analytics-data/issues/571)) ([957fba0](https://togithub.com/googleapis/java-analytics-data/commit/957fba0bc078d8b8241b279828e3c0971d977e77)) - Update dependency importlib-metadata to v4.12.0 ([#​566](https://togithub.com/googleapis/java-analytics-data/issues/566)) ([426169f](https://togithub.com/googleapis/java-analytics-data/commit/426169f583bf0bf83397ad783c2a7ae64d70074b)) - Update dependency jeepney to v0.8.0 ([#​567](https://togithub.com/googleapis/java-analytics-data/issues/567)) ([be87c83](https://togithub.com/googleapis/java-analytics-data/commit/be87c83fba956f4ac4d7b111ea47d88df8e5d22b)) - Update dependency jinja2 to v3.1.2 ([#​568](https://togithub.com/googleapis/java-analytics-data/issues/568)) ([92d1f52](https://togithub.com/googleapis/java-analytics-data/commit/92d1f52fd8dde9c1aad5f464d58b633c4a4f489b)) - Update dependency keyring to v23.9.3 ([#​569](https://togithub.com/googleapis/java-analytics-data/issues/569)) ([ba5b244](https://togithub.com/googleapis/java-analytics-data/commit/ba5b244fdbaa2e734c8672d8f9629557c6d4d54a)) - Update dependency markupsafe to v2.1.1 ([#​570](https://togithub.com/googleapis/java-analytics-data/issues/570)) ([8c52d4a](https://togithub.com/googleapis/java-analytics-data/commit/8c52d4a4d391fe55f0b8b1482fcf79c488e223d1)) - Update dependency protobuf to v3.20.2 ([#​573](https://togithub.com/googleapis/java-analytics-data/issues/573)) ([0136c7a](https://togithub.com/googleapis/java-analytics-data/commit/0136c7a54180af83b334d737d7ae21e3a8493621)) - Update dependency protobuf to v4 ([#​579](https://togithub.com/googleapis/java-analytics-data/issues/579)) ([c8a4ef5](https://togithub.com/googleapis/java-analytics-data/commit/c8a4ef50cb79eb3fa2483b3692d878eff44f5614)) - Update dependency pyjwt to v2.5.0 ([#​574](https://togithub.com/googleapis/java-analytics-data/issues/574)) ([aaef32a](https://togithub.com/googleapis/java-analytics-data/commit/aaef32a1a4f8cfe36c707ad31772a7a1aff7d179)) - Update dependency requests to v2.28.1 ([#​575](https://togithub.com/googleapis/java-analytics-data/issues/575)) ([e36085d](https://togithub.com/googleapis/java-analytics-data/commit/e36085df4ad67764b6b44603aa78588599f8b6fc)) - Update dependency typing-extensions to v4.3.0 ([#​576](https://togithub.com/googleapis/java-analytics-data/issues/576)) ([4014dbf](https://togithub.com/googleapis/java-analytics-data/commit/4014dbf40a1f9f1ff7f63594ee25ceba78ff9ca7)) - Update dependency zipp to v3.8.1 ([#​577](https://togithub.com/googleapis/java-analytics-data/issues/577)) ([3c345e1](https://togithub.com/googleapis/java-analytics-data/commit/3c345e1b26da1db3892ea5ac67b6fa0702b91b0d))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 43938850..60648765 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.14.6 + 0.14.7 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.14.6' +implementation 'com.google.analytics:google-analytics-data:0.14.7' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.14.6" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.14.7" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index d8bcf3f8..b4c9ca4b 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.14.6 + 0.14.7 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 2ef44010..a618a2a9 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.6 + 0.14.7 com.google.auth From f295175049086ff4c66ed13d3d8a1f2aed37e505 Mon Sep 17 00:00:00 2001 From: Diego Alonso Marquez Palacios Date: Thu, 29 Sep 2022 17:56:18 -0400 Subject: [PATCH 208/225] Revert "chore: pin versions of dependencies for compatibility with Python 3.6 (#1588)" (#584) Reverts googleapis/java-analytics-data#557 --- .github/.OwlBot.lock.yaml | 3 +-- renovate.json | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 0a5cae5a..42327db5 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:6566dc8226f20993af18e5a4e7a2b1ba85a292b02dedb6a1634cf10e1b418fa5 - + digest: sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 diff --git a/renovate.json b/renovate.json index 4eb23765..916149cc 100644 --- a/renovate.json +++ b/renovate.json @@ -10,6 +10,7 @@ ":maintainLockFilesDisabled", ":autodetectPinVersions" ], + "ignorePaths": [".kokoro/requirements.txt"], "packageRules": [ { "packagePatterns": [ From b97ecfb92984c3d37eb7207fc5b497b49365a388 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 3 Oct 2022 15:36:19 +0200 Subject: [PATCH 209/225] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 (#586) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.3` -> `3.0.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/compatibility-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.4/confidence-slim/3.0.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v3.0.4`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#​304-httpsgithubcomgoogleapisjava-shared-dependenciescomparev303v304-2022-10-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.3...v3.0.4) ##### Dependencies - Update dependency cachetools to v5 ([#​816](https://togithub.com/googleapis/java-shared-dependencies/issues/816)) ([3f6c408](https://togithub.com/googleapis/java-shared-dependencies/commit/3f6c408210c931c286235f61c7aadea5bf5cfe4d)) - Update dependency certifi to v2022.9.24 ([#​818](https://togithub.com/googleapis/java-shared-dependencies/issues/818)) ([5f04b97](https://togithub.com/googleapis/java-shared-dependencies/commit/5f04b97c2343146600e8c9ee65afdeb58f5743a6)) - Update dependency charset-normalizer to v2.1.1 ([#​822](https://togithub.com/googleapis/java-shared-dependencies/issues/822)) ([6997c5a](https://togithub.com/googleapis/java-shared-dependencies/commit/6997c5acad937ebe3594330de73261a424d42cf3)) - Update dependency click to v8.1.3 ([#​823](https://togithub.com/googleapis/java-shared-dependencies/issues/823)) ([42bf9f8](https://togithub.com/googleapis/java-shared-dependencies/commit/42bf9f834fdafea60f2be7ccbf7d363e058cd7c2)) - Update dependency com.google.protobuf:protobuf-bom to v3.21.7 ([#​837](https://togithub.com/googleapis/java-shared-dependencies/issues/837)) ([d31e507](https://togithub.com/googleapis/java-shared-dependencies/commit/d31e5077c7e036de5e238e9a611df7ced527574a)) - Update dependency gcp-releasetool to v1.8.8 ([#​819](https://togithub.com/googleapis/java-shared-dependencies/issues/819)) ([8245d97](https://togithub.com/googleapis/java-shared-dependencies/commit/8245d975fb12e81454ec7664f9a7c9809bbac697)) - Update dependency gcp-releasetool to v1.8.9 ([#​846](https://togithub.com/googleapis/java-shared-dependencies/issues/846)) ([04e3283](https://togithub.com/googleapis/java-shared-dependencies/commit/04e32831c6e87c372444901013a747d2d02ce38d)) - Update dependency google-api-core to v2.10.1 ([#​824](https://togithub.com/googleapis/java-shared-dependencies/issues/824)) ([818b9aa](https://togithub.com/googleapis/java-shared-dependencies/commit/818b9aa2ac99d8b1f9b39a74b626122aed5f1d94)) - Update dependency google-auth to v2.12.0 ([#​825](https://togithub.com/googleapis/java-shared-dependencies/issues/825)) ([07c544b](https://togithub.com/googleapis/java-shared-dependencies/commit/07c544b5e0fa9f7110bbc957570f7a405962072e)) - Update dependency google-cloud-core to v2.3.2 ([#​820](https://togithub.com/googleapis/java-shared-dependencies/issues/820)) ([2a219e8](https://togithub.com/googleapis/java-shared-dependencies/commit/2a219e86f187ba5ad72f2570bd58ca6100128c43)) - Update dependency google-cloud-storage to v2.5.0 ([#​826](https://togithub.com/googleapis/java-shared-dependencies/issues/826)) ([bb10d18](https://togithub.com/googleapis/java-shared-dependencies/commit/bb10d1858a515f09d365362ffa0110a5b362c96b)) - Update dependency google-crc32c to v1.5.0 ([#​827](https://togithub.com/googleapis/java-shared-dependencies/issues/827)) ([7e5dae6](https://togithub.com/googleapis/java-shared-dependencies/commit/7e5dae60d667cb84b9ee4f6c977bdc35e79e4cf6)) - Update dependency google-resumable-media to v2.4.0 ([#​838](https://togithub.com/googleapis/java-shared-dependencies/issues/838)) ([ad82d63](https://togithub.com/googleapis/java-shared-dependencies/commit/ad82d6378f64039da383509638fb4782908eb4bc)) - Update dependency googleapis-common-protos to v1.56.4 ([#​821](https://togithub.com/googleapis/java-shared-dependencies/issues/821)) ([93d7745](https://togithub.com/googleapis/java-shared-dependencies/commit/93d77458c9bbf84ec367cdb4caaa41e6f71675c6)) - Update dependency importlib-metadata to v4.12.0 ([#​832](https://togithub.com/googleapis/java-shared-dependencies/issues/832)) ([ee19fb1](https://togithub.com/googleapis/java-shared-dependencies/commit/ee19fb1ca5a2a2e1985297e3b72d44de68bc72e3)) - Update dependency importlib-metadata to v4.13.0 ([#​843](https://togithub.com/googleapis/java-shared-dependencies/issues/843)) ([d2ede60](https://togithub.com/googleapis/java-shared-dependencies/commit/d2ede601eee8c875780c7eb5924623537480c509)) - Update dependency importlib-metadata to v5 ([#​845](https://togithub.com/googleapis/java-shared-dependencies/issues/845)) ([03ac7e8](https://togithub.com/googleapis/java-shared-dependencies/commit/03ac7e800274c5f58d2bc4ddd0561bfcdea1bb27)) - Update dependency io.grpc:grpc-bom to v1.49.1 ([#​802](https://togithub.com/googleapis/java-shared-dependencies/issues/802)) ([b8c54bf](https://togithub.com/googleapis/java-shared-dependencies/commit/b8c54bf8f1ddecc788cee151f8afe42de45bdc9d)) - Update dependency io.grpc:grpc-bom to v1.49.2 ([#​842](https://togithub.com/googleapis/java-shared-dependencies/issues/842)) ([1b1cfa2](https://togithub.com/googleapis/java-shared-dependencies/commit/1b1cfa27d05f7732da12721305cf41dcbebda232)) - Update dependency jeepney to v0.8.0 ([#​833](https://togithub.com/googleapis/java-shared-dependencies/issues/833)) ([15d2f9f](https://togithub.com/googleapis/java-shared-dependencies/commit/15d2f9f52b5a3259db0813df3d2424e256ccb372)) - Update dependency jinja2 to v3.1.2 ([#​834](https://togithub.com/googleapis/java-shared-dependencies/issues/834)) ([c188f95](https://togithub.com/googleapis/java-shared-dependencies/commit/c188f95acdb3349f1c4b3ed56e5fffb75e8fbc8d)) - Update dependency keyring to v23.9.3 ([#​828](https://togithub.com/googleapis/java-shared-dependencies/issues/828)) ([b185aaa](https://togithub.com/googleapis/java-shared-dependencies/commit/b185aaae716d4d97cb64f0426cac0e778f11223d)) - Update dependency markupsafe to v2.1.1 ([#​829](https://togithub.com/googleapis/java-shared-dependencies/issues/829)) ([add2825](https://togithub.com/googleapis/java-shared-dependencies/commit/add2825bd34cd80f529dbe0dadb3c84219177916)) - Update dependency org.threeten:threetenbp to v1.6.2 ([#​808](https://togithub.com/googleapis/java-shared-dependencies/issues/808)) ([2d2eabd](https://togithub.com/googleapis/java-shared-dependencies/commit/2d2eabd14d8150207885ea47280c0f7ff3d2962f)) - Update dependency protobuf to v3.20.2 ([#​830](https://togithub.com/googleapis/java-shared-dependencies/issues/830)) ([5afa76f](https://togithub.com/googleapis/java-shared-dependencies/commit/5afa76f9ef4705aecba49abc7bb93982fb1ecf3e)) - Update dependency protobuf to v3.20.3 ([#​839](https://togithub.com/googleapis/java-shared-dependencies/issues/839)) ([d9fc7dd](https://togithub.com/googleapis/java-shared-dependencies/commit/d9fc7ddd3e663458e6ea3f78a3c6241377df0319)) - Update dependency protobuf to v4 ([#​817](https://togithub.com/googleapis/java-shared-dependencies/issues/817)) ([ee8d154](https://togithub.com/googleapis/java-shared-dependencies/commit/ee8d154287ccd256b4dcfa48f28f5ec61a91fe3e)) - Update dependency pyjwt to v2.5.0 ([#​812](https://togithub.com/googleapis/java-shared-dependencies/issues/812)) ([4d4528e](https://togithub.com/googleapis/java-shared-dependencies/commit/4d4528e8ce269d49b99d2dbc4fcda2dc37a058cb)) - Update dependency requests to v2.28.1 ([#​813](https://togithub.com/googleapis/java-shared-dependencies/issues/813)) ([a3a8d89](https://togithub.com/googleapis/java-shared-dependencies/commit/a3a8d89b0117007a7108553c70aa82dd289e1691)) - Update dependency typing-extensions to v4.3.0 ([#​814](https://togithub.com/googleapis/java-shared-dependencies/issues/814)) ([da875e5](https://togithub.com/googleapis/java-shared-dependencies/commit/da875e5e91fa9d8c177e6c3afc9e34242eb914b7)) - Update dependency zipp to v3.8.1 ([#​815](https://togithub.com/googleapis/java-shared-dependencies/issues/815)) ([15585fd](https://togithub.com/googleapis/java-shared-dependencies/commit/15585fd0216013fe93be011f93f391f6269aa777)) - Update gax.version to v2.19.2 ([#​847](https://togithub.com/googleapis/java-shared-dependencies/issues/847)) ([c4afe1f](https://togithub.com/googleapis/java-shared-dependencies/commit/c4afe1fdc88af29ab039cea618d52c15c90e43e9)) - Update google.common-protos.version to v2.9.3 ([#​803](https://togithub.com/googleapis/java-shared-dependencies/issues/803)) ([a3e8e5e](https://togithub.com/googleapis/java-shared-dependencies/commit/a3e8e5eb53a8da14abf3b8d81a4f34fbb2f3b8f9)) - Update google.common-protos.version to v2.9.5 ([#​831](https://togithub.com/googleapis/java-shared-dependencies/issues/831)) ([1c901db](https://togithub.com/googleapis/java-shared-dependencies/commit/1c901db8a7740afaec3e809e51d4d369fbf469c4)) - Update google.common-protos.version to v2.9.6 ([#​844](https://togithub.com/googleapis/java-shared-dependencies/issues/844)) ([9e156be](https://togithub.com/googleapis/java-shared-dependencies/commit/9e156be59bd89959f04252c3045b8cd7a8be8070)) - Update google.core.version to v2.8.13 ([#​804](https://togithub.com/googleapis/java-shared-dependencies/issues/804)) ([45ae571](https://togithub.com/googleapis/java-shared-dependencies/commit/45ae57142bd6d5334eedd46243736b200a459795)) - Update google.core.version to v2.8.14 ([#​805](https://togithub.com/googleapis/java-shared-dependencies/issues/805)) ([02c9397](https://togithub.com/googleapis/java-shared-dependencies/commit/02c9397a84bf3fcca8d04e4c9867cc47689abde2)) - Update google.core.version to v2.8.15 ([#​807](https://togithub.com/googleapis/java-shared-dependencies/issues/807)) ([980856c](https://togithub.com/googleapis/java-shared-dependencies/commit/980856c43981992a3d08f69eac83aeada752d244)) - Update google.core.version to v2.8.16 ([#​810](https://togithub.com/googleapis/java-shared-dependencies/issues/810)) ([c2b2c9a](https://togithub.com/googleapis/java-shared-dependencies/commit/c2b2c9a327fd588f69524bb93a17e5d4ae8f5a42)) - Update google.core.version to v2.8.17 ([#​835](https://togithub.com/googleapis/java-shared-dependencies/issues/835)) ([3def21d](https://togithub.com/googleapis/java-shared-dependencies/commit/3def21df2e4253e3df0da064b6c4e472df079d2b)) - Update google.core.version to v2.8.18 ([#​840](https://togithub.com/googleapis/java-shared-dependencies/issues/840)) ([46566dc](https://togithub.com/googleapis/java-shared-dependencies/commit/46566dc18c4b1ed41c482b4ce21b92651e2f9dc5)) - Update google.core.version to v2.8.19 ([#​841](https://togithub.com/googleapis/java-shared-dependencies/issues/841)) ([99afde9](https://togithub.com/googleapis/java-shared-dependencies/commit/99afde97ea498f549eb75cc58c4ed88edf81b20d)) - Update google.core.version to v2.8.20 ([#​848](https://togithub.com/googleapis/java-shared-dependencies/issues/848)) ([c980c4f](https://togithub.com/googleapis/java-shared-dependencies/commit/c980c4fdfc8890d812b4881ba5b87bfd21269a5f)) - Update iam.version to v1.6.1 ([#​806](https://togithub.com/googleapis/java-shared-dependencies/issues/806)) ([a50158d](https://togithub.com/googleapis/java-shared-dependencies/commit/a50158d3b83cf8e02d8ee08c94e512b5669a927b)) - Update iam.version to v1.6.2 ([#​849](https://togithub.com/googleapis/java-shared-dependencies/issues/849)) ([e43ac96](https://togithub.com/googleapis/java-shared-dependencies/commit/e43ac96bc189a096a9311c9b03e85c86bea07e99))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c09e6c65..fceb6881 100644 --- a/pom.xml +++ b/pom.xml @@ -87,7 +87,7 @@ com.google.cloud google-cloud-shared-dependencies - 3.0.3 + 3.0.4 pom import From 0fdb562fbe87a74d3be24650a4701b6a71f36813 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Mon, 3 Oct 2022 14:20:17 +0000 Subject: [PATCH 210/225] chore(main): release 0.14.8 (#587) :robot: I have created a release *beep* *boop* --- ## [0.14.8](https://togithub.com/googleapis/java-analytics-data/compare/v0.14.7...v0.14.8) (2022-10-03) ### Dependencies * Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#586](https://togithub.com/googleapis/java-analytics-data/issues/586)) ([b97ecfb](https://togithub.com/googleapis/java-analytics-data/commit/b97ecfb92984c3d37eb7207fc5b497b49365a388)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index af06204a..13102d2f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.14.8](https://github.com/googleapis/java-analytics-data/compare/v0.14.7...v0.14.8) (2022-10-03) + + +### Dependencies + +* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#586](https://github.com/googleapis/java-analytics-data/issues/586)) ([b97ecfb](https://github.com/googleapis/java-analytics-data/commit/b97ecfb92984c3d37eb7207fc5b497b49365a388)) + ## [0.14.7](https://github.com/googleapis/java-analytics-data/compare/v0.14.6...v0.14.7) (2022-09-29) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 1b5c4f7e..cb89fa19 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.8-SNAPSHOT + 0.14.8 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.8-SNAPSHOT + 0.14.8 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.8-SNAPSHOT + 0.14.8 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.8-SNAPSHOT + 0.14.8 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.8-SNAPSHOT + 0.14.8 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.8-SNAPSHOT + 0.14.8
diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 15780b5c..e22a90a7 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.8-SNAPSHOT + 0.14.8 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.8-SNAPSHOT + 0.14.8 google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index c57df183..df1c52d2 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.8-SNAPSHOT + 0.14.8 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.8-SNAPSHOT + 0.14.8 diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 916228dc..b0f12fb1 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.8-SNAPSHOT + 0.14.8 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.8-SNAPSHOT + 0.14.8 diff --git a/pom.xml b/pom.xml index fceb6881..5333e72e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.8-SNAPSHOT + 0.14.8 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.8-SNAPSHOT + 0.14.8 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.8-SNAPSHOT + 0.14.8 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.8-SNAPSHOT + 0.14.8 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.8-SNAPSHOT + 0.14.8 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.8-SNAPSHOT + 0.14.8 diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index d5f6a9fd..d8309b55 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.8-SNAPSHOT + 0.14.8 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.8-SNAPSHOT + 0.14.8 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index c13650bd..8f6491e8 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.8-SNAPSHOT + 0.14.8 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.8-SNAPSHOT + 0.14.8 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 979d099f..95f1353e 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.8-SNAPSHOT + 0.14.8 diff --git a/versions.txt b/versions.txt index 2e1450ef..9fc2e865 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.7:0.14.8-SNAPSHOT -grpc-google-analytics-data-v1beta:0.14.7:0.14.8-SNAPSHOT -proto-google-analytics-data-v1beta:0.14.7:0.14.8-SNAPSHOT -proto-google-analytics-data-v1alpha:0.14.7:0.14.8-SNAPSHOT -grpc-google-analytics-data-v1alpha:0.14.7:0.14.8-SNAPSHOT +google-analytics-data:0.14.8:0.14.8 +grpc-google-analytics-data-v1beta:0.14.8:0.14.8 +proto-google-analytics-data-v1beta:0.14.8:0.14.8 +proto-google-analytics-data-v1alpha:0.14.8:0.14.8 +grpc-google-analytics-data-v1alpha:0.14.8:0.14.8 From b3fb5c5bb57d6c3db8a9ce0a72682fd3411e35e3 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 3 Oct 2022 17:16:16 +0000 Subject: [PATCH 211/225] chore(bazel): update protobuf to v3.21.7 (#585) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 477955264 Source-Link: https://togithub.com/googleapis/googleapis/commit/a724450af76d0001f23602684c49cd6a4b3a5654 Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/4abcbcaec855e74a0b22a4988cf9e0eb61a83094 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNGFiY2JjYWVjODU1ZTc0YTBiMjJhNDk4OGNmOWUwZWI2MWE4MzA5NCJ9 --- .../analytics/data/v1alpha/BetweenFilter.java | 143 ++-- .../analytics/data/v1alpha/DateRange.java | 138 ++-- .../analytics/data/v1alpha/Dimension.java | 136 ++- .../data/v1alpha/DimensionExpression.java | 449 ++++------ .../data/v1alpha/DimensionHeader.java | 113 +-- .../data/v1alpha/DimensionValue.java | 113 ++- .../analytics/data/v1alpha/EventSegment.java | 146 ++-- .../v1alpha/EventSegmentConditionGroup.java | 137 ++- .../data/v1alpha/EventSegmentCriteria.java | 137 ++- .../data/v1alpha/EventSegmentExclusion.java | 137 ++- .../google/analytics/data/v1alpha/Filter.java | 216 ++--- .../data/v1alpha/FilterExpression.java | 208 ++--- .../data/v1alpha/FilterExpressionList.java | 136 ++- .../google/analytics/data/v1alpha/Funnel.java | 143 ++-- .../data/v1alpha/FunnelBreakdown.java | 136 ++- .../data/v1alpha/FunnelEventFilter.java | 131 ++- .../data/v1alpha/FunnelFieldFilter.java | 217 ++--- .../data/v1alpha/FunnelFilterExpression.java | 244 ++---- .../v1alpha/FunnelFilterExpressionList.java | 137 ++- .../data/v1alpha/FunnelNextAction.java | 136 ++- .../data/v1alpha/FunnelParameterFilter.java | 232 ++---- .../FunnelParameterFilterExpression.java | 222 ++--- .../FunnelParameterFilterExpressionList.java | 138 ++-- .../data/v1alpha/FunnelResponseMetadata.java | 136 ++- .../analytics/data/v1alpha/FunnelStep.java | 161 ++-- .../data/v1alpha/FunnelSubReport.java | 222 ++--- .../analytics/data/v1alpha/InListFilter.java | 131 ++- .../analytics/data/v1alpha/MetricHeader.java | 125 ++- .../analytics/data/v1alpha/MetricValue.java | 113 ++- .../analytics/data/v1alpha/NumericFilter.java | 134 ++- .../analytics/data/v1alpha/NumericValue.java | 123 ++- .../analytics/data/v1alpha/PropertyQuota.java | 213 ++--- .../analytics/data/v1alpha/QuotaStatus.java | 121 ++- .../google/analytics/data/v1alpha/Row.java | 167 ++-- .../data/v1alpha/RunFunnelReportRequest.java | 305 +++---- .../data/v1alpha/RunFunnelReportResponse.java | 182 ++-- .../data/v1alpha/SamplingMetadata.java | 122 ++- .../analytics/data/v1alpha/Segment.java | 194 ++--- .../data/v1alpha/SegmentEventFilter.java | 131 ++- .../analytics/data/v1alpha/SegmentFilter.java | 239 ++---- .../data/v1alpha/SegmentFilterExpression.java | 241 ++---- .../v1alpha/SegmentFilterExpressionList.java | 138 ++-- .../data/v1alpha/SegmentFilterScoping.java | 113 +-- .../data/v1alpha/SegmentParameterFilter.java | 256 +++--- .../SegmentParameterFilterExpression.java | 222 ++--- .../SegmentParameterFilterExpressionList.java | 138 ++-- .../SegmentParameterFilterScoping.java | 114 +-- .../data/v1alpha/SessionSegment.java | 146 ++-- .../v1alpha/SessionSegmentConditionGroup.java | 138 ++-- .../data/v1alpha/SessionSegmentCriteria.java | 137 ++- .../data/v1alpha/SessionSegmentExclusion.java | 137 ++- .../analytics/data/v1alpha/StringFilter.java | 136 ++- .../analytics/data/v1alpha/UserSegment.java | 146 ++-- .../v1alpha/UserSegmentConditionGroup.java | 137 ++- .../data/v1alpha/UserSegmentCriteria.java | 172 ++-- .../data/v1alpha/UserSegmentExclusion.java | 137 ++- .../v1alpha/UserSegmentSequenceGroup.java | 171 ++-- .../data/v1alpha/UserSequenceStep.java | 148 ++-- .../v1beta/BatchRunPivotReportsRequest.java | 150 ++-- .../v1beta/BatchRunPivotReportsResponse.java | 151 ++-- .../data/v1beta/BatchRunReportsRequest.java | 149 ++-- .../data/v1beta/BatchRunReportsResponse.java | 149 ++-- .../v1beta/CheckCompatibilityRequest.java | 236 +++--- .../v1beta/CheckCompatibilityResponse.java | 172 ++-- .../google/analytics/data/v1beta/Cohort.java | 147 ++-- .../data/v1beta/CohortReportSettings.java | 111 +-- .../analytics/data/v1beta/CohortSpec.java | 178 ++-- .../analytics/data/v1beta/CohortsRange.java | 134 ++- .../analytics/data/v1beta/DateRange.java | 138 ++-- .../analytics/data/v1beta/Dimension.java | 136 ++- .../data/v1beta/DimensionCompatibility.java | 129 ++- .../data/v1beta/DimensionExpression.java | 449 ++++------ .../data/v1beta/DimensionHeader.java | 112 +-- .../data/v1beta/DimensionMetadata.java | 184 ++--- .../analytics/data/v1beta/DimensionValue.java | 113 ++- .../google/analytics/data/v1beta/Filter.java | 778 +++++++----------- .../data/v1beta/FilterExpression.java | 206 ++--- .../data/v1beta/FilterExpressionList.java | 136 ++- .../data/v1beta/GetMetadataRequest.java | 113 +-- .../analytics/data/v1beta/Metadata.java | 181 ++-- .../google/analytics/data/v1beta/Metric.java | 136 ++- .../data/v1beta/MetricCompatibility.java | 127 ++- .../analytics/data/v1beta/MetricHeader.java | 125 ++- .../analytics/data/v1beta/MetricMetadata.java | 256 +++--- .../analytics/data/v1beta/MetricValue.java | 113 ++- .../analytics/data/v1beta/MinuteRange.java | 137 ++- .../analytics/data/v1beta/NumericValue.java | 123 ++- .../google/analytics/data/v1beta/OrderBy.java | 720 +++++++--------- .../google/analytics/data/v1beta/Pivot.java | 221 +++-- .../data/v1beta/PivotDimensionHeader.java | 135 ++- .../analytics/data/v1beta/PivotHeader.java | 147 ++-- .../analytics/data/v1beta/PropertyQuota.java | 213 ++--- .../analytics/data/v1beta/QuotaStatus.java | 121 ++- .../data/v1beta/ResponseMetaData.java | 481 +++++------ .../com/google/analytics/data/v1beta/Row.java | 166 ++-- .../data/v1beta/RunPivotReportRequest.java | 342 ++++---- .../data/v1beta/RunPivotReportResponse.java | 320 +++---- .../data/v1beta/RunRealtimeReportRequest.java | 355 ++++---- .../v1beta/RunRealtimeReportResponse.java | 338 ++++---- .../data/v1beta/RunReportRequest.java | 411 ++++----- .../data/v1beta/RunReportResponse.java | 361 ++++---- 101 files changed, 7541 insertions(+), 11650 deletions(-) diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilter.java index d8bf74b5..4e683694 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilter.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilter.java @@ -50,77 +50,6 @@ 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.v1alpha.NumericValue.Builder subBuilder = null; - if (fromValue_ != null) { - subBuilder = fromValue_.toBuilder(); - } - fromValue_ = - input.readMessage( - com.google.analytics.data.v1alpha.NumericValue.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(fromValue_); - fromValue_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.analytics.data.v1alpha.NumericValue.Builder subBuilder = null; - if (toValue_ != null) { - subBuilder = toValue_.toBuilder(); - } - toValue_ = - input.readMessage( - com.google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor; @@ -252,7 +181,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (toValue_ != null) { output.writeMessage(2, getToValue()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -267,7 +196,7 @@ public int getSerializedSize() { if (toValue_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getToValue()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -291,7 +220,7 @@ public boolean equals(final java.lang.Object obj) { if (hasToValue()) { if (!getToValue().equals(other.getToValue())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -310,7 +239,7 @@ public int hashCode() { hash = (37 * hash) + TO_VALUE_FIELD_NUMBER; hash = (53 * hash) + getToValue().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -439,17 +368,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.BetweenFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -560,7 +482,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.BetweenFilter other) if (other.hasToValue()) { mergeToValue(other.getToValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -575,17 +497,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.BetweenFilter parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getFromValueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getToValueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.BetweenFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -993,7 +941,18 @@ public BetweenFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BetweenFilter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java index c2fda774..04413cfb 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java @@ -55,66 +55,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_DateRange_descriptor; @@ -318,7 +258,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -336,7 +276,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -355,7 +295,7 @@ public boolean equals(final java.lang.Object 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; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -372,7 +312,7 @@ public int hashCode() { hash = (53 * hash) + getEndDate().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -502,17 +442,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.DateRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -615,7 +548,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.DateRange other) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -630,17 +563,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.DateRange parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + startDate_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + endDate_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.DateRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1039,7 +1004,18 @@ public DateRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DateRange(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java index 1f4b3d48..5176e475 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java @@ -54,69 +54,6 @@ 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.v1alpha.DimensionExpression.Builder subBuilder = null; - if (dimensionExpression_ != null) { - subBuilder = dimensionExpression_.toBuilder(); - } - dimensionExpression_ = - input.readMessage( - com.google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_Dimension_descriptor; @@ -271,7 +208,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dimensionExpression_ != null) { output.writeMessage(2, getDimensionExpression()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -286,7 +223,7 @@ public int getSerializedSize() { if (dimensionExpression_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDimensionExpression()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -307,7 +244,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDimensionExpression()) { if (!getDimensionExpression().equals(other.getDimensionExpression())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,7 +261,7 @@ public int hashCode() { hash = (37 * hash) + DIMENSION_EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getDimensionExpression().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -455,17 +392,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.Dimension.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -568,7 +498,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.Dimension other) { if (other.hasDimensionExpression()) { mergeDimensionExpression(other.getDimensionExpression()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -583,17 +513,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.Dimension parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage( + getDimensionExpressionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.Dimension) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -979,7 +936,18 @@ public Dimension parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Dimension(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java index 2defd65d..f412ae79 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java @@ -53,115 +53,6 @@ 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.v1alpha.DimensionExpression.CaseExpression.Builder - subBuilder = null; - if (oneExpressionCase_ == 4) { - subBuilder = - ((com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_) - .toBuilder(); - } - oneExpression_ = - input.readMessage( - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_); - oneExpression_ = subBuilder.buildPartial(); - } - oneExpressionCase_ = 4; - break; - } - case 42: - { - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder - subBuilder = null; - if (oneExpressionCase_ == 5) { - subBuilder = - ((com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_) - .toBuilder(); - } - oneExpression_ = - input.readMessage( - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_); - oneExpression_ = subBuilder.buildPartial(); - } - oneExpressionCase_ = 5; - break; - } - case 50: - { - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder - subBuilder = null; - if (oneExpressionCase_ == 6) { - subBuilder = - ((com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - oneExpression_) - .toBuilder(); - } - oneExpression_ = - input.readMessage( - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor; @@ -243,52 +134,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor; @@ -372,7 +217,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -384,7 +229,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -401,7 +246,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) obj; if (!getDimensionName().equals(other.getDimensionName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -414,7 +259,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DIMENSION_NAME_FIELD_NUMBER; hash = (53 * hash) + getDimensionName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -548,17 +393,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -656,7 +494,7 @@ public Builder mergeFrom( dimensionName_ = other.dimensionName_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -671,19 +509,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dimensionName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -833,7 +689,19 @@ public CaseExpression parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CaseExpression(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -983,66 +851,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dimensionNames_ = dimensionNames_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor; @@ -1203,7 +1011,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delimiter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, delimiter_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1223,7 +1031,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delimiter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, delimiter_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1242,7 +1050,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDimensionNamesList().equals(other.getDimensionNamesList())) return false; if (!getDelimiter().equals(other.getDelimiter())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1259,7 +1067,7 @@ public int hashCode() { } hash = (37 * hash) + DELIMITER_FIELD_NUMBER; hash = (53 * hash) + getDelimiter().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1399,17 +1207,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1528,7 +1329,7 @@ public Builder mergeFrom( delimiter_ = other.delimiter_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1543,20 +1344,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression parsedMessage = - null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDimensionNamesIsMutable(); + dimensionNames_.add(s); + break; + } // case 10 + case 18: + { + delimiter_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1906,7 +1731,19 @@ public ConcatenateExpression parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ConcatenateExpression(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -2175,7 +2012,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) oneExpression_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2205,7 +2042,7 @@ public int getSerializedSize() { (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) oneExpression_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2235,7 +2072,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2262,7 +2099,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2395,22 +2232,24 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.DimensionExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); + if (lowerCaseBuilder_ != null) { + lowerCaseBuilder_.clear(); + } + if (upperCaseBuilder_ != null) { + upperCaseBuilder_.clear(); + } + if (concatenateBuilder_ != null) { + concatenateBuilder_.clear(); + } oneExpressionCase_ = 0; oneExpression_ = null; return this; @@ -2533,7 +2372,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.DimensionExpression o break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2548,18 +2387,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.DimensionExpression parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 34: + { + input.readMessage(getLowerCaseFieldBuilder().getBuilder(), extensionRegistry); + oneExpressionCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getUpperCaseFieldBuilder().getBuilder(), extensionRegistry); + oneExpressionCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getConcatenateFieldBuilder().getBuilder(), extensionRegistry); + oneExpressionCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.DimensionExpression) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3335,7 +3205,18 @@ public DimensionExpression parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DimensionExpression(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java index 418da030..b62c7c52 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java @@ -55,52 +55,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor; @@ -182,7 +136,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -194,7 +148,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -211,7 +165,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1alpha.DimensionHeader) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -224,7 +178,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.DimensionHeader.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.DimensionHeader other name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,18 +418,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.DimensionHeader parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.DimensionHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -624,7 +590,18 @@ public DimensionHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DimensionHeader(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java index b878cc79..6ab62c43 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java @@ -50,52 +50,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor; @@ -242,7 +196,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (oneValueCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oneValue_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -254,7 +208,7 @@ public int getSerializedSize() { if (oneValueCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, oneValue_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -278,7 +232,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,7 +251,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -426,17 +380,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.DimensionValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -538,7 +485,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.DimensionValue other) break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -553,17 +500,38 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.DimensionValue parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + oneValueCase_ = 1; + oneValue_ = s; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.DimensionValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -747,7 +715,18 @@ public DimensionValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DimensionValue(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegment.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegment.java index e0291152..13b9ec3b 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegment.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegment.java @@ -52,79 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private EventSegment( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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.v1alpha.EventSegmentCriteria.Builder subBuilder = null; - if (eventInclusionCriteria_ != null) { - subBuilder = eventInclusionCriteria_.toBuilder(); - } - eventInclusionCriteria_ = - input.readMessage( - com.google.analytics.data.v1alpha.EventSegmentCriteria.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(eventInclusionCriteria_); - eventInclusionCriteria_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder subBuilder = null; - if (exclusion_ != null) { - subBuilder = exclusion_.toBuilder(); - } - exclusion_ = - input.readMessage( - com.google.analytics.data.v1alpha.EventSegmentExclusion.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(exclusion_); - exclusion_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_EventSegment_descriptor; @@ -257,7 +184,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (exclusion_ != null) { output.writeMessage(2, getExclusion()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -273,7 +200,7 @@ public int getSerializedSize() { if (exclusion_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -297,7 +224,7 @@ public boolean equals(final java.lang.Object obj) { if (hasExclusion()) { if (!getExclusion().equals(other.getExclusion())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -316,7 +243,7 @@ public int hashCode() { hash = (37 * hash) + EXCLUSION_FIELD_NUMBER; hash = (53 * hash) + getExclusion().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -447,17 +374,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.EventSegment.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -567,7 +487,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.EventSegment other) { if (other.hasExclusion()) { mergeExclusion(other.getExclusion()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -582,17 +502,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.EventSegment parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getEventInclusionCriteriaFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getExclusionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.EventSegment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1015,7 +962,18 @@ public EventSegment parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new EventSegment(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroup.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroup.java index a504fc57..afd86f22 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroup.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroup.java @@ -53,69 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private EventSegmentConditionGroup( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder 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(); - - conditionScoping_ = rawValue; - break; - } - case 18: - { - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder subBuilder = null; - if (segmentFilterExpression_ != null) { - subBuilder = segmentFilterExpression_.toBuilder(); - } - segmentFilterExpression_ = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentFilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(segmentFilterExpression_); - segmentFilterExpression_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor; @@ -253,7 +190,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (segmentFilterExpression_ != null) { output.writeMessage(2, getSegmentFilterExpression()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -271,7 +208,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSegmentFilterExpression()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -292,7 +229,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSegmentFilterExpression()) { if (!getSegmentFilterExpression().equals(other.getSegmentFilterExpression())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -309,7 +246,7 @@ public int hashCode() { hash = (37 * hash) + SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getSegmentFilterExpression().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -440,17 +377,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.EventSegmentConditionGroup.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -555,7 +485,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.EventSegmentCondition if (other.hasSegmentFilterExpression()) { mergeSegmentFilterExpression(other.getSegmentFilterExpression()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -570,18 +500,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.EventSegmentConditionGroup parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + conditionScoping_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + input.readMessage( + getSegmentFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.EventSegmentConditionGroup) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -940,7 +896,18 @@ public EventSegmentConditionGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new EventSegmentConditionGroup(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteria.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteria.java index 960c6a2a..0dceb2c7 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteria.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteria.java @@ -53,63 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private EventSegmentCriteria( - 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)) { - andConditionGroups_ = - new java.util.ArrayList< - com.google.analytics.data.v1alpha.EventSegmentConditionGroup>(); - mutable_bitField0_ |= 0x00000001; - } - andConditionGroups_.add( - input.readMessage( - com.google.analytics.data.v1alpha.EventSegmentConditionGroup.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - andConditionGroups_ = java.util.Collections.unmodifiableList(andConditionGroups_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor; @@ -231,7 +174,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < andConditionGroups_.size(); i++) { output.writeMessage(1, andConditionGroups_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -244,7 +187,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, andConditionGroups_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -261,7 +204,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1alpha.EventSegmentCriteria) obj; if (!getAndConditionGroupsList().equals(other.getAndConditionGroupsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -276,7 +219,7 @@ public int hashCode() { hash = (37 * hash) + AND_CONDITION_GROUPS_FIELD_NUMBER; hash = (53 * hash) + getAndConditionGroupsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -407,19 +350,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.EventSegmentCriteria.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAndConditionGroupsFieldBuilder(); - } } @java.lang.Override @@ -427,10 +361,11 @@ public Builder clear() { super.clear(); if (andConditionGroupsBuilder_ == null) { andConditionGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + andConditionGroups_ = null; andConditionGroupsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -545,7 +480,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.EventSegmentCriteria } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -560,18 +495,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.EventSegmentCriteria parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1alpha.EventSegmentConditionGroup m = + input.readMessage( + com.google.analytics.data.v1alpha.EventSegmentConditionGroup.parser(), + extensionRegistry); + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.add(m); + } else { + andConditionGroupsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.EventSegmentCriteria) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1034,7 +996,18 @@ public EventSegmentCriteria parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new EventSegmentCriteria(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusion.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusion.java index 952466f7..cb5f63d1 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusion.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusion.java @@ -52,69 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private EventSegmentExclusion( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder 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(); - - eventExclusionDuration_ = rawValue; - break; - } - case 18: - { - com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder subBuilder = null; - if (eventExclusionCriteria_ != null) { - subBuilder = eventExclusionCriteria_.toBuilder(); - } - eventExclusionCriteria_ = - input.readMessage( - com.google.analytics.data.v1alpha.EventSegmentCriteria.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(eventExclusionCriteria_); - eventExclusionCriteria_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor; @@ -249,7 +186,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (eventExclusionCriteria_ != null) { output.writeMessage(2, getEventExclusionCriteria()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -268,7 +205,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEventExclusionCriteria()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -289,7 +226,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEventExclusionCriteria()) { if (!getEventExclusionCriteria().equals(other.getEventExclusionCriteria())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -306,7 +243,7 @@ public int hashCode() { hash = (37 * hash) + EVENT_EXCLUSION_CRITERIA_FIELD_NUMBER; hash = (53 * hash) + getEventExclusionCriteria().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -436,17 +373,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.EventSegmentExclusion.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -549,7 +479,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.EventSegmentExclusion if (other.hasEventExclusionCriteria()) { mergeEventExclusionCriteria(other.getEventExclusionCriteria()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -564,18 +494,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.EventSegmentExclusion parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + eventExclusionDuration_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + input.readMessage( + getEventExclusionCriteriaFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.EventSegmentExclusion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -929,7 +885,18 @@ public EventSegmentExclusion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new EventSegmentExclusion(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java index 1facc0d4..29038420 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java @@ -52,120 +52,6 @@ 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 18: - { - com.google.analytics.data.v1alpha.StringFilter.Builder subBuilder = null; - if (oneFilterCase_ == 2) { - subBuilder = - ((com.google.analytics.data.v1alpha.StringFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.StringFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.StringFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 2; - break; - } - case 26: - { - com.google.analytics.data.v1alpha.InListFilter.Builder subBuilder = null; - if (oneFilterCase_ == 3) { - subBuilder = - ((com.google.analytics.data.v1alpha.InListFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.InListFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.InListFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 3; - break; - } - case 34: - { - com.google.analytics.data.v1alpha.NumericFilter.Builder subBuilder = null; - if (oneFilterCase_ == 4) { - subBuilder = - ((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.NumericFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 4; - break; - } - case 42: - { - com.google.analytics.data.v1alpha.BetweenFilter.Builder subBuilder = null; - if (oneFilterCase_ == 5) { - subBuilder = - ((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.BetweenFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 5; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_Filter_descriptor; @@ -518,7 +404,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (oneFilterCase_ == 5) { output.writeMessage(5, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -550,7 +436,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -583,7 +469,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -616,7 +502,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -745,17 +631,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.Filter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -763,6 +642,18 @@ public Builder clear() { super.clear(); fieldName_ = ""; + if (stringFilterBuilder_ != null) { + stringFilterBuilder_.clear(); + } + if (inListFilterBuilder_ != null) { + inListFilterBuilder_.clear(); + } + if (numericFilterBuilder_ != null) { + numericFilterBuilder_.clear(); + } + if (betweenFilterBuilder_ != null) { + betweenFilterBuilder_.clear(); + } oneFilterCase_ = 0; oneFilter_ = null; return this; @@ -901,7 +792,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.Filter other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -916,17 +807,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.Filter parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getNumericFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getBetweenFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.Filter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1927,7 +1862,18 @@ public Filter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Filter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java index 07f68719..5ca3fe51 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java @@ -51,117 +51,6 @@ 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.v1alpha.FilterExpressionList.Builder subBuilder = null; - if (exprCase_ == 1) { - subBuilder = - ((com.google.analytics.data.v1alpha.FilterExpressionList) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.FilterExpressionList.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.FilterExpressionList) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 1; - break; - } - case 18: - { - com.google.analytics.data.v1alpha.FilterExpressionList.Builder subBuilder = null; - if (exprCase_ == 2) { - subBuilder = - ((com.google.analytics.data.v1alpha.FilterExpressionList) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.FilterExpressionList.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.FilterExpressionList) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 2; - break; - } - case 26: - { - com.google.analytics.data.v1alpha.FilterExpression.Builder subBuilder = null; - if (exprCase_ == 3) { - subBuilder = - ((com.google.analytics.data.v1alpha.FilterExpression) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.FilterExpression) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 3; - break; - } - case 34: - { - com.google.analytics.data.v1alpha.Filter.Builder subBuilder = null; - if (exprCase_ == 4) { - subBuilder = ((com.google.analytics.data.v1alpha.Filter) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.Filter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor; @@ -463,7 +352,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (exprCase_ == 4) { output.writeMessage(4, (com.google.analytics.data.v1alpha.Filter) expr_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -492,7 +381,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.analytics.data.v1alpha.Filter) expr_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -525,7 +414,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -556,7 +445,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -686,22 +575,27 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.FilterExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); + if (andGroupBuilder_ != null) { + andGroupBuilder_.clear(); + } + if (orGroupBuilder_ != null) { + orGroupBuilder_.clear(); + } + if (notExpressionBuilder_ != null) { + notExpressionBuilder_.clear(); + } + if (filterBuilder_ != null) { + filterBuilder_.clear(); + } exprCase_ = 0; expr_ = null; return this; @@ -836,7 +730,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.FilterExpression othe break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -851,18 +745,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.FilterExpression parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.FilterExpression) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1762,7 +1693,18 @@ public FilterExpression parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FilterExpression(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionList.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionList.java index edb891d4..f9d4c14e 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionList.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionList.java @@ -52,62 +52,6 @@ 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.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor; @@ -210,7 +154,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < expressions_.size(); i++) { output.writeMessage(1, expressions_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -222,7 +166,7 @@ public int getSerializedSize() { for (int i = 0; i < expressions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -239,7 +183,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1alpha.FilterExpressionList) obj; if (!getExpressionsList().equals(other.getExpressionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -254,7 +198,7 @@ public int hashCode() { hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; hash = (53 * hash) + getExpressionsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -384,19 +328,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.FilterExpressionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getExpressionsFieldBuilder(); - } } @java.lang.Override @@ -404,10 +339,11 @@ public Builder clear() { super.clear(); if (expressionsBuilder_ == null) { expressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + expressions_ = null; expressionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -522,7 +458,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.FilterExpressionList } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -537,18 +473,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.FilterExpressionList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1alpha.FilterExpression m = + input.readMessage( + com.google.analytics.data.v1alpha.FilterExpression.parser(), + extensionRegistry); + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(m); + } else { + expressionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.FilterExpressionList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -944,7 +907,18 @@ public FilterExpressionList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FilterExpressionList(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Funnel.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Funnel.java index 95c6463f..8dc646e3 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Funnel.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Funnel.java @@ -58,65 +58,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Funnel( - 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: - { - isOpenFunnel_ = input.readBool(); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - steps_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - steps_.add( - input.readMessage( - com.google.analytics.data.v1alpha.FunnelStep.parser(), extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - steps_ = java.util.Collections.unmodifiableList(steps_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_Funnel_descriptor; @@ -241,7 +182,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < steps_.size(); i++) { output.writeMessage(2, steps_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -256,7 +197,7 @@ public int getSerializedSize() { for (int i = 0; i < steps_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, steps_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -273,7 +214,7 @@ public boolean equals(final java.lang.Object obj) { if (getIsOpenFunnel() != other.getIsOpenFunnel()) return false; if (!getStepsList().equals(other.getStepsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -290,7 +231,7 @@ public int hashCode() { hash = (37 * hash) + STEPS_FIELD_NUMBER; hash = (53 * hash) + getStepsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -425,19 +366,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.Funnel.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getStepsFieldBuilder(); - } } @java.lang.Override @@ -447,10 +379,11 @@ public Builder clear() { if (stepsBuilder_ == null) { steps_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + steps_ = null; stepsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -568,7 +501,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.Funnel other) { } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -583,17 +516,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.Funnel parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + isOpenFunnel_ = input.readBool(); + + break; + } // case 8 + case 18: + { + com.google.analytics.data.v1alpha.FunnelStep m = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelStep.parser(), extensionRegistry); + if (stepsBuilder_ == null) { + ensureStepsIsMutable(); + steps_.add(m); + } else { + stepsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.Funnel) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1038,7 +1004,18 @@ public Funnel parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Funnel(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdown.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdown.java index 8c6651c5..b1bb9688 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdown.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdown.java @@ -50,68 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FunnelBreakdown( - 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.v1alpha.Dimension.Builder subBuilder = null; - if (breakdownDimension_ != null) { - subBuilder = breakdownDimension_.toBuilder(); - } - breakdownDimension_ = - input.readMessage( - com.google.analytics.data.v1alpha.Dimension.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(breakdownDimension_); - breakdownDimension_ = subBuilder.buildPartial(); - } - - break; - } - case 16: - { - bitField0_ |= 0x00000001; - limit_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor; @@ -239,7 +177,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(2, limit_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -254,7 +192,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, limit_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -278,7 +216,7 @@ public boolean equals(final java.lang.Object obj) { if (hasLimit()) { if (getLimit() != other.getLimit()) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,7 +235,7 @@ public int hashCode() { hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -426,17 +364,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.FunnelBreakdown.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -545,7 +476,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelBreakdown other if (other.hasLimit()) { setLimit(other.getLimit()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -560,18 +491,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.FunnelBreakdown parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getBreakdownDimensionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 16: + { + limit_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.FunnelBreakdown) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -888,7 +845,18 @@ public FunnelBreakdown parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FunnelBreakdown(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilter.java index f7453ba0..55c83c10 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilter.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilter.java @@ -55,71 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FunnelEventFilter( - 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; - eventName_ = s; - break; - } - case 18: - { - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder subBuilder = - null; - if (((bitField0_ & 0x00000002) != 0)) { - subBuilder = funnelParameterFilterExpression_.toBuilder(); - } - funnelParameterFilterExpression_ = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(funnelParameterFilterExpression_); - funnelParameterFilterExpression_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor; @@ -291,7 +226,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getFunnelParameterFilterExpression()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -308,7 +243,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, getFunnelParameterFilterExpression()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -334,7 +269,7 @@ public boolean equals(final java.lang.Object obj) { if (!getFunnelParameterFilterExpression().equals(other.getFunnelParameterFilterExpression())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -353,7 +288,7 @@ public int hashCode() { hash = (37 * hash) + FUNNEL_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getFunnelParameterFilterExpression().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -611,7 +546,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelEventFilter oth if (other.hasFunnelParameterFilterExpression()) { mergeFunnelParameterFilterExpression(other.getFunnelParameterFilterExpression()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -626,18 +561,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.FunnelEventFilter parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + eventName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getFunnelParameterFilterExpressionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.FunnelEventFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1042,7 +1004,18 @@ public FunnelEventFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FunnelEventFilter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilter.java index a613e147..d6b931d0 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilter.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilter.java @@ -52,120 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FunnelFieldFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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 34: - { - com.google.analytics.data.v1alpha.StringFilter.Builder subBuilder = null; - if (oneFilterCase_ == 4) { - subBuilder = - ((com.google.analytics.data.v1alpha.StringFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.StringFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.StringFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 4; - break; - } - case 42: - { - com.google.analytics.data.v1alpha.InListFilter.Builder subBuilder = null; - if (oneFilterCase_ == 5) { - subBuilder = - ((com.google.analytics.data.v1alpha.InListFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.InListFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.InListFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 5; - break; - } - case 50: - { - com.google.analytics.data.v1alpha.NumericFilter.Builder subBuilder = null; - if (oneFilterCase_ == 6) { - subBuilder = - ((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.NumericFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 6; - break; - } - case 58: - { - com.google.analytics.data.v1alpha.BetweenFilter.Builder subBuilder = null; - if (oneFilterCase_ == 7) { - subBuilder = - ((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.BetweenFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 7; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor; @@ -516,7 +402,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (oneFilterCase_ == 7) { output.writeMessage(7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -548,7 +434,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -582,7 +468,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -615,7 +501,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -744,17 +630,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.FunnelFieldFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -762,6 +641,18 @@ public Builder clear() { super.clear(); fieldName_ = ""; + if (stringFilterBuilder_ != null) { + stringFilterBuilder_.clear(); + } + if (inListFilterBuilder_ != null) { + inListFilterBuilder_.clear(); + } + if (numericFilterBuilder_ != null) { + numericFilterBuilder_.clear(); + } + if (betweenFilterBuilder_ != null) { + betweenFilterBuilder_.clear(); + } oneFilterCase_ = 0; oneFilter_ = null; return this; @@ -901,7 +792,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelFieldFilter oth break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -916,18 +807,61 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.FunnelFieldFilter parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 34: + { + input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getNumericFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getBetweenFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 7; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.FunnelFieldFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1923,7 +1857,18 @@ public FunnelFieldFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FunnelFieldFilter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpression.java index ec95a99a..1ec4a4a5 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpression.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpression.java @@ -50,142 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FunnelFilterExpression( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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.v1alpha.FunnelFilterExpressionList.Builder subBuilder = - null; - if (exprCase_ == 1) { - subBuilder = - ((com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_) - .toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 1; - break; - } - case 18: - { - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder subBuilder = - null; - if (exprCase_ == 2) { - subBuilder = - ((com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_) - .toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 2; - break; - } - case 26: - { - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder subBuilder = null; - if (exprCase_ == 3) { - subBuilder = - ((com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelFilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 3; - break; - } - case 34: - { - com.google.analytics.data.v1alpha.FunnelFieldFilter.Builder subBuilder = null; - if (exprCase_ == 4) { - subBuilder = - ((com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelFieldFilter.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 4; - break; - } - case 42: - { - com.google.analytics.data.v1alpha.FunnelEventFilter.Builder subBuilder = null; - if (exprCase_ == 5) { - subBuilder = - ((com.google.analytics.data.v1alpha.FunnelEventFilter) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelEventFilter.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.FunnelEventFilter) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 5; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor; @@ -555,7 +419,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (exprCase_ == 5) { output.writeMessage(5, (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -589,7 +453,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -625,7 +489,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -660,7 +524,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -790,22 +654,30 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.FunnelFilterExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); + if (andGroupBuilder_ != null) { + andGroupBuilder_.clear(); + } + if (orGroupBuilder_ != null) { + orGroupBuilder_.clear(); + } + if (notExpressionBuilder_ != null) { + notExpressionBuilder_.clear(); + } + if (funnelFieldFilterBuilder_ != null) { + funnelFieldFilterBuilder_.clear(); + } + if (funnelEventFilterBuilder_ != null) { + funnelEventFilterBuilder_.clear(); + } exprCase_ = 0; expr_ = null; return this; @@ -952,7 +824,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelFilterExpressio break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -967,18 +839,63 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.FunnelFilterExpression parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getFunnelFieldFilterFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + getFunnelEventFilterFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.FunnelFilterExpression) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2126,7 +2043,18 @@ public FunnelFilterExpression parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FunnelFilterExpression(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionList.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionList.java index 7f953c6e..3aa39d25 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionList.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionList.java @@ -52,63 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FunnelFilterExpressionList( - 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< - com.google.analytics.data.v1alpha.FunnelFilterExpression>(); - mutable_bitField0_ |= 0x00000001; - } - expressions_.add( - input.readMessage( - com.google.analytics.data.v1alpha.FunnelFilterExpression.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor; @@ -212,7 +155,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < expressions_.size(); i++) { output.writeMessage(1, expressions_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -224,7 +167,7 @@ public int getSerializedSize() { for (int i = 0; i < expressions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -241,7 +184,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) obj; if (!getExpressionsList().equals(other.getExpressionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -256,7 +199,7 @@ public int hashCode() { hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; hash = (53 * hash) + getExpressionsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -386,19 +329,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.FunnelFilterExpressionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getExpressionsFieldBuilder(); - } } @java.lang.Override @@ -406,10 +340,11 @@ public Builder clear() { super.clear(); if (expressionsBuilder_ == null) { expressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + expressions_ = null; expressionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -526,7 +461,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelFilterExpressio } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -541,18 +476,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.FunnelFilterExpressionList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1alpha.FunnelFilterExpression m = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelFilterExpression.parser(), + extensionRegistry); + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(m); + } else { + expressionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -956,7 +918,18 @@ public FunnelFilterExpressionList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FunnelFilterExpressionList(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java index 25c03ce9..4024e3e3 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java @@ -55,68 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FunnelNextAction( - 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.v1alpha.Dimension.Builder subBuilder = null; - if (nextActionDimension_ != null) { - subBuilder = nextActionDimension_.toBuilder(); - } - nextActionDimension_ = - input.readMessage( - com.google.analytics.data.v1alpha.Dimension.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(nextActionDimension_); - nextActionDimension_ = subBuilder.buildPartial(); - } - - break; - } - case 16: - { - bitField0_ |= 0x00000001; - limit_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor; @@ -253,7 +191,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(2, limit_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -268,7 +206,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, limit_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -292,7 +230,7 @@ public boolean equals(final java.lang.Object obj) { if (hasLimit()) { if (getLimit() != other.getLimit()) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -311,7 +249,7 @@ public int hashCode() { hash = (37 * hash) + LIMIT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -445,17 +383,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.FunnelNextAction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -564,7 +495,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelNextAction othe if (other.hasLimit()) { setLimit(other.getLimit()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -579,18 +510,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.FunnelNextAction parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getNextActionDimensionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 16: + { + limit_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.FunnelNextAction) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -934,7 +891,18 @@ public FunnelNextAction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FunnelNextAction(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilter.java index 51fc8320..3308080e 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilter.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilter.java @@ -50,127 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FunnelParameterFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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(); - oneParameterCase_ = 1; - oneParameter_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - oneParameterCase_ = 2; - oneParameter_ = s; - break; - } - case 34: - { - com.google.analytics.data.v1alpha.StringFilter.Builder subBuilder = null; - if (oneFilterCase_ == 4) { - subBuilder = - ((com.google.analytics.data.v1alpha.StringFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.StringFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.StringFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 4; - break; - } - case 42: - { - com.google.analytics.data.v1alpha.InListFilter.Builder subBuilder = null; - if (oneFilterCase_ == 5) { - subBuilder = - ((com.google.analytics.data.v1alpha.InListFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.InListFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.InListFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 5; - break; - } - case 50: - { - com.google.analytics.data.v1alpha.NumericFilter.Builder subBuilder = null; - if (oneFilterCase_ == 6) { - subBuilder = - ((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.NumericFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 6; - break; - } - case 58: - { - com.google.analytics.data.v1alpha.BetweenFilter.Builder subBuilder = null; - if (oneFilterCase_ == 7) { - subBuilder = - ((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.BetweenFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 7; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor; @@ -704,7 +583,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (oneFilterCase_ == 7) { output.writeMessage(7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -739,7 +618,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -783,7 +662,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -826,7 +705,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -956,22 +835,27 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.FunnelParameterFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); + if (stringFilterBuilder_ != null) { + stringFilterBuilder_.clear(); + } + if (inListFilterBuilder_ != null) { + inListFilterBuilder_.clear(); + } + if (numericFilterBuilder_ != null) { + numericFilterBuilder_.clear(); + } + if (betweenFilterBuilder_ != null) { + betweenFilterBuilder_.clear(); + } oneParameterCase_ = 0; oneParameter_ = null; oneFilterCase_ = 0; @@ -1135,7 +1019,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelParameterFilter break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1150,18 +1034,69 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.FunnelParameterFilter parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + oneParameterCase_ = 1; + oneParameter_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + oneParameterCase_ = 2; + oneParameter_ = s; + break; + } // case 18 + case 34: + { + input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getNumericFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getBetweenFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 7; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.FunnelParameterFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2417,7 +2352,18 @@ public FunnelParameterFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FunnelParameterFilter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpression.java index 8ac838fb..7a325168 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpression.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpression.java @@ -51,129 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FunnelParameterFilterExpression( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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.v1alpha.FunnelParameterFilterExpressionList.Builder - subBuilder = null; - if (exprCase_ == 1) { - subBuilder = - ((com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_) - .toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 1; - break; - } - case 18: - { - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder - subBuilder = null; - if (exprCase_ == 2) { - subBuilder = - ((com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_) - .toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 2; - break; - } - case 26: - { - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder subBuilder = - null; - if (exprCase_ == 3) { - subBuilder = - ((com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_) - .toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 3; - break; - } - case 34: - { - com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder subBuilder = null; - if (exprCase_ == 4) { - subBuilder = - ((com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelParameterFilter.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.FunnelParameterFilter) 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor; @@ -489,7 +366,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (exprCase_ == 4) { output.writeMessage(4, (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -518,7 +395,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -551,7 +428,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -582,7 +459,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -714,22 +591,27 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); + if (andGroupBuilder_ != null) { + andGroupBuilder_.clear(); + } + if (orGroupBuilder_ != null) { + orGroupBuilder_.clear(); + } + if (notExpressionBuilder_ != null) { + notExpressionBuilder_.clear(); + } + if (funnelParameterFilterBuilder_ != null) { + funnelParameterFilterBuilder_.clear(); + } exprCase_ = 0; expr_ = null; return this; @@ -867,7 +749,7 @@ public Builder mergeFrom( break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -882,19 +764,56 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getFunnelParameterFilterFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1871,7 +1790,18 @@ public FunnelParameterFilterExpression parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FunnelParameterFilterExpression(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionList.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionList.java index 87989ee0..70a53aa9 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionList.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionList.java @@ -54,63 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FunnelParameterFilterExpressionList( - 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< - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression>(); - mutable_bitField0_ |= 0x00000001; - } - expressions_.add( - input.readMessage( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor; @@ -222,7 +165,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < expressions_.size(); i++) { output.writeMessage(1, expressions_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -234,7 +177,7 @@ public int getSerializedSize() { for (int i = 0; i < expressions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -251,7 +194,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) obj; if (!getExpressionsList().equals(other.getExpressionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,7 +209,7 @@ public int hashCode() { hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; hash = (53 * hash) + getExpressionsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -398,19 +341,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getExpressionsFieldBuilder(); - } } @java.lang.Override @@ -418,10 +352,11 @@ public Builder clear() { super.clear(); if (expressionsBuilder_ == null) { expressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + expressions_ = null; expressionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -541,7 +476,7 @@ public Builder mergeFrom( } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -556,19 +491,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression m = + input.readMessage( + com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.parser(), + extensionRegistry); + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(m); + } else { + expressionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1015,7 +976,18 @@ public FunnelParameterFilterExpressionList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FunnelParameterFilterExpressionList(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java index 716b8362..dafde6a2 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java @@ -53,62 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FunnelResponseMetadata( - 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)) { - samplingMetadatas_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - samplingMetadatas_.add( - input.readMessage( - com.google.analytics.data.v1alpha.SamplingMetadata.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - samplingMetadatas_ = java.util.Collections.unmodifiableList(samplingMetadatas_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor; @@ -242,7 +186,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < samplingMetadatas_.size(); i++) { output.writeMessage(1, samplingMetadatas_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -255,7 +199,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, samplingMetadatas_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -272,7 +216,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1alpha.FunnelResponseMetadata) obj; if (!getSamplingMetadatasList().equals(other.getSamplingMetadatasList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -287,7 +231,7 @@ public int hashCode() { hash = (37 * hash) + SAMPLING_METADATAS_FIELD_NUMBER; hash = (53 * hash) + getSamplingMetadatasList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -418,19 +362,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.FunnelResponseMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSamplingMetadatasFieldBuilder(); - } } @java.lang.Override @@ -438,10 +373,11 @@ public Builder clear() { super.clear(); if (samplingMetadatasBuilder_ == null) { samplingMetadatas_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + samplingMetadatas_ = null; samplingMetadatasBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -556,7 +492,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelResponseMetadat } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -571,18 +507,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.FunnelResponseMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1alpha.SamplingMetadata m = + input.readMessage( + com.google.analytics.data.v1alpha.SamplingMetadata.parser(), + extensionRegistry); + if (samplingMetadatasBuilder_ == null) { + ensureSamplingMetadatasIsMutable(); + samplingMetadatas_.add(m); + } else { + samplingMetadatasBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.FunnelResponseMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1091,7 +1054,18 @@ public FunnelResponseMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FunnelResponseMetadata(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStep.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStep.java index e55b7100..23fae198 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStep.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStep.java @@ -54,90 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FunnelStep( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: - { - isDirectlyFollowedBy_ = input.readBool(); - break; - } - case 26: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (((bitField0_ & 0x00000001) != 0)) { - subBuilder = withinDurationFromPriorStep_.toBuilder(); - } - withinDurationFromPriorStep_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(withinDurationFromPriorStep_); - withinDurationFromPriorStep_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000001; - break; - } - case 34: - { - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder subBuilder = null; - if (filterExpression_ != null) { - subBuilder = filterExpression_.toBuilder(); - } - filterExpression_ = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelFilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(filterExpression_); - filterExpression_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor; @@ -377,7 +293,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (filterExpression_ != null) { output.writeMessage(4, getFilterExpression()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -400,7 +316,7 @@ public int getSerializedSize() { if (filterExpression_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFilterExpression()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -427,7 +343,7 @@ public boolean equals(final java.lang.Object obj) { if (hasFilterExpression()) { if (!getFilterExpression().equals(other.getFilterExpression())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -450,7 +366,7 @@ public int hashCode() { hash = (37 * hash) + FILTER_EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getFilterExpression().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -722,7 +638,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelStep other) { if (other.hasFilterExpression()) { mergeFilterExpression(other.getFilterExpression()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -737,17 +653,57 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.FunnelStep parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + isDirectlyFollowedBy_ = input.readBool(); + + break; + } // case 16 + case 26: + { + input.readMessage( + getWithinDurationFromPriorStepFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 26 + case 34: + { + input.readMessage( + getFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.FunnelStep) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1409,7 +1365,18 @@ public FunnelStep parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FunnelStep(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReport.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReport.java index f7d89e9b..ba9ad5e9 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReport.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReport.java @@ -55,108 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private FunnelSubReport( - 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.v1alpha.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.v1alpha.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.v1alpha.Row.parser(), extensionRegistry)); - break; - } - case 34: - { - com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder subBuilder = null; - if (metadata_ != null) { - subBuilder = metadata_.toBuilder(); - } - metadata_ = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelResponseMetadata.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(metadata_); - metadata_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor; @@ -476,7 +374,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (metadata_ != null) { output.writeMessage(4, getMetadata()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -497,7 +395,7 @@ public int getSerializedSize() { if (metadata_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -520,7 +418,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMetadata()) { if (!getMetadata().equals(other.getMetadata())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -547,7 +445,7 @@ public int hashCode() { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + getMetadata().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -677,21 +575,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.FunnelSubReport.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionHeadersFieldBuilder(); - getMetricHeadersFieldBuilder(); - getRowsFieldBuilder(); - } } @java.lang.Override @@ -699,22 +586,25 @@ public Builder clear() { super.clear(); if (dimensionHeadersBuilder_ == null) { dimensionHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + dimensionHeaders_ = null; dimensionHeadersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (metricHeadersBuilder_ == null) { metricHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + metricHeaders_ = null; metricHeadersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); if (rowsBuilder_ == null) { rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + rows_ = null; rowsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); if (metadataBuilder_ == null) { metadata_ = null; } else { @@ -915,7 +805,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelSubReport other if (other.hasMetadata()) { mergeMetadata(other.getMetadata()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -930,18 +820,77 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.FunnelSubReport parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1alpha.DimensionHeader m = + input.readMessage( + com.google.analytics.data.v1alpha.DimensionHeader.parser(), + extensionRegistry); + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(m); + } else { + dimensionHeadersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1alpha.MetricHeader m = + input.readMessage( + com.google.analytics.data.v1alpha.MetricHeader.parser(), extensionRegistry); + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(m); + } else { + metricHeadersBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.analytics.data.v1alpha.Row m = + input.readMessage( + com.google.analytics.data.v1alpha.Row.parser(), extensionRegistry); + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(m); + } else { + rowsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.FunnelSubReport) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2307,7 +2256,18 @@ public FunnelSubReport parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FunnelSubReport(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilter.java index b25649d5..6a231ef5 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilter.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilter.java @@ -52,64 +52,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_InListFilter_descriptor; @@ -228,7 +170,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (caseSensitive_ != false) { output.writeBool(2, caseSensitive_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -248,7 +190,7 @@ public int getSerializedSize() { if (caseSensitive_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, caseSensitive_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -266,7 +208,7 @@ public boolean equals(final java.lang.Object obj) { if (!getValuesList().equals(other.getValuesList())) return false; if (getCaseSensitive() != other.getCaseSensitive()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -283,7 +225,7 @@ public int hashCode() { } hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -412,17 +354,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.InListFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -528,7 +463,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.InListFilter other) { if (other.getCaseSensitive() != false) { setCaseSensitive(other.getCaseSensitive()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -543,17 +478,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.InListFilter parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + case 16: + { + caseSensitive_ = input.readBool(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.InListFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -820,7 +782,18 @@ public InListFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new InListFilter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java index b2605e77..aacf6b5c 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java @@ -56,59 +56,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor; @@ -229,7 +176,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (type_ != com.google.analytics.data.v1alpha.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -244,7 +191,7 @@ public int getSerializedSize() { if (type_ != com.google.analytics.data.v1alpha.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -262,7 +209,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -277,7 +224,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -409,17 +356,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.MetricHeader.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -514,7 +454,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.MetricHeader other) { if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -529,17 +469,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.MetricHeader parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.MetricHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -772,7 +738,18 @@ public MetricHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricHeader(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java index 98b33c48..40c0bc74 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java @@ -50,52 +50,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_MetricValue_descriptor; @@ -242,7 +196,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (oneValueCase_ == 4) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, oneValue_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -254,7 +208,7 @@ public int getSerializedSize() { if (oneValueCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, oneValue_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -278,7 +232,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,7 +251,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -426,17 +380,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.MetricValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -537,7 +484,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.MetricValue other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -552,17 +499,38 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.MetricValue parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + oneValueCase_ = 4; + oneValue_ = s; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.MetricValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -746,7 +714,18 @@ public MetricValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricValue(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilter.java index 63121287..1c481699 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilter.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilter.java @@ -52,68 +52,6 @@ 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.v1alpha.NumericValue.Builder subBuilder = null; - if (value_ != null) { - subBuilder = value_.toBuilder(); - } - value_ = - input.readMessage( - com.google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_NumericFilter_descriptor; @@ -460,7 +398,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (value_ != null) { output.writeMessage(2, getValue()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -477,7 +415,7 @@ public int getSerializedSize() { if (value_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -498,7 +436,7 @@ public boolean equals(final java.lang.Object obj) { if (hasValue()) { if (!getValue().equals(other.getValue())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -515,7 +453,7 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -644,17 +582,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.NumericFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -757,7 +688,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.NumericFilter other) if (other.hasValue()) { mergeValue(other.getValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -772,17 +703,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.NumericFilter parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + operation_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.NumericFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1097,7 +1054,18 @@ public NumericFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new NumericFilter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java index 6dc7d01d..5b5fd408 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java @@ -50,57 +50,6 @@ 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: - { - oneValue_ = input.readInt64(); - oneValueCase_ = 1; - break; - } - case 17: - { - oneValue_ = input.readDouble(); - oneValueCase_ = 2; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_NumericValue_descriptor; @@ -253,7 +202,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (oneValueCase_ == 2) { output.writeDouble(2, (double) ((java.lang.Double) oneValue_)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -272,7 +221,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeDoubleSize( 2, (double) ((java.lang.Double) oneValue_)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -300,7 +249,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -326,7 +275,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -455,17 +404,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.NumericValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -572,7 +514,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.NumericValue other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -587,17 +529,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.NumericValue parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + oneValue_ = input.readInt64(); + oneValueCase_ = 1; + break; + } // case 8 + case 17: + { + oneValue_ = input.readDouble(); + oneValueCase_ = 2; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.NumericValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -785,7 +753,18 @@ public NumericValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new NumericValue(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java index 975f743d..95e5b149 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java @@ -52,125 +52,6 @@ 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.v1alpha.QuotaStatus.Builder subBuilder = null; - if (tokensPerDay_ != null) { - subBuilder = tokensPerDay_.toBuilder(); - } - tokensPerDay_ = - input.readMessage( - com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tokensPerDay_); - tokensPerDay_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.analytics.data.v1alpha.QuotaStatus.Builder subBuilder = null; - if (tokensPerHour_ != null) { - subBuilder = tokensPerHour_.toBuilder(); - } - tokensPerHour_ = - input.readMessage( - com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(tokensPerHour_); - tokensPerHour_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.analytics.data.v1alpha.QuotaStatus.Builder subBuilder = null; - if (concurrentRequests_ != null) { - subBuilder = concurrentRequests_.toBuilder(); - } - concurrentRequests_ = - input.readMessage( - com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(concurrentRequests_); - concurrentRequests_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.analytics.data.v1alpha.QuotaStatus.Builder subBuilder = null; - if (serverErrorsPerProjectPerHour_ != null) { - subBuilder = serverErrorsPerProjectPerHour_.toBuilder(); - } - serverErrorsPerProjectPerHour_ = - input.readMessage( - com.google.analytics.data.v1alpha.QuotaStatus.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(serverErrorsPerProjectPerHour_); - serverErrorsPerProjectPerHour_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.analytics.data.v1alpha.QuotaStatus.Builder subBuilder = null; - if (potentiallyThresholdedRequestsPerHour_ != null) { - subBuilder = potentiallyThresholdedRequestsPerHour_.toBuilder(); - } - potentiallyThresholdedRequestsPerHour_ = - input.readMessage( - com.google.analytics.data.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor; @@ -493,7 +374,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (potentiallyThresholdedRequestsPerHour_ != null) { output.writeMessage(5, getPotentiallyThresholdedRequestsPerHour()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -521,7 +402,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, getPotentiallyThresholdedRequestsPerHour()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -561,7 +442,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPotentiallyThresholdedRequestsPerHour() .equals(other.getPotentiallyThresholdedRequestsPerHour())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -592,7 +473,7 @@ public int hashCode() { hash = (37 * hash) + POTENTIALLY_THRESHOLDED_REQUESTS_PER_HOUR_FIELD_NUMBER; hash = (53 * hash) + getPotentiallyThresholdedRequestsPerHour().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -723,17 +604,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.PropertyQuota.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -888,7 +762,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.PropertyQuota other) mergePotentiallyThresholdedRequestsPerHour( other.getPotentiallyThresholdedRequestsPerHour()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -903,17 +777,65 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.PropertyQuota parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getTokensPerDayFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getTokensPerHourFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage( + getConcurrentRequestsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage( + getServerErrorsPerProjectPerHourFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage( + getPotentiallyThresholdedRequestsPerHourFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.PropertyQuota) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2018,7 +1940,18 @@ public PropertyQuota parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PropertyQuota(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatus.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatus.java index 24e81a62..ad09707e 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatus.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatus.java @@ -50,55 +50,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor; @@ -170,7 +121,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (remaining_ != 0) { output.writeInt32(2, remaining_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -185,7 +136,7 @@ public int getSerializedSize() { if (remaining_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, remaining_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -203,7 +154,7 @@ public boolean equals(final java.lang.Object obj) { if (getConsumed() != other.getConsumed()) return false; if (getRemaining() != other.getRemaining()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -218,7 +169,7 @@ public int hashCode() { hash = (53 * hash) + getConsumed(); hash = (37 * hash) + REMAINING_FIELD_NUMBER; hash = (53 * hash) + getRemaining(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -347,17 +298,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.QuotaStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -451,7 +395,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.QuotaStatus other) { if (other.getRemaining() != 0) { setRemaining(other.getRemaining()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -466,17 +410,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.QuotaStatus parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + consumed_ = input.readInt32(); + + break; + } // case 8 + case 16: + { + remaining_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.QuotaStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -616,7 +586,18 @@ public QuotaStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new QuotaStatus(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java index 9e8d5452..fbef5ac2 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java @@ -86,77 +86,6 @@ 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.v1alpha.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.v1alpha.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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_Row_descriptor; @@ -337,7 +266,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < metricValues_.size(); i++) { output.writeMessage(2, metricValues_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -352,7 +281,7 @@ public int getSerializedSize() { for (int i = 0; i < metricValues_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricValues_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -369,7 +298,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDimensionValuesList().equals(other.getDimensionValuesList())) return false; if (!getMetricValuesList().equals(other.getMetricValuesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -388,7 +317,7 @@ public int hashCode() { hash = (37 * hash) + METRIC_VALUES_FIELD_NUMBER; hash = (53 * hash) + getMetricValuesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -549,20 +478,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.Row.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionValuesFieldBuilder(); - getMetricValuesFieldBuilder(); - } } @java.lang.Override @@ -570,16 +489,18 @@ public Builder clear() { super.clear(); if (dimensionValuesBuilder_ == null) { dimensionValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + dimensionValues_ = null; dimensionValuesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (metricValuesBuilder_ == null) { metricValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + metricValues_ = null; metricValuesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -729,7 +650,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.Row other) { } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -744,17 +665,58 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.Row parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1alpha.DimensionValue m = + input.readMessage( + com.google.analytics.data.v1alpha.DimensionValue.parser(), + extensionRegistry); + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.add(m); + } else { + dimensionValuesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1alpha.MetricValue m = + input.readMessage( + com.google.analytics.data.v1alpha.MetricValue.parser(), extensionRegistry); + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + metricValues_.add(m); + } else { + metricValuesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.Row) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1523,7 +1485,18 @@ public Row parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Row(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java index 40f94f8e..1a8ed6ff 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java @@ -55,166 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RunFunnelReportRequest( - 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)) { - dateRanges_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - dateRanges_.add( - input.readMessage( - com.google.analytics.data.v1alpha.DateRange.parser(), extensionRegistry)); - break; - } - case 26: - { - com.google.analytics.data.v1alpha.Funnel.Builder subBuilder = null; - if (funnel_ != null) { - subBuilder = funnel_.toBuilder(); - } - funnel_ = - input.readMessage( - com.google.analytics.data.v1alpha.Funnel.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(funnel_); - funnel_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - com.google.analytics.data.v1alpha.FunnelBreakdown.Builder subBuilder = null; - if (funnelBreakdown_ != null) { - subBuilder = funnelBreakdown_.toBuilder(); - } - funnelBreakdown_ = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelBreakdown.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(funnelBreakdown_); - funnelBreakdown_ = subBuilder.buildPartial(); - } - - break; - } - case 42: - { - com.google.analytics.data.v1alpha.FunnelNextAction.Builder subBuilder = null; - if (funnelNextAction_ != null) { - subBuilder = funnelNextAction_.toBuilder(); - } - funnelNextAction_ = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelNextAction.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(funnelNextAction_); - funnelNextAction_ = subBuilder.buildPartial(); - } - - break; - } - case 48: - { - int rawValue = input.readEnum(); - - funnelVisualizationType_ = rawValue; - break; - } - case 58: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - segments_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000002; - } - segments_.add( - input.readMessage( - com.google.analytics.data.v1alpha.Segment.parser(), extensionRegistry)); - break; - } - case 72: - { - limit_ = input.readInt64(); - break; - } - case 82: - { - com.google.analytics.data.v1alpha.FilterExpression.Builder subBuilder = null; - if (dimensionFilter_ != null) { - subBuilder = dimensionFilter_.toBuilder(); - } - dimensionFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.FilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(dimensionFilter_); - dimensionFilter_ = subBuilder.buildPartial(); - } - - break; - } - case 96: - { - 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - segments_ = java.util.Collections.unmodifiableList(segments_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.AnalyticsDataApiProto .internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_descriptor; @@ -1009,7 +849,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (returnPropertyQuota_ != false) { output.writeBool(12, returnPropertyQuota_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1051,7 +891,7 @@ public int getSerializedSize() { if (returnPropertyQuota_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, returnPropertyQuota_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1089,7 +929,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDimensionFilter().equals(other.getDimensionFilter())) return false; } if (getReturnPropertyQuota() != other.getReturnPropertyQuota()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1132,7 +972,7 @@ public int hashCode() { } hash = (37 * hash) + RETURN_PROPERTY_QUOTA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPropertyQuota()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1262,20 +1102,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.RunFunnelReportRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDateRangesFieldBuilder(); - getSegmentsFieldBuilder(); - } } @java.lang.Override @@ -1285,10 +1115,11 @@ public Builder clear() { if (dateRangesBuilder_ == null) { dateRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + dateRanges_ = null; dateRangesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (funnelBuilder_ == null) { funnel_ = null; } else { @@ -1311,10 +1142,11 @@ public Builder clear() { if (segmentsBuilder_ == null) { segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + segments_ = null; segmentsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); limit_ = 0L; if (dimensionFilterBuilder_ == null) { @@ -1524,7 +1356,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunFunnelReportReques if (other.getReturnPropertyQuota() != false) { setReturnPropertyQuota(other.getReturnPropertyQuota()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1539,18 +1371,106 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.RunFunnelReportRequest parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1alpha.DateRange m = + input.readMessage( + com.google.analytics.data.v1alpha.DateRange.parser(), extensionRegistry); + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.add(m); + } else { + dateRangesBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + input.readMessage(getFunnelFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage(getFunnelBreakdownFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage( + getFunnelNextActionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 48: + { + funnelVisualizationType_ = input.readEnum(); + + break; + } // case 48 + case 58: + { + com.google.analytics.data.v1alpha.Segment m = + input.readMessage( + com.google.analytics.data.v1alpha.Segment.parser(), extensionRegistry); + if (segmentsBuilder_ == null) { + ensureSegmentsIsMutable(); + segments_.add(m); + } else { + segmentsBuilder_.addMessage(m); + } + break; + } // case 58 + case 72: + { + limit_ = input.readInt64(); + + break; + } // case 72 + case 82: + { + input.readMessage(getDimensionFilterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 82 + case 96: + { + returnPropertyQuota_ = input.readBool(); + + break; + } // case 96 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.RunFunnelReportRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3676,7 +3596,18 @@ public RunFunnelReportRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RunFunnelReportRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponse.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponse.java index 226bd180..d2872b7a 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponse.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponse.java @@ -53,102 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private RunFunnelReportResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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.v1alpha.FunnelSubReport.Builder subBuilder = null; - if (funnelTable_ != null) { - subBuilder = funnelTable_.toBuilder(); - } - funnelTable_ = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelSubReport.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(funnelTable_); - funnelTable_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.analytics.data.v1alpha.FunnelSubReport.Builder subBuilder = null; - if (funnelVisualization_ != null) { - subBuilder = funnelVisualization_.toBuilder(); - } - funnelVisualization_ = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelSubReport.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(funnelVisualization_); - funnelVisualization_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - com.google.analytics.data.v1alpha.PropertyQuota.Builder subBuilder = null; - if (propertyQuota_ != null) { - subBuilder = propertyQuota_.toBuilder(); - } - propertyQuota_ = - input.readMessage( - com.google.analytics.data.v1alpha.PropertyQuota.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(propertyQuota_); - propertyQuota_ = subBuilder.buildPartial(); - } - - break; - } - case 34: - { - 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.AnalyticsDataApiProto .internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor; @@ -418,7 +322,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kind_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -439,7 +343,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, kind_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -468,7 +372,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPropertyQuota().equals(other.getPropertyQuota())) return false; } if (!getKind().equals(other.getKind())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -493,7 +397,7 @@ public int hashCode() { } hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -624,17 +528,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.RunFunnelReportResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -766,7 +663,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.RunFunnelReportRespon kind_ = other.kind_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -781,18 +678,56 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.RunFunnelReportResponse parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getFunnelTableFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage( + getFunnelVisualizationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage(getPropertyQuotaFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + kind_ = input.readStringRequireUtf8(); + + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.RunFunnelReportResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1595,7 +1530,18 @@ public RunFunnelReportResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RunFunnelReportResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadata.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadata.java index 120c1be0..b90307ed 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadata.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadata.java @@ -55,55 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SamplingMetadata( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder 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: - { - samplesReadCount_ = input.readInt64(); - break; - } - case 16: - { - samplingSpaceSize_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor; @@ -182,7 +133,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (samplingSpaceSize_ != 0L) { output.writeInt64(2, samplingSpaceSize_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -197,7 +148,7 @@ public int getSerializedSize() { if (samplingSpaceSize_ != 0L) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, samplingSpaceSize_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -215,7 +166,7 @@ public boolean equals(final java.lang.Object obj) { if (getSamplesReadCount() != other.getSamplesReadCount()) return false; if (getSamplingSpaceSize() != other.getSamplingSpaceSize()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -230,7 +181,7 @@ public int hashCode() { hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSamplesReadCount()); hash = (37 * hash) + SAMPLING_SPACE_SIZE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSamplingSpaceSize()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -364,17 +315,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.SamplingMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -469,7 +413,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.SamplingMetadata othe if (other.getSamplingSpaceSize() != 0L) { setSamplingSpaceSize(other.getSamplingSpaceSize()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -484,18 +428,43 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.SamplingMetadata parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + samplesReadCount_ = input.readInt64(); + + break; + } // case 8 + case 16: + { + samplingSpaceSize_ = input.readInt64(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.SamplingMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -656,7 +625,18 @@ public SamplingMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SamplingMetadata(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Segment.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Segment.java index 55ada788..2d153afb 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Segment.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Segment.java @@ -57,107 +57,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Segment( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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.v1alpha.UserSegment.Builder subBuilder = null; - if (oneSegmentScopeCase_ == 2) { - subBuilder = - ((com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_).toBuilder(); - } - oneSegmentScope_ = - input.readMessage( - com.google.analytics.data.v1alpha.UserSegment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_); - oneSegmentScope_ = subBuilder.buildPartial(); - } - oneSegmentScopeCase_ = 2; - break; - } - case 26: - { - com.google.analytics.data.v1alpha.SessionSegment.Builder subBuilder = null; - if (oneSegmentScopeCase_ == 3) { - subBuilder = - ((com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_) - .toBuilder(); - } - oneSegmentScope_ = - input.readMessage( - com.google.analytics.data.v1alpha.SessionSegment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_); - oneSegmentScope_ = subBuilder.buildPartial(); - } - oneSegmentScopeCase_ = 3; - break; - } - case 34: - { - com.google.analytics.data.v1alpha.EventSegment.Builder subBuilder = null; - if (oneSegmentScopeCase_ == 4) { - subBuilder = - ((com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_).toBuilder(); - } - oneSegmentScope_ = - input.readMessage( - com.google.analytics.data.v1alpha.EventSegment.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_); - oneSegmentScope_ = subBuilder.buildPartial(); - } - oneSegmentScopeCase_ = 4; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_Segment_descriptor; @@ -463,7 +362,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (oneSegmentScopeCase_ == 4) { output.writeMessage(4, (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -490,7 +389,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -521,7 +420,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -550,7 +449,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -684,17 +583,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.Segment.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -702,6 +594,15 @@ public Builder clear() { super.clear(); name_ = ""; + if (userSegmentBuilder_ != null) { + userSegmentBuilder_.clear(); + } + if (sessionSegmentBuilder_ != null) { + sessionSegmentBuilder_.clear(); + } + if (eventSegmentBuilder_ != null) { + eventSegmentBuilder_.clear(); + } oneSegmentScopeCase_ = 0; oneSegmentScope_ = null; return this; @@ -828,7 +729,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.Segment other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -843,17 +744,55 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.Segment parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage(getUserSegmentFieldBuilder().getBuilder(), extensionRegistry); + oneSegmentScopeCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getSessionSegmentFieldBuilder().getBuilder(), extensionRegistry); + oneSegmentScopeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getEventSegmentFieldBuilder().getBuilder(), extensionRegistry); + oneSegmentScopeCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.Segment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1675,7 +1614,18 @@ public Segment parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Segment(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilter.java index c1813e67..95101994 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilter.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilter.java @@ -55,71 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SegmentEventFilter( - 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; - eventName_ = s; - break; - } - case 18: - { - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder - subBuilder = null; - if (((bitField0_ & 0x00000002) != 0)) { - subBuilder = segmentParameterFilterExpression_.toBuilder(); - } - segmentParameterFilterExpression_ = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(segmentParameterFilterExpression_); - segmentParameterFilterExpression_ = subBuilder.buildPartial(); - } - bitField0_ |= 0x00000002; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor; @@ -291,7 +226,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getSegmentParameterFilterExpression()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -308,7 +243,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, getSegmentParameterFilterExpression()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -334,7 +269,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSegmentParameterFilterExpression() .equals(other.getSegmentParameterFilterExpression())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -353,7 +288,7 @@ public int hashCode() { hash = (37 * hash) + SEGMENT_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getSegmentParameterFilterExpression().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -612,7 +547,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentEventFilter ot if (other.hasSegmentParameterFilterExpression()) { mergeSegmentParameterFilterExpression(other.getSegmentParameterFilterExpression()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -627,18 +562,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.SegmentEventFilter parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + eventName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getSegmentParameterFilterExpressionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.SegmentEventFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1046,7 +1008,18 @@ public SegmentEventFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SegmentEventFilter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilter.java index fc4cec18..88bad8dd 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilter.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilter.java @@ -52,137 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SegmentFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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 34: - { - com.google.analytics.data.v1alpha.StringFilter.Builder subBuilder = null; - if (oneFilterCase_ == 4) { - subBuilder = - ((com.google.analytics.data.v1alpha.StringFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.StringFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.StringFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 4; - break; - } - case 42: - { - com.google.analytics.data.v1alpha.InListFilter.Builder subBuilder = null; - if (oneFilterCase_ == 5) { - subBuilder = - ((com.google.analytics.data.v1alpha.InListFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.InListFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.InListFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 5; - break; - } - case 50: - { - com.google.analytics.data.v1alpha.NumericFilter.Builder subBuilder = null; - if (oneFilterCase_ == 6) { - subBuilder = - ((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.NumericFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 6; - break; - } - case 58: - { - com.google.analytics.data.v1alpha.BetweenFilter.Builder subBuilder = null; - if (oneFilterCase_ == 7) { - subBuilder = - ((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.BetweenFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 7; - break; - } - case 66: - { - com.google.analytics.data.v1alpha.SegmentFilterScoping.Builder subBuilder = null; - if (filterScoping_ != null) { - subBuilder = filterScoping_.toBuilder(); - } - filterScoping_ = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentFilterScoping.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(filterScoping_); - filterScoping_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor; @@ -585,7 +454,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (filterScoping_ != null) { output.writeMessage(8, getFilterScoping()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -620,7 +489,7 @@ public int getSerializedSize() { if (filterScoping_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFilterScoping()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -658,7 +527,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -695,7 +564,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -824,17 +693,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.SegmentFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -842,6 +704,18 @@ public Builder clear() { super.clear(); fieldName_ = ""; + if (stringFilterBuilder_ != null) { + stringFilterBuilder_.clear(); + } + if (inListFilterBuilder_ != null) { + inListFilterBuilder_.clear(); + } + if (numericFilterBuilder_ != null) { + numericFilterBuilder_.clear(); + } + if (betweenFilterBuilder_ != null) { + betweenFilterBuilder_.clear(); + } if (filterScopingBuilder_ == null) { filterScoping_ = null; } else { @@ -995,7 +869,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentFilter other) break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1010,17 +884,67 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.SegmentFilter parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 34: + { + input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getNumericFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getBetweenFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getFilterScopingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.SegmentFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2205,7 +2129,18 @@ public SegmentFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SegmentFilter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpression.java index 1bec940c..dcd0479c 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpression.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpression.java @@ -50,140 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SegmentFilterExpression( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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.v1alpha.SegmentFilterExpressionList.Builder subBuilder = - null; - if (exprCase_ == 1) { - subBuilder = - ((com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_) - .toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 1; - break; - } - case 18: - { - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder subBuilder = - null; - if (exprCase_ == 2) { - subBuilder = - ((com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_) - .toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 2; - break; - } - case 26: - { - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder subBuilder = null; - if (exprCase_ == 3) { - subBuilder = - ((com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentFilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 3; - break; - } - case 34: - { - com.google.analytics.data.v1alpha.SegmentFilter.Builder subBuilder = null; - if (exprCase_ == 4) { - subBuilder = ((com.google.analytics.data.v1alpha.SegmentFilter) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.SegmentFilter) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 4; - break; - } - case 42: - { - com.google.analytics.data.v1alpha.SegmentEventFilter.Builder subBuilder = null; - if (exprCase_ == 5) { - subBuilder = - ((com.google.analytics.data.v1alpha.SegmentEventFilter) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentEventFilter.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.SegmentEventFilter) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 5; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor; @@ -552,7 +418,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (exprCase_ == 5) { output.writeMessage(5, (com.google.analytics.data.v1alpha.SegmentEventFilter) expr_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -586,7 +452,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, (com.google.analytics.data.v1alpha.SegmentEventFilter) expr_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -622,7 +488,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -657,7 +523,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -787,22 +653,30 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.SegmentFilterExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); + if (andGroupBuilder_ != null) { + andGroupBuilder_.clear(); + } + if (orGroupBuilder_ != null) { + orGroupBuilder_.clear(); + } + if (notExpressionBuilder_ != null) { + notExpressionBuilder_.clear(); + } + if (segmentFilterBuilder_ != null) { + segmentFilterBuilder_.clear(); + } + if (segmentEventFilterBuilder_ != null) { + segmentEventFilterBuilder_.clear(); + } exprCase_ = 0; expr_ = null; return this; @@ -949,7 +823,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentFilterExpressi break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -964,18 +838,62 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.SegmentFilterExpression parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getSegmentFilterFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + getSegmentEventFilterFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 5; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.SegmentFilterExpression) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2124,7 +2042,18 @@ public SegmentFilterExpression parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SegmentFilterExpression(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionList.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionList.java index a54e845a..29032528 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionList.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionList.java @@ -52,63 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SegmentFilterExpressionList( - 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< - com.google.analytics.data.v1alpha.SegmentFilterExpression>(); - mutable_bitField0_ |= 0x00000001; - } - expressions_.add( - input.readMessage( - com.google.analytics.data.v1alpha.SegmentFilterExpression.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor; @@ -213,7 +156,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < expressions_.size(); i++) { output.writeMessage(1, expressions_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -225,7 +168,7 @@ public int getSerializedSize() { for (int i = 0; i < expressions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -242,7 +185,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) obj; if (!getExpressionsList().equals(other.getExpressionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -257,7 +200,7 @@ public int hashCode() { hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; hash = (53 * hash) + getExpressionsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -387,19 +330,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.SegmentFilterExpressionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getExpressionsFieldBuilder(); - } } @java.lang.Override @@ -407,10 +341,11 @@ public Builder clear() { super.clear(); if (expressionsBuilder_ == null) { expressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + expressions_ = null; expressionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -527,7 +462,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentFilterExpressi } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -542,19 +477,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.SegmentFilterExpressionList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1alpha.SegmentFilterExpression m = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentFilterExpression.parser(), + extensionRegistry); + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(m); + } else { + expressionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -959,7 +920,18 @@ public SegmentFilterExpressionList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SegmentFilterExpressionList(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScoping.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScoping.java index 2aa3bf96..b2ccd188 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScoping.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScoping.java @@ -51,52 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SegmentFilterScoping( - 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; - atAnyPointInTime_ = input.readBool(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor; @@ -183,7 +137,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeBool(1, atAnyPointInTime_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -195,7 +149,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, atAnyPointInTime_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -215,7 +169,7 @@ public boolean equals(final java.lang.Object obj) { if (hasAtAnyPointInTime()) { if (getAtAnyPointInTime() != other.getAtAnyPointInTime()) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -230,7 +184,7 @@ public int hashCode() { hash = (37 * hash) + AT_ANY_POINT_IN_TIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAtAnyPointInTime()); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -361,17 +315,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.SegmentFilterScoping.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -466,7 +413,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentFilterScoping if (other.hasAtAnyPointInTime()) { setAtAnyPointInTime(other.getAtAnyPointInTime()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -481,18 +428,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.SegmentFilterScoping parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + atAnyPointInTime_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.SegmentFilterScoping) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -637,7 +603,18 @@ public SegmentFilterScoping parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SegmentFilterScoping(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilter.java index 7016948b..96bd55a4 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilter.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilter.java @@ -50,145 +50,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SegmentParameterFilter( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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(); - oneParameterCase_ = 1; - oneParameter_ = s; - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - oneParameterCase_ = 2; - oneParameter_ = s; - break; - } - case 34: - { - com.google.analytics.data.v1alpha.StringFilter.Builder subBuilder = null; - if (oneFilterCase_ == 4) { - subBuilder = - ((com.google.analytics.data.v1alpha.StringFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.StringFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.StringFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 4; - break; - } - case 42: - { - com.google.analytics.data.v1alpha.InListFilter.Builder subBuilder = null; - if (oneFilterCase_ == 5) { - subBuilder = - ((com.google.analytics.data.v1alpha.InListFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.InListFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.InListFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 5; - break; - } - case 50: - { - com.google.analytics.data.v1alpha.NumericFilter.Builder subBuilder = null; - if (oneFilterCase_ == 6) { - subBuilder = - ((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.NumericFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 6; - break; - } - case 58: - { - com.google.analytics.data.v1alpha.BetweenFilter.Builder subBuilder = null; - if (oneFilterCase_ == 7) { - subBuilder = - ((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_).toBuilder(); - } - oneFilter_ = - input.readMessage( - com.google.analytics.data.v1alpha.BetweenFilter.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); - oneFilter_ = subBuilder.buildPartial(); - } - oneFilterCase_ = 7; - break; - } - case 66: - { - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.Builder subBuilder = - null; - if (filterScoping_ != null) { - subBuilder = filterScoping_.toBuilder(); - } - filterScoping_ = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(filterScoping_); - filterScoping_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor; @@ -774,7 +635,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (filterScoping_ != null) { output.writeMessage(8, getFilterScoping()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -812,7 +673,7 @@ public int getSerializedSize() { if (filterScoping_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFilterScoping()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -860,7 +721,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -907,7 +768,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1037,22 +898,27 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.SegmentParameterFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); + if (stringFilterBuilder_ != null) { + stringFilterBuilder_.clear(); + } + if (inListFilterBuilder_ != null) { + inListFilterBuilder_.clear(); + } + if (numericFilterBuilder_ != null) { + numericFilterBuilder_.clear(); + } + if (betweenFilterBuilder_ != null) { + betweenFilterBuilder_.clear(); + } if (filterScopingBuilder_ == null) { filterScoping_ = null; } else { @@ -1230,7 +1096,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentParameterFilte break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1245,18 +1111,75 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.SegmentParameterFilter parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + oneParameterCase_ = 1; + oneParameter_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + oneParameterCase_ = 2; + oneParameter_ = s; + break; + } // case 18 + case 34: + { + input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getNumericFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 6; + break; + } // case 50 + case 58: + { + input.readMessage(getBetweenFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 7; + break; + } // case 58 + case 66: + { + input.readMessage(getFilterScopingFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.SegmentParameterFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2703,7 +2626,18 @@ public SegmentParameterFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SegmentParameterFilter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpression.java index a1160cd0..ce22e1c3 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpression.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpression.java @@ -51,129 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SegmentParameterFilterExpression( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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.v1alpha.SegmentParameterFilterExpressionList.Builder - subBuilder = null; - if (exprCase_ == 1) { - subBuilder = - ((com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_) - .toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 1; - break; - } - case 18: - { - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder - subBuilder = null; - if (exprCase_ == 2) { - subBuilder = - ((com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_) - .toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 2; - break; - } - case 26: - { - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder - subBuilder = null; - if (exprCase_ == 3) { - subBuilder = - ((com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_) - .toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_); - expr_ = subBuilder.buildPartial(); - } - exprCase_ = 3; - break; - } - case 34: - { - com.google.analytics.data.v1alpha.SegmentParameterFilter.Builder subBuilder = null; - if (exprCase_ == 4) { - subBuilder = - ((com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_).toBuilder(); - } - expr_ = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentParameterFilter.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom( - (com.google.analytics.data.v1alpha.SegmentParameterFilter) 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor; @@ -495,7 +372,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (exprCase_ == 4) { output.writeMessage(4, (com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -524,7 +401,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -557,7 +434,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -588,7 +465,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -720,22 +597,27 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); + if (andGroupBuilder_ != null) { + andGroupBuilder_.clear(); + } + if (orGroupBuilder_ != null) { + orGroupBuilder_.clear(); + } + if (notExpressionBuilder_ != null) { + notExpressionBuilder_.clear(); + } + if (segmentParameterFilterBuilder_ != null) { + segmentParameterFilterBuilder_.clear(); + } exprCase_ = 0; expr_ = null; return this; @@ -875,7 +757,7 @@ public Builder mergeFrom( break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -890,19 +772,56 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + getSegmentParameterFilterFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1891,7 +1810,18 @@ public SegmentParameterFilterExpression parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SegmentParameterFilterExpression(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionList.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionList.java index 73967881..d66536db 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionList.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionList.java @@ -54,63 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SegmentParameterFilterExpressionList( - 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< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression>(); - mutable_bitField0_ |= 0x00000001; - } - expressions_.add( - input.readMessage( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor; @@ -222,7 +165,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < expressions_.size(); i++) { output.writeMessage(1, expressions_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -234,7 +177,7 @@ public int getSerializedSize() { for (int i = 0; i < expressions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -251,7 +194,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) obj; if (!getExpressionsList().equals(other.getExpressionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -266,7 +209,7 @@ public int hashCode() { hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; hash = (53 * hash) + getExpressionsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -398,19 +341,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getExpressionsFieldBuilder(); - } } @java.lang.Override @@ -418,10 +352,11 @@ public Builder clear() { super.clear(); if (expressionsBuilder_ == null) { expressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + expressions_ = null; expressionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -542,7 +477,7 @@ public Builder mergeFrom( } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -557,19 +492,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression m = + input.readMessage( + com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.parser(), + extensionRegistry); + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(m); + } else { + expressionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1020,7 +981,18 @@ public SegmentParameterFilterExpressionList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SegmentParameterFilterExpressionList(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScoping.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScoping.java index 8c3d9a2a..57f3da35 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScoping.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScoping.java @@ -51,52 +51,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SegmentParameterFilterScoping( - 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; - inAnyNDayPeriod_ = input.readInt64(); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor; @@ -203,7 +157,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeInt64(1, inAnyNDayPeriod_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -215,7 +169,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, inAnyNDayPeriod_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -235,7 +189,7 @@ public boolean equals(final java.lang.Object obj) { if (hasInAnyNDayPeriod()) { if (getInAnyNDayPeriod() != other.getInAnyNDayPeriod()) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -250,7 +204,7 @@ public int hashCode() { hash = (37 * hash) + IN_ANY_N_DAY_PERIOD_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInAnyNDayPeriod()); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -381,17 +335,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -489,7 +436,7 @@ public Builder mergeFrom( if (other.hasInAnyNDayPeriod()) { setInAnyNDayPeriod(other.getInAnyNDayPeriod()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -504,19 +451,37 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + inAnyNDayPeriod_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.SegmentParameterFilterScoping) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -703,7 +668,18 @@ public SegmentParameterFilterScoping parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SegmentParameterFilterScoping(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegment.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegment.java index 028aef36..ada286f7 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegment.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegment.java @@ -52,79 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SessionSegment( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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.v1alpha.SessionSegmentCriteria.Builder subBuilder = null; - if (sessionInclusionCriteria_ != null) { - subBuilder = sessionInclusionCriteria_.toBuilder(); - } - sessionInclusionCriteria_ = - input.readMessage( - com.google.analytics.data.v1alpha.SessionSegmentCriteria.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sessionInclusionCriteria_); - sessionInclusionCriteria_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.analytics.data.v1alpha.SessionSegmentExclusion.Builder subBuilder = null; - if (exclusion_ != null) { - subBuilder = exclusion_.toBuilder(); - } - exclusion_ = - input.readMessage( - com.google.analytics.data.v1alpha.SessionSegmentExclusion.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(exclusion_); - exclusion_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor; @@ -261,7 +188,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (exclusion_ != null) { output.writeMessage(2, getExclusion()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -278,7 +205,7 @@ public int getSerializedSize() { if (exclusion_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -302,7 +229,7 @@ public boolean equals(final java.lang.Object obj) { if (hasExclusion()) { if (!getExclusion().equals(other.getExclusion())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -321,7 +248,7 @@ public int hashCode() { hash = (37 * hash) + EXCLUSION_FIELD_NUMBER; hash = (53 * hash) + getExclusion().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -452,17 +379,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.SessionSegment.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -573,7 +493,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.SessionSegment other) if (other.hasExclusion()) { mergeExclusion(other.getExclusion()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -588,17 +508,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.SessionSegment parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getSessionInclusionCriteriaFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getExclusionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.SessionSegment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1021,7 +968,18 @@ public SessionSegment parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SessionSegment(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroup.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroup.java index 6c6029b2..f54841fe 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroup.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroup.java @@ -53,69 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SessionSegmentConditionGroup( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder 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(); - - conditionScoping_ = rawValue; - break; - } - case 18: - { - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder subBuilder = null; - if (segmentFilterExpression_ != null) { - subBuilder = segmentFilterExpression_.toBuilder(); - } - segmentFilterExpression_ = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentFilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(segmentFilterExpression_); - segmentFilterExpression_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor; @@ -272,7 +209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (segmentFilterExpression_ != null) { output.writeMessage(2, getSegmentFilterExpression()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -291,7 +228,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSegmentFilterExpression()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -312,7 +249,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSegmentFilterExpression()) { if (!getSegmentFilterExpression().equals(other.getSegmentFilterExpression())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -329,7 +266,7 @@ public int hashCode() { hash = (37 * hash) + SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getSegmentFilterExpression().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -460,17 +397,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -575,7 +505,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.SessionSegmentConditi if (other.hasSegmentFilterExpression()) { mergeSegmentFilterExpression(other.getSegmentFilterExpression()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -590,19 +520,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + conditionScoping_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + input.readMessage( + getSegmentFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.SessionSegmentConditionGroup) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1007,7 +962,18 @@ public SessionSegmentConditionGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SessionSegmentConditionGroup(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteria.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteria.java index a9feec05..e42b69d7 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteria.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteria.java @@ -53,63 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SessionSegmentCriteria( - 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)) { - andConditionGroups_ = - new java.util.ArrayList< - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup>(); - mutable_bitField0_ |= 0x00000001; - } - andConditionGroups_.add( - input.readMessage( - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - andConditionGroups_ = java.util.Collections.unmodifiableList(andConditionGroups_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor; @@ -231,7 +174,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < andConditionGroups_.size(); i++) { output.writeMessage(1, andConditionGroups_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -244,7 +187,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, andConditionGroups_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -261,7 +204,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1alpha.SessionSegmentCriteria) obj; if (!getAndConditionGroupsList().equals(other.getAndConditionGroupsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -276,7 +219,7 @@ public int hashCode() { hash = (37 * hash) + AND_CONDITION_GROUPS_FIELD_NUMBER; hash = (53 * hash) + getAndConditionGroupsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -407,19 +350,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.SessionSegmentCriteria.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAndConditionGroupsFieldBuilder(); - } } @java.lang.Override @@ -427,10 +361,11 @@ public Builder clear() { super.clear(); if (andConditionGroupsBuilder_ == null) { andConditionGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + andConditionGroups_ = null; andConditionGroupsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -545,7 +480,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.SessionSegmentCriteri } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -560,18 +495,45 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.SessionSegmentCriteria parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup m = + input.readMessage( + com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.parser(), + extensionRegistry); + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.add(m); + } else { + andConditionGroupsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.SessionSegmentCriteria) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1034,7 +996,18 @@ public SessionSegmentCriteria parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SessionSegmentCriteria(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusion.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusion.java index 83a236a2..fdcbe5da 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusion.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusion.java @@ -52,69 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private SessionSegmentExclusion( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder 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(); - - sessionExclusionDuration_ = rawValue; - break; - } - case 18: - { - com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder subBuilder = null; - if (sessionExclusionCriteria_ != null) { - subBuilder = sessionExclusionCriteria_.toBuilder(); - } - sessionExclusionCriteria_ = - input.readMessage( - com.google.analytics.data.v1alpha.SessionSegmentCriteria.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sessionExclusionCriteria_); - sessionExclusionCriteria_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor; @@ -255,7 +192,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (sessionExclusionCriteria_ != null) { output.writeMessage(2, getSessionExclusionCriteria()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -275,7 +212,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, getSessionExclusionCriteria()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -296,7 +233,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSessionExclusionCriteria()) { if (!getSessionExclusionCriteria().equals(other.getSessionExclusionCriteria())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -313,7 +250,7 @@ public int hashCode() { hash = (37 * hash) + SESSION_EXCLUSION_CRITERIA_FIELD_NUMBER; hash = (53 * hash) + getSessionExclusionCriteria().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -443,17 +380,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.SessionSegmentExclusion.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -556,7 +486,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.SessionSegmentExclusi if (other.hasSessionExclusionCriteria()) { mergeSessionExclusionCriteria(other.getSessionExclusionCriteria()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -571,18 +501,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.SessionSegmentExclusion parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + sessionExclusionDuration_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + input.readMessage( + getSessionExclusionCriteriaFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.SessionSegmentExclusion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -943,7 +899,18 @@ public SessionSegmentExclusion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SessionSegmentExclusion(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilter.java index 18da13e9..5a6a7345 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilter.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilter.java @@ -53,64 +53,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_StringFilter_descriptor; @@ -501,7 +443,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (caseSensitive_ != false) { output.writeBool(3, caseSensitive_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -521,7 +463,7 @@ public int getSerializedSize() { if (caseSensitive_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, caseSensitive_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -540,7 +482,7 @@ public boolean equals(final java.lang.Object 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; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -557,7 +499,7 @@ public int hashCode() { 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(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -686,17 +628,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.StringFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -797,7 +732,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.StringFilter other) { if (other.getCaseSensitive() != false) { setCaseSensitive(other.getCaseSensitive()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -812,17 +747,49 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.StringFilter parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + matchType_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + value_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + caseSensitive_ = input.readBool(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.StringFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1109,7 +1076,18 @@ public StringFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StringFilter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegment.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegment.java index 36ca8735..d4e5f41a 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegment.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegment.java @@ -52,79 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UserSegment( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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.v1alpha.UserSegmentCriteria.Builder subBuilder = null; - if (userInclusionCriteria_ != null) { - subBuilder = userInclusionCriteria_.toBuilder(); - } - userInclusionCriteria_ = - input.readMessage( - com.google.analytics.data.v1alpha.UserSegmentCriteria.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(userInclusionCriteria_); - userInclusionCriteria_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder subBuilder = null; - if (exclusion_ != null) { - subBuilder = exclusion_.toBuilder(); - } - exclusion_ = - input.readMessage( - com.google.analytics.data.v1alpha.UserSegmentExclusion.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(exclusion_); - exclusion_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_UserSegment_descriptor; @@ -257,7 +184,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (exclusion_ != null) { output.writeMessage(2, getExclusion()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -273,7 +200,7 @@ public int getSerializedSize() { if (exclusion_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -297,7 +224,7 @@ public boolean equals(final java.lang.Object obj) { if (hasExclusion()) { if (!getExclusion().equals(other.getExclusion())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -316,7 +243,7 @@ public int hashCode() { hash = (37 * hash) + EXCLUSION_FIELD_NUMBER; hash = (53 * hash) + getExclusion().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -447,17 +374,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.UserSegment.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -567,7 +487,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSegment other) { if (other.hasExclusion()) { mergeExclusion(other.getExclusion()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -582,17 +502,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.UserSegment parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getUserInclusionCriteriaFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getExclusionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1alpha.UserSegment) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1005,7 +952,18 @@ public UserSegment parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UserSegment(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroup.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroup.java index 9be45faa..5ddf79db 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroup.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroup.java @@ -53,69 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UserSegmentConditionGroup( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder 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(); - - conditionScoping_ = rawValue; - break; - } - case 18: - { - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder subBuilder = null; - if (segmentFilterExpression_ != null) { - subBuilder = segmentFilterExpression_.toBuilder(); - } - segmentFilterExpression_ = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentFilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(segmentFilterExpression_); - segmentFilterExpression_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor; @@ -271,7 +208,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (segmentFilterExpression_ != null) { output.writeMessage(2, getSegmentFilterExpression()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -289,7 +226,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSegmentFilterExpression()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -310,7 +247,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSegmentFilterExpression()) { if (!getSegmentFilterExpression().equals(other.getSegmentFilterExpression())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -327,7 +264,7 @@ public int hashCode() { hash = (37 * hash) + SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getSegmentFilterExpression().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -458,17 +395,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.UserSegmentConditionGroup.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -571,7 +501,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSegmentConditionG if (other.hasSegmentFilterExpression()) { mergeSegmentFilterExpression(other.getSegmentFilterExpression()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -586,18 +516,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.UserSegmentConditionGroup parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + conditionScoping_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + input.readMessage( + getSegmentFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.UserSegmentConditionGroup) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1000,7 +956,18 @@ public UserSegmentConditionGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UserSegmentConditionGroup(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteria.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteria.java index 8fe0780d..dd51e165 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteria.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteria.java @@ -54,80 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UserSegmentCriteria( - 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)) { - andConditionGroups_ = - new java.util.ArrayList< - com.google.analytics.data.v1alpha.UserSegmentConditionGroup>(); - mutable_bitField0_ |= 0x00000001; - } - andConditionGroups_.add( - input.readMessage( - com.google.analytics.data.v1alpha.UserSegmentConditionGroup.parser(), - extensionRegistry)); - break; - } - case 18: - { - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - andSequenceGroups_ = - new java.util.ArrayList< - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup>(); - mutable_bitField0_ |= 0x00000002; - } - andSequenceGroups_.add( - input.readMessage( - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - andConditionGroups_ = java.util.Collections.unmodifiableList(andConditionGroups_); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - andSequenceGroups_ = java.util.Collections.unmodifiableList(andSequenceGroups_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor; @@ -346,7 +272,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < andSequenceGroups_.size(); i++) { output.writeMessage(2, andSequenceGroups_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -363,7 +289,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, andSequenceGroups_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -381,7 +307,7 @@ public boolean equals(final java.lang.Object obj) { if (!getAndConditionGroupsList().equals(other.getAndConditionGroupsList())) return false; if (!getAndSequenceGroupsList().equals(other.getAndSequenceGroupsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -400,7 +326,7 @@ public int hashCode() { hash = (37 * hash) + AND_SEQUENCE_GROUPS_FIELD_NUMBER; hash = (53 * hash) + getAndSequenceGroupsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -531,20 +457,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.UserSegmentCriteria.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getAndConditionGroupsFieldBuilder(); - getAndSequenceGroupsFieldBuilder(); - } } @java.lang.Override @@ -552,16 +468,18 @@ public Builder clear() { super.clear(); if (andConditionGroupsBuilder_ == null) { andConditionGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + andConditionGroups_ = null; andConditionGroupsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (andSequenceGroupsBuilder_ == null) { andSequenceGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + andSequenceGroups_ = null; andSequenceGroupsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -712,7 +630,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSegmentCriteria o } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -727,18 +645,59 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.UserSegmentCriteria parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1alpha.UserSegmentConditionGroup m = + input.readMessage( + com.google.analytics.data.v1alpha.UserSegmentConditionGroup.parser(), + extensionRegistry); + if (andConditionGroupsBuilder_ == null) { + ensureAndConditionGroupsIsMutable(); + andConditionGroups_.add(m); + } else { + andConditionGroupsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup m = + input.readMessage( + com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.parser(), + extensionRegistry); + if (andSequenceGroupsBuilder_ == null) { + ensureAndSequenceGroupsIsMutable(); + andSequenceGroups_.add(m); + } else { + andSequenceGroupsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.UserSegmentCriteria) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1662,7 +1621,18 @@ public UserSegmentCriteria parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UserSegmentCriteria(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusion.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusion.java index 51f70dcb..d16ce809 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusion.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusion.java @@ -52,69 +52,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UserSegmentExclusion( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder 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(); - - userExclusionDuration_ = rawValue; - break; - } - case 18: - { - com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder subBuilder = null; - if (userExclusionCriteria_ != null) { - subBuilder = userExclusionCriteria_.toBuilder(); - } - userExclusionCriteria_ = - input.readMessage( - com.google.analytics.data.v1alpha.UserSegmentCriteria.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(userExclusionCriteria_); - userExclusionCriteria_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor; @@ -249,7 +186,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (userExclusionCriteria_ != null) { output.writeMessage(2, getUserExclusionCriteria()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -268,7 +205,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserExclusionCriteria()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -289,7 +226,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUserExclusionCriteria()) { if (!getUserExclusionCriteria().equals(other.getUserExclusionCriteria())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -306,7 +243,7 @@ public int hashCode() { hash = (37 * hash) + USER_EXCLUSION_CRITERIA_FIELD_NUMBER; hash = (53 * hash) + getUserExclusionCriteria().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -436,17 +373,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.UserSegmentExclusion.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -549,7 +479,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSegmentExclusion if (other.hasUserExclusionCriteria()) { mergeUserExclusionCriteria(other.getUserExclusionCriteria()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -564,18 +494,44 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.UserSegmentExclusion parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + userExclusionDuration_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + input.readMessage( + getUserExclusionCriteriaFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.UserSegmentExclusion) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -925,7 +881,18 @@ public UserSegmentExclusion parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UserSegmentExclusion(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroup.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroup.java index 08fb0db0..fdbf2c80 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroup.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroup.java @@ -54,84 +54,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UserSegmentSequenceGroup( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - int rawValue = input.readEnum(); - - sequenceScoping_ = rawValue; - break; - } - case 18: - { - com.google.protobuf.Duration.Builder subBuilder = null; - if (sequenceMaximumDuration_ != null) { - subBuilder = sequenceMaximumDuration_.toBuilder(); - } - sequenceMaximumDuration_ = - input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(sequenceMaximumDuration_); - sequenceMaximumDuration_ = subBuilder.buildPartial(); - } - - break; - } - case 26: - { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - userSequenceSteps_ = - new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - userSequenceSteps_.add( - input.readMessage( - com.google.analytics.data.v1alpha.UserSequenceStep.parser(), - extensionRegistry)); - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - userSequenceSteps_ = java.util.Collections.unmodifiableList(userSequenceSteps_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor; @@ -369,7 +291,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < userSequenceSteps_.size(); i++) { output.writeMessage(3, userSequenceSteps_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -391,7 +313,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, userSequenceSteps_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -413,7 +335,7 @@ public boolean equals(final java.lang.Object obj) { if (!getSequenceMaximumDuration().equals(other.getSequenceMaximumDuration())) return false; } if (!getUserSequenceStepsList().equals(other.getUserSequenceStepsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -434,7 +356,7 @@ public int hashCode() { hash = (37 * hash) + USER_SEQUENCE_STEPS_FIELD_NUMBER; hash = (53 * hash) + getUserSequenceStepsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -565,19 +487,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getUserSequenceStepsFieldBuilder(); - } } @java.lang.Override @@ -593,10 +506,11 @@ public Builder clear() { } if (userSequenceStepsBuilder_ == null) { userSequenceSteps_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + userSequenceSteps_ = null; userSequenceStepsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -723,7 +637,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSegmentSequenceGr } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -738,18 +652,58 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + sequenceScoping_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + input.readMessage( + getSequenceMaximumDurationFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + com.google.analytics.data.v1alpha.UserSequenceStep m = + input.readMessage( + com.google.analytics.data.v1alpha.UserSequenceStep.parser(), + extensionRegistry); + if (userSequenceStepsBuilder_ == null) { + ensureUserSequenceStepsIsMutable(); + userSequenceSteps_.add(m); + } else { + userSequenceStepsBuilder_.addMessage(m); + } + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.UserSegmentSequenceGroup) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1567,7 +1521,18 @@ public UserSegmentSequenceGroup parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UserSegmentSequenceGroup(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStep.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStep.java index ce982040..92e78fa8 100644 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStep.java +++ b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStep.java @@ -53,74 +53,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UserSequenceStep( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder 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: - { - isDirectlyFollowedBy_ = input.readBool(); - break; - } - case 16: - { - int rawValue = input.readEnum(); - - stepScoping_ = rawValue; - break; - } - case 26: - { - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder subBuilder = null; - if (segmentFilterExpression_ != null) { - subBuilder = segmentFilterExpression_.toBuilder(); - } - segmentFilterExpression_ = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentFilterExpression.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(segmentFilterExpression_); - segmentFilterExpression_ = subBuilder.buildPartial(); - } - - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1alpha.ReportingApiProto .internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor; @@ -293,7 +225,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (segmentFilterExpression_ != null) { output.writeMessage(3, getSegmentFilterExpression()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -314,7 +246,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSegmentFilterExpression()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -336,7 +268,7 @@ public boolean equals(final java.lang.Object obj) { if (hasSegmentFilterExpression()) { if (!getSegmentFilterExpression().equals(other.getSegmentFilterExpression())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -355,7 +287,7 @@ public int hashCode() { hash = (37 * hash) + SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getSegmentFilterExpression().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -485,17 +417,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1alpha.UserSequenceStep.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -604,7 +529,7 @@ public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSequenceStep othe if (other.hasSegmentFilterExpression()) { mergeSegmentFilterExpression(other.getSegmentFilterExpression()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -619,18 +544,50 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.data.v1alpha.UserSequenceStep parsedMessage = null; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + isDirectlyFollowedBy_ = input.readBool(); + + break; + } // case 8 + case 16: + { + stepScoping_ = input.readEnum(); + + break; + } // case 16 + case 26: + { + input.readMessage( + getSegmentFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1alpha.UserSequenceStep) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1076,7 +1033,18 @@ public UserSequenceStep parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UserSequenceStep(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 3e3757a4..de898540 100644 --- 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 @@ -53,70 +53,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -290,7 +226,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < requests_.size(); i++) { output.writeMessage(2, requests_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -305,7 +241,7 @@ public int getSerializedSize() { for (int i = 0; i < requests_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -323,7 +259,7 @@ public boolean equals(final java.lang.Object obj) { if (!getProperty().equals(other.getProperty())) return false; if (!getRequestsList().equals(other.getRequestsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -340,7 +276,7 @@ public int hashCode() { hash = (37 * hash) + REQUESTS_FIELD_NUMBER; hash = (53 * hash) + getRequestsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -470,19 +406,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.BatchRunPivotReportsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getRequestsFieldBuilder(); - } } @java.lang.Override @@ -492,10 +419,11 @@ public Builder clear() { if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + requests_ = null; requestsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -617,7 +545,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.BatchRunPivotReportsRe } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -632,18 +560,51 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1beta.RunPivotReportRequest m = + input.readMessage( + com.google.analytics.data.v1beta.RunPivotReportRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.BatchRunPivotReportsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1201,7 +1162,18 @@ public BatchRunPivotReportsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchRunPivotReportsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 870058c6..69fc9c16 100644 --- 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 @@ -53,70 +53,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -276,7 +212,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -291,7 +227,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kind_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -309,7 +245,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPivotReportsList().equals(other.getPivotReportsList())) return false; if (!getKind().equals(other.getKind())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -326,7 +262,7 @@ public int hashCode() { } hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -456,19 +392,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.BatchRunPivotReportsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPivotReportsFieldBuilder(); - } } @java.lang.Override @@ -476,10 +403,11 @@ public Builder clear() { super.clear(); if (pivotReportsBuilder_ == null) { pivotReports_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + pivotReports_ = null; pivotReportsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); kind_ = ""; return this; @@ -603,7 +531,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.BatchRunPivotReportsRe kind_ = other.kind_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -618,19 +546,51 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1beta.RunPivotReportResponse m = + input.readMessage( + com.google.analytics.data.v1beta.RunPivotReportResponse.parser(), + extensionRegistry); + if (pivotReportsBuilder_ == null) { + ensurePivotReportsIsMutable(); + pivotReports_.add(m); + } else { + pivotReportsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + kind_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.BatchRunPivotReportsResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1149,7 +1109,18 @@ public BatchRunPivotReportsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchRunPivotReportsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index b2fa5e94..f341323f 100644 --- 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 @@ -53,69 +53,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -289,7 +226,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < requests_.size(); i++) { output.writeMessage(2, requests_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -304,7 +241,7 @@ public int getSerializedSize() { for (int i = 0; i < requests_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, requests_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -322,7 +259,7 @@ public boolean equals(final java.lang.Object obj) { if (!getProperty().equals(other.getProperty())) return false; if (!getRequestsList().equals(other.getRequestsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -339,7 +276,7 @@ public int hashCode() { hash = (37 * hash) + REQUESTS_FIELD_NUMBER; hash = (53 * hash) + getRequestsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -469,19 +406,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.BatchRunReportsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getRequestsFieldBuilder(); - } } @java.lang.Override @@ -491,10 +419,11 @@ public Builder clear() { if (requestsBuilder_ == null) { requests_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + requests_ = null; requestsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -614,7 +543,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.BatchRunReportsRequest } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -629,18 +558,51 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1beta.RunReportRequest m = + input.readMessage( + com.google.analytics.data.v1beta.RunReportRequest.parser(), + extensionRegistry); + if (requestsBuilder_ == null) { + ensureRequestsIsMutable(); + requests_.add(m); + } else { + requestsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.BatchRunReportsRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1190,7 +1152,18 @@ public BatchRunReportsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchRunReportsRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 6ea58ea2..d3190c0e 100644 --- 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 @@ -53,69 +53,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -274,7 +211,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, kind_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -289,7 +226,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, kind_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -307,7 +244,7 @@ public boolean equals(final java.lang.Object obj) { if (!getReportsList().equals(other.getReportsList())) return false; if (!getKind().equals(other.getKind())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -324,7 +261,7 @@ public int hashCode() { } hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -454,19 +391,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.BatchRunReportsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getReportsFieldBuilder(); - } } @java.lang.Override @@ -474,10 +402,11 @@ public Builder clear() { super.clear(); if (reportsBuilder_ == null) { reports_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + reports_ = null; reportsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); kind_ = ""; return this; @@ -599,7 +528,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.BatchRunReportsRespons kind_ = other.kind_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -614,18 +543,51 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1beta.RunReportResponse m = + input.readMessage( + com.google.analytics.data.v1beta.RunReportResponse.parser(), + extensionRegistry); + if (reportsBuilder_ == null) { + ensureReportsIsMutable(); + reports_.add(m); + } else { + reportsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + kind_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.BatchRunReportsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1132,7 +1094,18 @@ public BatchRunReportsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BatchRunReportsResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 7486453c..d4602992 100644 --- 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 @@ -58,122 +58,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -575,7 +459,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.analytics.data.v1beta.Compatibility.COMPATIBILITY_UNSPECIFIED.getNumber()) { output.writeEnum(6, compatibilityFilter_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -603,7 +487,7 @@ public int getSerializedSize() { != com.google.analytics.data.v1beta.Compatibility.COMPATIBILITY_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, compatibilityFilter_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -631,7 +515,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMetricFilter().equals(other.getMetricFilter())) return false; } if (compatibilityFilter_ != other.compatibilityFilter_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -662,7 +546,7 @@ public int hashCode() { } hash = (37 * hash) + COMPATIBILITY_FILTER_FIELD_NUMBER; hash = (53 * hash) + compatibilityFilter_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -795,20 +679,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.CheckCompatibilityRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionsFieldBuilder(); - getMetricsFieldBuilder(); - } } @java.lang.Override @@ -818,16 +692,18 @@ public Builder clear() { if (dimensionsBuilder_ == null) { dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + dimensions_ = null; dimensionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + metrics_ = null; metricsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); if (dimensionFilterBuilder_ == null) { dimensionFilter_ = null; } else { @@ -1017,7 +893,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.CheckCompatibilityRequ if (other.compatibilityFilter_ != 0) { setCompatibilityFilterValue(other.getCompatibilityFilterValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1032,18 +908,81 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1beta.Dimension m = + input.readMessage( + com.google.analytics.data.v1beta.Dimension.parser(), extensionRegistry); + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(m); + } else { + dimensionsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.analytics.data.v1beta.Metric m = + input.readMessage( + com.google.analytics.data.v1beta.Metric.parser(), extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getDimensionFilterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getMetricFilterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 48: + { + compatibilityFilter_ = input.readEnum(); + + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.CheckCompatibilityRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2449,7 +2388,18 @@ public CheckCompatibilityRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CheckCompatibilityRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index f0b227ba..cc01a017 100644 --- 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 @@ -53,80 +53,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -322,7 +248,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < metricCompatibilities_.size(); i++) { output.writeMessage(2, metricCompatibilities_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -341,7 +267,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, metricCompatibilities_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -360,7 +286,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDimensionCompatibilitiesList().equals(other.getDimensionCompatibilitiesList())) return false; if (!getMetricCompatibilitiesList().equals(other.getMetricCompatibilitiesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -379,7 +305,7 @@ public int hashCode() { hash = (37 * hash) + METRIC_COMPATIBILITIES_FIELD_NUMBER; hash = (53 * hash) + getMetricCompatibilitiesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -509,20 +435,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.CheckCompatibilityResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionCompatibilitiesFieldBuilder(); - getMetricCompatibilitiesFieldBuilder(); - } } @java.lang.Override @@ -530,16 +446,18 @@ public Builder clear() { super.clear(); if (dimensionCompatibilitiesBuilder_ == null) { dimensionCompatibilities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + dimensionCompatibilities_ = null; dimensionCompatibilitiesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (metricCompatibilitiesBuilder_ == null) { metricCompatibilities_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + metricCompatibilities_ = null; metricCompatibilitiesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -691,7 +609,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.CheckCompatibilityResp } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -706,18 +624,59 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1beta.DimensionCompatibility m = + input.readMessage( + com.google.analytics.data.v1beta.DimensionCompatibility.parser(), + extensionRegistry); + if (dimensionCompatibilitiesBuilder_ == null) { + ensureDimensionCompatibilitiesIsMutable(); + dimensionCompatibilities_.add(m); + } else { + dimensionCompatibilitiesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1beta.MetricCompatibility m = + input.readMessage( + com.google.analytics.data.v1beta.MetricCompatibility.parser(), + extensionRegistry); + if (metricCompatibilitiesBuilder_ == null) { + ensureMetricCompatibilitiesIsMutable(); + metricCompatibilities_.add(m); + } else { + metricCompatibilitiesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.CheckCompatibilityResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1543,7 +1502,18 @@ public CheckCompatibilityResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CheckCompatibilityResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 01718c73..1ff8fb34 100644 --- 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 @@ -55,75 +55,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_Cohort_descriptor; @@ -355,7 +286,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dateRange_ != null) { output.writeMessage(3, getDateRange()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -373,7 +304,7 @@ public int getSerializedSize() { if (dateRange_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDateRange()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -394,7 +325,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDateRange()) { if (!getDateRange().equals(other.getDateRange())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -413,7 +344,7 @@ public int hashCode() { hash = (37 * hash) + DATE_RANGE_FIELD_NUMBER; hash = (53 * hash) + getDateRange().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -544,17 +475,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.Cohort.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -664,7 +588,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.Cohort other) { if (other.hasDateRange()) { mergeDateRange(other.getDateRange()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -679,17 +603,49 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + dimension_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + input.readMessage(getDateRangeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.Cohort) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1260,7 +1216,18 @@ public Cohort parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Cohort(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 8fb6d206..abc5491d 100644 --- 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 @@ -50,50 +50,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_CohortReportSettings_descriptor; @@ -145,7 +101,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (accumulate_ != false) { output.writeBool(1, accumulate_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -157,7 +113,7 @@ public int getSerializedSize() { if (accumulate_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, accumulate_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -174,7 +130,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1beta.CohortReportSettings) obj; if (getAccumulate() != other.getAccumulate()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -187,7 +143,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ACCUMULATE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAccumulate()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -317,17 +273,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.CohortReportSettings.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -416,7 +365,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.CohortReportSettings o if (other.getAccumulate() != false) { setAccumulate(other.getAccumulate()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -431,18 +380,37 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + accumulate_ = input.readBool(); + + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.CohortReportSettings) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -533,7 +501,18 @@ public CohortReportSettings parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CohortReportSettings(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index afa54f35..a38360ca 100644 --- 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 @@ -64,93 +64,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -368,7 +281,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (cohortReportSettings_ != null) { output.writeMessage(3, getCohortReportSettings()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -387,7 +300,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCohortReportSettings()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -412,7 +325,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCohortReportSettings()) { if (!getCohortReportSettings().equals(other.getCohortReportSettings())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -435,7 +348,7 @@ public int hashCode() { hash = (37 * hash) + COHORT_REPORT_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getCohortReportSettings().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -576,19 +489,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.CohortSpec.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getCohortsFieldBuilder(); - } } @java.lang.Override @@ -596,10 +500,11 @@ public Builder clear() { super.clear(); if (cohortsBuilder_ == null) { cohorts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + cohorts_ = null; cohortsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (cohortsRangeBuilder_ == null) { cohortsRange_ = null; } else { @@ -741,7 +646,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.CohortSpec other) { if (other.hasCohortReportSettings()) { mergeCohortReportSettings(other.getCohortReportSettings()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -756,17 +661,57 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1beta.Cohort m = + input.readMessage( + com.google.analytics.data.v1beta.Cohort.parser(), extensionRegistry); + if (cohortsBuilder_ == null) { + ensureCohortsIsMutable(); + cohorts_.add(m); + } else { + cohortsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + input.readMessage(getCohortsRangeFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage( + getCohortReportSettingsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.CohortSpec) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1574,7 +1519,18 @@ public CohortSpec parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CohortSpec(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 01288a51..33ec2be8 100644 --- 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 @@ -53,62 +53,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_CohortsRange_descriptor; @@ -430,7 +374,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (endOffset_ != 0) { output.writeInt32(3, endOffset_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -450,7 +394,7 @@ public int getSerializedSize() { if (endOffset_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, endOffset_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -469,7 +413,7 @@ public boolean equals(final java.lang.Object 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; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -486,7 +430,7 @@ public int hashCode() { hash = (53 * hash) + getStartOffset(); hash = (37 * hash) + END_OFFSET_FIELD_NUMBER; hash = (53 * hash) + getEndOffset(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -616,17 +560,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.CohortsRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -726,7 +663,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.CohortsRange other) { if (other.getEndOffset() != 0) { setEndOffset(other.getEndOffset()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -741,17 +678,49 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + granularity_ = input.readEnum(); + + break; + } // case 8 + case 16: + { + startOffset_ = input.readInt32(); + + break; + } // case 16 + case 24: + { + endOffset_ = input.readInt32(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.CohortsRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1040,7 +1009,18 @@ public CohortsRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CohortsRange(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 5627b500..f4093172 100644 --- 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 @@ -55,66 +55,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_DateRange_descriptor; @@ -318,7 +258,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -336,7 +276,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -355,7 +295,7 @@ public boolean equals(final java.lang.Object 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; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -372,7 +312,7 @@ public int hashCode() { hash = (53 * hash) + getEndDate().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -502,17 +442,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.DateRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -615,7 +548,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.DateRange other) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -630,17 +563,49 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + startDate_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + endDate_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.DateRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1039,7 +1004,18 @@ public DateRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DateRange(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index ca2201ab..667aeb29 100644 --- 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 @@ -55,69 +55,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_Dimension_descriptor; @@ -272,7 +209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (dimensionExpression_ != null) { output.writeMessage(2, getDimensionExpression()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -287,7 +224,7 @@ public int getSerializedSize() { if (dimensionExpression_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDimensionExpression()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -308,7 +245,7 @@ public boolean equals(final java.lang.Object obj) { if (hasDimensionExpression()) { if (!getDimensionExpression().equals(other.getDimensionExpression())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -325,7 +262,7 @@ public int hashCode() { hash = (37 * hash) + DIMENSION_EXPRESSION_FIELD_NUMBER; hash = (53 * hash) + getDimensionExpression().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -457,17 +394,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.Dimension.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -570,7 +500,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.Dimension other) { if (other.hasDimensionExpression()) { mergeDimensionExpression(other.getDimensionExpression()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -585,17 +515,44 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + input.readMessage( + getDimensionExpressionFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.Dimension) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -981,7 +938,18 @@ public Dimension parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Dimension(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 52282ece..99439508 100644 --- 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 @@ -52,70 +52,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_DimensionCompatibility_descriptor; @@ -263,7 +199,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, compatibility_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -278,7 +214,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, compatibility_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -302,7 +238,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCompatibility()) { if (compatibility_ != other.compatibility_) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -321,7 +257,7 @@ public int hashCode() { hash = (37 * hash) + COMPATIBILITY_FIELD_NUMBER; hash = (53 * hash) + compatibility_; } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -575,7 +511,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.DimensionCompatibility if (other.hasCompatibility()) { setCompatibility(other.getCompatibility()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -590,18 +526,44 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + getDimensionMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + compatibility_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.DimensionCompatibility) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -960,7 +922,18 @@ public DimensionCompatibility parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DimensionCompatibility(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 1f39bcb5..53ab9b0e 100644 --- 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 @@ -53,115 +53,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_DimensionExpression_descriptor; @@ -243,52 +134,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_DimensionExpression_CaseExpression_descriptor; @@ -372,7 +217,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, dimensionName_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -384,7 +229,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -401,7 +246,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) obj; if (!getDimensionName().equals(other.getDimensionName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -414,7 +259,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DIMENSION_NAME_FIELD_NUMBER; hash = (53 * hash) + getDimensionName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -548,17 +393,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.analytics.data.v1beta.DimensionExpression.CaseExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -655,7 +493,7 @@ public Builder mergeFrom( dimensionName_ = other.dimensionName_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -670,19 +508,37 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dimensionName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.DimensionExpression.CaseExpression) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -832,7 +688,19 @@ public CaseExpression parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new CaseExpression(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -982,66 +850,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -1202,7 +1010,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delimiter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, delimiter_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1222,7 +1030,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(delimiter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, delimiter_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1241,7 +1049,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDimensionNamesList().equals(other.getDimensionNamesList())) return false; if (!getDelimiter().equals(other.getDelimiter())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1258,7 +1066,7 @@ public int hashCode() { } hash = (37 * hash) + DELIMITER_FIELD_NUMBER; hash = (53 * hash) + getDelimiter().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1398,17 +1206,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1526,7 +1327,7 @@ public Builder mergeFrom( delimiter_ = other.delimiter_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1541,20 +1342,44 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDimensionNamesIsMutable(); + dimensionNames_.add(s); + break; + } // case 10 + case 18: + { + delimiter_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1904,7 +1729,19 @@ public ConcatenateExpression parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ConcatenateExpression(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -2169,7 +2006,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io (com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) oneExpression_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2197,7 +2034,7 @@ public int getSerializedSize() { (com.google.analytics.data.v1beta.DimensionExpression.ConcatenateExpression) oneExpression_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2227,7 +2064,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2254,7 +2091,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2386,22 +2223,24 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.DimensionExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); + if (lowerCaseBuilder_ != null) { + lowerCaseBuilder_.clear(); + } + if (upperCaseBuilder_ != null) { + upperCaseBuilder_.clear(); + } + if (concatenateBuilder_ != null) { + concatenateBuilder_.clear(); + } oneExpressionCase_ = 0; oneExpression_ = null; return this; @@ -2524,7 +2363,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.DimensionExpression ot break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2539,18 +2378,49 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 34: + { + input.readMessage(getLowerCaseFieldBuilder().getBuilder(), extensionRegistry); + oneExpressionCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getUpperCaseFieldBuilder().getBuilder(), extensionRegistry); + oneExpressionCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getConcatenateFieldBuilder().getBuilder(), extensionRegistry); + oneExpressionCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.DimensionExpression) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3307,7 +3177,18 @@ public DimensionExpression parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DimensionExpression(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 4b1356ab..5168ca32 100644 --- 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 @@ -55,52 +55,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_DimensionHeader_descriptor; @@ -182,7 +136,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -194,7 +148,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -211,7 +165,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1beta.DimensionHeader) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -224,7 +178,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -356,17 +310,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.DimensionHeader.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -456,7 +403,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.DimensionHeader other) name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -471,17 +418,37 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.DimensionHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -623,7 +590,18 @@ public DimensionHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DimensionHeader(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 16328792..40932d8f 100644 --- 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 @@ -56,92 +56,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -482,7 +396,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, category_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -514,7 +428,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, category_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -536,7 +450,7 @@ public boolean equals(final java.lang.Object obj) { 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; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -561,7 +475,7 @@ public int hashCode() { 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(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -690,17 +604,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.DimensionMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -835,7 +742,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.DimensionMetadata othe category_ = other.category_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -850,18 +757,68 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + apiName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + uiName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeprecatedApiNamesIsMutable(); + deprecatedApiNames_.add(s); + break; + } // case 34 + case 40: + { + customDefinition_ = input.readBool(); + + break; + } // case 40 + case 58: + { + category_ = input.readStringRequireUtf8(); + + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.DimensionMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1585,7 +1542,18 @@ public DimensionMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DimensionMetadata(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index de0488c7..853be477 100644 --- 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 @@ -50,52 +50,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_DimensionValue_descriptor; @@ -242,7 +196,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (oneValueCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oneValue_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -254,7 +208,7 @@ public int getSerializedSize() { if (oneValueCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, oneValue_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -278,7 +232,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,7 +251,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -426,17 +380,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.DimensionValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -538,7 +485,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.DimensionValue other) break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -553,17 +500,38 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + oneValueCase_ = 1; + oneValue_ = s; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.DimensionValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -747,7 +715,18 @@ public DimensionValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DimensionValue(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 1c439269..bd7a0694 100644 --- 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 @@ -52,130 +52,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_Filter_descriptor; @@ -294,64 +170,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_Filter_StringFilter_descriptor; @@ -744,7 +562,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (caseSensitive_ != false) { output.writeBool(3, caseSensitive_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -764,7 +582,7 @@ public int getSerializedSize() { if (caseSensitive_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, caseSensitive_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -783,7 +601,7 @@ public boolean equals(final java.lang.Object 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; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -800,7 +618,7 @@ public int hashCode() { 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(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -932,17 +750,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.Filter.StringFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1046,7 +857,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.Filter.StringFilter ot if (other.getCaseSensitive() != false) { setCaseSensitive(other.getCaseSensitive()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1061,18 +872,49 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + matchType_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + value_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + caseSensitive_ = input.readBool(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.Filter.StringFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1361,7 +1203,19 @@ public StringFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new StringFilter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -1487,64 +1341,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - values_ = values_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_Filter_InListFilter_descriptor; @@ -1663,7 +1459,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (caseSensitive_ != false) { output.writeBool(2, caseSensitive_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1683,7 +1479,7 @@ public int getSerializedSize() { if (caseSensitive_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, caseSensitive_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1701,7 +1497,7 @@ public boolean equals(final java.lang.Object obj) { if (!getValuesList().equals(other.getValuesList())) return false; if (getCaseSensitive() != other.getCaseSensitive()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1718,7 +1514,7 @@ public int hashCode() { } hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1850,17 +1646,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.Filter.InListFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1969,7 +1758,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.Filter.InListFilter ot if (other.getCaseSensitive() != false) { setCaseSensitive(other.getCaseSensitive()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1984,18 +1773,44 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureValuesIsMutable(); + values_.add(s); + break; + } // case 10 + case 16: + { + caseSensitive_ = input.readBool(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.Filter.InListFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2263,7 +2078,19 @@ public InListFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new InListFilter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -2381,68 +2208,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_Filter_NumericFilter_descriptor; @@ -2791,7 +2556,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (value_ != null) { output.writeMessage(2, getValue()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2808,7 +2573,7 @@ public int getSerializedSize() { if (value_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getValue()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2829,7 +2594,7 @@ public boolean equals(final java.lang.Object obj) { if (hasValue()) { if (!getValue().equals(other.getValue())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2846,7 +2611,7 @@ public int hashCode() { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + getValue().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2978,17 +2743,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.Filter.NumericFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -3093,7 +2851,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.Filter.NumericFilter o if (other.hasValue()) { mergeValue(other.getValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3108,18 +2866,43 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + operation_ = input.readEnum(); + + break; + } // case 8 + case 18: + { + input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.Filter.NumericFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3436,7 +3219,19 @@ public NumericFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new NumericFilter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -3562,77 +3357,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_Filter_BetweenFilter_descriptor; @@ -3764,7 +3488,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (toValue_ != null) { output.writeMessage(2, getToValue()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -3779,7 +3503,7 @@ public int getSerializedSize() { if (toValue_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getToValue()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3803,7 +3527,7 @@ public boolean equals(final java.lang.Object obj) { if (hasToValue()) { if (!getToValue().equals(other.getToValue())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3822,7 +3546,7 @@ public int hashCode() { hash = (37 * hash) + TO_VALUE_FIELD_NUMBER; hash = (53 * hash) + getToValue().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -3954,17 +3678,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.Filter.BetweenFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -4077,7 +3794,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.Filter.BetweenFilter o if (other.hasToValue()) { mergeToValue(other.getToValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -4092,18 +3809,43 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getFromValueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getToValueFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.Filter.BetweenFilter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4512,7 +4254,19 @@ public BetweenFilter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new BetweenFilter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -4870,7 +4624,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (oneFilterCase_ == 6) { output.writeMessage(6, (com.google.analytics.data.v1beta.Filter.BetweenFilter) oneFilter_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -4902,7 +4656,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.analytics.data.v1beta.Filter.BetweenFilter) oneFilter_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -4935,7 +4689,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4968,7 +4722,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -5097,17 +4851,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.Filter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -5115,6 +4862,18 @@ public Builder clear() { super.clear(); fieldName_ = ""; + if (stringFilterBuilder_ != null) { + stringFilterBuilder_.clear(); + } + if (inListFilterBuilder_ != null) { + inListFilterBuilder_.clear(); + } + if (numericFilterBuilder_ != null) { + numericFilterBuilder_.clear(); + } + if (betweenFilterBuilder_ != null) { + betweenFilterBuilder_.clear(); + } oneFilterCase_ = 0; oneFilter_ = null; return this; @@ -5253,7 +5012,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.Filter other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -5268,17 +5027,61 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + fieldName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 26: + { + input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(getNumericFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage(getBetweenFilterFieldBuilder().getBuilder(), extensionRegistry); + oneFilterCase_ = 6; + break; + } // case 50 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.Filter) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -6287,7 +6090,18 @@ public Filter parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Filter(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index bdbc736c..d4660213 100644 --- 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 @@ -52,115 +52,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_FilterExpression_descriptor; @@ -465,7 +356,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (exprCase_ == 4) { output.writeMessage(4, (com.google.analytics.data.v1beta.Filter) expr_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -494,7 +385,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, (com.google.analytics.data.v1beta.Filter) expr_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -527,7 +418,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -558,7 +449,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -689,22 +580,27 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.FilterExpression.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); + if (andGroupBuilder_ != null) { + andGroupBuilder_.clear(); + } + if (orGroupBuilder_ != null) { + orGroupBuilder_.clear(); + } + if (notExpressionBuilder_ != null) { + notExpressionBuilder_.clear(); + } + if (filterBuilder_ != null) { + filterBuilder_.clear(); + } exprCase_ = 0; expr_ = null; return this; @@ -839,7 +735,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.FilterExpression other break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -854,18 +750,55 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); + exprCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.FilterExpression) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1772,7 +1705,18 @@ public FilterExpression parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FilterExpression(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index bc5d8d6f..369d11a0 100644 --- 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 @@ -52,62 +52,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -210,7 +154,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < expressions_.size(); i++) { output.writeMessage(1, expressions_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -222,7 +166,7 @@ public int getSerializedSize() { for (int i = 0; i < expressions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, expressions_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -239,7 +183,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1beta.FilterExpressionList) obj; if (!getExpressionsList().equals(other.getExpressionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -254,7 +198,7 @@ public int hashCode() { hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; hash = (53 * hash) + getExpressionsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -384,19 +328,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.FilterExpressionList.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getExpressionsFieldBuilder(); - } } @java.lang.Override @@ -404,10 +339,11 @@ public Builder clear() { super.clear(); if (expressionsBuilder_ == null) { expressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + expressions_ = null; expressionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -522,7 +458,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.FilterExpressionList o } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -537,18 +473,45 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1beta.FilterExpression m = + input.readMessage( + com.google.analytics.data.v1beta.FilterExpression.parser(), + extensionRegistry); + if (expressionsBuilder_ == null) { + ensureExpressionsIsMutable(); + expressions_.add(m); + } else { + expressionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.FilterExpressionList) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -944,7 +907,18 @@ public FilterExpressionList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new FilterExpressionList(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index f91837b8..31e12f14 100644 --- 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 @@ -52,52 +52,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.AnalyticsDataApiProto .internal_static_google_analytics_data_v1beta_GetMetadataRequest_descriptor; @@ -199,7 +153,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -211,7 +165,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -228,7 +182,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1beta.GetMetadataRequest) obj; if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,7 +195,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -370,17 +324,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.GetMetadataRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -470,7 +417,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.GetMetadataRequest oth name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -485,18 +432,37 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.GetMetadataRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -688,7 +654,18 @@ public GetMetadataRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new GetMetadataRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 6dbfe59f..5f807a18 100644 --- 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 @@ -54,84 +54,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -358,7 +280,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -376,7 +298,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -395,7 +317,7 @@ public boolean equals(final java.lang.Object 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; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -416,7 +338,7 @@ public int hashCode() { hash = (37 * hash) + METRICS_FIELD_NUMBER; hash = (53 * hash) + getMetricsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -545,20 +467,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.Metadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionsFieldBuilder(); - getMetricsFieldBuilder(); - } } @java.lang.Override @@ -568,16 +480,18 @@ public Builder clear() { if (dimensionsBuilder_ == null) { dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + dimensions_ = null; dimensionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + metrics_ = null; metricsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -732,7 +646,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.Metadata other) { } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -747,17 +661,65 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1beta.DimensionMetadata m = + input.readMessage( + com.google.analytics.data.v1beta.DimensionMetadata.parser(), + extensionRegistry); + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(m); + } else { + dimensionsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1beta.MetricMetadata m = + input.readMessage( + com.google.analytics.data.v1beta.MetricMetadata.parser(), + extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.Metadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1610,7 +1572,18 @@ public Metadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Metadata(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 4f0b200e..c9bed466 100644 --- 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 @@ -55,64 +55,6 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private Metric( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_Metric_descriptor; @@ -289,7 +231,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (invisible_ != false) { output.writeBool(3, invisible_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -307,7 +249,7 @@ public int getSerializedSize() { if (invisible_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, invisible_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -325,7 +267,7 @@ public boolean equals(final java.lang.Object 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; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -342,7 +284,7 @@ public int hashCode() { 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(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -473,17 +415,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.Metric.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -585,7 +520,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.Metric other) { if (other.getInvisible() != false) { setInvisible(other.getInvisible()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -600,17 +535,49 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + expression_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 24: + { + invisible_ = input.readBool(); + + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.Metric) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -966,7 +933,18 @@ public Metric parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Metric(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; 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 index 4ddddcda..a1d6b89e 100644 --- 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 @@ -52,69 +52,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_MetricCompatibility_descriptor; @@ -261,7 +198,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, compatibility_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -276,7 +213,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, compatibility_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -300,7 +237,7 @@ public boolean equals(final java.lang.Object obj) { if (hasCompatibility()) { if (compatibility_ != other.compatibility_) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -319,7 +256,7 @@ public int hashCode() { hash = (37 * hash) + COMPATIBILITY_FIELD_NUMBER; hash = (53 * hash) + compatibility_; } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -572,7 +509,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.MetricCompatibility ot if (other.hasCompatibility()) { setCompatibility(other.getCompatibility()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -587,18 +524,43 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getMetricMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + compatibility_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.MetricCompatibility) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -954,7 +916,18 @@ public MetricCompatibility parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricCompatibility(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index dd6797f6..e32de147 100644 --- 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 @@ -56,59 +56,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_MetricHeader_descriptor; @@ -229,7 +176,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (type_ != com.google.analytics.data.v1beta.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(2, type_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -244,7 +191,7 @@ public int getSerializedSize() { if (type_ != com.google.analytics.data.v1beta.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -262,7 +209,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (type_ != other.type_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -277,7 +224,7 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -409,17 +356,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.MetricHeader.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -514,7 +454,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.MetricHeader other) { if (other.type_ != 0) { setTypeValue(other.getTypeValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -529,17 +469,43 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + type_ = input.readEnum(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.MetricHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -772,7 +738,18 @@ public MetricHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricHeader(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 08239153..f232167c 100644 --- 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 @@ -59,134 +59,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -927,7 +799,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, category_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -978,7 +850,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(category_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, category_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1003,7 +875,7 @@ public boolean equals(final java.lang.Object obj) { 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; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1036,7 +908,7 @@ public int hashCode() { } hash = (37 * hash) + CATEGORY_FIELD_NUMBER; hash = (53 * hash) + getCategory().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1165,17 +1037,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.MetricMetadata.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1340,7 +1205,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.MetricMetadata other) category_ = other.category_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1355,17 +1220,99 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + apiName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + uiName_ = input.readStringRequireUtf8(); + + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureDeprecatedApiNamesIsMutable(); + deprecatedApiNames_.add(s); + break; + } // case 34 + case 40: + { + type_ = input.readEnum(); + + break; + } // case 40 + case 50: + { + expression_ = input.readStringRequireUtf8(); + + break; + } // case 50 + case 56: + { + customDefinition_ = input.readBool(); + + break; + } // case 56 + case 64: + { + int tmpRaw = input.readEnum(); + ensureBlockedReasonsIsMutable(); + blockedReasons_.add(tmpRaw); + break; + } // case 64 + case 66: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureBlockedReasonsIsMutable(); + blockedReasons_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 66 + case 82: + { + category_ = input.readStringRequireUtf8(); + + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.MetricMetadata) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2618,7 +2565,18 @@ public MetricMetadata parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricMetadata(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 3cbd35f6..1b0784dd 100644 --- 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 @@ -50,52 +50,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_MetricValue_descriptor; @@ -242,7 +196,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (oneValueCase_ == 4) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, oneValue_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -254,7 +208,7 @@ public int getSerializedSize() { if (oneValueCase_ == 4) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, oneValue_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -278,7 +232,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -297,7 +251,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -426,17 +380,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.MetricValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -537,7 +484,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.MetricValue other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -552,17 +499,38 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + oneValueCase_ = 4; + oneValue_ = s; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.MetricValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -746,7 +714,18 @@ public MetricValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricValue(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index ddadc997..f874cfb5 100644 --- 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 @@ -53,65 +53,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_MinuteRange_descriptor; @@ -298,7 +239,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -316,7 +257,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -341,7 +282,7 @@ public boolean equals(final java.lang.Object obj) { if (getEndMinutesAgo() != other.getEndMinutesAgo()) return false; } if (!getName().equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -362,7 +303,7 @@ public int hashCode() { } hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -492,17 +433,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.MinuteRange.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -612,7 +546,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.MinuteRange other) { name_ = other.name_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -627,17 +561,49 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + startMinutesAgo_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endMinutesAgo_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + name_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.MinuteRange) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -982,7 +948,18 @@ public MinuteRange parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MinuteRange(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index a3863b5a..3888b3fb 100644 --- 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 @@ -50,57 +50,6 @@ 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: - { - oneValue_ = input.readInt64(); - oneValueCase_ = 1; - break; - } - case 17: - { - oneValue_ = input.readDouble(); - oneValueCase_ = 2; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_NumericValue_descriptor; @@ -253,7 +202,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (oneValueCase_ == 2) { output.writeDouble(2, (double) ((java.lang.Double) oneValue_)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -272,7 +221,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeDoubleSize( 2, (double) ((java.lang.Double) oneValue_)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -300,7 +249,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -326,7 +275,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -455,17 +404,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.NumericValue.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -572,7 +514,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.NumericValue other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -587,17 +529,43 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + oneValue_ = input.readInt64(); + oneValueCase_ = 1; + break; + } // case 8 + case 17: + { + oneValue_ = input.readDouble(); + oneValueCase_ = 2; + break; + } // case 17 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.NumericValue) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -785,7 +753,18 @@ public NumericValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new NumericValue(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 0c1ec818..263d70da 100644 --- 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 @@ -50,110 +50,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_OrderBy_descriptor; @@ -233,52 +129,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_OrderBy_MetricOrderBy_descriptor; @@ -360,7 +210,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, metricName_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -372,7 +222,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -389,7 +239,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1beta.OrderBy.MetricOrderBy) obj; if (!getMetricName().equals(other.getMetricName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -402,7 +252,7 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; hash = (53 * hash) + getMetricName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -534,17 +384,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.OrderBy.MetricOrderBy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -636,7 +479,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.OrderBy.MetricOrderBy metricName_ = other.metricName_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -651,18 +494,37 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + metricName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.OrderBy.MetricOrderBy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -805,7 +667,19 @@ public MetricOrderBy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new MetricOrderBy(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -914,59 +788,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_OrderBy_DimensionOrderBy_descriptor; @@ -1283,7 +1104,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(2, orderType_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1301,7 +1122,7 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, orderType_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1319,7 +1140,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDimensionName().equals(other.getDimensionName())) return false; if (orderType_ != other.orderType_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1334,7 +1155,7 @@ public int hashCode() { hash = (53 * hash) + getDimensionName().hashCode(); hash = (37 * hash) + ORDER_TYPE_FIELD_NUMBER; hash = (53 * hash) + orderType_; - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1466,17 +1287,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1574,7 +1388,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.OrderBy.DimensionOrder if (other.orderType_ != 0) { setOrderTypeValue(other.getOrderTypeValue()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1589,18 +1403,43 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dimensionName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: + { + orderType_ = input.readEnum(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.OrderBy.DimensionOrderBy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1842,7 +1681,19 @@ public DimensionOrderBy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new DimensionOrderBy(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -2009,71 +1860,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -2192,60 +1978,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_OrderBy_PivotOrderBy_PivotSelection_descriptor; @@ -2379,7 +2111,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionValue_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dimensionValue_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -2394,7 +2126,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionValue_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dimensionValue_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -2413,7 +2145,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDimensionName().equals(other.getDimensionName())) return false; if (!getDimensionValue().equals(other.getDimensionValue())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2428,7 +2160,7 @@ public int hashCode() { hash = (53 * hash) + getDimensionName().hashCode(); hash = (37 * hash) + DIMENSION_VALUE_FIELD_NUMBER; hash = (53 * hash) + getDimensionValue().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -2577,17 +2309,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -2693,7 +2418,7 @@ public Builder mergeFrom( dimensionValue_ = other.dimensionValue_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2708,19 +2433,43 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + dimensionName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + dimensionValue_ = input.readStringRequireUtf8(); + + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2972,7 +2721,19 @@ public PivotSelection parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PivotSelection(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -3162,7 +2923,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < pivotSelections_.size(); i++) { output.writeMessage(2, pivotSelections_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -3178,7 +2939,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, pivotSelections_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3196,7 +2957,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMetricName().equals(other.getMetricName())) return false; if (!getPivotSelectionsList().equals(other.getPivotSelectionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3213,7 +2974,7 @@ public int hashCode() { hash = (37 * hash) + PIVOT_SELECTIONS_FIELD_NUMBER; hash = (53 * hash) + getPivotSelectionsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -3345,19 +3106,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPivotSelectionsFieldBuilder(); - } } @java.lang.Override @@ -3367,10 +3119,11 @@ public Builder clear() { if (pivotSelectionsBuilder_ == null) { pivotSelections_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + pivotSelections_ = null; pivotSelectionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -3492,7 +3245,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.OrderBy.PivotOrderBy o } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3507,18 +3260,52 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + metricName_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection m = + input.readMessage( + com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection + .parser(), + extensionRegistry); + if (pivotSelectionsBuilder_ == null) { + ensurePivotSelectionsIsMutable(); + pivotSelections_.add(m); + } else { + pivotSelectionsBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.OrderBy.PivotOrderBy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4138,7 +3925,19 @@ public PivotOrderBy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PivotOrderBy(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -4406,7 +4205,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (desc_ != false) { output.writeBool(4, desc_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -4433,7 +4232,7 @@ public int getSerializedSize() { if (desc_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, desc_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -4463,7 +4262,7 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -4492,7 +4291,7 @@ public int hashCode() { case 0: default: } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -4621,22 +4420,24 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.OrderBy.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override public Builder clear() { super.clear(); + if (metricBuilder_ != null) { + metricBuilder_.clear(); + } + if (dimensionBuilder_ != null) { + dimensionBuilder_.clear(); + } + if (pivotBuilder_ != null) { + pivotBuilder_.clear(); + } desc_ = false; oneOrderByCase_ = 0; @@ -4764,7 +4565,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.OrderBy other) { break; } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -4779,17 +4580,55 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getMetricFieldBuilder().getBuilder(), extensionRegistry); + oneOrderByCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(getDimensionFieldBuilder().getBuilder(), extensionRegistry); + oneOrderByCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage(getPivotFieldBuilder().getBuilder(), extensionRegistry); + oneOrderByCase_ = 3; + break; + } // case 26 + case 32: + { + desc_ = input.readBool(); + + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.OrderBy) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -5526,7 +5365,18 @@ public OrderBy parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new OrderBy(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 7cc8e955..b1a85480 100644 --- 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 @@ -54,111 +54,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -516,7 +411,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < metricAggregations_.size(); i++) { output.writeEnumNoTag(metricAggregations_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -555,7 +450,7 @@ public int getSerializedSize() { } metricAggregationsMemoizedSerializedSize = dataSize; } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -575,7 +470,7 @@ public boolean equals(final java.lang.Object obj) { 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; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -602,7 +497,7 @@ public int hashCode() { hash = (37 * hash) + METRIC_AGGREGATIONS_FIELD_NUMBER; hash = (53 * hash) + metricAggregations_.hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -731,19 +626,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.Pivot.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getOrderBysFieldBuilder(); - } } @java.lang.Override @@ -753,10 +639,11 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000001); if (orderBysBuilder_ == null) { orderBys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + orderBys_ = null; orderBysBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); offset_ = 0L; limit_ = 0L; @@ -914,7 +801,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.Pivot other) { } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -929,17 +816,82 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureFieldNamesIsMutable(); + fieldNames_.add(s); + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1beta.OrderBy m = + input.readMessage( + com.google.analytics.data.v1beta.OrderBy.parser(), extensionRegistry); + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.add(m); + } else { + orderBysBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + offset_ = input.readInt64(); + + break; + } // case 24 + case 32: + { + limit_ = input.readInt64(); + + break; + } // case 32 + case 40: + { + int tmpRaw = input.readEnum(); + ensureMetricAggregationsIsMutable(); + metricAggregations_.add(tmpRaw); + break; + } // case 40 + case 42: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureMetricAggregationsIsMutable(); + metricAggregations_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.Pivot) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1960,7 +1912,18 @@ public Pivot parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Pivot(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 2052de33..d4ff72a1 100644 --- 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 @@ -52,61 +52,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -209,7 +154,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < dimensionValues_.size(); i++) { output.writeMessage(1, dimensionValues_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -221,7 +166,7 @@ public int getSerializedSize() { for (int i = 0; i < dimensionValues_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, dimensionValues_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -238,7 +183,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.analytics.data.v1beta.PivotDimensionHeader) obj; if (!getDimensionValuesList().equals(other.getDimensionValuesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -253,7 +198,7 @@ public int hashCode() { hash = (37 * hash) + DIMENSION_VALUES_FIELD_NUMBER; hash = (53 * hash) + getDimensionValuesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -383,19 +328,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.PivotDimensionHeader.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionValuesFieldBuilder(); - } } @java.lang.Override @@ -403,10 +339,11 @@ public Builder clear() { super.clear(); if (dimensionValuesBuilder_ == null) { dimensionValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + dimensionValues_ = null; dimensionValuesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -521,7 +458,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.PivotDimensionHeader o } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -536,18 +473,45 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1beta.DimensionValue m = + input.readMessage( + com.google.analytics.data.v1beta.DimensionValue.parser(), + extensionRegistry); + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.add(m); + } else { + dimensionValuesBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.PivotDimensionHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -946,7 +910,18 @@ public PivotDimensionHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PivotDimensionHeader(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index de283d5e..db0945bc 100644 --- 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 @@ -52,68 +52,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -251,7 +189,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (rowCount_ != 0) { output.writeInt32(2, rowCount_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -268,7 +206,7 @@ public int getSerializedSize() { if (rowCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, rowCount_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -286,7 +224,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPivotDimensionHeadersList().equals(other.getPivotDimensionHeadersList())) return false; if (getRowCount() != other.getRowCount()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -303,7 +241,7 @@ public int hashCode() { } hash = (37 * hash) + ROW_COUNT_FIELD_NUMBER; hash = (53 * hash) + getRowCount(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -432,19 +370,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.PivotHeader.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPivotDimensionHeadersFieldBuilder(); - } } @java.lang.Override @@ -452,10 +381,11 @@ public Builder clear() { super.clear(); if (pivotDimensionHeadersBuilder_ == null) { pivotDimensionHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + pivotDimensionHeaders_ = null; pivotDimensionHeadersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); rowCount_ = 0; return this; @@ -575,7 +505,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.PivotHeader other) { if (other.getRowCount() != 0) { setRowCount(other.getRowCount()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -590,17 +520,51 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1beta.PivotDimensionHeader m = + input.readMessage( + com.google.analytics.data.v1beta.PivotDimensionHeader.parser(), + extensionRegistry); + if (pivotDimensionHeadersBuilder_ == null) { + ensurePivotDimensionHeadersIsMutable(); + pivotDimensionHeaders_.add(m); + } else { + pivotDimensionHeadersBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + rowCount_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.PivotHeader) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1116,7 +1080,18 @@ public PivotHeader parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PivotHeader(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index ea83a8f6..d4917d57 100644 --- 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 @@ -52,125 +52,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_PropertyQuota_descriptor; @@ -493,7 +374,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (potentiallyThresholdedRequestsPerHour_ != null) { output.writeMessage(5, getPotentiallyThresholdedRequestsPerHour()); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -521,7 +402,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, getPotentiallyThresholdedRequestsPerHour()); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -561,7 +442,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPotentiallyThresholdedRequestsPerHour() .equals(other.getPotentiallyThresholdedRequestsPerHour())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -592,7 +473,7 @@ public int hashCode() { hash = (37 * hash) + POTENTIALLY_THRESHOLDED_REQUESTS_PER_HOUR_FIELD_NUMBER; hash = (53 * hash) + getPotentiallyThresholdedRequestsPerHour().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -723,17 +604,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.PropertyQuota.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -887,7 +761,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.PropertyQuota other) { mergePotentiallyThresholdedRequestsPerHour( other.getPotentiallyThresholdedRequestsPerHour()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -902,17 +776,65 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(getTokensPerDayFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 10 + case 18: + { + input.readMessage(getTokensPerHourFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 18 + case 26: + { + input.readMessage( + getConcurrentRequestsFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 26 + case 34: + { + input.readMessage( + getServerErrorsPerProjectPerHourFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage( + getPotentiallyThresholdedRequestsPerHourFieldBuilder().getBuilder(), + extensionRegistry); + + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.PropertyQuota) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2016,7 +1938,18 @@ public PropertyQuota parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new PropertyQuota(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 1ad1d455..e34c6c1c 100644 --- 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 @@ -50,55 +50,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_QuotaStatus_descriptor; @@ -170,7 +121,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (remaining_ != 0) { output.writeInt32(2, remaining_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -185,7 +136,7 @@ public int getSerializedSize() { if (remaining_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, remaining_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -203,7 +154,7 @@ public boolean equals(final java.lang.Object obj) { if (getConsumed() != other.getConsumed()) return false; if (getRemaining() != other.getRemaining()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -218,7 +169,7 @@ public int hashCode() { hash = (53 * hash) + getConsumed(); hash = (37 * hash) + REMAINING_FIELD_NUMBER; hash = (53 * hash) + getRemaining(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -347,17 +298,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.QuotaStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -451,7 +395,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.QuotaStatus other) { if (other.getRemaining() != 0) { setRemaining(other.getRemaining()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -466,17 +410,43 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + consumed_ = input.readInt32(); + + break; + } // case 8 + case 16: + { + remaining_ = input.readInt32(); + + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.QuotaStatus) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -616,7 +586,18 @@ public QuotaStatus parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new QuotaStatus(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index a1a6e56a..2eacb4cc 100644 --- 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 @@ -54,91 +54,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.data.v1beta.ReportingApiProto .internal_static_google_analytics_data_v1beta_ResponseMetaData_descriptor; @@ -282,66 +197,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -510,82 +365,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000002) != 0)) { - 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; @@ -804,7 +583,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < restrictedMetricTypes_.size(); i++) { output.writeEnumNoTag(restrictedMetricTypes_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -830,7 +609,7 @@ public int getSerializedSize() { } restrictedMetricTypesMemoizedSerializedSize = dataSize; } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -858,7 +637,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMetricName().equals(other.getMetricName())) return false; } if (!restrictedMetricTypes_.equals(other.restrictedMetricTypes_)) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -877,7 +656,7 @@ public int hashCode() { hash = (37 * hash) + RESTRICTED_METRIC_TYPES_FIELD_NUMBER; hash = (53 * hash) + restrictedMetricTypes_.hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1036,17 +815,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.ActiveMetricRestriction.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } @java.lang.Override @@ -1184,7 +956,7 @@ public Builder mergeFrom( } onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1199,22 +971,56 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + metricName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + int tmpRaw = input.readEnum(); + ensureRestrictedMetricTypesIsMutable(); + restrictedMetricTypes_.add(tmpRaw); + break; + } // case 16 + case 18: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureRestrictedMetricTypesIsMutable(); + restrictedMetricTypes_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1632,7 +1438,19 @@ public ActiveMetricRestriction parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ActiveMetricRestriction(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -1777,7 +1595,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < activeMetricRestrictions_.size(); i++) { output.writeMessage(1, activeMetricRestrictions_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1791,7 +1609,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, activeMetricRestrictions_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1810,7 +1628,7 @@ public boolean equals(final java.lang.Object obj) { if (!getActiveMetricRestrictionsList().equals(other.getActiveMetricRestrictionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1825,7 +1643,7 @@ public int hashCode() { hash = (37 * hash) + ACTIVE_METRIC_RESTRICTIONS_FIELD_NUMBER; hash = (53 * hash) + getActiveMetricRestrictionsList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1967,19 +1785,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { // Construct using // com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getActiveMetricRestrictionsFieldBuilder(); - } } @java.lang.Override @@ -1987,10 +1796,11 @@ public Builder clear() { super.clear(); if (activeMetricRestrictionsBuilder_ == null) { activeMetricRestrictions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + activeMetricRestrictions_ = null; activeMetricRestrictionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); return this; } @@ -2117,7 +1927,7 @@ public Builder mergeFrom( } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -2132,20 +1942,48 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse + .ActiveMetricRestriction + m = + input.readMessage( + com.google.analytics.data.v1beta.ResponseMetaData + .SchemaRestrictionResponse.ActiveMetricRestriction.parser(), + extensionRegistry); + if (activeMetricRestrictionsBuilder_ == null) { + ensureActiveMetricRestrictionsIsMutable(); + activeMetricRestrictions_.add(m); + } else { + activeMetricRestrictionsBuilder_.addMessage(m); + } + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse) - e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -2690,7 +2528,19 @@ public SchemaRestrictionResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new SchemaRestrictionResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; @@ -3051,7 +2901,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, emptyReason_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -3077,7 +2927,7 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, emptyReason_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -3111,7 +2961,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEmptyReason()) { if (!getEmptyReason().equals(other.getEmptyReason())) return false; } - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3140,7 +2990,7 @@ public int hashCode() { hash = (37 * hash) + EMPTY_REASON_FIELD_NUMBER; hash = (53 * hash) + getEmptyReason().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -3423,7 +3273,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.ResponseMetaData other emptyReason_ = other.emptyReason_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -3438,18 +3288,62 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 24: + { + dataLossFromOtherRow_ = input.readBool(); + + break; + } // case 24 + case 34: + { + input.readMessage( + getSchemaRestrictionResponseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 34 + case 42: + { + currencyCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 42 + case 50: + { + timeZone_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 50 + case 58: + { + emptyReason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.ResponseMetaData) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4204,7 +4098,18 @@ public ResponseMetaData parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new ResponseMetaData(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 88f8faac..326d6631 100644 --- 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 @@ -86,76 +86,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -335,7 +265,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < metricValues_.size(); i++) { output.writeMessage(2, metricValues_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -350,7 +280,7 @@ public int getSerializedSize() { for (int i = 0; i < metricValues_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, metricValues_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -367,7 +297,7 @@ public boolean equals(final java.lang.Object obj) { if (!getDimensionValuesList().equals(other.getDimensionValuesList())) return false; if (!getMetricValuesList().equals(other.getMetricValuesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -386,7 +316,7 @@ public int hashCode() { hash = (37 * hash) + METRIC_VALUES_FIELD_NUMBER; hash = (53 * hash) + getMetricValuesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -547,20 +477,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.Row.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionValuesFieldBuilder(); - getMetricValuesFieldBuilder(); - } } @java.lang.Override @@ -568,16 +488,18 @@ public Builder clear() { super.clear(); if (dimensionValuesBuilder_ == null) { dimensionValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + dimensionValues_ = null; dimensionValuesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (metricValuesBuilder_ == null) { metricValues_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + metricValues_ = null; metricValuesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -726,7 +648,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.Row other) { } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -741,17 +663,58 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1beta.DimensionValue m = + input.readMessage( + com.google.analytics.data.v1beta.DimensionValue.parser(), + extensionRegistry); + if (dimensionValuesBuilder_ == null) { + ensureDimensionValuesIsMutable(); + dimensionValues_.add(m); + } else { + dimensionValuesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1beta.MetricValue m = + input.readMessage( + com.google.analytics.data.v1beta.MetricValue.parser(), extensionRegistry); + if (metricValuesBuilder_ == null) { + ensureMetricValuesIsMutable(); + metricValues_.add(m); + } else { + metricValuesBuilder_.addMessage(m); + } + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.analytics.data.v1beta.Row) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -1520,7 +1483,18 @@ public Row parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new Row(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index a75a6e88..67b5d684 100644 --- 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 @@ -57,176 +57,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -922,7 +752,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (returnPropertyQuota_ != false) { output.writeBool(11, returnPropertyQuota_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -964,7 +794,7 @@ public int getSerializedSize() { if (returnPropertyQuota_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, returnPropertyQuota_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1000,7 +830,7 @@ public boolean equals(final java.lang.Object obj) { } if (getKeepEmptyRows() != other.getKeepEmptyRows()) return false; if (getReturnPropertyQuota() != other.getReturnPropertyQuota()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1047,7 +877,7 @@ public int hashCode() { 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(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1177,22 +1007,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.RunPivotReportRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionsFieldBuilder(); - getMetricsFieldBuilder(); - getDateRangesFieldBuilder(); - getPivotsFieldBuilder(); - } } @java.lang.Override @@ -1202,28 +1020,32 @@ public Builder clear() { if (dimensionsBuilder_ == null) { dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + dimensions_ = null; dimensionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + metrics_ = null; metricsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); if (dateRangesBuilder_ == null) { dateRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + dateRanges_ = null; dateRangesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); if (pivotsBuilder_ == null) { pivots_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); } else { + pivots_ = null; pivotsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000008); if (dimensionFilterBuilder_ == null) { dimensionFilter_ = null; } else { @@ -1512,7 +1334,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.RunPivotReportRequest if (other.getReturnPropertyQuota() != false) { setReturnPropertyQuota(other.getReturnPropertyQuota()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1527,18 +1349,125 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1beta.Dimension m = + input.readMessage( + com.google.analytics.data.v1beta.Dimension.parser(), extensionRegistry); + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(m); + } else { + dimensionsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.analytics.data.v1beta.Metric m = + input.readMessage( + com.google.analytics.data.v1beta.Metric.parser(), extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.analytics.data.v1beta.DateRange m = + input.readMessage( + com.google.analytics.data.v1beta.DateRange.parser(), extensionRegistry); + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.add(m); + } else { + dateRangesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.analytics.data.v1beta.Pivot m = + input.readMessage( + com.google.analytics.data.v1beta.Pivot.parser(), extensionRegistry); + if (pivotsBuilder_ == null) { + ensurePivotsIsMutable(); + pivots_.add(m); + } else { + pivotsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage(getDimensionFilterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + input.readMessage(getMetricFilterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + currencyCode_ = input.readStringRequireUtf8(); + + break; + } // case 66 + case 74: + { + input.readMessage(getCohortSpecFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 80: + { + keepEmptyRows_ = input.readBool(); + + break; + } // case 80 + case 88: + { + returnPropertyQuota_ = input.readBool(); + + break; + } // case 88 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.RunPivotReportRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4109,7 +4038,18 @@ public RunPivotReportRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RunPivotReportRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 475def98..e27a33e2 100644 --- 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 @@ -57,160 +57,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -946,7 +792,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, kind_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -979,7 +825,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, kind_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1009,7 +855,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPropertyQuota().equals(other.getPropertyQuota())) return false; } if (!getKind().equals(other.getKind())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1050,7 +896,7 @@ public int hashCode() { } hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1180,23 +1026,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.RunPivotReportResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getPivotHeadersFieldBuilder(); - getDimensionHeadersFieldBuilder(); - getMetricHeadersFieldBuilder(); - getRowsFieldBuilder(); - getAggregatesFieldBuilder(); - } } @java.lang.Override @@ -1204,34 +1037,39 @@ public Builder clear() { super.clear(); if (pivotHeadersBuilder_ == null) { pivotHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + pivotHeaders_ = null; pivotHeadersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (dimensionHeadersBuilder_ == null) { dimensionHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + dimensionHeaders_ = null; dimensionHeadersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); if (metricHeadersBuilder_ == null) { metricHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + metricHeaders_ = null; metricHeadersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); if (rowsBuilder_ == null) { rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); } else { + rows_ = null; rowsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000008); if (aggregatesBuilder_ == null) { aggregates_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); } else { + aggregates_ = null; aggregatesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000010); if (metadataBuilder_ == null) { metadata_ = null; } else { @@ -1525,7 +1363,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.RunPivotReportResponse kind_ = other.kind_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1540,18 +1378,115 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1beta.PivotHeader m = + input.readMessage( + com.google.analytics.data.v1beta.PivotHeader.parser(), extensionRegistry); + if (pivotHeadersBuilder_ == null) { + ensurePivotHeadersIsMutable(); + pivotHeaders_.add(m); + } else { + pivotHeadersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1beta.DimensionHeader m = + input.readMessage( + com.google.analytics.data.v1beta.DimensionHeader.parser(), + extensionRegistry); + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(m); + } else { + dimensionHeadersBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.analytics.data.v1beta.MetricHeader m = + input.readMessage( + com.google.analytics.data.v1beta.MetricHeader.parser(), extensionRegistry); + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(m); + } else { + metricHeadersBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.analytics.data.v1beta.Row m = + input.readMessage( + com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(m); + } else { + rowsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.analytics.data.v1beta.Row m = + input.readMessage( + com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); + if (aggregatesBuilder_ == null) { + ensureAggregatesIsMutable(); + aggregates_.add(m); + } else { + aggregatesBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 58: + { + input.readMessage(getPropertyQuotaFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 58 + case 66: + { + kind_ = input.readStringRequireUtf8(); + + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.RunPivotReportResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4511,7 +4446,18 @@ public RunPivotReportResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RunPivotReportResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index e6acee8e..704e8151 100644 --- 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 @@ -57,182 +57,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -904,7 +728,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < minuteRanges_.size(); i++) { output.writeMessage(10, minuteRanges_.get(i)); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -953,7 +777,7 @@ public int getSerializedSize() { for (int i = 0; i < minuteRanges_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, minuteRanges_.get(i)); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -985,7 +809,7 @@ public boolean equals(final java.lang.Object obj) { 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; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1030,7 +854,7 @@ public int hashCode() { hash = (37 * hash) + MINUTE_RANGES_FIELD_NUMBER; hash = (53 * hash) + getMinuteRangesList().hashCode(); } - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1160,22 +984,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.RunRealtimeReportRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionsFieldBuilder(); - getMetricsFieldBuilder(); - getOrderBysFieldBuilder(); - getMinuteRangesFieldBuilder(); - } } @java.lang.Override @@ -1185,16 +997,18 @@ public Builder clear() { if (dimensionsBuilder_ == null) { dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + dimensions_ = null; dimensionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + metrics_ = null; metricsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); if (dimensionFilterBuilder_ == null) { dimensionFilter_ = null; } else { @@ -1213,18 +1027,20 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000004); if (orderBysBuilder_ == null) { orderBys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); } else { + orderBys_ = null; orderBysBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000008); returnPropertyQuota_ = false; if (minuteRangesBuilder_ == null) { minuteRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); } else { + minuteRanges_ = null; minuteRangesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000010); return this; } @@ -1491,7 +1307,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.RunRealtimeReportReque } } } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1506,18 +1322,132 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1beta.Dimension m = + input.readMessage( + com.google.analytics.data.v1beta.Dimension.parser(), extensionRegistry); + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(m); + } else { + dimensionsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.analytics.data.v1beta.Metric m = + input.readMessage( + com.google.analytics.data.v1beta.Metric.parser(), extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage(getDimensionFilterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 34 + case 42: + { + input.readMessage(getMetricFilterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 48: + { + limit_ = input.readInt64(); + + break; + } // case 48 + case 56: + { + int tmpRaw = input.readEnum(); + ensureMetricAggregationsIsMutable(); + metricAggregations_.add(tmpRaw); + break; + } // case 56 + case 58: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureMetricAggregationsIsMutable(); + metricAggregations_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 58 + case 66: + { + com.google.analytics.data.v1beta.OrderBy m = + input.readMessage( + com.google.analytics.data.v1beta.OrderBy.parser(), extensionRegistry); + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.add(m); + } else { + orderBysBuilder_.addMessage(m); + } + break; + } // case 66 + case 72: + { + returnPropertyQuota_ = input.readBool(); + + break; + } // case 72 + case 82: + { + com.google.analytics.data.v1beta.MinuteRange m = + input.readMessage( + com.google.analytics.data.v1beta.MinuteRange.parser(), extensionRegistry); + if (minuteRangesBuilder_ == null) { + ensureMinuteRangesIsMutable(); + minuteRanges_.add(m); + } else { + minuteRangesBuilder_.addMessage(m); + } + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.RunRealtimeReportRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -3929,7 +3859,18 @@ public RunRealtimeReportRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RunRealtimeReportRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 299b42e9..24cb18f3 100644 --- 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 @@ -58,161 +58,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -819,7 +664,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, kind_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -855,7 +700,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, kind_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -883,7 +728,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPropertyQuota().equals(other.getPropertyQuota())) return false; } if (!getKind().equals(other.getKind())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -926,7 +771,7 @@ public int hashCode() { } hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1056,24 +901,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.RunRealtimeReportResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionHeadersFieldBuilder(); - getMetricHeadersFieldBuilder(); - getRowsFieldBuilder(); - getTotalsFieldBuilder(); - getMaximumsFieldBuilder(); - getMinimumsFieldBuilder(); - } } @java.lang.Override @@ -1081,40 +912,46 @@ public Builder clear() { super.clear(); if (dimensionHeadersBuilder_ == null) { dimensionHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + dimensionHeaders_ = null; dimensionHeadersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (metricHeadersBuilder_ == null) { metricHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + metricHeaders_ = null; metricHeadersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); if (rowsBuilder_ == null) { rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + rows_ = null; rowsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); if (totalsBuilder_ == null) { totals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); } else { + totals_ = null; totalsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000008); if (maximumsBuilder_ == null) { maximums_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); } else { + maximums_ = null; maximumsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000010); if (minimumsBuilder_ == null) { minimums_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); } else { + minimums_ = null; minimumsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000020); rowCount_ = 0; if (propertyQuotaBuilder_ == null) { @@ -1436,7 +1273,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.RunRealtimeReportRespo kind_ = other.kind_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1451,18 +1288,128 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1beta.DimensionHeader m = + input.readMessage( + com.google.analytics.data.v1beta.DimensionHeader.parser(), + extensionRegistry); + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(m); + } else { + dimensionHeadersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1beta.MetricHeader m = + input.readMessage( + com.google.analytics.data.v1beta.MetricHeader.parser(), extensionRegistry); + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(m); + } else { + metricHeadersBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.analytics.data.v1beta.Row m = + input.readMessage( + com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(m); + } else { + rowsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.analytics.data.v1beta.Row m = + input.readMessage( + com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); + if (totalsBuilder_ == null) { + ensureTotalsIsMutable(); + totals_.add(m); + } else { + totalsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.analytics.data.v1beta.Row m = + input.readMessage( + com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); + if (maximumsBuilder_ == null) { + ensureMaximumsIsMutable(); + maximums_.add(m); + } else { + maximumsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + com.google.analytics.data.v1beta.Row m = + input.readMessage( + com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); + if (minimumsBuilder_ == null) { + ensureMinimumsIsMutable(); + minimums_.add(m); + } else { + minimumsBuilder_.addMessage(m); + } + break; + } // case 50 + case 56: + { + rowCount_ = input.readInt32(); + + break; + } // case 56 + case 66: + { + input.readMessage(getPropertyQuotaFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 74: + { + kind_ = input.readStringRequireUtf8(); + + break; + } // case 74 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.RunRealtimeReportResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4014,7 +3961,18 @@ public RunRealtimeReportResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RunRealtimeReportResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 8e358f9e..86ae063d 100644 --- 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 @@ -58,214 +58,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -1104,7 +896,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (returnPropertyQuota_ != false) { output.writeBool(14, returnPropertyQuota_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -1165,7 +957,7 @@ public int getSerializedSize() { if (returnPropertyQuota_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(14, returnPropertyQuota_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -1204,7 +996,7 @@ public boolean equals(final java.lang.Object obj) { } if (getKeepEmptyRows() != other.getKeepEmptyRows()) return false; if (getReturnPropertyQuota() != other.getReturnPropertyQuota()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1259,7 +1051,7 @@ public int hashCode() { 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(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1388,22 +1180,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.RunReportRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionsFieldBuilder(); - getMetricsFieldBuilder(); - getDateRangesFieldBuilder(); - getOrderBysFieldBuilder(); - } } @java.lang.Override @@ -1413,22 +1193,25 @@ public Builder clear() { if (dimensionsBuilder_ == null) { dimensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + dimensions_ = null; dimensionsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (metricsBuilder_ == null) { metrics_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + metrics_ = null; metricsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); if (dateRangesBuilder_ == null) { dateRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + dateRanges_ = null; dateRangesBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); if (dimensionFilterBuilder_ == null) { dimensionFilter_ = null; } else { @@ -1449,10 +1232,11 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000008); if (orderBysBuilder_ == null) { orderBys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); } else { + orderBys_ = null; orderBysBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000010); currencyCode_ = ""; if (cohortSpecBuilder_ == null) { @@ -1752,7 +1536,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.RunReportRequest other if (other.getReturnPropertyQuota() != false) { setReturnPropertyQuota(other.getReturnPropertyQuota()); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1767,18 +1551,156 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + property_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1beta.Dimension m = + input.readMessage( + com.google.analytics.data.v1beta.Dimension.parser(), extensionRegistry); + if (dimensionsBuilder_ == null) { + ensureDimensionsIsMutable(); + dimensions_.add(m); + } else { + dimensionsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.analytics.data.v1beta.Metric m = + input.readMessage( + com.google.analytics.data.v1beta.Metric.parser(), extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.analytics.data.v1beta.DateRange m = + input.readMessage( + com.google.analytics.data.v1beta.DateRange.parser(), extensionRegistry); + if (dateRangesBuilder_ == null) { + ensureDateRangesIsMutable(); + dateRanges_.add(m); + } else { + dateRangesBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + input.readMessage(getDimensionFilterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 42 + case 50: + { + input.readMessage(getMetricFilterFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 + case 56: + { + offset_ = input.readInt64(); + + break; + } // case 56 + case 64: + { + limit_ = input.readInt64(); + + break; + } // case 64 + case 72: + { + int tmpRaw = input.readEnum(); + ensureMetricAggregationsIsMutable(); + metricAggregations_.add(tmpRaw); + break; + } // case 72 + case 74: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int tmpRaw = input.readEnum(); + ensureMetricAggregationsIsMutable(); + metricAggregations_.add(tmpRaw); + } + input.popLimit(oldLimit); + break; + } // case 74 + case 82: + { + com.google.analytics.data.v1beta.OrderBy m = + input.readMessage( + com.google.analytics.data.v1beta.OrderBy.parser(), extensionRegistry); + if (orderBysBuilder_ == null) { + ensureOrderBysIsMutable(); + orderBys_.add(m); + } else { + orderBysBuilder_.addMessage(m); + } + break; + } // case 82 + case 90: + { + currencyCode_ = input.readStringRequireUtf8(); + + break; + } // case 90 + case 98: + { + input.readMessage(getCohortSpecFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 98 + case 104: + { + keepEmptyRows_ = input.readBool(); + + break; + } // case 104 + case 112: + { + returnPropertyQuota_ = input.readBool(); + + break; + } // case 112 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.RunReportRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4648,7 +4570,18 @@ public RunReportRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RunReportRequest(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; diff --git a/proto-google-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 index 934ed440..0dee52f8 100644 --- 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 @@ -58,178 +58,6 @@ 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 (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - 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; @@ -889,7 +717,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, kind_); } - unknownFields.writeTo(output); + getUnknownFields().writeTo(output); } @java.lang.Override @@ -928,7 +756,7 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, kind_); } - size += unknownFields.getSerializedSize(); + size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @@ -960,7 +788,7 @@ public boolean equals(final java.lang.Object obj) { if (!getPropertyQuota().equals(other.getPropertyQuota())) return false; } if (!getKind().equals(other.getKind())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1007,7 +835,7 @@ public int hashCode() { } hash = (37 * hash) + KIND_FIELD_NUMBER; hash = (53 * hash) + getKind().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } @@ -1136,24 +964,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.analytics.data.v1beta.RunReportResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } + private Builder() {} private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getDimensionHeadersFieldBuilder(); - getMetricHeadersFieldBuilder(); - getRowsFieldBuilder(); - getTotalsFieldBuilder(); - getMaximumsFieldBuilder(); - getMinimumsFieldBuilder(); - } } @java.lang.Override @@ -1161,40 +975,46 @@ public Builder clear() { super.clear(); if (dimensionHeadersBuilder_ == null) { dimensionHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); } else { + dimensionHeaders_ = null; dimensionHeadersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000001); if (metricHeadersBuilder_ == null) { metricHeaders_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); } else { + metricHeaders_ = null; metricHeadersBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000002); if (rowsBuilder_ == null) { rows_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); } else { + rows_ = null; rowsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000004); if (totalsBuilder_ == null) { totals_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); } else { + totals_ = null; totalsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000008); if (maximumsBuilder_ == null) { maximums_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); } else { + maximums_ = null; maximumsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000010); if (minimumsBuilder_ == null) { minimums_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); } else { + minimums_ = null; minimumsBuilder_.clear(); } + bitField0_ = (bitField0_ & ~0x00000020); rowCount_ = 0; if (metadataBuilder_ == null) { @@ -1530,7 +1350,7 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.RunReportResponse othe kind_ = other.kind_; onChanged(); } - this.mergeUnknownFields(other.unknownFields); + this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @@ -1545,18 +1365,134 @@ 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; + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.analytics.data.v1beta.DimensionHeader m = + input.readMessage( + com.google.analytics.data.v1beta.DimensionHeader.parser(), + extensionRegistry); + if (dimensionHeadersBuilder_ == null) { + ensureDimensionHeadersIsMutable(); + dimensionHeaders_.add(m); + } else { + dimensionHeadersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + com.google.analytics.data.v1beta.MetricHeader m = + input.readMessage( + com.google.analytics.data.v1beta.MetricHeader.parser(), extensionRegistry); + if (metricHeadersBuilder_ == null) { + ensureMetricHeadersIsMutable(); + metricHeaders_.add(m); + } else { + metricHeadersBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + com.google.analytics.data.v1beta.Row m = + input.readMessage( + com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); + if (rowsBuilder_ == null) { + ensureRowsIsMutable(); + rows_.add(m); + } else { + rowsBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + com.google.analytics.data.v1beta.Row m = + input.readMessage( + com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); + if (totalsBuilder_ == null) { + ensureTotalsIsMutable(); + totals_.add(m); + } else { + totalsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.analytics.data.v1beta.Row m = + input.readMessage( + com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); + if (maximumsBuilder_ == null) { + ensureMaximumsIsMutable(); + maximums_.add(m); + } else { + maximumsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + com.google.analytics.data.v1beta.Row m = + input.readMessage( + com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); + if (minimumsBuilder_ == null) { + ensureMinimumsIsMutable(); + minimums_.add(m); + } else { + minimumsBuilder_.addMessage(m); + } + break; + } // case 50 + case 56: + { + rowCount_ = input.readInt32(); + + break; + } // case 56 + case 66: + { + input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 66 + case 74: + { + input.readMessage(getPropertyQuotaFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 74 + case 82: + { + kind_ = input.readStringRequireUtf8(); + + break; + } // case 82 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.data.v1beta.RunReportResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } + onChanged(); + } // finally return this; } @@ -4300,7 +4236,18 @@ public RunReportResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new RunReportResponse(input, extensionRegistry); + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); } }; From dfea4329a4ff5d1245aebd766a7307e476d5fef7 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 4 Oct 2022 19:58:13 +0000 Subject: [PATCH 212/225] chore(main): release 0.14.9-SNAPSHOT (#588) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index cb89fa19..057d7d54 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.8 + 0.14.9-SNAPSHOT pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.8 + 0.14.9-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.8 + 0.14.9-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.8 + 0.14.9-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.8 + 0.14.9-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.8 + 0.14.9-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index e22a90a7..983a2347 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.8 + 0.14.9-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.8 + 0.14.9-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index df1c52d2..e1c95cf7 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.8 + 0.14.9-SNAPSHOT grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.8 + 0.14.9-SNAPSHOT diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index b0f12fb1..4e8687cd 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.8 + 0.14.9-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.8 + 0.14.9-SNAPSHOT diff --git a/pom.xml b/pom.xml index 5333e72e..7256d555 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.8 + 0.14.9-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.8 + 0.14.9-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.8 + 0.14.9-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.8 + 0.14.9-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.8 + 0.14.9-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.8 + 0.14.9-SNAPSHOT diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index d8309b55..12038585 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.8 + 0.14.9-SNAPSHOT proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.8 + 0.14.9-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 8f6491e8..609d0c6a 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.8 + 0.14.9-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.8 + 0.14.9-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 95f1353e..8ad6017f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.8 + 0.14.9-SNAPSHOT diff --git a/versions.txt b/versions.txt index 9fc2e865..d6e58ec6 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.8:0.14.8 -grpc-google-analytics-data-v1beta:0.14.8:0.14.8 -proto-google-analytics-data-v1beta:0.14.8:0.14.8 -proto-google-analytics-data-v1alpha:0.14.8:0.14.8 -grpc-google-analytics-data-v1alpha:0.14.8:0.14.8 +google-analytics-data:0.14.8:0.14.9-SNAPSHOT +grpc-google-analytics-data-v1beta:0.14.8:0.14.9-SNAPSHOT +proto-google-analytics-data-v1beta:0.14.8:0.14.9-SNAPSHOT +proto-google-analytics-data-v1alpha:0.14.8:0.14.9-SNAPSHOT +grpc-google-analytics-data-v1alpha:0.14.8:0.14.9-SNAPSHOT From 31845abe999f5e9fa40f7c46fbd62575120b01ce Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 5 Oct 2022 17:00:23 +0000 Subject: [PATCH 213/225] chore(main): release 0.14.9 (#591) :robot: I have created a release *beep* *boop* --- ## [0.14.9](https://togithub.com/googleapis/java-analytics-data/compare/v0.14.8...v0.14.9) (2022-10-05) ### Bug Fixes * update protobuf to v3.21.7 ([b3fb5c5](https://togithub.com/googleapis/java-analytics-data/commit/b3fb5c5bb57d6c3db8a9ce0a72682fd3411e35e3)) --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- CHANGELOG.md | 7 +++++++ google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 10 files changed, 35 insertions(+), 28 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 13102d2f..61866b11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.14.9](https://github.com/googleapis/java-analytics-data/compare/v0.14.8...v0.14.9) (2022-10-05) + + +### Bug Fixes + +* update protobuf to v3.21.7 ([b3fb5c5](https://github.com/googleapis/java-analytics-data/commit/b3fb5c5bb57d6c3db8a9ce0a72682fd3411e35e3)) + ## [0.14.8](https://github.com/googleapis/java-analytics-data/compare/v0.14.7...v0.14.8) (2022-10-03) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 057d7d54..5b729178 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.9-SNAPSHOT + 0.14.9 pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.9-SNAPSHOT + 0.14.9 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.9-SNAPSHOT + 0.14.9 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.9-SNAPSHOT + 0.14.9 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.9-SNAPSHOT + 0.14.9 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.9-SNAPSHOT + 0.14.9 diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 983a2347..96f92c43 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.9-SNAPSHOT + 0.14.9 jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.9-SNAPSHOT + 0.14.9 google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index e1c95cf7..9523586f 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.9-SNAPSHOT + 0.14.9 grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.9-SNAPSHOT + 0.14.9 diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index 4e8687cd..f62a80a6 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.9-SNAPSHOT + 0.14.9 grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.9-SNAPSHOT + 0.14.9 diff --git a/pom.xml b/pom.xml index 7256d555..e517cc54 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.9-SNAPSHOT + 0.14.9 Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.9-SNAPSHOT + 0.14.9 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.9-SNAPSHOT + 0.14.9 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.9-SNAPSHOT + 0.14.9 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.9-SNAPSHOT + 0.14.9 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.9-SNAPSHOT + 0.14.9 diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index 12038585..6f9d31a2 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.9-SNAPSHOT + 0.14.9 proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.9-SNAPSHOT + 0.14.9 diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 609d0c6a..78097993 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.9-SNAPSHOT + 0.14.9 proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.9-SNAPSHOT + 0.14.9 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 8ad6017f..d0f8a81a 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.9-SNAPSHOT + 0.14.9 diff --git a/versions.txt b/versions.txt index d6e58ec6..456e375c 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.8:0.14.9-SNAPSHOT -grpc-google-analytics-data-v1beta:0.14.8:0.14.9-SNAPSHOT -proto-google-analytics-data-v1beta:0.14.8:0.14.9-SNAPSHOT -proto-google-analytics-data-v1alpha:0.14.8:0.14.9-SNAPSHOT -grpc-google-analytics-data-v1alpha:0.14.8:0.14.9-SNAPSHOT +google-analytics-data:0.14.9:0.14.9 +grpc-google-analytics-data-v1beta:0.14.9:0.14.9 +proto-google-analytics-data-v1beta:0.14.9:0.14.9 +proto-google-analytics-data-v1alpha:0.14.9:0.14.9 +grpc-google-analytics-data-v1alpha:0.14.9:0.14.9 From 8c5e6f244063044ccb0d61b49794639cd9759bb9 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Wed, 5 Oct 2022 18:16:14 +0000 Subject: [PATCH 214/225] chore(main): release 0.14.10-SNAPSHOT (#592) :robot: I have created a release *beep* *boop* --- ### Updating meta-information for bleeding-edge SNAPSHOT release. --- This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please). --- google-analytics-data-bom/pom.xml | 12 ++++++------ google-analytics-data/pom.xml | 4 ++-- grpc-google-analytics-data-v1alpha/pom.xml | 4 ++-- grpc-google-analytics-data-v1beta/pom.xml | 4 ++-- pom.xml | 12 ++++++------ proto-google-analytics-data-v1alpha/pom.xml | 4 ++-- proto-google-analytics-data-v1beta/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- versions.txt | 10 +++++----- 9 files changed, 28 insertions(+), 28 deletions(-) diff --git a/google-analytics-data-bom/pom.xml b/google-analytics-data-bom/pom.xml index 5b729178..19b216c7 100644 --- a/google-analytics-data-bom/pom.xml +++ b/google-analytics-data-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data-bom - 0.14.9 + 0.14.10-SNAPSHOT pom com.google.cloud @@ -56,27 +56,27 @@ com.google.analytics google-analytics-data - 0.14.9 + 0.14.10-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.9 + 0.14.10-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.9 + 0.14.10-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.9 + 0.14.10-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.9 + 0.14.10-SNAPSHOT diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml index 96f92c43..4b757f12 100644 --- a/google-analytics-data/pom.xml +++ b/google-analytics-data/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-data - 0.14.9 + 0.14.10-SNAPSHOT jar Google Analytics Data https://github.com/googleapis/java-analytics-data @@ -11,7 +11,7 @@ com.google.analytics google-analytics-data-parent - 0.14.9 + 0.14.10-SNAPSHOT google-analytics-data diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml index 9523586f..1a8c8a09 100644 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ b/grpc-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.9 + 0.14.10-SNAPSHOT grpc-google-analytics-data-v1alpha GRPC library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.9 + 0.14.10-SNAPSHOT diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml index f62a80a6..ceb63b30 100644 --- a/grpc-google-analytics-data-v1beta/pom.xml +++ b/grpc-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.9 + 0.14.10-SNAPSHOT grpc-google-analytics-data-v1beta GRPC library for grpc-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.9 + 0.14.10-SNAPSHOT diff --git a/pom.xml b/pom.xml index e517cc54..bf9e0965 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-data-parent pom - 0.14.9 + 0.14.10-SNAPSHOT Google Analytics Data Parent https://github.com/googleapis/java-analytics-data @@ -61,27 +61,27 @@ com.google.analytics google-analytics-data - 0.14.9 + 0.14.10-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.9 + 0.14.10-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1alpha - 0.14.9 + 0.14.10-SNAPSHOT com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.9 + 0.14.10-SNAPSHOT com.google.api.grpc grpc-google-analytics-data-v1beta - 0.14.9 + 0.14.10-SNAPSHOT diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml index 6f9d31a2..77e82c53 100644 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ b/proto-google-analytics-data-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1alpha - 0.14.9 + 0.14.10-SNAPSHOT proto-google-analytics-data-v1alpha Proto library for google-analytics-data com.google.analytics google-analytics-data-parent - 0.14.9 + 0.14.10-SNAPSHOT diff --git a/proto-google-analytics-data-v1beta/pom.xml b/proto-google-analytics-data-v1beta/pom.xml index 78097993..7b115c89 100644 --- a/proto-google-analytics-data-v1beta/pom.xml +++ b/proto-google-analytics-data-v1beta/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-data-v1beta - 0.14.9 + 0.14.10-SNAPSHOT proto-google-analytics-data-v1beta PROTO library for proto-google-analytics-data-v1beta com.google.analytics google-analytics-data-parent - 0.14.9 + 0.14.10-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index d0f8a81a..f6f3266f 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.9 + 0.14.10-SNAPSHOT diff --git a/versions.txt b/versions.txt index 456e375c..7ccaaf35 100644 --- a/versions.txt +++ b/versions.txt @@ -1,8 +1,8 @@ # Format: # module:released-version:current-version -google-analytics-data:0.14.9:0.14.9 -grpc-google-analytics-data-v1beta:0.14.9:0.14.9 -proto-google-analytics-data-v1beta:0.14.9:0.14.9 -proto-google-analytics-data-v1alpha:0.14.9:0.14.9 -grpc-google-analytics-data-v1alpha:0.14.9:0.14.9 +google-analytics-data:0.14.9:0.14.10-SNAPSHOT +grpc-google-analytics-data-v1beta:0.14.9:0.14.10-SNAPSHOT +proto-google-analytics-data-v1beta:0.14.9:0.14.10-SNAPSHOT +proto-google-analytics-data-v1alpha:0.14.9:0.14.10-SNAPSHOT +grpc-google-analytics-data-v1alpha:0.14.9:0.14.10-SNAPSHOT From 53f789879d1f2641af3fa66adc500dd831cb08e9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 6 Oct 2022 18:12:22 +0200 Subject: [PATCH 215/225] chore(deps): update dependency com.google.analytics:google-analytics-data to v0.14.9 (#593) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.analytics:google-analytics-data](https://togithub.com/googleapis/java-analytics-data) | `0.14.7` -> `0.14.9` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.9/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.9/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.9/compatibility-slim/0.14.7)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-data/0.14.9/confidence-slim/0.14.7)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- README.md | 6 +++--- samples/install-without-bom/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 60648765..69af377a 100644 --- a/README.md +++ b/README.md @@ -22,20 +22,20 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-data - 0.14.7 + 0.14.9 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.14.7' +implementation 'com.google.analytics:google-analytics-data:0.14.9' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.14.7" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.14.9" ``` ## Authentication diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index b4c9ca4b..ad17a058 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-data - 0.14.7 + 0.14.9 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index a618a2a9..7c14f9f4 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -40,7 +40,7 @@ com.google.analytics google-analytics-data - 0.14.7 + 0.14.9 com.google.auth From 5499c64850bd55de1fbf0cabe9b40be04c7f97f0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Oct 2022 20:04:19 +0200 Subject: [PATCH 216/225] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.3 (#595) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.2` -> `26.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/compatibility-slim/26.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/confidence-slim/26.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f6f3266f..c3acb0ce 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 26.1.2 + 26.1.3 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 7c14f9f4..6a0b464e 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 26.1.2 + 26.1.3 pom import From 63c4c177c33b23db68e0eba33634681592895e44 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 10 Oct 2022 14:40:14 +0000 Subject: [PATCH 217/225] feat: add `subject_to_thresholding` field to `ResponseMetadata` type (#594) - [ ] Regenerate this pull request now. feat: add `tokens_per_project_per_hour` field to `PropertyQuota` type PiperOrigin-RevId: 479394249 Source-Link: https://togithub.com/googleapis/googleapis/commit/59b73bd6f7c00dc5af895414c444b08055849bdf Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/c2f211bcb3cc0b10cb71905185dd740bd26fc372 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzJmMjExYmNiM2NjMGIxMGNiNzE5MDUxODVkZDc0MGJkMjZmYzM3MiJ9 --- .../data/v1beta/BetaAnalyticsDataClient.java | 26 +- .../analytics/data/v1beta/package-info.java | 4 +- .../stub/BetaAnalyticsDataStubSettings.java | 22 +- .../data/v1beta/BetaAnalyticsDataGrpc.java | 56 ++- .../analytics/data/v1beta/Dimension.java | 4 +- .../google/analytics/data/v1beta/Filter.java | 57 ++- .../data/v1beta/FilterExpression.java | 70 ++-- .../v1beta/FilterExpressionOrBuilder.java | 15 +- .../data/v1beta/FilterOrBuilder.java | 14 +- .../analytics/data/v1beta/MinuteRange.java | 48 +-- .../data/v1beta/MinuteRangeOrBuilder.java | 16 +- .../google/analytics/data/v1beta/OrderBy.java | 8 +- .../analytics/data/v1beta/PropertyQuota.java | 382 ++++++++++++++++-- .../data/v1beta/PropertyQuotaOrBuilder.java | 62 ++- .../data/v1beta/ReportingApiProto.java | 168 ++++---- .../data/v1beta/ResponseMetaData.java | 171 ++++++++ .../v1beta/ResponseMetaDataOrBuilder.java | 39 ++ .../data/v1beta/RunRealtimeReportRequest.java | 72 ++-- .../RunRealtimeReportRequestOrBuilder.java | 18 +- .../data/v1beta/RunReportRequest.java | 48 +-- .../v1beta/RunReportRequestOrBuilder.java | 12 +- .../data/v1beta/analytics_data_api.proto | 28 +- .../google/analytics/data/v1beta/data.proto | 60 ++- 23 files changed, 1026 insertions(+), 374 deletions(-) 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 index 53016599..cf16f329 100644 --- 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 @@ -196,6 +196,9 @@ public BetaAnalyticsDataStub getStub() { * 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. * + *

For a guide to constructing requests & understanding responses, see [Creating a + * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics). + * *

Sample code: * *

{@code
@@ -241,6 +244,9 @@ public final RunReportResponse runReport(RunReportRequest request) {
    * 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.
    *
+   * 

For a guide to constructing requests & understanding responses, see [Creating a + * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics). + * *

Sample code: * *

{@code
@@ -627,8 +633,14 @@ public final UnaryCallable 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.
+   * Returns a customized report of realtime event data for your property. Events appear in realtime
+   * reports seconds after they have been sent to the Google Analytics. Realtime reports show events
+   * and usage data for the periods of time ranging from the present moment to 30 minutes ago (up to
+   * 60 minutes for Google Analytics 360 properties).
+   *
+   * 

For a guide to constructing realtime requests & understanding responses, see [Creating a + * Realtime + * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics). * *

Sample code: * @@ -665,8 +677,14 @@ public final RunRealtimeReportResponse runRealtimeReport(RunRealtimeReportReques // 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. + * Returns a customized report of realtime event data for your property. Events appear in realtime + * reports seconds after they have been sent to the Google Analytics. Realtime reports show events + * and usage data for the periods of time ranging from the present moment to 30 minutes ago (up to + * 60 minutes for Google Analytics 360 properties). + * + *

For a guide to constructing realtime requests & understanding responses, see [Creating a + * Realtime + * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics). * *

Sample code: * 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 index 06382cc7..a2ae6249 100644 --- 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 @@ -15,7 +15,9 @@ */ /** - * The interfaces provided are listed below, along with usage samples. + * A client to Google Analytics Data API + * + *

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

======================= BetaAnalyticsDataClient ======================= * 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 index 8f1e0a55..fda9c6eb 100644 --- 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 @@ -293,9 +293,6 @@ public static class Builder extends StubSettings.BuildernewArrayList())); - definitions.put( - "retry_policy_0_codes", - ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNKNOWN))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -312,17 +309,6 @@ public static class Builder extends StubSettings.Builder */ public void runReport( @@ -515,9 +518,14 @@ public void getMetadata( * * *

-     * 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.
+     * Returns a customized report of realtime event data for your property.
+     * Events appear in realtime reports seconds after they have been sent to
+     * the Google Analytics. Realtime reports show events and usage data for the
+     * periods of time ranging from the present moment to 30 minutes ago (up to
+     * 60 minutes for Google Analytics 360 properties).
+     * For a guide to constructing realtime requests & understanding responses,
+     * see [Creating a Realtime
+     * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).
      * 
*/ public void runRealtimeReport( @@ -635,6 +643,9 @@ protected BetaAnalyticsDataStub build( * 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. + * For a guide to constructing requests & understanding responses, see + * [Creating a + * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics). *
*/ public void runReport( @@ -730,9 +741,14 @@ public void getMetadata( * * *
-     * 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.
+     * Returns a customized report of realtime event data for your property.
+     * Events appear in realtime reports seconds after they have been sent to
+     * the Google Analytics. Realtime reports show events and usage data for the
+     * periods of time ranging from the present moment to 30 minutes ago (up to
+     * 60 minutes for Google Analytics 360 properties).
+     * For a guide to constructing realtime requests & understanding responses,
+     * see [Creating a Realtime
+     * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).
      * 
*/ public void runRealtimeReport( @@ -801,6 +817,9 @@ protected BetaAnalyticsDataBlockingStub build( * 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. + * For a guide to constructing requests & understanding responses, see + * [Creating a + * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics). *
*/ public com.google.analytics.data.v1beta.RunReportResponse runReport( @@ -879,9 +898,14 @@ public com.google.analytics.data.v1beta.Metadata getMetadata( * * *
-     * 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.
+     * Returns a customized report of realtime event data for your property.
+     * Events appear in realtime reports seconds after they have been sent to
+     * the Google Analytics. Realtime reports show events and usage data for the
+     * periods of time ranging from the present moment to 30 minutes ago (up to
+     * 60 minutes for Google Analytics 360 properties).
+     * For a guide to constructing realtime requests & understanding responses,
+     * see [Creating a Realtime
+     * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).
      * 
*/ public com.google.analytics.data.v1beta.RunRealtimeReportResponse runRealtimeReport( @@ -941,6 +965,9 @@ protected BetaAnalyticsDataFutureStub build( * 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. + * For a guide to constructing requests & understanding responses, see + * [Creating a + * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics). *
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -1024,9 +1051,14 @@ protected BetaAnalyticsDataFutureStub build( * * *
-     * 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.
+     * Returns a customized report of realtime event data for your property.
+     * Events appear in realtime reports seconds after they have been sent to
+     * the Google Analytics. Realtime reports show events and usage data for the
+     * periods of time ranging from the present moment to 30 minutes ago (up to
+     * 60 minutes for Google Analytics 360 properties).
+     * For a guide to constructing realtime requests & understanding responses,
+     * see [Creating a Realtime
+     * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< 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 index 667aeb29..333e2ad7 100644 --- 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 @@ -24,7 +24,7 @@ *
  * 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".
+ * responses are strings; for example, the city could be "Paris" or "New York".
  * Requests are allowed up to 9 dimensions.
  * 
* @@ -368,7 +368,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build *
    * 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".
+   * responses are strings; for example, the city could be "Paris" or "New York".
    * Requests are allowed up to 9 dimensions.
    * 
* 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 index bd7a0694..7bf770ce 100644 --- 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 @@ -249,7 +249,7 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { * * *
-       * Full regular expression match with the string value.
+       * Full match for the regular expression with the string value.
        * 
* * FULL_REGEXP = 5; @@ -259,7 +259,7 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { * * *
-       * Partial regular expression match with the string value.
+       * Partial match for the regular expression with the string value.
        * 
* * PARTIAL_REGEXP = 6; @@ -322,7 +322,7 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { * * *
-       * Full regular expression match with the string value.
+       * Full match for the regular expression with the string value.
        * 
* * FULL_REGEXP = 5; @@ -332,7 +332,7 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { * * *
-       * Partial regular expression match with the string value.
+       * Partial match for the regular expression with the string value.
        * 
* * PARTIAL_REGEXP = 6; @@ -4344,8 +4344,11 @@ public OneFilterCase getOneFilterCase() { * * *
-   * The dimension name or metric name. Must be a name defined in dimensions
-   * or metrics.
+   * The dimension name or metric name.
+   * In most methods, dimensions & metrics can be used for the first time in
+   * this field. However in a RunPivotReportRequest, this field must be
+   * additionally specified by name in the RunPivotReportRequest's dimensions or
+   * metrics.
    * 
* * string field_name = 1; @@ -4368,8 +4371,11 @@ public java.lang.String getFieldName() { * * *
-   * The dimension name or metric name. Must be a name defined in dimensions
-   * or metrics.
+   * The dimension name or metric name.
+   * In most methods, dimensions & metrics can be used for the first time in
+   * this field. However in a RunPivotReportRequest, this field must be
+   * additionally specified by name in the RunPivotReportRequest's dimensions or
+   * metrics.
    * 
* * string field_name = 1; @@ -5104,8 +5110,11 @@ public Builder clearOneFilter() { * * *
-     * The dimension name or metric name. Must be a name defined in dimensions
-     * or metrics.
+     * The dimension name or metric name.
+     * In most methods, dimensions & metrics can be used for the first time in
+     * this field. However in a RunPivotReportRequest, this field must be
+     * additionally specified by name in the RunPivotReportRequest's dimensions or
+     * metrics.
      * 
* * string field_name = 1; @@ -5127,8 +5136,11 @@ public java.lang.String getFieldName() { * * *
-     * The dimension name or metric name. Must be a name defined in dimensions
-     * or metrics.
+     * The dimension name or metric name.
+     * In most methods, dimensions & metrics can be used for the first time in
+     * this field. However in a RunPivotReportRequest, this field must be
+     * additionally specified by name in the RunPivotReportRequest's dimensions or
+     * metrics.
      * 
* * string field_name = 1; @@ -5150,8 +5162,11 @@ public com.google.protobuf.ByteString getFieldNameBytes() { * * *
-     * The dimension name or metric name. Must be a name defined in dimensions
-     * or metrics.
+     * The dimension name or metric name.
+     * In most methods, dimensions & metrics can be used for the first time in
+     * this field. However in a RunPivotReportRequest, this field must be
+     * additionally specified by name in the RunPivotReportRequest's dimensions or
+     * metrics.
      * 
* * string field_name = 1; @@ -5172,8 +5187,11 @@ public Builder setFieldName(java.lang.String value) { * * *
-     * The dimension name or metric name. Must be a name defined in dimensions
-     * or metrics.
+     * The dimension name or metric name.
+     * In most methods, dimensions & metrics can be used for the first time in
+     * this field. However in a RunPivotReportRequest, this field must be
+     * additionally specified by name in the RunPivotReportRequest's dimensions or
+     * metrics.
      * 
* * string field_name = 1; @@ -5190,8 +5208,11 @@ public Builder clearFieldName() { * * *
-     * The dimension name or metric name. Must be a name defined in dimensions
-     * or metrics.
+     * The dimension name or metric name.
+     * In most methods, dimensions & metrics can be used for the first time in
+     * this field. However in a RunPivotReportRequest, this field must be
+     * additionally specified by name in the RunPivotReportRequest's dimensions or
+     * metrics.
      * 
* * string field_name = 1; 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 index d4660213..e2b220be 100644 --- 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 @@ -22,9 +22,8 @@ * * *
- * To express dimension or metric filters.
- * The fields in the same FilterExpression need to be either all dimensions or
- * all metrics.
+ * 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} @@ -278,9 +277,8 @@ public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getNotExpressi * * *
-   * A primitive filter.
-   * All fields in filter in same FilterExpression needs to be either all
-   * dimensions or metrics.
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
    * 
* * .google.analytics.data.v1beta.Filter filter = 4; @@ -295,9 +293,8 @@ public boolean hasFilter() { * * *
-   * A primitive filter.
-   * All fields in filter in same FilterExpression needs to be either all
-   * dimensions or metrics.
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
    * 
* * .google.analytics.data.v1beta.Filter filter = 4; @@ -315,9 +312,8 @@ public 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.
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
    * 
* * .google.analytics.data.v1beta.Filter filter = 4; @@ -553,9 +549,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * To express dimension or metric filters.
-   * The fields in the same FilterExpression need to be either all dimensions or
-   * all metrics.
+   * 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} @@ -1457,9 +1452,8 @@ public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getNotExpressi * * *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
      * 
* * .google.analytics.data.v1beta.Filter filter = 4; @@ -1474,9 +1468,8 @@ public boolean hasFilter() { * * *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
      * 
* * .google.analytics.data.v1beta.Filter filter = 4; @@ -1501,9 +1494,8 @@ public 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.
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
      * 
* * .google.analytics.data.v1beta.Filter filter = 4; @@ -1525,9 +1517,8 @@ public Builder setFilter(com.google.analytics.data.v1beta.Filter value) { * * *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
      * 
* * .google.analytics.data.v1beta.Filter filter = 4; @@ -1546,9 +1537,8 @@ public Builder setFilter(com.google.analytics.data.v1beta.Filter.Builder builder * * *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
      * 
* * .google.analytics.data.v1beta.Filter filter = 4; @@ -1580,9 +1570,8 @@ public Builder mergeFilter(com.google.analytics.data.v1beta.Filter value) { * * *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
      * 
* * .google.analytics.data.v1beta.Filter filter = 4; @@ -1607,9 +1596,8 @@ public Builder clearFilter() { * * *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
      * 
* * .google.analytics.data.v1beta.Filter filter = 4; @@ -1621,9 +1609,8 @@ public com.google.analytics.data.v1beta.Filter.Builder getFilterBuilder() { * * *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
      * 
* * .google.analytics.data.v1beta.Filter filter = 4; @@ -1643,9 +1630,8 @@ public com.google.analytics.data.v1beta.FilterOrBuilder getFilterOrBuilder() { * * *
-     * A primitive filter.
-     * All fields in filter in same FilterExpression needs to be either all
-     * dimensions or metrics.
+     * A primitive filter. In the same FilterExpression, all of the filter's
+     * field names need to be either all dimensions or all metrics.
      * 
* * .google.analytics.data.v1beta.Filter filter = 4; 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 index 336de25a..d678bb97 100644 --- 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 @@ -132,9 +132,8 @@ public interface FilterExpressionOrBuilder * * *
-   * A primitive filter.
-   * All fields in filter in same FilterExpression needs to be either all
-   * dimensions or metrics.
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
    * 
* * .google.analytics.data.v1beta.Filter filter = 4; @@ -146,9 +145,8 @@ public interface FilterExpressionOrBuilder * * *
-   * A primitive filter.
-   * All fields in filter in same FilterExpression needs to be either all
-   * dimensions or metrics.
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
    * 
* * .google.analytics.data.v1beta.Filter filter = 4; @@ -160,9 +158,8 @@ public interface FilterExpressionOrBuilder * * *
-   * A primitive filter.
-   * All fields in filter in same FilterExpression needs to be either all
-   * dimensions or metrics.
+   * A primitive filter. In the same FilterExpression, all of the filter's
+   * field names need to be either all dimensions or all metrics.
    * 
* * .google.analytics.data.v1beta.Filter filter = 4; 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 index 0062312f..b85cb524 100644 --- 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 @@ -27,8 +27,11 @@ public interface FilterOrBuilder * * *
-   * The dimension name or metric name. Must be a name defined in dimensions
-   * or metrics.
+   * The dimension name or metric name.
+   * In most methods, dimensions & metrics can be used for the first time in
+   * this field. However in a RunPivotReportRequest, this field must be
+   * additionally specified by name in the RunPivotReportRequest's dimensions or
+   * metrics.
    * 
* * string field_name = 1; @@ -40,8 +43,11 @@ public interface FilterOrBuilder * * *
-   * The dimension name or metric name. Must be a name defined in dimensions
-   * or metrics.
+   * The dimension name or metric name.
+   * In most methods, dimensions & metrics can be used for the first time in
+   * this field. However in a RunPivotReportRequest, this field must be
+   * additionally specified by name in the RunPivotReportRequest's dimensions or
+   * metrics.
    * 
* * string field_name = 1; 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 index f874cfb5..4029c85e 100644 --- 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 @@ -80,8 +80,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * 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 Google Analytics 360 properties can request - * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). + * (`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; @@ -101,8 +101,8 @@ public boolean hasStartMinutesAgo() { * 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 Google Analytics 360 properties can request - * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). + * (`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; @@ -126,8 +126,8 @@ public int getStartMinutesAgo() { * 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 Google Analytics 360 properties can request - * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). + * (`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; @@ -148,8 +148,8 @@ public boolean hasEndMinutesAgo() { * 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 Google Analytics 360 properties can request - * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). + * (`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; @@ -619,8 +619,8 @@ public Builder mergeFrom( * 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 Google Analytics 360 properties can request - * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). + * (`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; @@ -640,8 +640,8 @@ public boolean hasStartMinutesAgo() { * 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 Google Analytics 360 properties can request - * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). + * (`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; @@ -661,8 +661,8 @@ public int getStartMinutesAgo() { * 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 Google Analytics 360 properties can request - * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). + * (`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; @@ -685,8 +685,8 @@ public Builder setStartMinutesAgo(int value) { * 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 Google Analytics 360 properties can request - * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). + * (`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; @@ -711,8 +711,8 @@ public Builder clearStartMinutesAgo() { * 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 Google Analytics 360 properties can request - * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). + * (`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; @@ -733,8 +733,8 @@ public boolean hasEndMinutesAgo() { * 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 Google Analytics 360 properties can request - * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). + * (`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; @@ -755,8 +755,8 @@ public int getEndMinutesAgo() { * 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 Google Analytics 360 properties can request - * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). + * (`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; @@ -780,8 +780,8 @@ public Builder setEndMinutesAgo(int value) { * 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 Google Analytics 360 properties can request - * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). + * (`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; 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 index 64a24d0e..3726076c 100644 --- 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 @@ -32,8 +32,8 @@ public interface MinuteRangeOrBuilder * 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 Google Analytics 360 properties can request - * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). + * (`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; @@ -50,8 +50,8 @@ public interface MinuteRangeOrBuilder * 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 Google Analytics 360 properties can request - * up to the last 60 minutes of event data (`startMinutesAgo <= 59`). + * (`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; @@ -70,8 +70,8 @@ public interface MinuteRangeOrBuilder * 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 Google Analytics 360 properties can request - * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). + * (`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; @@ -89,8 +89,8 @@ public interface MinuteRangeOrBuilder * 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 Google Analytics 360 properties can request - * any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). + * (`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; 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 index 263d70da..1aed1a55 100644 --- 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 @@ -22,7 +22,9 @@ * * *
- * The sort options.
+ * Order bys define how rows will be sorted in the response. For example,
+ * ordering rows by descending event count is one ordering, and ordering rows by
+ * the event name string is a different ordering.
  * 
* * Protobuf type {@code google.analytics.data.v1beta.OrderBy} @@ -4395,7 +4397,9 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The sort options.
+   * Order bys define how rows will be sorted in the response. For example,
+   * ordering rows by descending event count is one ordering, and ordering rows by
+   * the event name string is a different ordering.
    * 
* * Protobuf type {@code google.analytics.data.v1beta.OrderBy} 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 index d4917d57..fc02c023 100644 --- 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 @@ -129,8 +129,8 @@ public com.google.analytics.data.v1beta.QuotaStatusOrBuilder getTokensPerDayOrBu *
    * 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.
+   * consumes a single number of tokens, and that number is deducted from all of
+   * the hourly, daily, and per project hourly quotas.
    * 
* * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; @@ -147,8 +147,8 @@ public 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.
+   * consumes a single number of tokens, and that number is deducted from all of
+   * the hourly, daily, and per project hourly quotas.
    * 
* * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; @@ -167,8 +167,8 @@ public 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.
+   * consumes a single number of tokens, and that number is deducted from all of
+   * the hourly, daily, and per project hourly quotas.
    * 
* * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; @@ -345,6 +345,70 @@ public com.google.analytics.data.v1beta.QuotaStatus getPotentiallyThresholdedReq return getPotentiallyThresholdedRequestsPerHour(); } + public static final int TOKENS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 6; + private com.google.analytics.data.v1beta.QuotaStatus tokensPerProjectPerHour_; + /** + * + * + *
+   * Analytics Properties can use up to 25% of their tokens per project per
+   * hour. This amounts to standard Analytics Properties can use up to 1,250
+   * tokens per project per hour, and Analytics 360 Properties can use 12,500
+   * tokens per project per hour. An API request consumes a single number of
+   * tokens, and that number is deducted from all of the hourly, daily, and per
+   * project hourly quotas.
+   * 
+ * + * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + * + * @return Whether the tokensPerProjectPerHour field is set. + */ + @java.lang.Override + public boolean hasTokensPerProjectPerHour() { + return tokensPerProjectPerHour_ != null; + } + /** + * + * + *
+   * Analytics Properties can use up to 25% of their tokens per project per
+   * hour. This amounts to standard Analytics Properties can use up to 1,250
+   * tokens per project per hour, and Analytics 360 Properties can use 12,500
+   * tokens per project per hour. An API request consumes a single number of
+   * tokens, and that number is deducted from all of the hourly, daily, and per
+   * project hourly quotas.
+   * 
+ * + * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + * + * @return The tokensPerProjectPerHour. + */ + @java.lang.Override + public com.google.analytics.data.v1beta.QuotaStatus getTokensPerProjectPerHour() { + return tokensPerProjectPerHour_ == null + ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() + : tokensPerProjectPerHour_; + } + /** + * + * + *
+   * Analytics Properties can use up to 25% of their tokens per project per
+   * hour. This amounts to standard Analytics Properties can use up to 1,250
+   * tokens per project per hour, and Analytics 360 Properties can use 12,500
+   * tokens per project per hour. An API request consumes a single number of
+   * tokens, and that number is deducted from all of the hourly, daily, and per
+   * project hourly quotas.
+   * 
+ * + * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + */ + @java.lang.Override + public com.google.analytics.data.v1beta.QuotaStatusOrBuilder + getTokensPerProjectPerHourOrBuilder() { + return getTokensPerProjectPerHour(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -374,6 +438,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (potentiallyThresholdedRequestsPerHour_ != null) { output.writeMessage(5, getPotentiallyThresholdedRequestsPerHour()); } + if (tokensPerProjectPerHour_ != null) { + output.writeMessage(6, getTokensPerProjectPerHour()); + } getUnknownFields().writeTo(output); } @@ -402,6 +469,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, getPotentiallyThresholdedRequestsPerHour()); } + if (tokensPerProjectPerHour_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTokensPerProjectPerHour()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -442,6 +513,10 @@ public boolean equals(final java.lang.Object obj) { if (!getPotentiallyThresholdedRequestsPerHour() .equals(other.getPotentiallyThresholdedRequestsPerHour())) return false; } + if (hasTokensPerProjectPerHour() != other.hasTokensPerProjectPerHour()) return false; + if (hasTokensPerProjectPerHour()) { + if (!getTokensPerProjectPerHour().equals(other.getTokensPerProjectPerHour())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -473,6 +548,10 @@ public int hashCode() { hash = (37 * hash) + POTENTIALLY_THRESHOLDED_REQUESTS_PER_HOUR_FIELD_NUMBER; hash = (53 * hash) + getPotentiallyThresholdedRequestsPerHour().hashCode(); } + if (hasTokensPerProjectPerHour()) { + hash = (37 * hash) + TOKENS_PER_PROJECT_PER_HOUR_FIELD_NUMBER; + hash = (53 * hash) + getTokensPerProjectPerHour().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -643,6 +722,12 @@ public Builder clear() { potentiallyThresholdedRequestsPerHour_ = null; potentiallyThresholdedRequestsPerHourBuilder_ = null; } + if (tokensPerProjectPerHourBuilder_ == null) { + tokensPerProjectPerHour_ = null; + } else { + tokensPerProjectPerHour_ = null; + tokensPerProjectPerHourBuilder_ = null; + } return this; } @@ -696,6 +781,11 @@ public com.google.analytics.data.v1beta.PropertyQuota buildPartial() { result.potentiallyThresholdedRequestsPerHour_ = potentiallyThresholdedRequestsPerHourBuilder_.build(); } + if (tokensPerProjectPerHourBuilder_ == null) { + result.tokensPerProjectPerHour_ = tokensPerProjectPerHour_; + } else { + result.tokensPerProjectPerHour_ = tokensPerProjectPerHourBuilder_.build(); + } onBuilt(); return result; } @@ -761,6 +851,9 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.PropertyQuota other) { mergePotentiallyThresholdedRequestsPerHour( other.getPotentiallyThresholdedRequestsPerHour()); } + if (other.hasTokensPerProjectPerHour()) { + mergeTokensPerProjectPerHour(other.getTokensPerProjectPerHour()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -821,6 +914,13 @@ public Builder mergeFrom( break; } // case 42 + case 50: + { + input.readMessage( + getTokensPerProjectPerHourFieldBuilder().getBuilder(), extensionRegistry); + + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1054,8 +1154,8 @@ public com.google.analytics.data.v1beta.QuotaStatusOrBuilder getTokensPerDayOrBu *
      * 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.
+     * consumes a single number of tokens, and that number is deducted from all of
+     * the hourly, daily, and per project hourly quotas.
      * 
* * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; @@ -1071,8 +1171,8 @@ public 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.
+     * consumes a single number of tokens, and that number is deducted from all of
+     * the hourly, daily, and per project hourly quotas.
      * 
* * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; @@ -1094,8 +1194,8 @@ public 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.
+     * consumes a single number of tokens, and that number is deducted from all of
+     * the hourly, daily, and per project hourly quotas.
      * 
* * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; @@ -1119,8 +1219,8 @@ public Builder setTokensPerHour(com.google.analytics.data.v1beta.QuotaStatus val *
      * 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.
+     * consumes a single number of tokens, and that number is deducted from all of
+     * the hourly, daily, and per project hourly quotas.
      * 
* * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; @@ -1142,8 +1242,8 @@ public Builder setTokensPerHour( *
      * 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.
+     * consumes a single number of tokens, and that number is deducted from all of
+     * the hourly, daily, and per project hourly quotas.
      * 
* * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; @@ -1171,8 +1271,8 @@ public Builder mergeTokensPerHour(com.google.analytics.data.v1beta.QuotaStatus v *
      * 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.
+     * consumes a single number of tokens, and that number is deducted from all of
+     * the hourly, daily, and per project hourly quotas.
      * 
* * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; @@ -1194,8 +1294,8 @@ public Builder clearTokensPerHour() { *
      * 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.
+     * consumes a single number of tokens, and that number is deducted from all of
+     * the hourly, daily, and per project hourly quotas.
      * 
* * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; @@ -1211,8 +1311,8 @@ public com.google.analytics.data.v1beta.QuotaStatus.Builder getTokensPerHourBuil *
      * 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.
+     * consumes a single number of tokens, and that number is deducted from all of
+     * the hourly, daily, and per project hourly quotas.
      * 
* * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; @@ -1232,8 +1332,8 @@ public com.google.analytics.data.v1beta.QuotaStatusOrBuilder getTokensPerHourOrB *
      * 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.
+     * consumes a single number of tokens, and that number is deducted from all of
+     * the hourly, daily, and per project hourly quotas.
      * 
* * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; @@ -1906,6 +2006,240 @@ public Builder clearPotentiallyThresholdedRequestsPerHour() { return potentiallyThresholdedRequestsPerHourBuilder_; } + private com.google.analytics.data.v1beta.QuotaStatus tokensPerProjectPerHour_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1beta.QuotaStatus, + com.google.analytics.data.v1beta.QuotaStatus.Builder, + com.google.analytics.data.v1beta.QuotaStatusOrBuilder> + tokensPerProjectPerHourBuilder_; + /** + * + * + *
+     * Analytics Properties can use up to 25% of their tokens per project per
+     * hour. This amounts to standard Analytics Properties can use up to 1,250
+     * tokens per project per hour, and Analytics 360 Properties can use 12,500
+     * tokens per project per hour. An API request consumes a single number of
+     * tokens, and that number is deducted from all of the hourly, daily, and per
+     * project hourly quotas.
+     * 
+ * + * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + * + * @return Whether the tokensPerProjectPerHour field is set. + */ + public boolean hasTokensPerProjectPerHour() { + return tokensPerProjectPerHourBuilder_ != null || tokensPerProjectPerHour_ != null; + } + /** + * + * + *
+     * Analytics Properties can use up to 25% of their tokens per project per
+     * hour. This amounts to standard Analytics Properties can use up to 1,250
+     * tokens per project per hour, and Analytics 360 Properties can use 12,500
+     * tokens per project per hour. An API request consumes a single number of
+     * tokens, and that number is deducted from all of the hourly, daily, and per
+     * project hourly quotas.
+     * 
+ * + * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + * + * @return The tokensPerProjectPerHour. + */ + public com.google.analytics.data.v1beta.QuotaStatus getTokensPerProjectPerHour() { + if (tokensPerProjectPerHourBuilder_ == null) { + return tokensPerProjectPerHour_ == null + ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() + : tokensPerProjectPerHour_; + } else { + return tokensPerProjectPerHourBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Analytics Properties can use up to 25% of their tokens per project per
+     * hour. This amounts to standard Analytics Properties can use up to 1,250
+     * tokens per project per hour, and Analytics 360 Properties can use 12,500
+     * tokens per project per hour. An API request consumes a single number of
+     * tokens, and that number is deducted from all of the hourly, daily, and per
+     * project hourly quotas.
+     * 
+ * + * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + */ + public Builder setTokensPerProjectPerHour(com.google.analytics.data.v1beta.QuotaStatus value) { + if (tokensPerProjectPerHourBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokensPerProjectPerHour_ = value; + onChanged(); + } else { + tokensPerProjectPerHourBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Analytics Properties can use up to 25% of their tokens per project per
+     * hour. This amounts to standard Analytics Properties can use up to 1,250
+     * tokens per project per hour, and Analytics 360 Properties can use 12,500
+     * tokens per project per hour. An API request consumes a single number of
+     * tokens, and that number is deducted from all of the hourly, daily, and per
+     * project hourly quotas.
+     * 
+ * + * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + */ + public Builder setTokensPerProjectPerHour( + com.google.analytics.data.v1beta.QuotaStatus.Builder builderForValue) { + if (tokensPerProjectPerHourBuilder_ == null) { + tokensPerProjectPerHour_ = builderForValue.build(); + onChanged(); + } else { + tokensPerProjectPerHourBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Analytics Properties can use up to 25% of their tokens per project per
+     * hour. This amounts to standard Analytics Properties can use up to 1,250
+     * tokens per project per hour, and Analytics 360 Properties can use 12,500
+     * tokens per project per hour. An API request consumes a single number of
+     * tokens, and that number is deducted from all of the hourly, daily, and per
+     * project hourly quotas.
+     * 
+ * + * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + */ + public Builder mergeTokensPerProjectPerHour( + com.google.analytics.data.v1beta.QuotaStatus value) { + if (tokensPerProjectPerHourBuilder_ == null) { + if (tokensPerProjectPerHour_ != null) { + tokensPerProjectPerHour_ = + com.google.analytics.data.v1beta.QuotaStatus.newBuilder(tokensPerProjectPerHour_) + .mergeFrom(value) + .buildPartial(); + } else { + tokensPerProjectPerHour_ = value; + } + onChanged(); + } else { + tokensPerProjectPerHourBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Analytics Properties can use up to 25% of their tokens per project per
+     * hour. This amounts to standard Analytics Properties can use up to 1,250
+     * tokens per project per hour, and Analytics 360 Properties can use 12,500
+     * tokens per project per hour. An API request consumes a single number of
+     * tokens, and that number is deducted from all of the hourly, daily, and per
+     * project hourly quotas.
+     * 
+ * + * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + */ + public Builder clearTokensPerProjectPerHour() { + if (tokensPerProjectPerHourBuilder_ == null) { + tokensPerProjectPerHour_ = null; + onChanged(); + } else { + tokensPerProjectPerHour_ = null; + tokensPerProjectPerHourBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Analytics Properties can use up to 25% of their tokens per project per
+     * hour. This amounts to standard Analytics Properties can use up to 1,250
+     * tokens per project per hour, and Analytics 360 Properties can use 12,500
+     * tokens per project per hour. An API request consumes a single number of
+     * tokens, and that number is deducted from all of the hourly, daily, and per
+     * project hourly quotas.
+     * 
+ * + * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + */ + public com.google.analytics.data.v1beta.QuotaStatus.Builder + getTokensPerProjectPerHourBuilder() { + + onChanged(); + return getTokensPerProjectPerHourFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Analytics Properties can use up to 25% of their tokens per project per
+     * hour. This amounts to standard Analytics Properties can use up to 1,250
+     * tokens per project per hour, and Analytics 360 Properties can use 12,500
+     * tokens per project per hour. An API request consumes a single number of
+     * tokens, and that number is deducted from all of the hourly, daily, and per
+     * project hourly quotas.
+     * 
+ * + * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + */ + public com.google.analytics.data.v1beta.QuotaStatusOrBuilder + getTokensPerProjectPerHourOrBuilder() { + if (tokensPerProjectPerHourBuilder_ != null) { + return tokensPerProjectPerHourBuilder_.getMessageOrBuilder(); + } else { + return tokensPerProjectPerHour_ == null + ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() + : tokensPerProjectPerHour_; + } + } + /** + * + * + *
+     * Analytics Properties can use up to 25% of their tokens per project per
+     * hour. This amounts to standard Analytics Properties can use up to 1,250
+     * tokens per project per hour, and Analytics 360 Properties can use 12,500
+     * tokens per project per hour. An API request consumes a single number of
+     * tokens, and that number is deducted from all of the hourly, daily, and per
+     * project hourly quotas.
+     * 
+ * + * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1beta.QuotaStatus, + com.google.analytics.data.v1beta.QuotaStatus.Builder, + com.google.analytics.data.v1beta.QuotaStatusOrBuilder> + getTokensPerProjectPerHourFieldBuilder() { + if (tokensPerProjectPerHourBuilder_ == null) { + tokensPerProjectPerHourBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.data.v1beta.QuotaStatus, + com.google.analytics.data.v1beta.QuotaStatus.Builder, + com.google.analytics.data.v1beta.QuotaStatusOrBuilder>( + getTokensPerProjectPerHour(), getParentForChildren(), isClean()); + tokensPerProjectPerHour_ = null; + } + return tokensPerProjectPerHourBuilder_; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); 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 index 983f5733..d62a0a43 100644 --- 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 @@ -70,8 +70,8 @@ public interface PropertyQuotaOrBuilder *
    * 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.
+   * consumes a single number of tokens, and that number is deducted from all of
+   * the hourly, daily, and per project hourly quotas.
    * 
* * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; @@ -85,8 +85,8 @@ public interface PropertyQuotaOrBuilder *
    * 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.
+   * consumes a single number of tokens, and that number is deducted from all of
+   * the hourly, daily, and per project hourly quotas.
    * 
* * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; @@ -100,8 +100,8 @@ public interface PropertyQuotaOrBuilder *
    * 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.
+   * consumes a single number of tokens, and that number is deducted from all of
+   * the hourly, daily, and per project hourly quotas.
    * 
* * .google.analytics.data.v1beta.QuotaStatus tokens_per_hour = 2; @@ -234,4 +234,54 @@ public interface PropertyQuotaOrBuilder */ com.google.analytics.data.v1beta.QuotaStatusOrBuilder getPotentiallyThresholdedRequestsPerHourOrBuilder(); + + /** + * + * + *
+   * Analytics Properties can use up to 25% of their tokens per project per
+   * hour. This amounts to standard Analytics Properties can use up to 1,250
+   * tokens per project per hour, and Analytics 360 Properties can use 12,500
+   * tokens per project per hour. An API request consumes a single number of
+   * tokens, and that number is deducted from all of the hourly, daily, and per
+   * project hourly quotas.
+   * 
+ * + * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + * + * @return Whether the tokensPerProjectPerHour field is set. + */ + boolean hasTokensPerProjectPerHour(); + /** + * + * + *
+   * Analytics Properties can use up to 25% of their tokens per project per
+   * hour. This amounts to standard Analytics Properties can use up to 1,250
+   * tokens per project per hour, and Analytics 360 Properties can use 12,500
+   * tokens per project per hour. An API request consumes a single number of
+   * tokens, and that number is deducted from all of the hourly, daily, and per
+   * project hourly quotas.
+   * 
+ * + * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + * + * @return The tokensPerProjectPerHour. + */ + com.google.analytics.data.v1beta.QuotaStatus getTokensPerProjectPerHour(); + /** + * + * + *
+   * Analytics Properties can use up to 25% of their tokens per project per
+   * hour. This amounts to standard Analytics Properties can use up to 1,250
+   * tokens per project per hour, and Analytics 360 Properties can use 12,500
+   * tokens per project per hour. An API request consumes a single number of
+   * tokens, and that number is deducted from all of the hourly, daily, and per
+   * project hourly quotas.
+   * 
+ * + * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; + */ + com.google.analytics.data.v1beta.QuotaStatusOrBuilder getTokensPerProjectPerHourOrBuilder(); } 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 index 768e8696..a9fe7647 100644 --- 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 @@ -297,93 +297,96 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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" + + "\022\022\n\naccumulate\030\001 \001(\010\"\312\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" + + "\210\001\001\022\031\n\014empty_reason\030\007 \001(\tH\003\210\001\001\022$\n\027subjec" + + "t_to_thresholding\030\010 \001(\010H\004\210\001\001\032\275\002\n\031SchemaR" + + "estrictionResponse\022\204\001\n\032active_metric_res" + + "trictions\030\001 \003(\0132`.google.analytics.data." + + "v1beta.ResponseMetaData.SchemaRestrictio" + + "nResponse.ActiveMetricRestriction\032\230\001\n\027Ac" + + "tiveMetricRestriction\022\030\n\013metric_name\030\001 \001" + + "(\tH\000\210\001\001\022S\n\027restricted_metric_types\030\002 \003(\016" + + "22.google.analytics.data.v1beta.Restrict" + + "edMetricTypeB\016\n\014_metric_nameB\036\n\034_schema_" + + "restriction_responseB\020\n\016_currency_codeB\014" + + "\n\n_time_zoneB\017\n\r_empty_reasonB\032\n\030_subjec" + + "t_to_thresholding\"\037\n\017DimensionHeader\022\014\n\004" + + "name\030\001 \001(\t\"T\n\014MetricHeader\022\014\n\004name\030\001 \001(\t" + + "\0226\n\004type\030\002 \001(\0162(.google.analytics.data.v" + + "1beta.MetricType\"u\n\013PivotHeader\022S\n\027pivot" + + "_dimension_headers\030\001 \003(\01322.google.analyt" + + "ics.data.v1beta.PivotDimensionHeader\022\021\n\t" + + "row_count\030\002 \001(\005\"^\n\024PivotDimensionHeader\022" + + "F\n\020dimension_values\030\001 \003(\0132,.google.analy" + + "tics.data.v1beta.DimensionValue\"\217\001\n\003Row\022" + + "F\n\020dimension_values\030\001 \003(\0132,.google.analy" + + "tics.data.v1beta.DimensionValue\022@\n\rmetri" + + "c_values\030\002 \003(\0132).google.analytics.data.v" + + "1beta.MetricValue\".\n\016DimensionValue\022\017\n\005v" + + "alue\030\001 \001(\tH\000B\013\n\tone_value\"+\n\013MetricValue" + + "\022\017\n\005value\030\004 \001(\tH\000B\013\n\tone_value\"J\n\014Numeri" + + "cValue\022\025\n\013int64_value\030\001 \001(\003H\000\022\026\n\014double_" + + "value\030\002 \001(\001H\000B\013\n\tone_value\"\343\003\n\rPropertyQ" + + "uota\022A\n\016tokens_per_day\030\001 \001(\0132).google.an" + + "alytics.data.v1beta.QuotaStatus\022B\n\017token" + + "s_per_hour\030\002 \001(\0132).google.analytics.data" + + ".v1beta.QuotaStatus\022F\n\023concurrent_reques" + + "ts\030\003 \001(\0132).google.analytics.data.v1beta." + + "QuotaStatus\022U\n\"server_errors_per_project" + + "_per_hour\030\004 \001(\0132).google.analytics.data." + + "v1beta.QuotaStatus\022\\\n)potentially_thresh" + + "olded_requests_per_hour\030\005 \001(\0132).google.a" + + "nalytics.data.v1beta.QuotaStatus\022N\n\033toke" + + "ns_per_project_per_hour\030\006 \001(\0132).google.a" + + "nalytics.data.v1beta.QuotaStatus\"2\n\013Quot" + + "aStatus\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\013description\030\003 \001" + + "(\t\022\034\n\024deprecated_api_names\030\004 \003(\t\022\031\n\021cust" + + "om_definition\030\005 \001(\010\022\020\n\010category\030\007 \001(\t\"\222\003" + + "\n\016MetricMetadata\022\020\n\010api_name\030\001 \001(\t\022\017\n\007ui" + + "_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\034\n\024depr" + + "ecated_api_names\030\004 \003(\t\0226\n\004type\030\005 \001(\0162(.g" + + "oogle.analytics.data.v1beta.MetricType\022\022" + + "\n\nexpression\030\006 \001(\t\022\031\n\021custom_definition\030" + + "\007 \001(\010\022S\n\017blocked_reasons\030\010 \003(\0162:.google." + + "analytics.data.v1beta.MetricMetadata.Blo" + + "ckedReason\022\020\n\010category\030\n \001(\t\"\\\n\rBlockedR" + + "eason\022\036\n\032BLOCKED_REASON_UNSPECIFIED\020\000\022\026\n" + + "\022NO_REVENUE_METRICS\020\001\022\023\n\017NO_COST_METRICS" + + "\020\002\"\334\001\n\026DimensionCompatibility\022P\n\022dimensi" + + "on_metadata\030\001 \001(\0132/.google.analytics.dat" + + "a.v1beta.DimensionMetadataH\000\210\001\001\022G\n\rcompa" + + "tibility\030\002 \001(\0162+.google.analytics.data.v" + + "1beta.CompatibilityH\001\210\001\001B\025\n\023_dimension_m" + + "etadataB\020\n\016_compatibility\"\320\001\n\023MetricComp" + + "atibility\022J\n\017metric_metadata\030\001 \001(\0132,.goo" + + "gle.analytics.data.v1beta.MetricMetadata" + "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" + + "alytics.data.v1beta.CompatibilityH\001\210\001\001B\022" + + "\n\020_metric_metadataB\020\n\016_compatibility*g\n\021" + + "MetricAggregation\022\"\n\036METRIC_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\nMetricType\022\033\n\027" + + "METRIC_TYPE_UNSPECIFIED\020\000\022\020\n\014TYPE_INTEGE" + + "R\020\001\022\016\n\nTYPE_FLOAT\020\002\022\020\n\014TYPE_SECONDS\020\004\022\025\n" + + "\021TYPE_MILLISECONDS\020\005\022\020\n\014TYPE_MINUTES\020\006\022\016" + + "\n\nTYPE_HOURS\020\007\022\021\n\rTYPE_STANDARD\020\010\022\021\n\rTYP" + + "E_CURRENCY\020\t\022\r\n\tTYPE_FEET\020\n\022\016\n\nTYPE_MILE" + + "S\020\013\022\017\n\013TYPE_METERS\020\014\022\023\n\017TYPE_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\rCompatibility\022\035\n\031C" + + "OMPATIBILITY_UNSPECIFIED\020\000\022\016\n\nCOMPATIBLE" + + "\020\001\022\020\n\014INCOMPATIBLE\020\002By\n com.google.analy" + + "tics.data.v1betaB\021ReportingApiProtoP\001Z@g" + + "oogle.golang.org/genproto/googleapis/ana" + + "lytics/data/v1beta;datab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -602,10 +605,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CurrencyCode", "TimeZone", "EmptyReason", + "SubjectToThresholding", "SchemaRestrictionResponse", "CurrencyCode", "TimeZone", "EmptyReason", + "SubjectToThresholding", }); internal_static_google_analytics_data_v1beta_ResponseMetaData_SchemaRestrictionResponse_descriptor = internal_static_google_analytics_data_v1beta_ResponseMetaData_descriptor @@ -702,6 +707,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConcurrentRequests", "ServerErrorsPerProjectPerHour", "PotentiallyThresholdedRequestsPerHour", + "TokensPerProjectPerHour", }); internal_static_google_analytics_data_v1beta_QuotaStatus_descriptor = getDescriptor().getMessageTypes().get(24); 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 index 2eacb4cc..746afe3f 100644 --- 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 @@ -2872,6 +2872,53 @@ public com.google.protobuf.ByteString getEmptyReasonBytes() { } } + public static final int SUBJECT_TO_THRESHOLDING_FIELD_NUMBER = 8; + private boolean subjectToThresholding_; + /** + * + * + *
+   * If `subjectToThresholding` is true, this report is subject to thresholding
+   * and only returns data that meets the minimum aggregation thresholds. It is
+   * possible for a request to be subject to thresholding thresholding and no
+   * data is absent from the report, and this happens when all data is above the
+   * thresholds. To learn more, see [Data
+   * thresholds](https://support.google.com/analytics/answer/9383630) and [About
+   * Demographics and
+   * Interests](https://support.google.com/analytics/answer/2799357).
+   * 
+ * + * optional bool subject_to_thresholding = 8; + * + * @return Whether the subjectToThresholding field is set. + */ + @java.lang.Override + public boolean hasSubjectToThresholding() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+   * If `subjectToThresholding` is true, this report is subject to thresholding
+   * and only returns data that meets the minimum aggregation thresholds. It is
+   * possible for a request to be subject to thresholding thresholding and no
+   * data is absent from the report, and this happens when all data is above the
+   * thresholds. To learn more, see [Data
+   * thresholds](https://support.google.com/analytics/answer/9383630) and [About
+   * Demographics and
+   * Interests](https://support.google.com/analytics/answer/2799357).
+   * 
+ * + * optional bool subject_to_thresholding = 8; + * + * @return The subjectToThresholding. + */ + @java.lang.Override + public boolean getSubjectToThresholding() { + return subjectToThresholding_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2901,6 +2948,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, emptyReason_); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeBool(8, subjectToThresholding_); + } getUnknownFields().writeTo(output); } @@ -2927,6 +2977,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, emptyReason_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, subjectToThresholding_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2961,6 +3014,10 @@ public boolean equals(final java.lang.Object obj) { if (hasEmptyReason()) { if (!getEmptyReason().equals(other.getEmptyReason())) return false; } + if (hasSubjectToThresholding() != other.hasSubjectToThresholding()) return false; + if (hasSubjectToThresholding()) { + if (getSubjectToThresholding() != other.getSubjectToThresholding()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2990,6 +3047,10 @@ public int hashCode() { hash = (37 * hash) + EMPTY_REASON_FIELD_NUMBER; hash = (53 * hash) + getEmptyReason().hashCode(); } + if (hasSubjectToThresholding()) { + hash = (37 * hash) + SUBJECT_TO_THRESHOLDING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSubjectToThresholding()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3151,6 +3212,8 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000004); emptyReason_ = ""; bitField0_ = (bitField0_ & ~0x00000008); + subjectToThresholding_ = false; + bitField0_ = (bitField0_ & ~0x00000010); return this; } @@ -3201,6 +3264,10 @@ public com.google.analytics.data.v1beta.ResponseMetaData buildPartial() { to_bitField0_ |= 0x00000008; } result.emptyReason_ = emptyReason_; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.subjectToThresholding_ = subjectToThresholding_; + to_bitField0_ |= 0x00000010; + } result.bitField0_ = to_bitField0_; onBuilt(); return result; @@ -3273,6 +3340,9 @@ public Builder mergeFrom(com.google.analytics.data.v1beta.ResponseMetaData other emptyReason_ = other.emptyReason_; onChanged(); } + if (other.hasSubjectToThresholding()) { + setSubjectToThresholding(other.getSubjectToThresholding()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -3330,6 +3400,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 58 + case 64: + { + subjectToThresholding_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4066,6 +4142,101 @@ public Builder setEmptyReasonBytes(com.google.protobuf.ByteString value) { return this; } + private boolean subjectToThresholding_; + /** + * + * + *
+     * If `subjectToThresholding` is true, this report is subject to thresholding
+     * and only returns data that meets the minimum aggregation thresholds. It is
+     * possible for a request to be subject to thresholding thresholding and no
+     * data is absent from the report, and this happens when all data is above the
+     * thresholds. To learn more, see [Data
+     * thresholds](https://support.google.com/analytics/answer/9383630) and [About
+     * Demographics and
+     * Interests](https://support.google.com/analytics/answer/2799357).
+     * 
+ * + * optional bool subject_to_thresholding = 8; + * + * @return Whether the subjectToThresholding field is set. + */ + @java.lang.Override + public boolean hasSubjectToThresholding() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * + * + *
+     * If `subjectToThresholding` is true, this report is subject to thresholding
+     * and only returns data that meets the minimum aggregation thresholds. It is
+     * possible for a request to be subject to thresholding thresholding and no
+     * data is absent from the report, and this happens when all data is above the
+     * thresholds. To learn more, see [Data
+     * thresholds](https://support.google.com/analytics/answer/9383630) and [About
+     * Demographics and
+     * Interests](https://support.google.com/analytics/answer/2799357).
+     * 
+ * + * optional bool subject_to_thresholding = 8; + * + * @return The subjectToThresholding. + */ + @java.lang.Override + public boolean getSubjectToThresholding() { + return subjectToThresholding_; + } + /** + * + * + *
+     * If `subjectToThresholding` is true, this report is subject to thresholding
+     * and only returns data that meets the minimum aggregation thresholds. It is
+     * possible for a request to be subject to thresholding thresholding and no
+     * data is absent from the report, and this happens when all data is above the
+     * thresholds. To learn more, see [Data
+     * thresholds](https://support.google.com/analytics/answer/9383630) and [About
+     * Demographics and
+     * Interests](https://support.google.com/analytics/answer/2799357).
+     * 
+ * + * optional bool subject_to_thresholding = 8; + * + * @param value The subjectToThresholding to set. + * @return This builder for chaining. + */ + public Builder setSubjectToThresholding(boolean value) { + bitField0_ |= 0x00000010; + subjectToThresholding_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If `subjectToThresholding` is true, this report is subject to thresholding
+     * and only returns data that meets the minimum aggregation thresholds. It is
+     * possible for a request to be subject to thresholding thresholding and no
+     * data is absent from the report, and this happens when all data is above the
+     * thresholds. To learn more, see [Data
+     * thresholds](https://support.google.com/analytics/answer/9383630) and [About
+     * Demographics and
+     * Interests](https://support.google.com/analytics/answer/2799357).
+     * 
+ * + * optional bool subject_to_thresholding = 8; + * + * @return This builder for chaining. + */ + public Builder clearSubjectToThresholding() { + bitField0_ = (bitField0_ & ~0x00000010); + subjectToThresholding_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-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 index bbe87653..0256eb05 100644 --- 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 @@ -229,4 +229,43 @@ public interface ResponseMetaDataOrBuilder * @return The bytes for emptyReason. */ com.google.protobuf.ByteString getEmptyReasonBytes(); + + /** + * + * + *
+   * If `subjectToThresholding` is true, this report is subject to thresholding
+   * and only returns data that meets the minimum aggregation thresholds. It is
+   * possible for a request to be subject to thresholding thresholding and no
+   * data is absent from the report, and this happens when all data is above the
+   * thresholds. To learn more, see [Data
+   * thresholds](https://support.google.com/analytics/answer/9383630) and [About
+   * Demographics and
+   * Interests](https://support.google.com/analytics/answer/2799357).
+   * 
+ * + * optional bool subject_to_thresholding = 8; + * + * @return Whether the subjectToThresholding field is set. + */ + boolean hasSubjectToThresholding(); + /** + * + * + *
+   * If `subjectToThresholding` is true, this report is subject to thresholding
+   * and only returns data that meets the minimum aggregation thresholds. It is
+   * possible for a request to be subject to thresholding thresholding and no
+   * data is absent from the report, and this happens when all data is above the
+   * thresholds. To learn more, see [Data
+   * thresholds](https://support.google.com/analytics/answer/9383630) and [About
+   * Demographics and
+   * Interests](https://support.google.com/analytics/answer/2799357).
+   * 
+ * + * optional bool subject_to_thresholding = 8; + * + * @return The subjectToThresholding. + */ + boolean getSubjectToThresholding(); } 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 index 704e8151..92c54c59 100644 --- 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 @@ -273,8 +273,7 @@ public com.google.analytics.data.v1beta.MetricOrBuilder getMetricsOrBuilder(int * * *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
+   * The filter clause of dimensions. Metrics cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; @@ -289,8 +288,7 @@ public boolean hasDimensionFilter() { * * *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
+   * The filter clause of dimensions. Metrics cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; @@ -307,8 +305,7 @@ public 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.
+   * The filter clause of dimensions. Metrics cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; @@ -325,8 +322,7 @@ public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getDimensionFi * *
    * 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.
+   * SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; @@ -342,8 +338,7 @@ public 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.
+   * SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; @@ -361,8 +356,7 @@ public 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.
+   * SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; @@ -2288,8 +2282,7 @@ public java.util.List getMetric * * *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
+     * The filter clause of dimensions. Metrics cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; @@ -2303,8 +2296,7 @@ public boolean hasDimensionFilter() { * * *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
+     * The filter clause of dimensions. Metrics cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; @@ -2324,8 +2316,7 @@ public 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.
+     * The filter clause of dimensions. Metrics cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; @@ -2347,8 +2338,7 @@ public Builder setDimensionFilter(com.google.analytics.data.v1beta.FilterExpress * * *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
+     * The filter clause of dimensions. Metrics cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; @@ -2368,8 +2358,7 @@ public Builder setDimensionFilter( * * *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
+     * The filter clause of dimensions. Metrics cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; @@ -2395,8 +2384,7 @@ public Builder mergeDimensionFilter(com.google.analytics.data.v1beta.FilterExpre * * *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
+     * The filter clause of dimensions. Metrics cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; @@ -2416,8 +2404,7 @@ public Builder clearDimensionFilter() { * * *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
+     * The filter clause of dimensions. Metrics cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; @@ -2431,8 +2418,7 @@ public com.google.analytics.data.v1beta.FilterExpression.Builder getDimensionFil * * *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
+     * The filter clause of dimensions. Metrics cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; @@ -2451,8 +2437,7 @@ public com.google.analytics.data.v1beta.FilterExpression.Builder getDimensionFil * * *
-     * The filter clause of dimensions. Dimensions must be requested to be used in
-     * this filter. Metrics cannot be used in this filter.
+     * The filter clause of dimensions. Metrics cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; @@ -2485,8 +2470,7 @@ public com.google.analytics.data.v1beta.FilterExpression.Builder getDimensionFil * *
      * 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; @@ -2501,8 +2485,7 @@ public 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; @@ -2523,8 +2506,7 @@ public 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; @@ -2547,8 +2529,7 @@ public Builder setMetricFilter(com.google.analytics.data.v1beta.FilterExpression * *
      * 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; @@ -2569,8 +2550,7 @@ public Builder setMetricFilter( * *
      * 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; @@ -2597,8 +2577,7 @@ public Builder mergeMetricFilter(com.google.analytics.data.v1beta.FilterExpressi * *
      * 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; @@ -2619,8 +2598,7 @@ public Builder clearMetricFilter() { * *
      * 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; @@ -2635,8 +2613,7 @@ public com.google.analytics.data.v1beta.FilterExpression.Builder 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; @@ -2655,8 +2632,7 @@ public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getMetricFilte * *
      * 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.
+     * SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; 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 index 3db31e98..28123569 100644 --- 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 @@ -164,8 +164,7 @@ public interface RunRealtimeReportRequestOrBuilder * * *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
+   * The filter clause of dimensions. Metrics cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; @@ -177,8 +176,7 @@ public interface RunRealtimeReportRequestOrBuilder * * *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
+   * The filter clause of dimensions. Metrics cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; @@ -190,8 +188,7 @@ public interface RunRealtimeReportRequestOrBuilder * * *
-   * The filter clause of dimensions. Dimensions must be requested to be used in
-   * this filter. Metrics cannot be used in this filter.
+   * The filter clause of dimensions. Metrics cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression dimension_filter = 4; @@ -203,8 +200,7 @@ public interface RunRealtimeReportRequestOrBuilder * *
    * 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.
+   * SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; @@ -217,8 +213,7 @@ public interface RunRealtimeReportRequestOrBuilder * *
    * 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.
+   * SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; @@ -231,8 +226,7 @@ public interface RunRealtimeReportRequestOrBuilder * *
    * 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.
+   * SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 5; 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 index 86ae063d..51a3d28b 100644 --- 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 @@ -424,8 +424,8 @@ public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getDimensionFi * * *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Dimensions cannot be used in this filter.
+   * The filter clause of metrics. Applied after aggregating the report's rows,
+   * similar to SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -440,8 +440,8 @@ public boolean hasMetricFilter() { * * *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Dimensions cannot be used in this filter.
+   * The filter clause of metrics. Applied after aggregating the report's rows,
+   * similar to SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -458,8 +458,8 @@ public 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.
+   * The filter clause of metrics. Applied after aggregating the report's rows,
+   * similar to SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3188,8 +3188,8 @@ public com.google.analytics.data.v1beta.FilterExpression.Builder getDimensionFil * * *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
+     * The filter clause of metrics. Applied after aggregating the report's rows,
+     * similar to SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3203,8 +3203,8 @@ public boolean hasMetricFilter() { * * *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
+     * The filter clause of metrics. Applied after aggregating the report's rows,
+     * similar to SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3224,8 +3224,8 @@ public 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.
+     * The filter clause of metrics. Applied after aggregating the report's rows,
+     * similar to SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3247,8 +3247,8 @@ public Builder setMetricFilter(com.google.analytics.data.v1beta.FilterExpression * * *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
+     * The filter clause of metrics. Applied after aggregating the report's rows,
+     * similar to SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3268,8 +3268,8 @@ public Builder setMetricFilter( * * *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
+     * The filter clause of metrics. Applied after aggregating the report's rows,
+     * similar to SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3295,8 +3295,8 @@ public Builder mergeMetricFilter(com.google.analytics.data.v1beta.FilterExpressi * * *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
+     * The filter clause of metrics. Applied after aggregating the report's rows,
+     * similar to SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3316,8 +3316,8 @@ public Builder clearMetricFilter() { * * *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
+     * The filter clause of metrics. Applied after aggregating the report's rows,
+     * similar to SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3331,8 +3331,8 @@ public com.google.analytics.data.v1beta.FilterExpression.Builder getMetricFilter * * *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
+     * The filter clause of metrics. Applied after aggregating the report's rows,
+     * similar to SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -3350,8 +3350,8 @@ public com.google.analytics.data.v1beta.FilterExpressionOrBuilder getMetricFilte * * *
-     * The filter clause of metrics. Applied at post aggregation phase, similar to
-     * SQL having-clause. Dimensions cannot be used in this filter.
+     * The filter clause of metrics. Applied after aggregating the report's rows,
+     * similar to SQL having-clause. Dimensions cannot be used in this filter.
      * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; 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 index 8453277c..e5706cc6 100644 --- 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 @@ -284,8 +284,8 @@ public interface RunReportRequestOrBuilder * * *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Dimensions cannot be used in this filter.
+   * The filter clause of metrics. Applied after aggregating the report's rows,
+   * similar to SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -297,8 +297,8 @@ public interface RunReportRequestOrBuilder * * *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Dimensions cannot be used in this filter.
+   * The filter clause of metrics. Applied after aggregating the report's rows,
+   * similar to SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; @@ -310,8 +310,8 @@ public interface RunReportRequestOrBuilder * * *
-   * The filter clause of metrics. Applied at post aggregation phase, similar to
-   * SQL having-clause. Dimensions cannot be used in this filter.
+   * The filter clause of metrics. Applied after aggregating the report's rows,
+   * similar to SQL having-clause. Dimensions cannot be used in this filter.
    * 
* * .google.analytics.data.v1beta.FilterExpression metric_filter = 6; 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 index b32577e7..e5ee72cc 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -41,6 +41,10 @@ service BetaAnalyticsData { // 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. + // + // For a guide to constructing requests & understanding responses, see + // [Creating a + // Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics). rpc RunReport(RunReportRequest) returns (RunReportResponse) { option (google.api.http) = { post: "/v1beta/{property=properties/*}:runReport" @@ -95,9 +99,15 @@ service BetaAnalyticsData { 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. + // Returns a customized report of realtime event data for your property. + // Events appear in realtime reports seconds after they have been sent to + // the Google Analytics. Realtime reports show events and usage data for the + // periods of time ranging from the present moment to 30 minutes ago (up to + // 60 minutes for Google Analytics 360 properties). + // + // For a guide to constructing realtime requests & understanding responses, + // see [Creating a Realtime + // Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics). rpc RunRealtimeReport(RunRealtimeReportRequest) returns (RunRealtimeReportResponse) { option (google.api.http) = { post: "/v1beta/{property=properties/*}:runRealtimeReport" @@ -219,8 +229,8 @@ message RunReportRequest { // 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. + // The filter clause of metrics. Applied after aggregating the report's rows, + // 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. @@ -542,13 +552,11 @@ message RunRealtimeReportRequest { // 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. + // The filter clause of dimensions. 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. + // SQL having-clause. 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 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 index a33d4553..6c6431b9 100644 --- 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 @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -52,8 +52,8 @@ message MinuteRange { // // If unspecified, `startMinutesAgo` is defaulted to 29. Standard Analytics // properties can request up to the last 30 minutes of event data - // (`startMinutesAgo <= 29`), and Google Analytics 360 properties can request - // up to the last 60 minutes of event data (`startMinutesAgo <= 59`). + // (`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. @@ -63,8 +63,8 @@ message MinuteRange { // // 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 Google Analytics 360 properties can request - // any minute in the last 60 minutes of event data (`endMinutesAgo <= 59`). + // (`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 @@ -76,7 +76,7 @@ message MinuteRange { // 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". +// responses are strings; for example, the city could be "Paris" or "New York". // Requests are allowed up to 9 dimensions. message Dimension { // The name of the dimension. See the [API @@ -168,9 +168,8 @@ message Metric { bool invisible = 3; } -// To express dimension or metric filters. -// The fields in the same FilterExpression need to be either all dimensions or -// all metrics. +// 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 { @@ -183,9 +182,8 @@ message FilterExpression { // 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. + // A primitive filter. In the same FilterExpression, all of the filter's + // field names need to be either all dimensions or all metrics. Filter filter = 4; } } @@ -217,10 +215,10 @@ message Filter { // Contains the string value. CONTAINS = 4; - // Full regular expression match with the string value. + // Full match for the regular expression with the string value. FULL_REGEXP = 5; - // Partial regular expression match with the string value. + // Partial match for the regular expression with the string value. PARTIAL_REGEXP = 6; } @@ -283,8 +281,12 @@ message Filter { NumericValue to_value = 2; } - // The dimension name or metric name. Must be a name defined in dimensions - // or metrics. + // The dimension name or metric name. + // + // In most methods, dimensions & metrics can be used for the first time in + // this field. However in a RunPivotReportRequest, this field must be + // additionally specified by name in the RunPivotReportRequest's dimensions or + // metrics. string field_name = 1; // Specify one type of filter for `Filter`. @@ -303,7 +305,9 @@ message Filter { } } -// The sort options. +// Order bys define how rows will be sorted in the response. For example, +// ordering rows by descending event count is one ordering, and ordering rows by +// the event name string is a different ordering. message OrderBy { // Sorts by metric values. message MetricOrderBy { @@ -604,6 +608,16 @@ message ResponseMetaData { // If empty reason is specified, the report is empty for this reason. optional string empty_reason = 7; + + // If `subjectToThresholding` is true, this report is subject to thresholding + // and only returns data that meets the minimum aggregation thresholds. It is + // possible for a request to be subject to thresholding thresholding and no + // data is absent from the report, and this happens when all data is above the + // thresholds. To learn more, see [Data + // thresholds](https://support.google.com/analytics/answer/9383630) and [About + // Demographics and + // Interests](https://support.google.com/analytics/answer/2799357). + optional bool subject_to_thresholding = 8; } // Describes a dimension column in the report. Dimensions requested in a report @@ -732,8 +746,8 @@ message PropertyQuota { // 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. + // consumes a single number of tokens, and that number is deducted from all of + // the hourly, daily, and per project hourly quotas. QuotaStatus tokens_per_hour = 2; // Standard Analytics Properties can send up to 10 concurrent requests; @@ -750,6 +764,14 @@ message PropertyQuota { // is individually counted for this quota if the request contains potentially // thresholded dimensions. QuotaStatus potentially_thresholded_requests_per_hour = 5; + + // Analytics Properties can use up to 25% of their tokens per project per + // hour. This amounts to standard Analytics Properties can use up to 1,250 + // tokens per project per hour, and Analytics 360 Properties can use 12,500 + // tokens per project per hour. An API request consumes a single number of + // tokens, and that number is deducted from all of the hourly, daily, and per + // project hourly quotas. + QuotaStatus tokens_per_project_per_hour = 6; } // Current state for a particular quota group. From 38d951a3c3bb402c278ca41122b100bc5c284f10 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 7 Nov 2022 21:48:32 +0000 Subject: [PATCH 218/225] chore(java): add a note in README for migrated split repos (#1687) (#616) * chore(java): add a note in README for migrated split repos Disable renovate bot and flaky bot for split repositories that have moved to the Java monorepo. The Java monorepo will pass the "monorepo=True" parameter to java.common_templates method in its owlbot.py files so that the migration note will not appear in the README in the monorepo. Co-authored-by: Jeff Ching Source-Link: https://togithub.com/googleapis/synthtool/commit/d4b291604f148cde065838c498bc8aa79b8dc10e Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:edae91ccdd2dded2f572ec341a768ad180305a3e8fbfd93064b28e237d35920a --- .github/.OwlBot.lock.yaml | 2 +- .github/ISSUE_TEMPLATE/bug_report.md | 5 +++ .github/ISSUE_TEMPLATE/feature_request.md | 5 +++ .kokoro/dependencies.sh | 51 ----------------------- .kokoro/nightly/integration.cfg | 2 +- .kokoro/nightly/java11-integration.cfg | 2 +- .kokoro/nightly/samples.cfg | 2 +- .kokoro/requirements.in | 2 + .kokoro/requirements.txt | 14 ++++--- README.md | 13 ++++-- renovate.json | 1 + 11 files changed, 36 insertions(+), 63 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 42327db5..77cf6087 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,4 +13,4 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:f14e3fefe8e361e85752bd9890c8e56f2fe25f1e89cbb9597e4e3c7a429203a3 + digest: sha256:edae91ccdd2dded2f572ec341a768ad180305a3e8fbfd93064b28e237d35920a diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 08b03705..105c9d11 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -4,6 +4,11 @@ about: Create a report to help us improve --- +:bus: This library has moved to +[google-cloud-java/java-analytics-data]( +https://github.com/googleapis/google-cloud-java/tree/main/java-analytics-data). +This repository will be archived in the future. + Thanks for stopping by to let us know something could be better! **PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index 754e30c6..a6821b36 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -4,6 +4,11 @@ about: Suggest an idea for this library --- +:bus: This library has moved to +[google-cloud-java/java-analytics-data]( +https://github.com/googleapis/google-cloud-java/tree/main/java-analytics-data). +This repository will be archived in the future. + Thanks for stopping by to let us know something could be better! **PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index d7476cfe..bd896024 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -57,54 +57,3 @@ retry_with_backoff 3 10 \ -Dclirr.skip=true mvn -B dependency:analyze -DfailOnWarning=true - -echo "****************** DEPENDENCY LIST COMPLETENESS CHECK *******************" -## Run dependency list completeness check -function completenessCheck() { - # Output dep list with compile scope generated using the original pom - # Running mvn dependency:list on Java versions that support modules will also include the module of the dependency. - # This is stripped from the output as it is not present in the flattened pom. - # Only dependencies with 'compile' or 'runtime' scope are included from original dependency list. - msg "Generating dependency list using original pom..." - mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e 's/ --.*//' >.org-list.txt - - # Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes) - msg "Generating dependency list using flattened pom..." - mvn dependency:list -f .flattened-pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' >.new-list.txt - - # Compare two dependency lists - msg "Comparing dependency lists..." - diff .org-list.txt .new-list.txt >.diff.txt - if [[ $? == 0 ]] - then - msg "Success. No diff!" - else - msg "Diff found. See below: " - msg "You can also check .diff.txt file located in $1." - cat .diff.txt - return 1 - fi -} - -# Allow failures to continue running the script -set +e - -error_count=0 -for path in **/.flattened-pom.xml -do - # Check flattened pom in each dir that contains it for completeness - dir=$(dirname "$path") - pushd "$dir" - completenessCheck "$dir" - error_count=$(($error_count + $?)) - popd -done - -if [[ $error_count == 0 ]] -then - msg "All checks passed." - exit 0 -else - msg "Errors found. See log statements above." - exit 1 -fi diff --git a/.kokoro/nightly/integration.cfg b/.kokoro/nightly/integration.cfg index a2907a25..bd0297a3 100644 --- a/.kokoro/nightly/integration.cfg +++ b/.kokoro/nightly/integration.cfg @@ -23,7 +23,7 @@ env_vars: { env_vars: { key: "ENABLE_FLAKYBOT" - value: "true" + value: "false" } env_vars: { diff --git a/.kokoro/nightly/java11-integration.cfg b/.kokoro/nightly/java11-integration.cfg index 58049cc3..dc51b65e 100644 --- a/.kokoro/nightly/java11-integration.cfg +++ b/.kokoro/nightly/java11-integration.cfg @@ -23,7 +23,7 @@ env_vars: { env_vars: { key: "ENABLE_FLAKYBOT" - value: "true" + value: "false" } env_vars: { diff --git a/.kokoro/nightly/samples.cfg b/.kokoro/nightly/samples.cfg index 9761fd86..fee6a838 100644 --- a/.kokoro/nightly/samples.cfg +++ b/.kokoro/nightly/samples.cfg @@ -34,5 +34,5 @@ env_vars: { env_vars: { key: "ENABLE_FLAKYBOT" - value: "true" + value: "false" } diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in index cfdc2e7e..6aa7cf2b 100644 --- a/.kokoro/requirements.in +++ b/.kokoro/requirements.in @@ -16,10 +16,12 @@ pycparser==2.21 pyperclip==1.8.2 python-dateutil==2.8.2 requests==2.27.1 +certifi==2022.9.24 importlib-metadata==4.8.3 zipp==3.6.0 google_api_core==2.8.2 google-cloud-storage==2.0.0 +google-resumable-media==2.3.3 google-cloud-core==2.3.1 typing-extensions==4.1.1 urllib3==1.26.12 diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt index 170f1c63..02ae42bb 100644 --- a/.kokoro/requirements.txt +++ b/.kokoro/requirements.txt @@ -16,10 +16,12 @@ cachetools==4.2.4 \ # via # -r requirements.in # google-auth -certifi==2022.9.14 \ - --hash=sha256:36973885b9542e6bd01dea287b2b4b3b21236307c56324fcc3f1160f2d655ed5 \ - --hash=sha256:e232343de1ab72c2aa521b625c80f699e356830fd0e2c620b465b304b17b0516 - # via requests +certifi==2022.9.24 \ + --hash=sha256:0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14 \ + --hash=sha256:90c1a32f1d68f940488354e36370f6cca89f0f106db09518524c88d6ed83f382 + # via + # -r requirements.in + # requests cffi==1.15.1 \ --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ @@ -218,7 +220,9 @@ google-crc32c==1.3.0 \ google-resumable-media==2.3.3 \ --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 - # via google-cloud-storage + # via + # -r requirements.in + # google-cloud-storage googleapis-common-protos==1.56.3 \ --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 diff --git a/README.md b/README.md index 69af377a..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.14.9 + 0.16.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.14.9' +implementation 'com.google.analytics:google-analytics-data:0.16.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.14.9" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.16.0" ``` ## Authentication diff --git a/renovate.json b/renovate.json index 916149cc..088271b4 100644 --- a/renovate.json +++ b/renovate.json @@ -1,4 +1,5 @@ { + "enabled": false, "extends": [ ":separateMajorReleases", ":combinePatchMinorReleases", From 9b4063ed0c1de1d5faa7eaf9c0a6819efa13e101 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 8 Nov 2022 16:14:36 +0000 Subject: [PATCH 219/225] chore: Set `rest_numeric_enums = False` for all gapic rules explicitly (#614) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 485623855 Source-Link: https://togithub.com/googleapis/googleapis/commit/807125e7953e32535710924fe4bf0362ac93754d Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/c4ddd6d651da69658a4762c5eafff5cd8f0e25c5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzRkZGQ2ZDY1MWRhNjk2NThhNDc2MmM1ZWFmZmY1Y2Q4ZjBlMjVjNSJ9 --- .../analytics/data/v1alpha/AlphaAnalyticsDataClient.java | 5 +---- .../analytics/data/v1beta/BetaAnalyticsDataClient.java | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java index 6746f674..0900a16b 100644 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java +++ b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java @@ -122,10 +122,7 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * AlphaAnalyticsDataSettings alphaAnalyticsDataSettings = - * AlphaAnalyticsDataSettings.newBuilder() - * .setTransportChannelProvider( - * AlphaAnalyticsDataSettings.defaultHttpJsonTransportProviderBuilder().build()) - * .build(); + * AlphaAnalyticsDataSettings.newHttpJsonBuilder().build(); * AlphaAnalyticsDataClient alphaAnalyticsDataClient = * AlphaAnalyticsDataClient.create(alphaAnalyticsDataSettings); * }
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 index cf16f329..276ed4ef 100644 --- 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 @@ -127,10 +127,7 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * BetaAnalyticsDataSettings betaAnalyticsDataSettings = - * BetaAnalyticsDataSettings.newBuilder() - * .setTransportChannelProvider( - * BetaAnalyticsDataSettings.defaultHttpJsonTransportProviderBuilder().build()) - * .build(); + * BetaAnalyticsDataSettings.newHttpJsonBuilder().build(); * BetaAnalyticsDataClient betaAnalyticsDataClient = * BetaAnalyticsDataClient.create(betaAnalyticsDataSettings); * }
From 9f5cd464e9eeef5e40013d6ef55b29adbc21d81c Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 8 Nov 2022 21:42:19 +0100 Subject: [PATCH 220/225] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.4 (#612) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.3` -> `26.1.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.4/compatibility-slim/26.1.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.4/confidence-slim/26.1.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-data). --- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c3acb0ce..c851feb4 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 26.1.3 + 26.1.4 pom import diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 6a0b464e..6d21270a 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -28,7 +28,7 @@ com.google.cloud libraries-bom - 26.1.3 + 26.1.4 pom import From ae91d59f64334328c44c14613b1989d520582598 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit <90280028+ddixit14@users.noreply.github.com> Date: Thu, 23 Mar 2023 13:54:08 -0400 Subject: [PATCH 221/225] chore: Disabling owlbot (#636) --- .github/.OwlBot.lock.yaml | 16 ---------------- .github/.OwlBot.yaml | 29 ----------------------------- owlbot.py | 24 ------------------------ 3 files changed, 69 deletions(-) delete mode 100644 .github/.OwlBot.lock.yaml delete mode 100644 .github/.OwlBot.yaml delete mode 100644 owlbot.py diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml deleted file mode 100644 index 77cf6087..00000000 --- a/.github/.OwlBot.lock.yaml +++ /dev/null @@ -1,16 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -docker: - image: gcr.io/cloud-devrel-public-resources/owlbot-java:latest - digest: sha256:edae91ccdd2dded2f572ec341a768ad180305a3e8fbfd93064b28e237d35920a diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml deleted file mode 100644 index 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/owlbot.py b/owlbot.py deleted file mode 100644 index dca9d867..00000000 --- a/owlbot.py +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# https://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -import synthtool as s -from synthtool.languages import java - - -for library in s.get_staging_dirs(): - # put any special-case replacements here - s.move(library) - -s.remove_staging_dirs() -java.common_templates() From 2e9bd8da6e7d3e2ec7d0bfee2b7491d55daadffb Mon Sep 17 00:00:00 2001 From: Deepankar Dixit <90280028+ddixit14@users.noreply.github.com> Date: Wed, 3 May 2023 17:30:51 +0000 Subject: [PATCH 222/225] chore: Disabling release-please (#638) --- .github/release-please.yml | 8 -------- 1 file changed, 8 deletions(-) delete mode 100644 .github/release-please.yml diff --git a/.github/release-please.yml b/.github/release-please.yml deleted file mode 100644 index 7bf58076..00000000 --- a/.github/release-please.yml +++ /dev/null @@ -1,8 +0,0 @@ -bumpMinorPreMajor: true -handleGHRelease: true -releaseType: java-yoshi -branches: - - bumpMinorPreMajor: true - handleGHRelease: true - releaseType: java-yoshi - branch: java7 From 6adc4087f5e54862cd198613e1f6fbf3c1973db2 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Wed, 31 May 2023 12:17:16 -0700 Subject: [PATCH 223/225] build: enable multiScm for releases (#639) --- .github/release-trigger.yml | 1 + 1 file changed, 1 insertion(+) 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 From e67a82df55c1f6d77fdc24f8be90c8d70622ae9c Mon Sep 17 00:00:00 2001 From: Tomo Suzuki Date: Sat, 24 Jun 2023 00:11:20 -0400 Subject: [PATCH 224/225] chore: removing outdated files in favor of https://github.com/googleapis/google-cloud-java/tree/main/java-analytics-data (#640) --- .github/CODEOWNERS | 15 - .github/ISSUE_TEMPLATE/bug_report.md | 56 - .github/ISSUE_TEMPLATE/feature_request.md | 26 - .github/ISSUE_TEMPLATE/support_request.md | 7 - .github/PULL_REQUEST_TEMPLATE.md | 10 - .github/auto-label.yaml | 15 - .github/blunderbuss.yml | 7 - .github/generated-files-bot.yml | 12 - .github/snippet-bot.yml | 0 .github/sync-repo-settings.yaml | 44 - .github/trusted-contribution.yml | 3 - .github/workflows/approve-readme.yaml | 69 - .github/workflows/auto-release.yaml | 103 - .github/workflows/ci.yaml | 89 - .github/workflows/samples.yaml | 30 - .gitignore | 17 - .kokoro/build.bat | 18 - .kokoro/build.sh | 134 - .kokoro/coerce_logs.sh | 37 - .kokoro/common.cfg | 13 - .kokoro/common.sh | 60 - .kokoro/continuous/common.cfg | 25 - .kokoro/continuous/java8.cfg | 12 - .kokoro/dependencies.sh | 59 - .kokoro/nightly/common.cfg | 25 - .kokoro/nightly/integration.cfg | 37 - .kokoro/nightly/java11-integration.cfg | 37 - .kokoro/nightly/java11.cfg | 7 - .kokoro/nightly/java7.cfg | 7 - .kokoro/nightly/java8-osx.cfg | 3 - .kokoro/nightly/java8-win.cfg | 3 - .kokoro/nightly/java8.cfg | 12 - .kokoro/nightly/samples.cfg | 38 - .kokoro/populate-secrets.sh | 43 - .kokoro/presubmit/clirr.cfg | 13 - .kokoro/presubmit/common.cfg | 34 - .kokoro/presubmit/dependencies.cfg | 12 - .kokoro/presubmit/graalvm-native-17.cfg | 33 - .kokoro/presubmit/graalvm-native.cfg | 33 - .kokoro/presubmit/integration.cfg | 33 - .kokoro/presubmit/java11.cfg | 7 - .kokoro/presubmit/java7.cfg | 7 - .kokoro/presubmit/java8-osx.cfg | 3 - .kokoro/presubmit/java8-win.cfg | 3 - .kokoro/presubmit/java8.cfg | 12 - .kokoro/presubmit/linkage-monitor.cfg | 12 - .kokoro/presubmit/lint.cfg | 13 - .kokoro/presubmit/samples.cfg | 33 - .kokoro/readme.sh | 45 - .kokoro/release/bump_snapshot.cfg | 53 - .kokoro/release/common.cfg | 49 - .kokoro/release/common.sh | 50 - .kokoro/release/drop.cfg | 6 - .kokoro/release/drop.sh | 32 - .kokoro/release/promote.cfg | 6 - .kokoro/release/promote.sh | 34 - .kokoro/release/publish_javadoc.cfg | 23 - .kokoro/release/publish_javadoc.sh | 53 - .kokoro/release/publish_javadoc11.cfg | 30 - .kokoro/release/publish_javadoc11.sh | 63 - .kokoro/release/snapshot.cfg | 6 - .kokoro/release/snapshot.sh | 33 - .kokoro/release/stage.cfg | 19 - .kokoro/release/stage.sh | 47 - .kokoro/requirements.in | 33 - .kokoro/requirements.txt | 456 -- .kokoro/trampoline.sh | 26 - .repo-metadata.json | 17 - CHANGELOG.md | 496 -- codecov.yaml | 4 - google-analytics-data-bom/pom.xml | 95 - .../clirr-ignored-differences.xml | 23 - google-analytics-data/pom.xml | 136 - .../v1alpha/AlphaAnalyticsDataClient.java | 299 - .../v1alpha/AlphaAnalyticsDataSettings.java | 209 - .../data/v1alpha/gapic_metadata.json | 21 - .../analytics/data/v1alpha/package-info.java | 54 - .../v1alpha/stub/AlphaAnalyticsDataStub.java | 42 - .../stub/AlphaAnalyticsDataStubSettings.java | 331 - ...GrpcAlphaAnalyticsDataCallableFactory.java | 115 - .../stub/GrpcAlphaAnalyticsDataStub.java | 167 - ...JsonAlphaAnalyticsDataCallableFactory.java | 105 - .../stub/HttpJsonAlphaAnalyticsDataStub.java | 198 - .../data/v1beta/BetaAnalyticsDataClient.java | 834 --- .../v1beta/BetaAnalyticsDataSettings.java | 272 - .../analytics/data/v1beta/gapic_metadata.json | 39 - .../analytics/data/v1beta/package-info.java | 59 - .../v1beta/stub/BetaAnalyticsDataStub.java | 81 - .../stub/BetaAnalyticsDataStubSettings.java | 489 -- .../GrpcBetaAnalyticsDataCallableFactory.java | 115 - .../stub/GrpcBetaAnalyticsDataStub.java | 372 - ...pJsonBetaAnalyticsDataCallableFactory.java | 105 - .../stub/HttpJsonBetaAnalyticsDataStub.java | 532 -- .../AlphaAnalyticsDataClientHttpJsonTest.java | 143 - .../v1alpha/AlphaAnalyticsDataClientTest.java | 151 - .../data/v1alpha/MockAlphaAnalyticsData.java | 59 - .../v1alpha/MockAlphaAnalyticsDataImpl.java | 81 - .../BetaAnalyticsDataClientHttpJsonTest.java | 571 -- .../v1beta/BetaAnalyticsDataClientTest.java | 569 -- .../data/v1beta/MockBetaAnalyticsData.java | 59 - .../v1beta/MockBetaAnalyticsDataImpl.java | 209 - .../clirr-ignored-differences.xml | 45 - grpc-google-analytics-data-v1alpha/pom.xml | 65 - .../data/v1alpha/AlphaAnalyticsDataGrpc.java | 398 -- grpc-google-analytics-data-v1beta/pom.xml | 65 - .../data/v1beta/BetaAnalyticsDataGrpc.java | 1241 ---- java.header | 15 - license-checks.xml | 10 - pom.xml | 192 - .../clirr-ignored-differences.xml | 45 - proto-google-analytics-data-v1alpha/pom.xml | 34 - .../data/v1alpha/AnalyticsDataApiProto.java | 136 - .../analytics/data/v1alpha/BetweenFilter.java | 972 --- .../data/v1alpha/BetweenFilterOrBuilder.java | 95 - .../analytics/data/v1alpha/DateRange.java | 1035 --- .../data/v1alpha/DateRangeOrBuilder.java | 118 - .../analytics/data/v1alpha/Dimension.java | 967 --- .../data/v1alpha/DimensionExpression.java | 3236 --------- .../v1alpha/DimensionExpressionOrBuilder.java | 142 - .../data/v1alpha/DimensionHeader.java | 621 -- .../v1alpha/DimensionHeaderOrBuilder.java | 50 - .../data/v1alpha/DimensionOrBuilder.java | 106 - .../data/v1alpha/DimensionValue.java | 746 -- .../data/v1alpha/DimensionValueOrBuilder.java | 64 - .../data/v1alpha/EventCriteriaScoping.java | 162 - .../data/v1alpha/EventExclusionDuration.java | 162 - .../analytics/data/v1alpha/EventSegment.java | 993 --- .../v1alpha/EventSegmentConditionGroup.java | 927 --- .../EventSegmentConditionGroupOrBuilder.java | 99 - .../data/v1alpha/EventSegmentCriteria.java | 1027 --- .../EventSegmentCriteriaOrBuilder.java | 94 - .../data/v1alpha/EventSegmentExclusion.java | 916 --- .../EventSegmentExclusionOrBuilder.java | 95 - .../data/v1alpha/EventSegmentOrBuilder.java | 96 - .../google/analytics/data/v1alpha/Filter.java | 1893 ----- .../data/v1alpha/FilterExpression.java | 1724 ----- .../data/v1alpha/FilterExpressionList.java | 938 --- .../FilterExpressionListOrBuilder.java | 77 - .../v1alpha/FilterExpressionOrBuilder.java | 170 - .../data/v1alpha/FilterOrBuilder.java | 194 - .../google/analytics/data/v1alpha/Funnel.java | 1035 --- .../data/v1alpha/FunnelBreakdown.java | 876 --- .../v1alpha/FunnelBreakdownOrBuilder.java | 95 - .../data/v1alpha/FunnelEventFilter.java | 1035 --- .../v1alpha/FunnelEventFilterOrBuilder.java | 117 - .../data/v1alpha/FunnelFieldFilter.java | 1888 ----- .../v1alpha/FunnelFieldFilterOrBuilder.java | 192 - .../data/v1alpha/FunnelFilterExpression.java | 2074 ------ .../v1alpha/FunnelFilterExpressionList.java | 949 --- .../FunnelFilterExpressionListOrBuilder.java | 78 - .../FunnelFilterExpressionOrBuilder.java | 211 - .../data/v1alpha/FunnelNextAction.java | 922 --- .../v1alpha/FunnelNextActionOrBuilder.java | 104 - .../data/v1alpha/FunnelOrBuilder.java | 92 - .../data/v1alpha/FunnelParameterFilter.java | 2383 ------- .../FunnelParameterFilterExpression.java | 1822 ----- .../FunnelParameterFilterExpressionList.java | 1008 --- ...arameterFilterExpressionListOrBuilder.java | 85 - ...nelParameterFilterExpressionOrBuilder.java | 177 - .../FunnelParameterFilterOrBuilder.java | 286 - .../data/v1alpha/FunnelResponseMetadata.java | 1085 --- .../FunnelResponseMetadataOrBuilder.java | 108 - .../analytics/data/v1alpha/FunnelStep.java | 1396 ---- .../data/v1alpha/FunnelStepOrBuilder.java | 164 - .../data/v1alpha/FunnelSubReport.java | 2287 ------ .../v1alpha/FunnelSubReportOrBuilder.java | 236 - .../analytics/data/v1alpha/InListFilter.java | 813 --- .../data/v1alpha/InListFilterOrBuilder.java | 93 - .../analytics/data/v1alpha/MetricHeader.java | 769 --- .../data/v1alpha/MetricHeaderOrBuilder.java | 75 - .../analytics/data/v1alpha/MetricType.java | 398 -- .../analytics/data/v1alpha/MetricValue.java | 745 -- .../data/v1alpha/MetricValueOrBuilder.java | 64 - .../analytics/data/v1alpha/NumericFilter.java | 1085 --- .../data/v1alpha/NumericFilterOrBuilder.java | 85 - .../analytics/data/v1alpha/NumericValue.java | 784 --- .../data/v1alpha/NumericValueOrBuilder.java | 77 - .../analytics/data/v1alpha/PropertyQuota.java | 1971 ------ .../data/v1alpha/PropertyQuotaOrBuilder.java | 238 - .../analytics/data/v1alpha/QuotaStatus.java | 617 -- .../data/v1alpha/QuotaStatusOrBuilder.java | 51 - .../data/v1alpha/ReportingApiProto.java | 1117 --- .../google/analytics/data/v1alpha/Row.java | 1516 ---- .../analytics/data/v1alpha/RowOrBuilder.java | 134 - .../data/v1alpha/RunFunnelReportRequest.java | 3627 ---------- .../RunFunnelReportRequestOrBuilder.java | 453 -- .../data/v1alpha/RunFunnelReportResponse.java | 1561 ----- .../RunFunnelReportResponseOrBuilder.java | 189 - .../data/v1alpha/SamplingMetadata.java | 656 -- .../v1alpha/SamplingMetadataOrBuilder.java | 58 - .../analytics/data/v1alpha/Segment.java | 1645 ----- .../data/v1alpha/SegmentEventFilter.java | 1039 --- .../v1alpha/SegmentEventFilterOrBuilder.java | 117 - .../analytics/data/v1alpha/SegmentFilter.java | 2160 ------ .../data/v1alpha/SegmentFilterExpression.java | 2073 ------ .../v1alpha/SegmentFilterExpressionList.java | 951 --- .../SegmentFilterExpressionListOrBuilder.java | 78 - .../SegmentFilterExpressionOrBuilder.java | 211 - .../data/v1alpha/SegmentFilterOrBuilder.java | 227 - .../data/v1alpha/SegmentFilterScoping.java | 634 -- .../SegmentFilterScopingOrBuilder.java | 70 - .../data/v1alpha/SegmentOrBuilder.java | 169 - .../data/v1alpha/SegmentParameterFilter.java | 2657 ------- .../SegmentParameterFilterExpression.java | 1842 ----- .../SegmentParameterFilterExpressionList.java | 1013 --- ...arameterFilterExpressionListOrBuilder.java | 85 - ...entParameterFilterExpressionOrBuilder.java | 183 - .../SegmentParameterFilterOrBuilder.java | 322 - .../SegmentParameterFilterScoping.java | 700 -- ...egmentParameterFilterScopingOrBuilder.java | 90 - .../data/v1alpha/SessionCriteriaScoping.java | 186 - .../v1alpha/SessionExclusionDuration.java | 186 - .../data/v1alpha/SessionSegment.java | 999 --- .../v1alpha/SessionSegmentConditionGroup.java | 994 --- ...SessionSegmentConditionGroupOrBuilder.java | 117 - .../data/v1alpha/SessionSegmentCriteria.java | 1027 --- .../SessionSegmentCriteriaOrBuilder.java | 94 - .../data/v1alpha/SessionSegmentExclusion.java | 930 --- .../SessionSegmentExclusionOrBuilder.java | 100 - .../data/v1alpha/SessionSegmentOrBuilder.java | 99 - .../analytics/data/v1alpha/StringFilter.java | 1107 --- .../data/v1alpha/StringFilterOrBuilder.java | 88 - .../data/v1alpha/UserCriteriaScoping.java | 210 - .../data/v1alpha/UserExclusionDuration.java | 186 - .../analytics/data/v1alpha/UserSegment.java | 983 --- .../v1alpha/UserSegmentConditionGroup.java | 987 --- .../UserSegmentConditionGroupOrBuilder.java | 117 - .../data/v1alpha/UserSegmentCriteria.java | 1652 ----- .../v1alpha/UserSegmentCriteriaOrBuilder.java | 168 - .../data/v1alpha/UserSegmentExclusion.java | 912 --- .../UserSegmentExclusionOrBuilder.java | 95 - .../data/v1alpha/UserSegmentOrBuilder.java | 96 - .../v1alpha/UserSegmentSequenceGroup.java | 1552 ----- .../UserSegmentSequenceGroupOrBuilder.java | 178 - .../data/v1alpha/UserSequenceStep.java | 1064 --- .../v1alpha/UserSequenceStepOrBuilder.java | 126 - .../data/v1alpha/analytics_data_api.proto | 169 - .../google/analytics/data/v1alpha/data.proto | 1233 ---- .../clirr-ignored-differences.xml | 19 - proto-google-analytics-data-v1beta/pom.xml | 42 - .../data/v1beta/AnalyticsDataApiProto.java | 461 -- .../v1beta/BatchRunPivotReportsRequest.java | 1193 ---- .../BatchRunPivotReportsRequestOrBuilder.java | 121 - .../v1beta/BatchRunPivotReportsResponse.java | 1140 --- ...BatchRunPivotReportsResponseOrBuilder.java | 107 - .../data/v1beta/BatchRunReportsRequest.java | 1183 ---- .../BatchRunReportsRequestOrBuilder.java | 121 - .../data/v1beta/BatchRunReportsResponse.java | 1125 --- .../BatchRunReportsResponseOrBuilder.java | 106 - .../v1beta/CheckCompatibilityRequest.java | 2419 ------- .../CheckCompatibilityRequestOrBuilder.java | 283 - .../v1beta/CheckCompatibilityResponse.java | 1533 ---- .../CheckCompatibilityResponseOrBuilder.java | 148 - .../google/analytics/data/v1beta/Cohort.java | 1247 ---- .../data/v1beta/CohortOrBuilder.java | 157 - .../data/v1beta/CohortReportSettings.java | 532 -- .../v1beta/CohortReportSettingsOrBuilder.java | 39 - .../analytics/data/v1beta/CohortSpec.java | 1550 ----- .../data/v1beta/CohortSpecOrBuilder.java | 160 - .../analytics/data/v1beta/CohortsRange.java | 1040 --- .../data/v1beta/CohortsRangeOrBuilder.java | 95 - .../analytics/data/v1beta/Compatibility.java | 180 - .../analytics/data/v1beta/DateRange.java | 1035 --- .../data/v1beta/DateRangeOrBuilder.java | 118 - .../analytics/data/v1beta/Dimension.java | 969 --- .../data/v1beta/DimensionCompatibility.java | 953 --- .../DimensionCompatibilityOrBuilder.java | 106 - .../data/v1beta/DimensionExpression.java | 3208 --------- .../v1beta/DimensionExpressionOrBuilder.java | 142 - .../data/v1beta/DimensionHeader.java | 621 -- .../data/v1beta/DimensionHeaderOrBuilder.java | 50 - .../data/v1beta/DimensionMetadata.java | 1573 ----- .../v1beta/DimensionMetadataOrBuilder.java | 207 - .../data/v1beta/DimensionOrBuilder.java | 106 - .../analytics/data/v1beta/DimensionValue.java | 746 -- .../data/v1beta/DimensionValueOrBuilder.java | 64 - .../google/analytics/data/v1beta/Filter.java | 6142 ----------------- .../data/v1beta/FilterExpression.java | 1722 ----- .../data/v1beta/FilterExpressionList.java | 938 --- .../v1beta/FilterExpressionListOrBuilder.java | 77 - .../v1beta/FilterExpressionOrBuilder.java | 170 - .../data/v1beta/FilterOrBuilder.java | 200 - .../data/v1beta/GetMetadataRequest.java | 685 -- .../v1beta/GetMetadataRequestOrBuilder.java | 70 - .../analytics/data/v1beta/Metadata.java | 1603 ----- .../analytics/data/v1beta/MetadataName.java | 168 - .../data/v1beta/MetadataOrBuilder.java | 154 - .../google/analytics/data/v1beta/Metric.java | 964 --- .../data/v1beta/MetricAggregation.java | 222 - .../data/v1beta/MetricCompatibility.java | 947 --- .../v1beta/MetricCompatibilityOrBuilder.java | 106 - .../analytics/data/v1beta/MetricHeader.java | 769 --- .../data/v1beta/MetricHeaderOrBuilder.java | 75 - .../analytics/data/v1beta/MetricMetadata.java | 2596 ------- .../data/v1beta/MetricMetadataOrBuilder.java | 360 - .../data/v1beta/MetricOrBuilder.java | 110 - .../analytics/data/v1beta/MetricType.java | 396 -- .../analytics/data/v1beta/MetricValue.java | 745 -- .../data/v1beta/MetricValueOrBuilder.java | 64 - .../analytics/data/v1beta/MinuteRange.java | 979 --- .../data/v1beta/MinuteRangeOrBuilder.java | 132 - .../analytics/data/v1beta/NumericValue.java | 784 --- .../data/v1beta/NumericValueOrBuilder.java | 77 - .../google/analytics/data/v1beta/OrderBy.java | 5400 --------------- .../data/v1beta/OrderByOrBuilder.java | 145 - .../google/analytics/data/v1beta/Pivot.java | 1943 ------ .../data/v1beta/PivotDimensionHeader.java | 941 --- .../v1beta/PivotDimensionHeaderOrBuilder.java | 77 - .../analytics/data/v1beta/PivotHeader.java | 1111 --- .../data/v1beta/PivotHeaderOrBuilder.java | 104 - .../analytics/data/v1beta/PivotOrBuilder.java | 259 - .../analytics/data/v1beta/PropertyQuota.java | 2303 ------ .../data/v1beta/PropertyQuotaOrBuilder.java | 287 - .../analytics/data/v1beta/QuotaStatus.java | 617 -- .../data/v1beta/QuotaStatusOrBuilder.java | 51 - .../data/v1beta/ReportingApiProto.java | 768 --- .../data/v1beta/ResponseMetaData.java | 4300 ------------ .../v1beta/ResponseMetaDataOrBuilder.java | 271 - .../data/v1beta/RestrictedMetricType.java | 180 - .../com/google/analytics/data/v1beta/Row.java | 1514 ---- .../analytics/data/v1beta/RowOrBuilder.java | 134 - .../data/v1beta/RunPivotReportRequest.java | 4069 ----------- .../RunPivotReportRequestOrBuilder.java | 493 -- .../data/v1beta/RunPivotReportResponse.java | 4477 ------------ .../RunPivotReportResponseOrBuilder.java | 568 -- .../data/v1beta/RunRealtimeReportRequest.java | 3866 ----------- .../RunRealtimeReportRequestOrBuilder.java | 461 -- .../v1beta/RunRealtimeReportResponse.java | 3992 ----------- .../RunRealtimeReportResponseOrBuilder.java | 426 -- .../data/v1beta/RunReportRequest.java | 4601 ------------ .../v1beta/RunReportRequestOrBuilder.java | 575 -- .../data/v1beta/RunReportResponse.java | 4267 ------------ .../v1beta/RunReportResponseOrBuilder.java | 463 -- .../data/v1beta/analytics_data_api.proto | 628 -- .../google/analytics/data/v1beta/data.proto | 981 --- renovate.json | 76 - samples/install-without-bom/pom.xml | 89 - samples/pom.xml | 56 - samples/snapshot/pom.xml | 99 - samples/snippets/pom.xml | 63 - .../analytics/GetCommonMetadataSample.java | 96 - .../GetMetadataByPropertyIdSample.java | 67 - .../QuickstartJsonCredentialsSample.java | 106 - .../example/analytics/QuickstartSample.java | 85 - .../analytics/RunBatchReportSample.java | 95 - .../analytics/RunPivotReportSample.java | 114 - .../analytics/RunRealtimeReportSample.java | 95 - ...imeReportWithMultipleDimensionsSample.java | 71 - ...altimeReportWithMultipleMetricsSample.java | 71 - .../example/analytics/RunReportSample.java | 101 - .../RunReportWithAggregationsSample.java | 82 - .../analytics/RunReportWithCohortsSample.java | 97 - .../RunReportWithDateRangesSample.java | 76 - ...rtWithDimensionAndMetricFiltersSample.java | 112 - ...eportWithDimensionExcludeFilterSample.java | 90 - .../RunReportWithDimensionFilterSample.java | 87 - ...ReportWithDimensionInListFilterSample.java | 97 - ...ortWithMultipleDimensionFiltersSample.java | 101 - ...RunReportWithMultipleDimensionsSample.java | 75 - .../RunReportWithMultipleMetricsSample.java | 75 - .../RunReportWithNamedDateRangesSample.java | 88 - .../RunReportWithOrderingSample.java | 80 - .../RunReportWithPaginationSample.java | 105 - .../RunReportWithPropertyQuotaSample.java | 96 - .../GetCommonMetadataSampleTest.java | 51 - .../GetMetadataByPropertyIdSampleTest.java | 54 - .../QuickstartJsonCredentialsSampleTest.java | 57 - .../analytics/QuickstartSampleTest.java | 55 - .../analytics/RunBatchReportSampleTest.java | 54 - .../analytics/RunPivotReportSampleTest.java | 54 - .../RunRealtimeReportSampleTest.java | 54 - ...eportWithMultipleDimensionsSampleTest.java | 55 - ...meReportWithMultipleMetricsSampleTest.java | 55 - .../analytics/RunReportSampleTest.java | 54 - .../RunReportWithAggregationsSampleTest.java | 54 - .../RunReportWithCohortsSampleTest.java | 54 - .../RunReportWithDateRangesSampleTest.java | 54 - ...thDimensionAndMetricFiltersSampleTest.java | 55 - ...tWithDimensionExcludeFilterSampleTest.java | 55 - .../RunReportWithDimensionFilterTest.java | 54 - ...unReportWithDimensionInListFilterTest.java | 55 - ...eportWithMultipleDimensionFiltersTest.java | 55 - .../RunReportWithMultipleDimensionsTest.java | 54 - .../RunReportWithMultipleMetricsTest.java | 54 - .../RunReportWithNamedDateRangesTest.java | 54 - .../analytics/RunReportWithOrderingTest.java | 54 - .../RunReportWithPaginationTest.java | 54 - .../RunReportWithPropertyQuotaTest.java | 54 - synth.metadata | 302 - versions.txt | 8 - 390 files changed, 199788 deletions(-) delete mode 100644 .github/CODEOWNERS delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md delete mode 100644 .github/ISSUE_TEMPLATE/support_request.md delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md delete mode 100644 .github/auto-label.yaml delete mode 100644 .github/blunderbuss.yml delete mode 100644 .github/generated-files-bot.yml delete mode 100644 .github/snippet-bot.yml delete mode 100644 .github/sync-repo-settings.yaml delete mode 100644 .github/trusted-contribution.yml delete mode 100644 .github/workflows/approve-readme.yaml delete mode 100644 .github/workflows/auto-release.yaml delete mode 100644 .github/workflows/ci.yaml delete mode 100644 .github/workflows/samples.yaml delete mode 100644 .gitignore delete mode 100644 .kokoro/build.bat delete mode 100755 .kokoro/build.sh delete mode 100755 .kokoro/coerce_logs.sh delete mode 100644 .kokoro/common.cfg delete mode 100644 .kokoro/common.sh delete mode 100644 .kokoro/continuous/common.cfg delete mode 100644 .kokoro/continuous/java8.cfg delete mode 100755 .kokoro/dependencies.sh delete mode 100644 .kokoro/nightly/common.cfg delete mode 100644 .kokoro/nightly/integration.cfg delete mode 100644 .kokoro/nightly/java11-integration.cfg delete mode 100644 .kokoro/nightly/java11.cfg delete mode 100644 .kokoro/nightly/java7.cfg delete mode 100644 .kokoro/nightly/java8-osx.cfg delete mode 100644 .kokoro/nightly/java8-win.cfg delete mode 100644 .kokoro/nightly/java8.cfg delete mode 100644 .kokoro/nightly/samples.cfg delete mode 100755 .kokoro/populate-secrets.sh delete mode 100644 .kokoro/presubmit/clirr.cfg delete mode 100644 .kokoro/presubmit/common.cfg delete mode 100644 .kokoro/presubmit/dependencies.cfg delete mode 100644 .kokoro/presubmit/graalvm-native-17.cfg delete mode 100644 .kokoro/presubmit/graalvm-native.cfg delete mode 100644 .kokoro/presubmit/integration.cfg delete mode 100644 .kokoro/presubmit/java11.cfg delete mode 100644 .kokoro/presubmit/java7.cfg delete mode 100644 .kokoro/presubmit/java8-osx.cfg delete mode 100644 .kokoro/presubmit/java8-win.cfg delete mode 100644 .kokoro/presubmit/java8.cfg delete mode 100644 .kokoro/presubmit/linkage-monitor.cfg delete mode 100644 .kokoro/presubmit/lint.cfg delete mode 100644 .kokoro/presubmit/samples.cfg delete mode 100755 .kokoro/readme.sh delete mode 100644 .kokoro/release/bump_snapshot.cfg delete mode 100644 .kokoro/release/common.cfg delete mode 100755 .kokoro/release/common.sh delete mode 100644 .kokoro/release/drop.cfg delete mode 100755 .kokoro/release/drop.sh delete mode 100644 .kokoro/release/promote.cfg delete mode 100755 .kokoro/release/promote.sh delete mode 100644 .kokoro/release/publish_javadoc.cfg delete mode 100755 .kokoro/release/publish_javadoc.sh delete mode 100644 .kokoro/release/publish_javadoc11.cfg delete mode 100755 .kokoro/release/publish_javadoc11.sh delete mode 100644 .kokoro/release/snapshot.cfg delete mode 100755 .kokoro/release/snapshot.sh delete mode 100644 .kokoro/release/stage.cfg delete mode 100755 .kokoro/release/stage.sh delete mode 100644 .kokoro/requirements.in delete mode 100644 .kokoro/requirements.txt delete mode 100644 .kokoro/trampoline.sh delete mode 100644 .repo-metadata.json delete mode 100644 CHANGELOG.md delete mode 100644 codecov.yaml delete mode 100644 google-analytics-data-bom/pom.xml delete mode 100644 google-analytics-data/clirr-ignored-differences.xml delete mode 100644 google-analytics-data/pom.xml delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataCallableFactory.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataCallableFactory.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataSettings.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1beta/gapic_metadata.json delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1beta/package-info.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStub.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStubSettings.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/GrpcBetaAnalyticsDataCallableFactory.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/GrpcBetaAnalyticsDataStub.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataCallableFactory.java delete mode 100644 google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataStub.java delete mode 100644 google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientHttpJsonTest.java delete mode 100644 google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java delete mode 100644 google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsData.java delete mode 100644 google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java delete mode 100644 google-analytics-data/src/test/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClientHttpJsonTest.java delete mode 100644 google-analytics-data/src/test/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClientTest.java delete mode 100644 google-analytics-data/src/test/java/com/google/analytics/data/v1beta/MockBetaAnalyticsData.java delete mode 100644 google-analytics-data/src/test/java/com/google/analytics/data/v1beta/MockBetaAnalyticsDataImpl.java delete mode 100644 grpc-google-analytics-data-v1alpha/clirr-ignored-differences.xml delete mode 100644 grpc-google-analytics-data-v1alpha/pom.xml delete mode 100644 grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java delete mode 100644 grpc-google-analytics-data-v1beta/pom.xml delete mode 100644 grpc-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataGrpc.java delete mode 100644 java.header delete mode 100644 license-checks.xml delete mode 100644 pom.xml delete mode 100644 proto-google-analytics-data-v1alpha/clirr-ignored-differences.xml delete mode 100644 proto-google-analytics-data-v1alpha/pom.xml delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilter.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilterOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRangeOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpressionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeaderOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValueOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventCriteriaScoping.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventExclusionDuration.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegment.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroup.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroupOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteria.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteriaOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusion.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionList.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionListOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Funnel.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdown.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdownOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilter.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilterOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilter.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilterOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpression.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionList.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionListOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextActionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilter.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpression.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionList.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionListOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadataOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStep.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStepOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReport.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReportOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilter.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilterOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeaderOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValueOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilter.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilterOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValueOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotaOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatus.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatusOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RowOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequestOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponse.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponseOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadata.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadataOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Segment.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilter.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilterOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilter.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpression.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionList.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionListOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScoping.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScopingOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilter.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpression.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionList.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionListOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScoping.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScopingOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionCriteriaScoping.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionExclusionDuration.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegment.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroup.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroupOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteria.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteriaOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusion.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilter.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilterOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserCriteriaScoping.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserExclusionDuration.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegment.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroup.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroupOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteria.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteriaOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusion.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroup.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroupOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStep.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStepOrBuilder.java delete mode 100644 proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto delete mode 100644 proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto delete mode 100644 proto-google-analytics-data-v1beta/clirr-ignored-differences.xml delete mode 100644 proto-google-analytics-data-v1beta/pom.xml delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/AnalyticsDataApiProto.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequest.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequestOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsResponse.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsResponseOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequest.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequestOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsResponse.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsResponseOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequest.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequestOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityResponse.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityResponseOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Cohort.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortReportSettings.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortReportSettingsOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortSpec.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortSpecOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortsRange.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortsRangeOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Compatibility.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DateRange.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DateRangeOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Dimension.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionCompatibility.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionCompatibilityOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionExpression.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionExpressionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionHeader.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionHeaderOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionMetadata.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionMetadataOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionValue.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionValueOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Filter.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpression.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionList.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionListOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequest.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequestOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Metadata.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetadataName.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetadataOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Metric.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricAggregation.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricCompatibility.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricCompatibilityOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricHeader.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricHeaderOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricMetadata.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricMetadataOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricType.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricValue.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricValueOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MinuteRange.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MinuteRangeOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/NumericValue.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/NumericValueOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/OrderBy.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/OrderByOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Pivot.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotDimensionHeader.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotDimensionHeaderOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotHeader.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotHeaderOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PropertyQuota.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PropertyQuotaOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/QuotaStatus.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/QuotaStatusOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ReportingApiProto.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ResponseMetaData.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ResponseMetaDataOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RestrictedMetricType.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Row.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RowOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequest.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequestOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponse.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponseOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequest.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequestOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponse.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponseOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequest.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequestOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponse.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponseOrBuilder.java delete mode 100644 proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/analytics_data_api.proto delete mode 100644 proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/data.proto delete mode 100644 renovate.json delete mode 100644 samples/install-without-bom/pom.xml delete mode 100644 samples/pom.xml delete mode 100644 samples/snapshot/pom.xml delete mode 100644 samples/snippets/pom.xml delete mode 100644 samples/snippets/src/main/java/com/example/analytics/GetCommonMetadataSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/GetMetadataByPropertyIdSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/QuickstartJsonCredentialsSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunBatchReportSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunPivotReportSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithAggregationsSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithCohortsSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithDateRangesSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionExcludeFilterSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionFilterSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionInListFilterSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionFiltersSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionsSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleMetricsSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithNamedDateRangesSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithOrderingSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithPaginationSample.java delete mode 100644 samples/snippets/src/main/java/com/example/analytics/RunReportWithPropertyQuotaSample.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/GetCommonMetadataSampleTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/GetMetadataByPropertyIdSampleTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/QuickstartJsonCredentialsSampleTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/QuickstartSampleTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunBatchReportSampleTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunPivotReportSampleTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportSampleTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSampleTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSampleTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportSampleTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithAggregationsSampleTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithCohortsSampleTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithDateRangesSampleTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSampleTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionExcludeFilterSampleTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionFilterTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionInListFilterTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleDimensionFiltersTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleDimensionsTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleMetricsTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithNamedDateRangesTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithOrderingTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithPaginationTest.java delete mode 100644 samples/snippets/src/test/java/com/example/analytics/RunReportWithPropertyQuotaTest.java delete mode 100644 synth.metadata delete mode 100644 versions.txt diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS deleted file mode 100644 index 96ee1fd7..00000000 --- a/.github/CODEOWNERS +++ /dev/null @@ -1,15 +0,0 @@ -# Code owners file. -# This file controls who is tagged for review for any given pull request. - -# For syntax help see: -# https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax - -# The @googleapis/analytics-dpe is the default owner for changes in this repo -* @googleapis/yoshi-java @googleapis/analytics-dpe - - -# The java-samples-reviewers team is the default owner for samples changes -samples/**/*.java @googleapis/java-samples-reviewers - -# Generated snippets should not be owned by samples reviewers -samples/snippets/generated/ @googleapis/yoshi-java diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 105c9d11..00000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,56 +0,0 @@ ---- -name: Bug report -about: Create a report to help us improve - ---- - -:bus: This library has moved to -[google-cloud-java/java-analytics-data]( -https://github.com/googleapis/google-cloud-java/tree/main/java-analytics-data). -This repository will be archived in the future. - -Thanks for stopping by to let us know something could be better! - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. - -Please run down the following list and make sure you've tried the usual "quick fixes": - - - Search the issues already opened: https://github.com/googleapis/java-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. 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 a6821b36..00000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this library - ---- - -:bus: This library has moved to -[google-cloud-java/java-analytics-data]( -https://github.com/googleapis/google-cloud-java/tree/main/java-analytics-data). -This repository will be archived in the future. - -Thanks for stopping by to let us know something could be better! - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. - -**Is your feature request related to a problem? Please describe.** -What the problem is. Example: I'm always frustrated when [...] - -**Describe the solution you'd like** -What you want to happen. - -**Describe alternatives you've considered** -Any alternative solutions or features you've considered. - -**Additional context** -Any other context or screenshots about the feature request. diff --git a/.github/ISSUE_TEMPLATE/support_request.md b/.github/ISSUE_TEMPLATE/support_request.md deleted file mode 100644 index 99586903..00000000 --- a/.github/ISSUE_TEMPLATE/support_request.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -name: Support request -about: If you have a support contract with Google, please create an issue in the Google Cloud Support console. - ---- - -**PLEASE READ**: If you have a support contract with Google, please create an issue in the [support console](https://cloud.google.com/support/) instead of filing on GitHub. This will ensure a timely response. diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index b1b8ba4a..00000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,10 +0,0 @@ -Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: -- [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-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 # ☕️ - -If you write sample code, please follow the [samples format]( -https://github.com/GoogleCloudPlatform/java-docs-samples/blob/main/SAMPLE_FORMAT.md). diff --git a/.github/auto-label.yaml b/.github/auto-label.yaml deleted file mode 100644 index 4caef688..00000000 --- a/.github/auto-label.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -requestsize: - enabled: true diff --git a/.github/blunderbuss.yml b/.github/blunderbuss.yml deleted file mode 100644 index 2176b054..00000000 --- a/.github/blunderbuss.yml +++ /dev/null @@ -1,7 +0,0 @@ -# Configuration for the Blunderbuss GitHub app. For more info see -# https://github.com/googleapis/repo-automation-bots/tree/main/packages/blunderbuss -assign_prs_by: -- labels: - - samples - to: - - googleapis/java-samples-reviewers \ No newline at end of file diff --git a/.github/generated-files-bot.yml b/.github/generated-files-bot.yml deleted file mode 100644 index c644a24e..00000000 --- a/.github/generated-files-bot.yml +++ /dev/null @@ -1,12 +0,0 @@ -externalManifests: -- type: json - file: 'synth.metadata' - jsonpath: '$.generatedFiles[*]' -- type: json - file: '.github/readme/synth.metadata/synth.metadata' - jsonpath: '$.generatedFiles[*]' -ignoreAuthors: -- 'renovate-bot' -- 'yoshi-automation' -- 'release-please[bot]' -- 'gcf-owl-bot[bot]' diff --git a/.github/snippet-bot.yml b/.github/snippet-bot.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml deleted file mode 100644 index 01f6272e..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 - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - OwlBot Post Processor - - 'Kokoro - Test: Java GraalVM Native Image' - - 'Kokoro - Test: Java 17 GraalVM Native Image' - - pattern: java7 - isAdminEnforced: true - requiredApprovingReviewCount: 1 - requiresCodeOwnerReviews: true - requiresStrictStatusChecks: false - requiredStatusCheckContexts: - - dependencies (8) - - dependencies (11) - - lint - - units (7) - - units (8) - - units (11) - - 'Kokoro - Test: Integration' - - cla/google - - OwlBot Post Processor -permissionRules: - - team: yoshi-admins - permission: admin - - team: yoshi-java-admins - permission: admin - - team: yoshi-java - permission: push - - 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 f5fc7d51..00000000 --- a/.github/workflows/approve-readme.yaml +++ /dev/null @@ -1,69 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: auto-merge-readme -jobs: - approve: - runs-on: ubuntu-latest - if: github.repository_owner == 'googleapis' && github.head_ref == 'autosynth-readme' - steps: - - uses: actions/github-script@v6 - with: - github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} - script: | - // only approve PRs from yoshi-automation - if (context.payload.pull_request.user.login !== "yoshi-automation") { - return; - } - - // only approve PRs like "chore: release " - if (!context.payload.pull_request.title === "chore: regenerate README") { - return; - } - - // only approve PRs with README.md and synth.metadata changes - const files = new Set( - ( - await github.paginate( - github.pulls.listFiles.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - }) - ) - ).map(file => file.filename) - ); - if (files.size != 2 || !files.has("README.md") || !files.has(".github/readme/synth.metadata/synth.metadata")) { - return; - } - - // approve README regeneration PR - await github.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Rubber stamped PR!', - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }); - - // attach automerge label - await github.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - labels: ['automerge'] - }); diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml deleted file mode 100644 index 7a106d00..00000000 --- a/.github/workflows/auto-release.yaml +++ /dev/null @@ -1,103 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: auto-release -jobs: - approve: - runs-on: ubuntu-latest - if: contains(github.head_ref, 'release-please') - steps: - - uses: actions/github-script@v6 - with: - github-token: ${{secrets.YOSHI_APPROVER_TOKEN}} - debug: true - script: | - // only approve PRs from release-please[bot] - if (context.payload.pull_request.user.login !== "release-please[bot]") { - return; - } - - // only approve PRs like "chore(main): release " - if ( !context.payload.pull_request.title.startsWith("chore(main): release") ) { - return; - } - - // only approve PRs with pom.xml and versions.txt changes - const filesPromise = github.rest.pulls.listFiles.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - pull_number: context.payload.pull_request.number, - }); - const changed_files = await github.paginate(filesPromise) - - if ( changed_files.length < 1 ) { - console.log( "Not proceeding since PR is empty!" ) - return; - } - - if ( !changed_files.some(v => v.filename.includes("pom")) || !changed_files.some(v => v.filename.includes("versions.txt")) ) { - console.log( "PR file changes do not have pom.xml or versions.txt -- something is wrong. PTAL!" ) - return; - } - - // trigger auto-release when - // 1) it is a SNAPSHOT release (auto-generated post regular release) - // 2) there are dependency updates only - // 3) there are no open dependency update PRs in this repo (to avoid multiple releases) - if ( - context.payload.pull_request.body.includes("Fix") || - context.payload.pull_request.body.includes("Build") || - context.payload.pull_request.body.includes("Documentation") || - context.payload.pull_request.body.includes("BREAKING CHANGES") || - context.payload.pull_request.body.includes("Features") - ) { - console.log( "Not auto-releasing since it is not a dependency-update-only release." ); - return; - } - - const promise = github.rest.pulls.list.endpoint({ - owner: context.repo.owner, - repo: context.repo.repo, - state: 'open' - }); - const open_pulls = await github.paginate(promise) - - if ( open_pulls.length > 1 && !context.payload.pull_request.title.includes("SNAPSHOT") ) { - for ( const pull of open_pulls ) { - if ( pull.title.startsWith("deps: update dependency") ) { - console.log( "Not auto-releasing yet since there are dependency update PRs open in this repo." ); - return; - } - } - } - - // approve release PR - await github.rest.pulls.createReview({ - owner: context.repo.owner, - repo: context.repo.repo, - body: 'Rubber stamped release!', - pull_number: context.payload.pull_request.number, - event: 'APPROVE' - }); - - // attach kokoro:force-run and automerge labels - await github.rest.issues.addLabels({ - owner: context.repo.owner, - repo: context.repo.repo, - issue_number: context.payload.pull_request.number, - labels: ['kokoro:force-run', 'automerge'] - }); diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml deleted file mode 100644 index e3bb26e3..00000000 --- a/.github/workflows/ci.yaml +++ /dev/null @@ -1,89 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - push: - branches: - - main - pull_request: -name: ci -jobs: - units: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - java: [8, 11, 17] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: ${{matrix.java}} - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: test - windows: - runs-on: windows-latest - steps: - - name: Support longpaths - run: git config --system core.longpaths true - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 8 - - run: java -version - - run: .kokoro/build.bat - env: - JOB_TYPE: test - dependencies: - runs-on: ubuntu-latest - strategy: - matrix: - java: [8, 11, 17] - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: ${{matrix.java}} - - run: java -version - - run: .kokoro/dependencies.sh - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 11 - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: lint - clirr: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 8 - - run: java -version - - run: .kokoro/build.sh - env: - JOB_TYPE: clirr diff --git a/.github/workflows/samples.yaml b/.github/workflows/samples.yaml deleted file mode 100644 index 912ed8b2..00000000 --- a/.github/workflows/samples.yaml +++ /dev/null @@ -1,30 +0,0 @@ -# Copyright 2022 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# Github action job to test core java library features on -# downstream client libraries before they are released. -on: - pull_request: -name: samples -jobs: - checkstyle: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v3 - with: - distribution: zulu - java-version: 8 - - name: Run checkstyle - run: mvn -P lint --quiet --batch-mode checkstyle:check - working-directory: samples/snippets diff --git a/.gitignore b/.gitignore deleted file mode 100644 index cc0bc34a..00000000 --- a/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# Maven -target/ - -# Eclipse -.classpath -.project -.settings - -# Intellij -*.iml -.idea/ - -# python utilities -*.pyc -__pycache__ - -.flattened-pom.xml \ No newline at end of file diff --git a/.kokoro/build.bat b/.kokoro/build.bat deleted file mode 100644 index 067cf4a4..00000000 --- a/.kokoro/build.bat +++ /dev/null @@ -1,18 +0,0 @@ -:: Copyright 2022 Google LLC -:: -:: Licensed under the Apache License, Version 2.0 (the "License"); -:: you may not use this file except in compliance with the License. -:: You may obtain a copy of the License at -:: -:: http://www.apache.org/licenses/LICENSE-2.0 -:: -:: Unless required by applicable law or agreed to in writing, software -:: distributed under the License is distributed on an "AS IS" BASIS, -:: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -:: See the License for the specific language governing permissions and -:: limitations under the License. -:: Github action job to test core java library features on -:: downstream client libraries before they are released. -:: See documentation in type-shell-output.bat - -"C:\Program Files\Git\bin\bash.exe" %~dp0build.sh diff --git a/.kokoro/build.sh b/.kokoro/build.sh deleted file mode 100755 index 749a38df..00000000 --- a/.kokoro/build.sh +++ /dev/null @@ -1,134 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -# include common functions -source ${scriptDir}/common.sh - -# Print out Maven & Java version -mvn -version -echo ${JOB_TYPE} - -# attempt to install 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn install -B -V -ntp \ - -DskipTests=true \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -Dmaven.javadoc.skip=true \ - -Dgcloud.download.skip=true \ - -T 1C - -# if GOOGLE_APPLICATION_CREDENTIALS is specified as a relative path, prepend Kokoro root directory onto it -if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then - export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS}) -fi - -RETURN_CODE=0 -set +e - -case ${JOB_TYPE} in -test) - mvn test -B -ntp -Dclirr.skip=true -Denforcer.skip=true - RETURN_CODE=$? - ;; -lint) - mvn com.coveo:fmt-maven-plugin:check -B -ntp - RETURN_CODE=$? - ;; -javadoc) - mvn javadoc:javadoc javadoc:test-javadoc -B -ntp - RETURN_CODE=$? - ;; -integration) - mvn -B ${INTEGRATION_TEST_ARGS} \ - -ntp \ - -Penable-integration-tests \ - -DtrimStackTrace=false \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -fae \ - verify - RETURN_CODE=$? - ;; -graalvm) - # Run Unit and Integration Tests with Native Image - mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test - RETURN_CODE=$? - ;; -graalvm17) - # Run Unit and Integration Tests with Native Image - mvn -B ${INTEGRATION_TEST_ARGS} -ntp -Pnative -Penable-integration-tests test - RETURN_CODE=$? - ;; -samples) - SAMPLES_DIR=samples - # only run ITs in snapshot/ on presubmit PRs. run ITs in all 3 samples/ subdirectories otherwise. - if [[ ! -z ${KOKORO_GITHUB_PULL_REQUEST_NUMBER} ]] - then - SAMPLES_DIR=samples/snapshot - fi - - if [[ -f ${SAMPLES_DIR}/pom.xml ]] - then - for FILE in ${KOKORO_GFILE_DIR}/secret_manager/*-samples-secrets; do - [[ -f "$FILE" ]] || continue - source "$FILE" - done - - pushd ${SAMPLES_DIR} - mvn -B \ - -ntp \ - -DtrimStackTrace=false \ - -Dclirr.skip=true \ - -Denforcer.skip=true \ - -fae \ - verify - RETURN_CODE=$? - popd - else - echo "no sample pom.xml found - skipping sample tests" - fi - ;; -clirr) - mvn -B -ntp -Denforcer.skip=true clirr:check - RETURN_CODE=$? - ;; -*) - ;; -esac - -if [ "${REPORT_COVERAGE}" == "true" ] -then - bash ${KOKORO_GFILE_DIR}/codecov.sh -fi - -# fix output location of logs -bash .kokoro/coerce_logs.sh - -if [[ "${ENABLE_FLAKYBOT}" == "true" ]] -then - chmod +x ${KOKORO_GFILE_DIR}/linux_amd64/flakybot - ${KOKORO_GFILE_DIR}/linux_amd64/flakybot -repo=googleapis/java-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 f8f957af..00000000 --- a/.kokoro/common.sh +++ /dev/null @@ -1,60 +0,0 @@ -#!/bin/bash -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -function retry_with_backoff { - attempts_left=$1 - sleep_seconds=$2 - shift 2 - command=$@ - - - # store current flag state - flags=$- - - # allow a failures to continue - set +e - ${command} - exit_code=$? - - # restore "e" flag - if [[ ${flags} =~ e ]] - then set -e - else set +e - fi - - if [[ $exit_code == 0 ]] - then - return 0 - fi - - # failure - if [[ ${attempts_left} > 0 ]] - then - echo "failure (${exit_code}), sleeping ${sleep_seconds}..." - sleep ${sleep_seconds} - new_attempts=$((${attempts_left} - 1)) - new_sleep=$((${sleep_seconds} * 2)) - retry_with_backoff ${new_attempts} ${new_sleep} ${command} - fi - - return $exit_code -} - -## Helper functionss -function now() { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n'; } -function msg() { println "$*" >&2; } -function println() { printf '%s\n' "$(now) $*"; } - -## Helper comment to trigger updated repo dependency release \ No newline at end of file diff --git a/.kokoro/continuous/common.cfg b/.kokoro/continuous/common.cfg deleted file mode 100644 index 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 bd896024..00000000 --- a/.kokoro/dependencies.sh +++ /dev/null @@ -1,59 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail -shopt -s nullglob - -## Get the directory of the build script -scriptDir=$(realpath $(dirname "${BASH_SOURCE[0]}")) -## cd to the parent directory, i.e. the root of the git repo -cd ${scriptDir}/.. - -# include common functions -source ${scriptDir}/common.sh - -# Print out Java -java -version -echo $JOB_TYPE - -function determineMavenOpts() { - local javaVersion=$( - # filter down to the version line, then pull out the version between quotes, - # then trim the version number down to its minimal number (removing any - # update or suffix number). - java -version 2>&1 | grep "version" \ - | sed -E 's/^.*"(.*?)".*$/\1/g' \ - | sed -E 's/^(1\.[0-9]\.0).*$/\1/g' - ) - - if [[ $javaVersion == 17* ]] - then - # MaxPermSize is no longer supported as of jdk 17 - echo -n "-Xmx1024m" - else - echo -n "-Xmx1024m -XX:MaxPermSize=128m" - fi -} - -export MAVEN_OPTS=$(determineMavenOpts) - -# this should run maven enforcer -retry_with_backoff 3 10 \ - mvn install -B -V -ntp \ - -DskipTests=true \ - -Dmaven.javadoc.skip=true \ - -Dclirr.skip=true - -mvn -B dependency:analyze -DfailOnWarning=true diff --git a/.kokoro/nightly/common.cfg b/.kokoro/nightly/common.cfg deleted file mode 100644 index 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 bd0297a3..00000000 --- a/.kokoro/nightly/integration.cfg +++ /dev/null @@ -1,37 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "false" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} diff --git a/.kokoro/nightly/java11-integration.cfg b/.kokoro/nightly/java11-integration.cfg deleted file mode 100644 index dc51b65e..00000000 --- a/.kokoro/nightly/java11-integration.cfg +++ /dev/null @@ -1,37 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-public-resources/java11014" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "false" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} diff --git a/.kokoro/nightly/java11.cfg b/.kokoro/nightly/java11.cfg deleted file mode 100644 index 709f2b4c..00000000 --- a/.kokoro/nightly/java11.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} diff --git a/.kokoro/nightly/java7.cfg b/.kokoro/nightly/java7.cfg deleted file mode 100644 index cb24f44e..00000000 --- a/.kokoro/nightly/java7.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java7" -} diff --git a/.kokoro/nightly/java8-osx.cfg b/.kokoro/nightly/java8-osx.cfg deleted file mode 100644 index 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 fee6a838..00000000 --- a/.kokoro/nightly/samples.cfg +++ /dev/null @@ -1,38 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "samples" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "java-docs-samples-testing" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-docs-samples-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-docs-samples-service-account" -} - -env_vars: { - key: "ENABLE_FLAKYBOT" - value: "false" -} diff --git a/.kokoro/populate-secrets.sh b/.kokoro/populate-secrets.sh deleted file mode 100755 index f5251425..00000000 --- a/.kokoro/populate-secrets.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash -# Copyright 2020 Google LLC. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -function now { date +"%Y-%m-%d %H:%M:%S" | tr -d '\n' ;} -function msg { println "$*" >&2 ;} -function println { printf '%s\n' "$(now) $*" ;} - - -# Populates requested secrets set in SECRET_MANAGER_KEYS from service account: -# kokoro-trampoline@cloud-devrel-kokoro-resources.iam.gserviceaccount.com -SECRET_LOCATION="${KOKORO_GFILE_DIR}/secret_manager" -msg "Creating folder on disk for secrets: ${SECRET_LOCATION}" -mkdir -p ${SECRET_LOCATION} -for key in $(echo ${SECRET_MANAGER_KEYS} | sed "s/,/ /g") -do - msg "Retrieving secret ${key}" - docker run --entrypoint=gcloud \ - --volume=${KOKORO_GFILE_DIR}:${KOKORO_GFILE_DIR} \ - gcr.io/google.com/cloudsdktool/cloud-sdk \ - secrets versions access latest \ - --project cloud-devrel-kokoro-resources \ - --secret ${key} > \ - "${SECRET_LOCATION}/${key}" - if [[ $? == 0 ]]; then - msg "Secret written to ${SECRET_LOCATION}/${key}" - else - msg "Error retrieving secret ${key}" - fi -done diff --git a/.kokoro/presubmit/clirr.cfg b/.kokoro/presubmit/clirr.cfg deleted file mode 100644 index ec572442..00000000 --- a/.kokoro/presubmit/clirr.cfg +++ /dev/null @@ -1,13 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. - -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "clirr" -} \ No newline at end of file diff --git a/.kokoro/presubmit/common.cfg b/.kokoro/presubmit/common.cfg deleted file mode 100644 index 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-17.cfg b/.kokoro/presubmit/graalvm-native-17.cfg deleted file mode 100644 index a3f7fb9d..00000000 --- a/.kokoro/presubmit/graalvm-native-17.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm17" -} - -env_vars: { - key: "JOB_TYPE" - value: "graalvm17" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} \ No newline at end of file diff --git a/.kokoro/presubmit/graalvm-native.cfg b/.kokoro/presubmit/graalvm-native.cfg deleted file mode 100644 index 4c7225ec..00000000 --- a/.kokoro/presubmit/graalvm-native.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/graalvm" -} - -env_vars: { - key: "JOB_TYPE" - value: "graalvm" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} diff --git a/.kokoro/presubmit/integration.cfg b/.kokoro/presubmit/integration.cfg deleted file mode 100644 index dded67a9..00000000 --- a/.kokoro/presubmit/integration.cfg +++ /dev/null @@ -1,33 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java8" -} - -env_vars: { - key: "JOB_TYPE" - value: "integration" -} - -# TODO: remove this after we've migrated all tests and scripts -env_vars: { - key: "GCLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_CLOUD_PROJECT" - value: "gcloud-devel" -} - -env_vars: { - key: "GOOGLE_APPLICATION_CREDENTIALS" - value: "secret_manager/java-it-service-account" -} - -env_vars: { - key: "SECRET_MANAGER_KEYS" - value: "java-it-service-account" -} diff --git a/.kokoro/presubmit/java11.cfg b/.kokoro/presubmit/java11.cfg deleted file mode 100644 index 709f2b4c..00000000 --- a/.kokoro/presubmit/java11.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java11" -} diff --git a/.kokoro/presubmit/java7.cfg b/.kokoro/presubmit/java7.cfg deleted file mode 100644 index cb24f44e..00000000 --- a/.kokoro/presubmit/java7.cfg +++ /dev/null @@ -1,7 +0,0 @@ -# Format: //devtools/kokoro/config/proto/build.proto - -# Configure the docker image for kokoro-trampoline. -env_vars: { - key: "TRAMPOLINE_IMAGE" - value: "gcr.io/cloud-devrel-kokoro-resources/java7" -} diff --git a/.kokoro/presubmit/java8-osx.cfg b/.kokoro/presubmit/java8-osx.cfg deleted file mode 100644 index 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 1a118d54..00000000 --- a/.kokoro/release/publish_javadoc.sh +++ /dev/null @@ -1,53 +0,0 @@ -#!/bin/bash -# Copyright 2019 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -if [[ -z "${CREDENTIALS}" ]]; then - CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account -fi - -if [[ -z "${STAGING_BUCKET}" ]]; then - echo "Need to set STAGING_BUCKET environment variable" - exit 1 -fi - -# work from the git root directory -pushd $(dirname "$0")/../../ - -# install docuploader package -python3 -m pip install --require-hashes -r .kokoro/requirements.txt - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-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 f5f43f24..00000000 --- a/.kokoro/release/publish_javadoc11.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash -# Copyright 2021 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -if [[ -z "${CREDENTIALS}" ]]; then - CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713_docuploader_service_account -fi - -if [[ -z "${STAGING_BUCKET_V2}" ]]; then - echo "Need to set STAGING_BUCKET_V2 environment variable" - exit 1 -fi - -# work from the git root directory -pushd $(dirname "$0")/../../ - -# install docuploader package -python3 -m pip install --require-hashes -r .kokoro/requirements.txt - -# compile all packages -mvn clean install -B -q -DskipTests=true - -export NAME=google-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 61e714d6..00000000 --- a/.kokoro/release/stage.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -set -eo pipefail - -# Start the releasetool reporter -requirementsFile=$(realpath $(dirname "${BASH_SOURCE[0]}")/../requirements.txt) -python3 -m pip install --require-hashes -r $requirementsFile -python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script - -source $(dirname "$0")/common.sh -source $(dirname "$0")/../common.sh -MAVEN_SETTINGS_FILE=$(realpath $(dirname "$0")/../../)/settings.xml -pushd $(dirname "$0")/../../ - -setup_environment_secrets -create_settings_xml_file "settings.xml" - -# attempt to stage 3 times with exponential backoff (starting with 10 seconds) -retry_with_backoff 3 10 \ - mvn clean deploy -B \ - --settings ${MAVEN_SETTINGS_FILE} \ - -DskipTests=true \ - -Dclirr.skip=true \ - -DperformRelease=true \ - -Dgpg.executable=gpg \ - -Dgpg.passphrase=${GPG_PASSPHRASE} \ - -Dgpg.homedir=${GPG_HOMEDIR} - -if [[ -n "${AUTORELEASE_PR}" ]] -then - mvn nexus-staging:release -B \ - -DperformRelease=true \ - --settings=settings.xml -fi diff --git a/.kokoro/requirements.in b/.kokoro/requirements.in deleted file mode 100644 index 6aa7cf2b..00000000 --- a/.kokoro/requirements.in +++ /dev/null @@ -1,33 +0,0 @@ -gcp-docuploader==0.6.3 -google-crc32c==1.3.0 -googleapis-common-protos==1.56.3 -gcp-releasetool==1.8.7 -cachetools==4.2.4 -cffi==1.15.1 -jeepney==0.7.1 -jinja2==3.0.3 -markupsafe==2.0.1 -keyring==23.4.1 -packaging==21.3 -protobuf==3.19.5 -pyjwt==2.4.0 -pyparsing==3.0.9 -pycparser==2.21 -pyperclip==1.8.2 -python-dateutil==2.8.2 -requests==2.27.1 -certifi==2022.9.24 -importlib-metadata==4.8.3 -zipp==3.6.0 -google_api_core==2.8.2 -google-cloud-storage==2.0.0 -google-resumable-media==2.3.3 -google-cloud-core==2.3.1 -typing-extensions==4.1.1 -urllib3==1.26.12 -zipp==3.6.0 -rsa==4.9 -six==1.16.0 -attrs==22.1.0 -google-auth==2.11.0 -idna==3.4 \ No newline at end of file diff --git a/.kokoro/requirements.txt b/.kokoro/requirements.txt deleted file mode 100644 index 02ae42bb..00000000 --- a/.kokoro/requirements.txt +++ /dev/null @@ -1,456 +0,0 @@ -# -# This file is autogenerated by pip-compile with python 3.10 -# To update, run: -# -# pip-compile --allow-unsafe --generate-hashes requirements.in -# -attrs==22.1.0 \ - --hash=sha256:29adc2665447e5191d0e7c568fde78b21f9672d344281d0c6e1ab085429b22b6 \ - --hash=sha256:86efa402f67bf2df34f51a335487cf46b1ec130d02b8d39fd248abfd30da551c - # via - # -r requirements.in - # gcp-releasetool -cachetools==4.2.4 \ - --hash=sha256:89ea6f1b638d5a73a4f9226be57ac5e4f399d22770b92355f92dcb0f7f001693 \ - --hash=sha256:92971d3cb7d2a97efff7c7bb1657f21a8f5fb309a37530537c71b1774189f2d1 - # via - # -r requirements.in - # google-auth -certifi==2022.9.24 \ - --hash=sha256:0d9c601124e5a6ba9712dbc60d9c53c21e34f5f641fe83002317394311bdce14 \ - --hash=sha256:90c1a32f1d68f940488354e36370f6cca89f0f106db09518524c88d6ed83f382 - # via - # -r requirements.in - # requests -cffi==1.15.1 \ - --hash=sha256:00a9ed42e88df81ffae7a8ab6d9356b371399b91dbdf0c3cb1e84c03a13aceb5 \ - --hash=sha256:03425bdae262c76aad70202debd780501fabeaca237cdfddc008987c0e0f59ef \ - --hash=sha256:04ed324bda3cda42b9b695d51bb7d54b680b9719cfab04227cdd1e04e5de3104 \ - --hash=sha256:0e2642fe3142e4cc4af0799748233ad6da94c62a8bec3a6648bf8ee68b1c7426 \ - --hash=sha256:173379135477dc8cac4bc58f45db08ab45d228b3363adb7af79436135d028405 \ - --hash=sha256:198caafb44239b60e252492445da556afafc7d1e3ab7a1fb3f0584ef6d742375 \ - --hash=sha256:1e74c6b51a9ed6589199c787bf5f9875612ca4a8a0785fb2d4a84429badaf22a \ - --hash=sha256:2012c72d854c2d03e45d06ae57f40d78e5770d252f195b93f581acf3ba44496e \ - --hash=sha256:21157295583fe8943475029ed5abdcf71eb3911894724e360acff1d61c1d54bc \ - --hash=sha256:2470043b93ff09bf8fb1d46d1cb756ce6132c54826661a32d4e4d132e1977adf \ - --hash=sha256:285d29981935eb726a4399badae8f0ffdff4f5050eaa6d0cfc3f64b857b77185 \ - --hash=sha256:30d78fbc8ebf9c92c9b7823ee18eb92f2e6ef79b45ac84db507f52fbe3ec4497 \ - --hash=sha256:320dab6e7cb2eacdf0e658569d2575c4dad258c0fcc794f46215e1e39f90f2c3 \ - --hash=sha256:33ab79603146aace82c2427da5ca6e58f2b3f2fb5da893ceac0c42218a40be35 \ - --hash=sha256:3548db281cd7d2561c9ad9984681c95f7b0e38881201e157833a2342c30d5e8c \ - --hash=sha256:3799aecf2e17cf585d977b780ce79ff0dc9b78d799fc694221ce814c2c19db83 \ - --hash=sha256:39d39875251ca8f612b6f33e6b1195af86d1b3e60086068be9cc053aa4376e21 \ - --hash=sha256:3b926aa83d1edb5aa5b427b4053dc420ec295a08e40911296b9eb1b6170f6cca \ - --hash=sha256:3bcde07039e586f91b45c88f8583ea7cf7a0770df3a1649627bf598332cb6984 \ - --hash=sha256:3d08afd128ddaa624a48cf2b859afef385b720bb4b43df214f85616922e6a5ac \ - --hash=sha256:3eb6971dcff08619f8d91607cfc726518b6fa2a9eba42856be181c6d0d9515fd \ - --hash=sha256:40f4774f5a9d4f5e344f31a32b5096977b5d48560c5592e2f3d2c4374bd543ee \ - --hash=sha256:4289fc34b2f5316fbb762d75362931e351941fa95fa18789191b33fc4cf9504a \ - --hash=sha256:470c103ae716238bbe698d67ad020e1db9d9dba34fa5a899b5e21577e6d52ed2 \ - --hash=sha256:4f2c9f67e9821cad2e5f480bc8d83b8742896f1242dba247911072d4fa94c192 \ - --hash=sha256:50a74364d85fd319352182ef59c5c790484a336f6db772c1a9231f1c3ed0cbd7 \ - --hash=sha256:54a2db7b78338edd780e7ef7f9f6c442500fb0d41a5a4ea24fff1c929d5af585 \ - --hash=sha256:5635bd9cb9731e6d4a1132a498dd34f764034a8ce60cef4f5319c0541159392f \ - --hash=sha256:59c0b02d0a6c384d453fece7566d1c7e6b7bae4fc5874ef2ef46d56776d61c9e \ - --hash=sha256:5d598b938678ebf3c67377cdd45e09d431369c3b1a5b331058c338e201f12b27 \ - --hash=sha256:5df2768244d19ab7f60546d0c7c63ce1581f7af8b5de3eb3004b9b6fc8a9f84b \ - --hash=sha256:5ef34d190326c3b1f822a5b7a45f6c4535e2f47ed06fec77d3d799c450b2651e \ - --hash=sha256:6975a3fac6bc83c4a65c9f9fcab9e47019a11d3d2cf7f3c0d03431bf145a941e \ - --hash=sha256:6c9a799e985904922a4d207a94eae35c78ebae90e128f0c4e521ce339396be9d \ - --hash=sha256:70df4e3b545a17496c9b3f41f5115e69a4f2e77e94e1d2a8e1070bc0c38c8a3c \ - --hash=sha256:7473e861101c9e72452f9bf8acb984947aa1661a7704553a9f6e4baa5ba64415 \ - --hash=sha256:8102eaf27e1e448db915d08afa8b41d6c7ca7a04b7d73af6514df10a3e74bd82 \ - --hash=sha256:87c450779d0914f2861b8526e035c5e6da0a3199d8f1add1a665e1cbc6fc6d02 \ - --hash=sha256:8b7ee99e510d7b66cdb6c593f21c043c248537a32e0bedf02e01e9553a172314 \ - --hash=sha256:91fc98adde3d7881af9b59ed0294046f3806221863722ba7d8d120c575314325 \ - --hash=sha256:94411f22c3985acaec6f83c6df553f2dbe17b698cc7f8ae751ff2237d96b9e3c \ - --hash=sha256:98d85c6a2bef81588d9227dde12db8a7f47f639f4a17c9ae08e773aa9c697bf3 \ - --hash=sha256:9ad5db27f9cabae298d151c85cf2bad1d359a1b9c686a275df03385758e2f914 \ - --hash=sha256:a0b71b1b8fbf2b96e41c4d990244165e2c9be83d54962a9a1d118fd8657d2045 \ - --hash=sha256:a0f100c8912c114ff53e1202d0078b425bee3649ae34d7b070e9697f93c5d52d \ - --hash=sha256:a591fe9e525846e4d154205572a029f653ada1a78b93697f3b5a8f1f2bc055b9 \ - --hash=sha256:a5c84c68147988265e60416b57fc83425a78058853509c1b0629c180094904a5 \ - --hash=sha256:a66d3508133af6e8548451b25058d5812812ec3798c886bf38ed24a98216fab2 \ - --hash=sha256:a8c4917bd7ad33e8eb21e9a5bbba979b49d9a97acb3a803092cbc1133e20343c \ - --hash=sha256:b3bbeb01c2b273cca1e1e0c5df57f12dce9a4dd331b4fa1635b8bec26350bde3 \ - --hash=sha256:cba9d6b9a7d64d4bd46167096fc9d2f835e25d7e4c121fb2ddfc6528fb0413b2 \ - --hash=sha256:cc4d65aeeaa04136a12677d3dd0b1c0c94dc43abac5860ab33cceb42b801c1e8 \ - --hash=sha256:ce4bcc037df4fc5e3d184794f27bdaab018943698f4ca31630bc7f84a7b69c6d \ - --hash=sha256:cec7d9412a9102bdc577382c3929b337320c4c4c4849f2c5cdd14d7368c5562d \ - --hash=sha256:d400bfb9a37b1351253cb402671cea7e89bdecc294e8016a707f6d1d8ac934f9 \ - --hash=sha256:d61f4695e6c866a23a21acab0509af1cdfd2c013cf256bbf5b6b5e2695827162 \ - --hash=sha256:db0fbb9c62743ce59a9ff687eb5f4afbe77e5e8403d6697f7446e5f609976f76 \ - --hash=sha256:dd86c085fae2efd48ac91dd7ccffcfc0571387fe1193d33b6394db7ef31fe2a4 \ - --hash=sha256:e00b098126fd45523dd056d2efba6c5a63b71ffe9f2bbe1a4fe1716e1d0c331e \ - --hash=sha256:e229a521186c75c8ad9490854fd8bbdd9a0c9aa3a524326b55be83b54d4e0ad9 \ - --hash=sha256:e263d77ee3dd201c3a142934a086a4450861778baaeeb45db4591ef65550b0a6 \ - --hash=sha256:ed9cb427ba5504c1dc15ede7d516b84757c3e3d7868ccc85121d9310d27eed0b \ - --hash=sha256:fa6693661a4c91757f4412306191b6dc88c1703f780c8234035eac011922bc01 \ - --hash=sha256:fcd131dd944808b5bdb38e6f5b53013c5aa4f334c5cad0c72742f6eba4b73db0 - # via - # -r requirements.in - # cryptography -charset-normalizer==2.0.12 \ - --hash=sha256:2857e29ff0d34db842cd7ca3230549d1a697f96ee6d3fb071cfa6c7393832597 \ - --hash=sha256:6881edbebdb17b39b4eaaa821b438bf6eddffb4468cf344f09f89def34a8b1df - # via requests -click==8.0.4 \ - --hash=sha256:6a7a62563bbfabfda3a38f3023a1db4a35978c0abd76f6c9605ecd6554d6d9b1 \ - --hash=sha256:8458d7b1287c5fb128c90e23381cf99dcde74beaf6c7ff6384ce84d6fe090adb - # via - # gcp-docuploader - # gcp-releasetool -colorlog==6.7.0 \ - --hash=sha256:0d33ca236784a1ba3ff9c532d4964126d8a2c44f1f0cb1d2b0728196f512f662 \ - --hash=sha256:bd94bd21c1e13fac7bd3153f4bc3a7dc0eb0974b8bc2fdf1a989e474f6e582e5 - # via gcp-docuploader -cryptography==38.0.1 \ - --hash=sha256:0297ffc478bdd237f5ca3a7dc96fc0d315670bfa099c04dc3a4a2172008a405a \ - --hash=sha256:10d1f29d6292fc95acb597bacefd5b9e812099d75a6469004fd38ba5471a977f \ - --hash=sha256:16fa61e7481f4b77ef53991075de29fc5bacb582a1244046d2e8b4bb72ef66d0 \ - --hash=sha256:194044c6b89a2f9f169df475cc167f6157eb9151cc69af8a2a163481d45cc407 \ - --hash=sha256:1db3d807a14931fa317f96435695d9ec386be7b84b618cc61cfa5d08b0ae33d7 \ - --hash=sha256:3261725c0ef84e7592597606f6583385fed2a5ec3909f43bc475ade9729a41d6 \ - --hash=sha256:3b72c360427889b40f36dc214630e688c2fe03e16c162ef0aa41da7ab1455153 \ - --hash=sha256:3e3a2599e640927089f932295a9a247fc40a5bdf69b0484532f530471a382750 \ - --hash=sha256:3fc26e22840b77326a764ceb5f02ca2d342305fba08f002a8c1f139540cdfaad \ - --hash=sha256:5067ee7f2bce36b11d0e334abcd1ccf8c541fc0bbdaf57cdd511fdee53e879b6 \ - --hash=sha256:52e7bee800ec869b4031093875279f1ff2ed12c1e2f74923e8f49c916afd1d3b \ - --hash=sha256:64760ba5331e3f1794d0bcaabc0d0c39e8c60bf67d09c93dc0e54189dfd7cfe5 \ - --hash=sha256:765fa194a0f3372d83005ab83ab35d7c5526c4e22951e46059b8ac678b44fa5a \ - --hash=sha256:79473cf8a5cbc471979bd9378c9f425384980fcf2ab6534b18ed7d0d9843987d \ - --hash=sha256:896dd3a66959d3a5ddcfc140a53391f69ff1e8f25d93f0e2e7830c6de90ceb9d \ - --hash=sha256:89ed49784ba88c221756ff4d4755dbc03b3c8d2c5103f6d6b4f83a0fb1e85294 \ - --hash=sha256:ac7e48f7e7261207d750fa7e55eac2d45f720027d5703cd9007e9b37bbb59ac0 \ - --hash=sha256:ad7353f6ddf285aeadfaf79e5a6829110106ff8189391704c1d8801aa0bae45a \ - --hash=sha256:b0163a849b6f315bf52815e238bc2b2346604413fa7c1601eea84bcddb5fb9ac \ - --hash=sha256:b6c9b706316d7b5a137c35e14f4103e2115b088c412140fdbd5f87c73284df61 \ - --hash=sha256:c2e5856248a416767322c8668ef1845ad46ee62629266f84a8f007a317141013 \ - --hash=sha256:ca9f6784ea96b55ff41708b92c3f6aeaebde4c560308e5fbbd3173fbc466e94e \ - --hash=sha256:d1a5bd52d684e49a36582193e0b89ff267704cd4025abefb9e26803adeb3e5fb \ - --hash=sha256:d3971e2749a723e9084dd507584e2a2761f78ad2c638aa31e80bc7a15c9db4f9 \ - --hash=sha256:d4ef6cc305394ed669d4d9eebf10d3a101059bdcf2669c366ec1d14e4fb227bd \ - --hash=sha256:d9e69ae01f99abe6ad646947bba8941e896cb3aa805be2597a0400e0764b5818 - # via - # gcp-releasetool - # secretstorage -gcp-docuploader==0.6.3 \ - --hash=sha256:ba8c9d76b3bbac54b0311c503a373b00edc2dc02d6d54ea9507045adb8e870f7 \ - --hash=sha256:c0f5aaa82ce1854a386197e4e359b120ad6d4e57ae2c812fce42219a3288026b - # via -r requirements.in -gcp-releasetool==1.8.7 \ - --hash=sha256:3d2a67c9db39322194afb3b427e9cb0476ce8f2a04033695f0aeb63979fc2b37 \ - --hash=sha256:5e4d28f66e90780d77f3ecf1e9155852b0c3b13cbccb08ab07e66b2357c8da8d - # via -r requirements.in -google-api-core==2.8.2 \ - --hash=sha256:06f7244c640322b508b125903bb5701bebabce8832f85aba9335ec00b3d02edc \ - --hash=sha256:93c6a91ccac79079ac6bbf8b74ee75db970cc899278b97d53bc012f35908cf50 - # via - # -r requirements.in - # google-cloud-core - # google-cloud-storage -google-auth==2.11.0 \ - --hash=sha256:be62acaae38d0049c21ca90f27a23847245c9f161ff54ede13af2cb6afecbac9 \ - --hash=sha256:ed65ecf9f681832298e29328e1ef0a3676e3732b2e56f41532d45f70a22de0fb - # via - # -r requirements.in - # gcp-releasetool - # google-api-core - # google-cloud-core - # google-cloud-storage -google-cloud-core==2.3.1 \ - --hash=sha256:113ba4f492467d5bd442c8d724c1a25ad7384045c3178369038840ecdd19346c \ - --hash=sha256:34334359cb04187bdc80ddcf613e462dfd7a3aabbc3fe4d118517ab4b9303d53 - # via - # -r requirements.in - # google-cloud-storage -google-cloud-storage==2.0.0 \ - --hash=sha256:a57a15aead0f9dfbd4381f1bfdbe8bf89818a4bd75bab846cafcefb2db846c47 \ - --hash=sha256:ec4be60bb223a3a960f0d01697d849b86d91cad815a84915a32ed3635e93a5e7 - # via - # -r requirements.in - # gcp-docuploader -google-crc32c==1.3.0 \ - --hash=sha256:04e7c220798a72fd0f08242bc8d7a05986b2a08a0573396187fd32c1dcdd58b3 \ - --hash=sha256:05340b60bf05b574159e9bd940152a47d38af3fb43803ffe71f11d704b7696a6 \ - --hash=sha256:12674a4c3b56b706153a358eaa1018c4137a5a04635b92b4652440d3d7386206 \ - --hash=sha256:127f9cc3ac41b6a859bd9dc4321097b1a4f6aa7fdf71b4f9227b9e3ebffb4422 \ - --hash=sha256:13af315c3a0eec8bb8b8d80b8b128cb3fcd17d7e4edafc39647846345a3f003a \ - --hash=sha256:1926fd8de0acb9d15ee757175ce7242e235482a783cd4ec711cc999fc103c24e \ - --hash=sha256:226f2f9b8e128a6ca6a9af9b9e8384f7b53a801907425c9a292553a3a7218ce0 \ - --hash=sha256:276de6273eb074a35bc598f8efbc00c7869c5cf2e29c90748fccc8c898c244df \ - --hash=sha256:318f73f5484b5671f0c7f5f63741ab020a599504ed81d209b5c7129ee4667407 \ - --hash=sha256:3bbce1be3687bbfebe29abdb7631b83e6b25da3f4e1856a1611eb21854b689ea \ - --hash=sha256:42ae4781333e331a1743445931b08ebdad73e188fd554259e772556fc4937c48 \ - --hash=sha256:58be56ae0529c664cc04a9c76e68bb92b091e0194d6e3c50bea7e0f266f73713 \ - --hash=sha256:5da2c81575cc3ccf05d9830f9e8d3c70954819ca9a63828210498c0774fda1a3 \ - --hash=sha256:6311853aa2bba4064d0c28ca54e7b50c4d48e3de04f6770f6c60ebda1e975267 \ - --hash=sha256:650e2917660e696041ab3dcd7abac160b4121cd9a484c08406f24c5964099829 \ - --hash=sha256:6a4db36f9721fdf391646685ecffa404eb986cbe007a3289499020daf72e88a2 \ - --hash=sha256:779cbf1ce375b96111db98fca913c1f5ec11b1d870e529b1dc7354b2681a8c3a \ - --hash=sha256:7f6fe42536d9dcd3e2ffb9d3053f5d05221ae3bbcefbe472bdf2c71c793e3183 \ - --hash=sha256:891f712ce54e0d631370e1f4997b3f182f3368179198efc30d477c75d1f44942 \ - --hash=sha256:95c68a4b9b7828ba0428f8f7e3109c5d476ca44996ed9a5f8aac6269296e2d59 \ - --hash=sha256:96a8918a78d5d64e07c8ea4ed2bc44354e3f93f46a4866a40e8db934e4c0d74b \ - --hash=sha256:9c3cf890c3c0ecfe1510a452a165431b5831e24160c5fcf2071f0f85ca5a47cd \ - --hash=sha256:9f58099ad7affc0754ae42e6d87443299f15d739b0ce03c76f515153a5cda06c \ - --hash=sha256:a0b9e622c3b2b8d0ce32f77eba617ab0d6768b82836391e4f8f9e2074582bf02 \ - --hash=sha256:a7f9cbea4245ee36190f85fe1814e2d7b1e5f2186381b082f5d59f99b7f11328 \ - --hash=sha256:bab4aebd525218bab4ee615786c4581952eadc16b1ff031813a2fd51f0cc7b08 \ - --hash=sha256:c124b8c8779bf2d35d9b721e52d4adb41c9bfbde45e6a3f25f0820caa9aba73f \ - --hash=sha256:c9da0a39b53d2fab3e5467329ed50e951eb91386e9d0d5b12daf593973c3b168 \ - --hash=sha256:ca60076c388728d3b6ac3846842474f4250c91efbfe5afa872d3ffd69dd4b318 \ - --hash=sha256:cb6994fff247987c66a8a4e550ef374671c2b82e3c0d2115e689d21e511a652d \ - --hash=sha256:d1c1d6236feab51200272d79b3d3e0f12cf2cbb12b208c835b175a21efdb0a73 \ - --hash=sha256:dd7760a88a8d3d705ff562aa93f8445ead54f58fd482e4f9e2bafb7e177375d4 \ - --hash=sha256:dda4d8a3bb0b50f540f6ff4b6033f3a74e8bf0bd5320b70fab2c03e512a62812 \ - --hash=sha256:e0f1ff55dde0ebcfbef027edc21f71c205845585fffe30d4ec4979416613e9b3 \ - --hash=sha256:e7a539b9be7b9c00f11ef16b55486141bc2cdb0c54762f84e3c6fc091917436d \ - --hash=sha256:eb0b14523758e37802f27b7f8cd973f5f3d33be7613952c0df904b68c4842f0e \ - --hash=sha256:ed447680ff21c14aaceb6a9f99a5f639f583ccfe4ce1a5e1d48eb41c3d6b3217 \ - --hash=sha256:f52a4ad2568314ee713715b1e2d79ab55fab11e8b304fd1462ff5cccf4264b3e \ - --hash=sha256:fbd60c6aaa07c31d7754edbc2334aef50601b7f1ada67a96eb1eb57c7c72378f \ - --hash=sha256:fc28e0db232c62ca0c3600884933178f0825c99be4474cdd645e378a10588125 \ - --hash=sha256:fe31de3002e7b08eb20823b3735b97c86c5926dd0581c7710a680b418a8709d4 \ - --hash=sha256:fec221a051150eeddfdfcff162e6db92c65ecf46cb0f7bb1bf812a1520ec026b \ - --hash=sha256:ff71073ebf0e42258a42a0b34f2c09ec384977e7f6808999102eedd5b49920e3 - # via - # -r requirements.in - # google-resumable-media -google-resumable-media==2.3.3 \ - --hash=sha256:27c52620bd364d1c8116eaac4ea2afcbfb81ae9139fb3199652fcac1724bfb6c \ - --hash=sha256:5b52774ea7a829a8cdaa8bd2d4c3d4bc660c91b30857ab2668d0eb830f4ea8c5 - # via - # -r requirements.in - # google-cloud-storage -googleapis-common-protos==1.56.3 \ - --hash=sha256:6f1369b58ed6cf3a4b7054a44ebe8d03b29c309257583a2bbdc064cd1e4a1442 \ - --hash=sha256:87955d7b3a73e6e803f2572a33179de23989ebba725e05ea42f24838b792e461 - # via - # -r requirements.in - # google-api-core -idna==3.4 \ - --hash=sha256:814f528e8dead7d329833b91c5faa87d60bf71824cd12a7530b5526063d02cb4 \ - --hash=sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2 - # via - # -r requirements.in - # requests -importlib-metadata==4.8.3 \ - --hash=sha256:65a9576a5b2d58ca44d133c42a241905cc45e34d2c06fd5ba2bafa221e5d7b5e \ - --hash=sha256:766abffff765960fcc18003801f7044eb6755ffae4521c8e8ce8e83b9c9b0668 - # via - # -r requirements.in - # keyring -jeepney==0.7.1 \ - --hash=sha256:1b5a0ea5c0e7b166b2f5895b91a08c14de8915afda4407fb5022a195224958ac \ - --hash=sha256:fa9e232dfa0c498bd0b8a3a73b8d8a31978304dcef0515adc859d4e096f96f4f - # via - # -r requirements.in - # keyring - # secretstorage -jinja2==3.0.3 \ - --hash=sha256:077ce6014f7b40d03b47d1f1ca4b0fc8328a692bd284016f806ed0eaca390ad8 \ - --hash=sha256:611bb273cd68f3b993fabdc4064fc858c5b47a973cb5aa7999ec1ba405c87cd7 - # via - # -r requirements.in - # gcp-releasetool -keyring==23.4.1 \ - --hash=sha256:17e49fb0d6883c2b4445359434dba95aad84aabb29bbff044ad0ed7100232eca \ - --hash=sha256:89cbd74d4683ed164c8082fb38619341097741323b3786905c6dac04d6915a55 - # via - # -r requirements.in - # gcp-releasetool -markupsafe==2.0.1 \ - --hash=sha256:01a9b8ea66f1658938f65b93a85ebe8bc016e6769611be228d797c9d998dd298 \ - --hash=sha256:023cb26ec21ece8dc3907c0e8320058b2e0cb3c55cf9564da612bc325bed5e64 \ - --hash=sha256:0446679737af14f45767963a1a9ef7620189912317d095f2d9ffa183a4d25d2b \ - --hash=sha256:04635854b943835a6ea959e948d19dcd311762c5c0c6e1f0e16ee57022669194 \ - --hash=sha256:0717a7390a68be14b8c793ba258e075c6f4ca819f15edfc2a3a027c823718567 \ - --hash=sha256:0955295dd5eec6cb6cc2fe1698f4c6d84af2e92de33fbcac4111913cd100a6ff \ - --hash=sha256:0d4b31cc67ab36e3392bbf3862cfbadac3db12bdd8b02a2731f509ed5b829724 \ - --hash=sha256:10f82115e21dc0dfec9ab5c0223652f7197feb168c940f3ef61563fc2d6beb74 \ - --hash=sha256:168cd0a3642de83558a5153c8bd34f175a9a6e7f6dc6384b9655d2697312a646 \ - --hash=sha256:1d609f577dc6e1aa17d746f8bd3c31aa4d258f4070d61b2aa5c4166c1539de35 \ - --hash=sha256:1f2ade76b9903f39aa442b4aadd2177decb66525062db244b35d71d0ee8599b6 \ - --hash=sha256:20dca64a3ef2d6e4d5d615a3fd418ad3bde77a47ec8a23d984a12b5b4c74491a \ - --hash=sha256:2a7d351cbd8cfeb19ca00de495e224dea7e7d919659c2841bbb7f420ad03e2d6 \ - --hash=sha256:2d7d807855b419fc2ed3e631034685db6079889a1f01d5d9dac950f764da3dad \ - --hash=sha256:2ef54abee730b502252bcdf31b10dacb0a416229b72c18b19e24a4509f273d26 \ - --hash=sha256:36bc903cbb393720fad60fc28c10de6acf10dc6cc883f3e24ee4012371399a38 \ - --hash=sha256:37205cac2a79194e3750b0af2a5720d95f786a55ce7df90c3af697bfa100eaac \ - --hash=sha256:3c112550557578c26af18a1ccc9e090bfe03832ae994343cfdacd287db6a6ae7 \ - --hash=sha256:3dd007d54ee88b46be476e293f48c85048603f5f516008bee124ddd891398ed6 \ - --hash=sha256:4296f2b1ce8c86a6aea78613c34bb1a672ea0e3de9c6ba08a960efe0b0a09047 \ - --hash=sha256:47ab1e7b91c098ab893b828deafa1203de86d0bc6ab587b160f78fe6c4011f75 \ - --hash=sha256:49e3ceeabbfb9d66c3aef5af3a60cc43b85c33df25ce03d0031a608b0a8b2e3f \ - --hash=sha256:4dc8f9fb58f7364b63fd9f85013b780ef83c11857ae79f2feda41e270468dd9b \ - --hash=sha256:4efca8f86c54b22348a5467704e3fec767b2db12fc39c6d963168ab1d3fc9135 \ - --hash=sha256:53edb4da6925ad13c07b6d26c2a852bd81e364f95301c66e930ab2aef5b5ddd8 \ - --hash=sha256:5855f8438a7d1d458206a2466bf82b0f104a3724bf96a1c781ab731e4201731a \ - --hash=sha256:594c67807fb16238b30c44bdf74f36c02cdf22d1c8cda91ef8a0ed8dabf5620a \ - --hash=sha256:5b6d930f030f8ed98e3e6c98ffa0652bdb82601e7a016ec2ab5d7ff23baa78d1 \ - --hash=sha256:5bb28c636d87e840583ee3adeb78172efc47c8b26127267f54a9c0ec251d41a9 \ - --hash=sha256:60bf42e36abfaf9aff1f50f52644b336d4f0a3fd6d8a60ca0d054ac9f713a864 \ - --hash=sha256:611d1ad9a4288cf3e3c16014564df047fe08410e628f89805e475368bd304914 \ - --hash=sha256:6300b8454aa6930a24b9618fbb54b5a68135092bc666f7b06901f897fa5c2fee \ - --hash=sha256:63f3268ba69ace99cab4e3e3b5840b03340efed0948ab8f78d2fd87ee5442a4f \ - --hash=sha256:6557b31b5e2c9ddf0de32a691f2312a32f77cd7681d8af66c2692efdbef84c18 \ - --hash=sha256:693ce3f9e70a6cf7d2fb9e6c9d8b204b6b39897a2c4a1aa65728d5ac97dcc1d8 \ - --hash=sha256:6a7fae0dd14cf60ad5ff42baa2e95727c3d81ded453457771d02b7d2b3f9c0c2 \ - --hash=sha256:6c4ca60fa24e85fe25b912b01e62cb969d69a23a5d5867682dd3e80b5b02581d \ - --hash=sha256:6fcf051089389abe060c9cd7caa212c707e58153afa2c649f00346ce6d260f1b \ - --hash=sha256:7d91275b0245b1da4d4cfa07e0faedd5b0812efc15b702576d103293e252af1b \ - --hash=sha256:89c687013cb1cd489a0f0ac24febe8c7a666e6e221b783e53ac50ebf68e45d86 \ - --hash=sha256:8d206346619592c6200148b01a2142798c989edcb9c896f9ac9722a99d4e77e6 \ - --hash=sha256:905fec760bd2fa1388bb5b489ee8ee5f7291d692638ea5f67982d968366bef9f \ - --hash=sha256:97383d78eb34da7e1fa37dd273c20ad4320929af65d156e35a5e2d89566d9dfb \ - --hash=sha256:984d76483eb32f1bcb536dc27e4ad56bba4baa70be32fa87152832cdd9db0833 \ - --hash=sha256:99df47edb6bda1249d3e80fdabb1dab8c08ef3975f69aed437cb69d0a5de1e28 \ - --hash=sha256:9f02365d4e99430a12647f09b6cc8bab61a6564363f313126f775eb4f6ef798e \ - --hash=sha256:a30e67a65b53ea0a5e62fe23682cfe22712e01f453b95233b25502f7c61cb415 \ - --hash=sha256:ab3ef638ace319fa26553db0624c4699e31a28bb2a835c5faca8f8acf6a5a902 \ - --hash=sha256:aca6377c0cb8a8253e493c6b451565ac77e98c2951c45f913e0b52facdcff83f \ - --hash=sha256:add36cb2dbb8b736611303cd3bfcee00afd96471b09cda130da3581cbdc56a6d \ - --hash=sha256:b2f4bf27480f5e5e8ce285a8c8fd176c0b03e93dcc6646477d4630e83440c6a9 \ - --hash=sha256:b7f2d075102dc8c794cbde1947378051c4e5180d52d276987b8d28a3bd58c17d \ - --hash=sha256:baa1a4e8f868845af802979fcdbf0bb11f94f1cb7ced4c4b8a351bb60d108145 \ - --hash=sha256:be98f628055368795d818ebf93da628541e10b75b41c559fdf36d104c5787066 \ - --hash=sha256:bf5d821ffabf0ef3533c39c518f3357b171a1651c1ff6827325e4489b0e46c3c \ - --hash=sha256:c47adbc92fc1bb2b3274c4b3a43ae0e4573d9fbff4f54cd484555edbf030baf1 \ - --hash=sha256:cdfba22ea2f0029c9261a4bd07e830a8da012291fbe44dc794e488b6c9bb353a \ - --hash=sha256:d6c7ebd4e944c85e2c3421e612a7057a2f48d478d79e61800d81468a8d842207 \ - --hash=sha256:d7f9850398e85aba693bb640262d3611788b1f29a79f0c93c565694658f4071f \ - --hash=sha256:d8446c54dc28c01e5a2dbac5a25f071f6653e6e40f3a8818e8b45d790fe6ef53 \ - --hash=sha256:deb993cacb280823246a026e3b2d81c493c53de6acfd5e6bfe31ab3402bb37dd \ - --hash=sha256:e0f138900af21926a02425cf736db95be9f4af72ba1bb21453432a07f6082134 \ - --hash=sha256:e9936f0b261d4df76ad22f8fee3ae83b60d7c3e871292cd42f40b81b70afae85 \ - --hash=sha256:f0567c4dc99f264f49fe27da5f735f414c4e7e7dd850cfd8e69f0862d7c74ea9 \ - --hash=sha256:f5653a225f31e113b152e56f154ccbe59eeb1c7487b39b9d9f9cdb58e6c79dc5 \ - --hash=sha256:f826e31d18b516f653fe296d967d700fddad5901ae07c622bb3705955e1faa94 \ - --hash=sha256:f8ba0e8349a38d3001fae7eadded3f6606f0da5d748ee53cc1dab1d6527b9509 \ - --hash=sha256:f9081981fe268bd86831e5c75f7de206ef275defcb82bc70740ae6dc507aee51 \ - --hash=sha256:fa130dd50c57d53368c9d59395cb5526eda596d3ffe36666cd81a44d56e48872 - # via - # -r requirements.in - # jinja2 -packaging==21.3 \ - --hash=sha256:dd47c42927d89ab911e606518907cc2d3a1f38bbd026385970643f9c5b8ecfeb \ - --hash=sha256:ef103e05f519cdc783ae24ea4e2e0f508a9c99b2d4969652eed6a2e1ea5bd522 - # via - # -r requirements.in - # gcp-releasetool -protobuf==3.19.5 \ - --hash=sha256:1867f93b06a183f87696871bb8d1e99ee71dbb69d468ce1f0cc8bf3d30f982f3 \ - --hash=sha256:3c4160b601220627f7e91154e572baf5e161a9c3f445a8242d536ee3d0b7b17c \ - --hash=sha256:4ee2af7051d3b10c8a4fe6fd1a2c69f201fea36aeee7086cf202a692e1b99ee1 \ - --hash=sha256:5266c36cc0af3bb3dbf44f199d225b33da66a9a5c3bdc2b14865ad10eddf0e37 \ - --hash=sha256:5470f892961af464ae6eaf0f3099e2c1190ae8c7f36f174b89491281341f79ca \ - --hash=sha256:66d14b5b90090353efe75c9fb1bf65ef7267383034688d255b500822e37d5c2f \ - --hash=sha256:67efb5d20618020aa9596e17bfc37ca068c28ec0c1507d9507f73c93d46c9855 \ - --hash=sha256:696e6cfab94cc15a14946f2bf72719dced087d437adbd994fff34f38986628bc \ - --hash=sha256:6a02172b9650f819d01fb8e224fc69b0706458fc1ab4f1c669281243c71c1a5e \ - --hash=sha256:6eca9ae238ba615d702387a2ddea635d535d769994a9968c09a4ca920c487ab9 \ - --hash=sha256:950abd6c00e7b51f87ae8b18a0ce4d69fea217f62f171426e77de5061f6d9850 \ - --hash=sha256:9e1d74032f56ff25f417cfe84c8147047732e5059137ca42efad20cbbd25f5e0 \ - --hash=sha256:9e42b1cf2ecd8a1bd161239e693f22035ba99905ae6d7efeac8a0546c7ec1a27 \ - --hash=sha256:9f957ef53e872d58a0afd3bf6d80d48535d28c99b40e75e6634cbc33ea42fd54 \ - --hash=sha256:a89aa0c042e61e11ade320b802d6db4ee5391d8d973e46d3a48172c1597789f8 \ - --hash=sha256:c0f80876a8ff0ae7064084ed094eb86497bd5a3812e6fc96a05318b92301674e \ - --hash=sha256:c44e3282cff74ad18c7e8a0375f407f69ee50c2116364b44492a196293e08b21 \ - --hash=sha256:d249519ba5ecf5dd6b18150c9b6bcde510b273714b696f3923ff8308fc11ae49 \ - --hash=sha256:d3973a2d58aefc7d1230725c2447ce7f86a71cbc094b86a77c6ee1505ac7cdb1 \ - --hash=sha256:dca2284378a5f2a86ffed35c6ac147d14c48b525eefcd1083e5a9ce28dfa8657 \ - --hash=sha256:e63b0b3c42e51c94add62b010366cd4979cb6d5f06158bcae8faac4c294f91e1 \ - --hash=sha256:f2b599a21c9a32e171ec29a2ac54e03297736c578698e11b099d031f79da114b \ - --hash=sha256:f2bde37667b18c2b5280df83bc799204394a5d2d774e4deaf9de0eb741df6833 \ - --hash=sha256:f4f909f4dde413dec435a44b0894956d55bb928ded7d6e3c726556ca4c796e84 \ - --hash=sha256:f976234e20ab2785f54224bcdafa027674e23663b132fa3ca0caa291a6cfbde7 \ - --hash=sha256:f9cebda093c2f6bfed88f1c17cdade09d4d96096421b344026feee236532d4de - # via - # -r requirements.in - # gcp-docuploader - # gcp-releasetool - # google-api-core - # google-cloud-storage - # googleapis-common-protos -pyasn1==0.4.8 \ - --hash=sha256:39c7e2ec30515947ff4e87fb6f456dfc6e84857d34be479c9d4a4ba4bf46aa5d \ - --hash=sha256:aef77c9fb94a3ac588e87841208bdec464471d9871bd5050a287cc9a475cd0ba - # via - # pyasn1-modules - # rsa -pyasn1-modules==0.2.8 \ - --hash=sha256:905f84c712230b2c592c19470d3ca8d552de726050d1d1716282a1f6146be65e \ - --hash=sha256:a50b808ffeb97cb3601dd25981f6b016cbb3d31fbf57a8b8a87428e6158d0c74 - # via google-auth -pycparser==2.21 \ - --hash=sha256:8ee45429555515e1f6b185e78100aea234072576aa43ab53aefcae078162fca9 \ - --hash=sha256:e644fdec12f7872f86c58ff790da456218b10f863970249516d60a5eaca77206 - # via - # -r requirements.in - # cffi -pyjwt==2.4.0 \ - --hash=sha256:72d1d253f32dbd4f5c88eaf1fdc62f3a19f676ccbadb9dbc5d07e951b2b26daf \ - --hash=sha256:d42908208c699b3b973cbeb01a969ba6a96c821eefb1c5bfe4c390c01d67abba - # via - # -r requirements.in - # gcp-releasetool -pyparsing==3.0.9 \ - --hash=sha256:2b020ecf7d21b687f219b71ecad3631f644a47f01403fa1d1036b0c6416d70fb \ - --hash=sha256:5026bae9a10eeaefb61dab2f09052b9f4307d44aee4eda64b309723d8d206bbc - # via - # -r requirements.in - # packaging -pyperclip==1.8.2 \ - --hash=sha256:105254a8b04934f0bc84e9c24eb360a591aaf6535c9def5f29d92af107a9bf57 - # via - # -r requirements.in - # gcp-releasetool -python-dateutil==2.8.2 \ - --hash=sha256:0123cacc1627ae19ddf3c27a5de5bd67ee4586fbdd6440d9748f8abb483d3e86 \ - --hash=sha256:961d03dc3453ebbc59dbdea9e4e11c5651520a876d0f4db161e8674aae935da9 - # via - # -r requirements.in - # gcp-releasetool -requests==2.27.1 \ - --hash=sha256:68d7c56fd5a8999887728ef304a6d12edc7be74f1cfa47714fc8b414525c9a61 \ - --hash=sha256:f22fa1e554c9ddfd16e6e41ac79759e17be9e492b3587efa038054674760e72d - # via - # -r requirements.in - # gcp-releasetool - # google-api-core - # google-cloud-storage -rsa==4.9 \ - --hash=sha256:90260d9058e514786967344d0ef75fa8727eed8a7d2e43ce9f4bcf1b536174f7 \ - --hash=sha256:e38464a49c6c85d7f1351b0126661487a7e0a14a50f1675ec50eb34d4f20ef21 - # via - # -r requirements.in - # google-auth -secretstorage==3.3.3 \ - --hash=sha256:2403533ef369eca6d2ba81718576c5e0f564d5cca1b58f73a8b23e7d4eeebd77 \ - --hash=sha256:f356e6628222568e3af06f2eba8df495efa13b3b63081dafd4f7d9a7b7bc9f99 - # via keyring -six==1.16.0 \ - --hash=sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926 \ - --hash=sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254 - # via - # -r requirements.in - # gcp-docuploader - # google-auth - # python-dateutil -typing-extensions==4.1.1 \ - --hash=sha256:1a9462dcc3347a79b1f1c0271fbe79e844580bb598bafa1ed208b94da3cdcd42 \ - --hash=sha256:21c85e0fe4b9a155d0799430b0ad741cdce7e359660ccbd8b530613e8df88ce2 - # via -r requirements.in -urllib3==1.26.12 \ - --hash=sha256:3fa96cf423e6987997fc326ae8df396db2a8b7c667747d47ddd8ecba91f4a74e \ - --hash=sha256:b930dd878d5a8afb066a637fbb35144fe7901e3b209d1cd4f524bd0e9deee997 - # via - # -r requirements.in - # requests -zipp==3.6.0 \ - --hash=sha256:71c644c5369f4a6e07636f0aa966270449561fcea2e3d6747b8d23efaa9d7832 \ - --hash=sha256:9fe5ea21568a0a70e50f273397638d39b03353731e6cbbb3fd8502a33fec40bc - # via - # -r requirements.in - # importlib-metadata diff --git a/.kokoro/trampoline.sh b/.kokoro/trampoline.sh deleted file mode 100644 index 8b69b793..00000000 --- a/.kokoro/trampoline.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/bash -# Copyright 2018 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -set -eo pipefail -# Always run the cleanup script, regardless of the success of bouncing into -# the container. -function cleanup() { - chmod +x ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh - ${KOKORO_GFILE_DIR}/trampoline_cleanup.sh - echo "cleanup"; -} -trap cleanup EXIT - -$(dirname $0)/populate-secrets.sh # Secret Manager secrets. -python3 "${KOKORO_GFILE_DIR}/trampoline_v1.py" diff --git a/.repo-metadata.json b/.repo-metadata.json deleted file mode 100644 index 11b2aec9..00000000 --- a/.repo-metadata.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "api_shortname": "analyticsdata", - "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": "preview", - "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 61866b11..00000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,496 +0,0 @@ -# Changelog - -## [0.14.9](https://github.com/googleapis/java-analytics-data/compare/v0.14.8...v0.14.9) (2022-10-05) - - -### Bug Fixes - -* update protobuf to v3.21.7 ([b3fb5c5](https://github.com/googleapis/java-analytics-data/commit/b3fb5c5bb57d6c3db8a9ce0a72682fd3411e35e3)) - -## [0.14.8](https://github.com/googleapis/java-analytics-data/compare/v0.14.7...v0.14.8) (2022-10-03) - - -### Dependencies - -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#586](https://github.com/googleapis/java-analytics-data/issues/586)) ([b97ecfb](https://github.com/googleapis/java-analytics-data/commit/b97ecfb92984c3d37eb7207fc5b497b49365a388)) - -## [0.14.7](https://github.com/googleapis/java-analytics-data/compare/v0.14.6...v0.14.7) (2022-09-29) - - -### Dependencies - -* Update dependency cachetools to v5 ([#578](https://github.com/googleapis/java-analytics-data/issues/578)) ([6ce95c5](https://github.com/googleapis/java-analytics-data/commit/6ce95c5c4306369c26c2f0d253ae2c6914906dd5)) -* Update dependency certifi to v2022.9.24 ([#559](https://github.com/googleapis/java-analytics-data/issues/559)) ([a923390](https://github.com/googleapis/java-analytics-data/commit/a9233905d876a553b6c0b6d5474156bf4698c9e0)) -* Update dependency charset-normalizer to v2.1.1 ([#572](https://github.com/googleapis/java-analytics-data/issues/572)) ([6e4f130](https://github.com/googleapis/java-analytics-data/commit/6e4f1304221e41c1a066cb72a837b056c8274197)) -* Update dependency click to v8.1.3 ([#561](https://github.com/googleapis/java-analytics-data/issues/561)) ([3fc77f3](https://github.com/googleapis/java-analytics-data/commit/3fc77f312ca2f0ad2f51c4d79df46fba0a57eb11)) -* Update dependency gcp-releasetool to v1.8.8 ([#560](https://github.com/googleapis/java-analytics-data/issues/560)) ([d2f98b5](https://github.com/googleapis/java-analytics-data/commit/d2f98b5be4ca9de842d76ce9f40f25dcad05be4a)) -* Update dependency google-api-core to v2.10.1 ([#562](https://github.com/googleapis/java-analytics-data/issues/562)) ([90bbb3a](https://github.com/googleapis/java-analytics-data/commit/90bbb3a25fa9882d13411d82cb3355925420c014)) -* Update dependency google-auth to v2.12.0 ([#563](https://github.com/googleapis/java-analytics-data/issues/563)) ([468e5aa](https://github.com/googleapis/java-analytics-data/commit/468e5aa70ce50181e5a65b5c82683cc4f91c7b19)) -* Update dependency google-cloud-core to v2.3.2 ([#580](https://github.com/googleapis/java-analytics-data/issues/580)) ([d343a1e](https://github.com/googleapis/java-analytics-data/commit/d343a1ed8d270fb81cc30aa8c069ea150f741bcf)) -* Update dependency google-cloud-storage to v2.5.0 ([#564](https://github.com/googleapis/java-analytics-data/issues/564)) ([1dc7210](https://github.com/googleapis/java-analytics-data/commit/1dc721000a0ad218462965eb2091753e255f9e59)) -* Update dependency google-crc32c to v1.5.0 ([#565](https://github.com/googleapis/java-analytics-data/issues/565)) ([1c470fd](https://github.com/googleapis/java-analytics-data/commit/1c470fdd0640cd8e640d2d457f98b69f8a91600c)) -* Update dependency googleapis-common-protos to v1.56.4 ([#571](https://github.com/googleapis/java-analytics-data/issues/571)) ([957fba0](https://github.com/googleapis/java-analytics-data/commit/957fba0bc078d8b8241b279828e3c0971d977e77)) -* Update dependency importlib-metadata to v4.12.0 ([#566](https://github.com/googleapis/java-analytics-data/issues/566)) ([426169f](https://github.com/googleapis/java-analytics-data/commit/426169f583bf0bf83397ad783c2a7ae64d70074b)) -* Update dependency jeepney to v0.8.0 ([#567](https://github.com/googleapis/java-analytics-data/issues/567)) ([be87c83](https://github.com/googleapis/java-analytics-data/commit/be87c83fba956f4ac4d7b111ea47d88df8e5d22b)) -* Update dependency jinja2 to v3.1.2 ([#568](https://github.com/googleapis/java-analytics-data/issues/568)) ([92d1f52](https://github.com/googleapis/java-analytics-data/commit/92d1f52fd8dde9c1aad5f464d58b633c4a4f489b)) -* Update dependency keyring to v23.9.3 ([#569](https://github.com/googleapis/java-analytics-data/issues/569)) ([ba5b244](https://github.com/googleapis/java-analytics-data/commit/ba5b244fdbaa2e734c8672d8f9629557c6d4d54a)) -* Update dependency markupsafe to v2.1.1 ([#570](https://github.com/googleapis/java-analytics-data/issues/570)) ([8c52d4a](https://github.com/googleapis/java-analytics-data/commit/8c52d4a4d391fe55f0b8b1482fcf79c488e223d1)) -* Update dependency protobuf to v3.20.2 ([#573](https://github.com/googleapis/java-analytics-data/issues/573)) ([0136c7a](https://github.com/googleapis/java-analytics-data/commit/0136c7a54180af83b334d737d7ae21e3a8493621)) -* Update dependency protobuf to v4 ([#579](https://github.com/googleapis/java-analytics-data/issues/579)) ([c8a4ef5](https://github.com/googleapis/java-analytics-data/commit/c8a4ef50cb79eb3fa2483b3692d878eff44f5614)) -* Update dependency pyjwt to v2.5.0 ([#574](https://github.com/googleapis/java-analytics-data/issues/574)) ([aaef32a](https://github.com/googleapis/java-analytics-data/commit/aaef32a1a4f8cfe36c707ad31772a7a1aff7d179)) -* Update dependency requests to v2.28.1 ([#575](https://github.com/googleapis/java-analytics-data/issues/575)) ([e36085d](https://github.com/googleapis/java-analytics-data/commit/e36085df4ad67764b6b44603aa78588599f8b6fc)) -* Update dependency typing-extensions to v4.3.0 ([#576](https://github.com/googleapis/java-analytics-data/issues/576)) ([4014dbf](https://github.com/googleapis/java-analytics-data/commit/4014dbf40a1f9f1ff7f63594ee25ceba78ff9ca7)) -* Update dependency zipp to v3.8.1 ([#577](https://github.com/googleapis/java-analytics-data/issues/577)) ([3c345e1](https://github.com/googleapis/java-analytics-data/commit/3c345e1b26da1db3892ea5ac67b6fa0702b91b0d)) - -## [0.14.6](https://github.com/googleapis/java-analytics-data/compare/v0.14.5...v0.14.6) (2022-09-15) - - -### Dependencies - -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#552](https://github.com/googleapis/java-analytics-data/issues/552)) ([2e2004c](https://github.com/googleapis/java-analytics-data/commit/2e2004cfa2b9a09f825c496574e6165ab58f9cf6)) - -## [0.14.5](https://github.com/googleapis/java-analytics-data/compare/v0.14.4...v0.14.5) (2022-09-08) - - -### Dependencies - -* Update dependency com.google.auth:google-auth-library-oauth2-http to v1.11.0 ([#546](https://github.com/googleapis/java-analytics-data/issues/546)) ([1480fb2](https://github.com/googleapis/java-analytics-data/commit/1480fb275d56b082dd8c31b6b6a2f2ce3c5e3473)) -* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#547](https://github.com/googleapis/java-analytics-data/issues/547)) ([df7d625](https://github.com/googleapis/java-analytics-data/commit/df7d6253d23603c281b346042697ae72fe4d0bcd)) - -## [0.14.4](https://github.com/googleapis/java-analytics-data/compare/v0.14.3...v0.14.4) (2022-08-31) - - -### Dependencies - -* update dependency com.google.auth:google-auth-library-oauth2-http to v1.10.0 ([#537](https://github.com/googleapis/java-analytics-data/issues/537)) ([a752d59](https://github.com/googleapis/java-analytics-data/commit/a752d59cb4fef08bd45d7b5d46009e7a38fed710)) - -## [0.14.3](https://github.com/googleapis/java-analytics-data/compare/v0.14.2...v0.14.3) (2022-08-09) - - -### Dependencies - -* update dependency com.google.auth:google-auth-library-oauth2-http to v1.8.1 ([#525](https://github.com/googleapis/java-analytics-data/issues/525)) ([94c015d](https://github.com/googleapis/java-analytics-data/commit/94c015dc36960093476eed77e53dc1fea0c0f693)) -* update dependency com.google.auth:google-auth-library-oauth2-http to v1.9.0 ([#533](https://github.com/googleapis/java-analytics-data/issues/533)) ([396a4a3](https://github.com/googleapis/java-analytics-data/commit/396a4a3cd60f06a381e362cb467b61cb03ef3be0)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v3 ([#530](https://github.com/googleapis/java-analytics-data/issues/530)) ([84d1523](https://github.com/googleapis/java-analytics-data/commit/84d1523bfbc315307aeb2b886d88ad863c770368)) - -## [0.14.2](https://github.com/googleapis/java-analytics-data/compare/v0.14.1...v0.14.2) (2022-07-13) - - -### Bug Fixes - -* enable longpaths support for windows test ([#1485](https://github.com/googleapis/java-analytics-data/issues/1485)) ([#521](https://github.com/googleapis/java-analytics-data/issues/521)) ([8eb30ca](https://github.com/googleapis/java-analytics-data/commit/8eb30ca273b009e05e64b05f83a736a2113b8151)) - -## [0.14.1](https://github.com/googleapis/java-analytics-data/compare/v0.14.0...v0.14.1) (2022-07-01) - - -### Dependencies - -* update dependency com.google.auth:google-auth-library-oauth2-http to v1.8.0 ([#511](https://github.com/googleapis/java-analytics-data/issues/511)) ([1ba0b23](https://github.com/googleapis/java-analytics-data/commit/1ba0b233425dbbc69e102ed6d25eb0aafab9041c)) - -## [0.14.0](https://github.com/googleapis/java-analytics-data/compare/v0.13.0...v0.14.0) (2022-07-01) - - -### ⚠ BREAKING CHANGES - -* rename the `funnel_filter` field of the `FunnelFilterExpression` type to `funnel_field_filter` -* rename the type `FunnelFilter` to `FunnelFieldFilter` (#505) - -### Features - -* Add Java REST transport to analytics, servicecontrol, servicemanagement, serviceusage and langauge APIs ([c864df4](https://github.com/googleapis/java-analytics-data/commit/c864df4d54144195c83948ff695c6c8b671f5807)) - - -### Bug Fixes - -* rename the `funnel_filter` field of the `FunnelFilterExpression` type to `funnel_field_filter` ([c864df4](https://github.com/googleapis/java-analytics-data/commit/c864df4d54144195c83948ff695c6c8b671f5807)) -* rename the type `FunnelFilter` to `FunnelFieldFilter` ([#505](https://github.com/googleapis/java-analytics-data/issues/505)) ([c864df4](https://github.com/googleapis/java-analytics-data/commit/c864df4d54144195c83948ff695c6c8b671f5807)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.13.0 ([#508](https://github.com/googleapis/java-analytics-data/issues/508)) ([14d8684](https://github.com/googleapis/java-analytics-data/commit/14d86842eb1a67b9144fe2c48ac4e6a92689ef69)) - -## [0.13.0](https://github.com/googleapis/java-analytics-data/compare/v0.12.0...v0.13.0) (2022-05-19) - - -### Features - -* add build scripts for native image testing in Java 17 ([#1440](https://github.com/googleapis/java-analytics-data/issues/1440)) ([#496](https://github.com/googleapis/java-analytics-data/issues/496)) ([63d3433](https://github.com/googleapis/java-analytics-data/commit/63d3433a0864f1ce9b807c39361f87cada9b48fd)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.12.0 ([#500](https://github.com/googleapis/java-analytics-data/issues/500)) ([4307f11](https://github.com/googleapis/java-analytics-data/commit/4307f112950508a4912e78aa57c31232e4ce3eae)) - -## [0.12.0](https://github.com/googleapis/java-analytics-data/compare/v0.11.10...v0.12.0) (2022-05-19) - - -### Features - -* add `runFunnelReport` method to the Alpha version of the Data API ([#490](https://github.com/googleapis/java-analytics-data/issues/490)) ([1969fee](https://github.com/googleapis/java-analytics-data/commit/1969feecac73306525a79e39b7098fdb2a5a05d2)) - - -### Dependencies - -* update dependency com.google.auth:google-auth-library-oauth2-http to v1.7.0 ([#492](https://github.com/googleapis/java-analytics-data/issues/492)) ([c09d6a3](https://github.com/googleapis/java-analytics-data/commit/c09d6a3e7bba0ec26ac02e4d1ea928bd7ab64bcb)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.11.0 ([#493](https://github.com/googleapis/java-analytics-data/issues/493)) ([5e5cc70](https://github.com/googleapis/java-analytics-data/commit/5e5cc70bf5ae8d30061a46b50d37347b576650f7)) - -### [0.11.10](https://github.com/googleapis/java-analytics-data/compare/v0.11.9...v0.11.10) (2022-04-15) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.10.0 ([#478](https://github.com/googleapis/java-analytics-data/issues/478)) ([0346b09](https://github.com/googleapis/java-analytics-data/commit/0346b09955c53309cc4d34497f5f075f73c78a8e)) - -### [0.11.9](https://github.com/googleapis/java-analytics-data/compare/v0.11.8...v0.11.9) (2022-03-29) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.9.0 ([#459](https://github.com/googleapis/java-analytics-data/issues/459)) ([19ff7fb](https://github.com/googleapis/java-analytics-data/commit/19ff7fb0e2100a7e71d27ce8163540419594a5c2)) - -### [0.11.8](https://github.com/googleapis/java-analytics-data/compare/v0.11.7...v0.11.8) (2022-03-22) - - -### Dependencies - -* update actions/checkout action to v3 ([#435](https://github.com/googleapis/java-analytics-data/issues/435)) ([35cc323](https://github.com/googleapis/java-analytics-data/commit/35cc32386e17f1b8e8c5116e4453fac8076451b6)) - -### [0.11.7](https://github.com/googleapis/java-analytics-data/compare/v0.11.6...v0.11.7) (2022-03-21) - - -### Dependencies - -* **sample:** using newer google-analytics-data in snippet ([#452](https://github.com/googleapis/java-analytics-data/issues/452)) ([74446cf](https://github.com/googleapis/java-analytics-data/commit/74446cf387d1f7ef3e1b61cd3a85e0700a874b2d)) - -### [0.11.6](https://github.com/googleapis/java-analytics-data/compare/v0.11.5...v0.11.6) (2022-03-17) - - -### Dependencies - -* update dependency com.google.auth:google-auth-library-oauth2-http to v1.6.0 ([#448](https://github.com/googleapis/java-analytics-data/issues/448)) ([d07834d](https://github.com/googleapis/java-analytics-data/commit/d07834d29e78493a18b881aee6545f05139388f8)) - -### [0.11.5](https://github.com/googleapis/java-analytics-data/compare/v0.11.4...v0.11.5) (2022-03-02) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.8.0 ([#436](https://github.com/googleapis/java-analytics-data/issues/436)) ([ea835bc](https://github.com/googleapis/java-analytics-data/commit/ea835bc760850556d731a6adcb41f72a76645cf0)) - -### [0.11.4](https://github.com/googleapis/java-analytics-data/compare/v0.11.3...v0.11.4) (2022-03-01) - - -### Dependencies - -* update actions/setup-java action to v3 ([#423](https://github.com/googleapis/java-analytics-data/issues/423)) ([9b0c521](https://github.com/googleapis/java-analytics-data/commit/9b0c521b26422dfeb12695b761583851967f5222)) - -### [0.11.3](https://github.com/googleapis/java-analytics-data/compare/v0.11.2...v0.11.3) (2022-02-28) - - -### Dependencies - -* update dependency com.google.auth:google-auth-library-oauth2-http to v1.5.3 ([#421](https://github.com/googleapis/java-analytics-data/issues/421)) ([99a3382](https://github.com/googleapis/java-analytics-data/commit/99a33829b10b1f56be86690b4218a7ccc7970f0e)) - -### [0.11.2](https://github.com/googleapis/java-analytics-data/compare/v0.11.1...v0.11.2) (2022-02-11) - - -### Dependencies - -* update actions/github-script action to v6 ([#412](https://github.com/googleapis/java-analytics-data/issues/412)) ([831d07f](https://github.com/googleapis/java-analytics-data/commit/831d07fbe3dff2d7d2519a7c13e977d08dbedcaf)) - -### [0.11.1](https://github.com/googleapis/java-analytics-data/compare/v0.11.0...v0.11.1) (2022-02-08) - - -### Dependencies - -* **java:** update actions/github-script action to v5 ([#1339](https://github.com/googleapis/java-analytics-data/issues/1339)) ([#400](https://github.com/googleapis/java-analytics-data/issues/400)) ([6784822](https://github.com/googleapis/java-analytics-data/commit/67848224b156a1f4f6a156deb2446604213d9303)) -* update dependency com.google.auth:google-auth-library-oauth2-http to v1.4.0 ([#399](https://github.com/googleapis/java-analytics-data/issues/399)) ([7b37e6c](https://github.com/googleapis/java-analytics-data/commit/7b37e6c9ce37e8a9e511c6db8a05aa7d705190d8)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.7.0 ([#402](https://github.com/googleapis/java-analytics-data/issues/402)) ([2c6e3d7](https://github.com/googleapis/java-analytics-data/commit/2c6e3d73bed5fe0cff44061dd1ce7e7f80df4ecc)) - -## [0.11.0](https://www.github.com/googleapis/java-analytics-data/compare/v0.10.2...v0.11.0) (2022-01-07) - - -### Features - -* add the `schema_restriction_response` field to the `ResponseMetaData` type that contains the schema restrictions actively enforced in creating a report ([#361](https://www.github.com/googleapis/java-analytics-data/issues/361)) ([dba107a](https://www.github.com/googleapis/java-analytics-data/commit/dba107ad76ad5e5ff54c446073f54e39a6ec926a)) - - -### Bug Fixes - -* **java:** add -ntp flag to native image testing command ([#1299](https://www.github.com/googleapis/java-analytics-data/issues/1299)) ([#378](https://www.github.com/googleapis/java-analytics-data/issues/378)) ([fd890a0](https://www.github.com/googleapis/java-analytics-data/commit/fd890a019ef695eef15325479b88ab98153c6ce3)) -* **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-analytics-data/issues/1266)) ([#359](https://www.github.com/googleapis/java-analytics-data/issues/359)) ([96f478d](https://www.github.com/googleapis/java-analytics-data/commit/96f478dd732fa3967b095e28dfaa641ddb458c0f)) -* **java:** run Maven in plain console-friendly mode ([#1301](https://www.github.com/googleapis/java-analytics-data/issues/1301)) ([#382](https://www.github.com/googleapis/java-analytics-data/issues/382)) ([96a079f](https://www.github.com/googleapis/java-analytics-data/commit/96a079fbe2b7e31d2f516e80a555a0e6d594717e)) -* remove classes for all v1alpha methods ([#345](https://www.github.com/googleapis/java-analytics-data/issues/345)) ([d323fb9](https://www.github.com/googleapis/java-analytics-data/commit/d323fb980cb25be22eb9988e4587c4abaff06681)) - - -### Documentation - -* fix docstring formatting ([#368](https://www.github.com/googleapis/java-analytics-data/issues/368)) ([ab58086](https://www.github.com/googleapis/java-analytics-data/commit/ab5808656c6d2ca197e4649764ad64c070d338eb)) - - -### Dependencies - -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#370](https://www.github.com/googleapis/java-analytics-data/issues/370)) ([bfe02e1](https://www.github.com/googleapis/java-analytics-data/commit/bfe02e118f69477cc06cf614ae9b447e026543e6)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#377](https://www.github.com/googleapis/java-analytics-data/issues/377)) ([28c9ebc](https://www.github.com/googleapis/java-analytics-data/commit/28c9ebce442d56b2e5ecab10a5306fa7e91fb535)) -* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#386](https://www.github.com/googleapis/java-analytics-data/issues/386)) ([c7d78d0](https://www.github.com/googleapis/java-analytics-data/commit/c7d78d096b985202e9c0240de53c9f15a4ade5f2)) - -### [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/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 19b216c7..00000000 --- a/google-analytics-data-bom/pom.xml +++ /dev/null @@ -1,95 +0,0 @@ - - - 4.0.0 - com.google.analytics - google-analytics-data-bom - 0.14.10-SNAPSHOT - pom - - com.google.cloud - google-cloud-shared-config - 1.5.3 - - - 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.14.10-SNAPSHOT - - - com.google.api.grpc - grpc-google-analytics-data-v1beta - 0.14.10-SNAPSHOT - - - com.google.api.grpc - grpc-google-analytics-data-v1alpha - 0.14.10-SNAPSHOT - - - com.google.api.grpc - proto-google-analytics-data-v1beta - 0.14.10-SNAPSHOT - - - com.google.api.grpc - proto-google-analytics-data-v1alpha - 0.14.10-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 a3466b5a..00000000 --- a/google-analytics-data/clirr-ignored-differences.xml +++ /dev/null @@ -1,23 +0,0 @@ - - - - - 8001 - com/google/analytics/data/v1alpha/* - - - 7006 - com/google/analytics/data/v1alpha/* - * - - - 7002 - com/google/analytics/data/v1alpha/* - * - - - 7005 - com/google/analytics/data/v1alpha/* - * - - diff --git a/google-analytics-data/pom.xml b/google-analytics-data/pom.xml deleted file mode 100644 index 4b757f12..00000000 --- a/google-analytics-data/pom.xml +++ /dev/null @@ -1,136 +0,0 @@ - - - 4.0.0 - com.google.analytics - google-analytics-data - 0.14.10-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.14.10-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-v1alpha - - - com.google.api.grpc - proto-google-analytics-data-v1beta - - - com.google.guava - guava - - - com.google.api - gax - - - com.google.api - gax-grpc - - - com.google.api - gax-httpjson - - - org.threeten - threetenbp - - - - - junit - junit - test - 4.13.2 - - - - com.google.api.grpc - grpc-google-analytics-data-v1beta - test - - - com.google.api.grpc - grpc-google-analytics-data-v1alpha - test - - - - com.google.api - gax - testlib - test - - - com.google.api - gax-grpc - testlib - test - - - com.google.api - gax-httpjson - testlib - test - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java deleted file mode 100644 index 0900a16b..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClient.java +++ /dev/null @@ -1,299 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha; - -import com.google.analytics.data.v1alpha.stub.AlphaAnalyticsDataStub; -import com.google.analytics.data.v1alpha.stub.AlphaAnalyticsDataStubSettings; -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
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
- *   RunFunnelReportRequest request =
- *       RunFunnelReportRequest.newBuilder()
- *           .setProperty("property-993141291")
- *           .addAllDateRanges(new ArrayList())
- *           .setFunnel(Funnel.newBuilder().build())
- *           .setFunnelBreakdown(FunnelBreakdown.newBuilder().build())
- *           .setFunnelNextAction(FunnelNextAction.newBuilder().build())
- *           .addAllSegments(new ArrayList())
- *           .setLimit(102976443)
- *           .setDimensionFilter(FilterExpression.newBuilder().build())
- *           .setReturnPropertyQuota(true)
- *           .build();
- *   RunFunnelReportResponse response = alphaAnalyticsDataClient.runFunnelReport(request);
- * }
- * }
- * - *

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

To customize credentials: - * - *

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

To customize the endpoint: - * - *

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

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

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

Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class AlphaAnalyticsDataClient implements BackgroundResource { - private final AlphaAnalyticsDataSettings settings; - private final AlphaAnalyticsDataStub stub; - - /** Constructs an instance of AlphaAnalyticsDataClient with default settings. */ - public static final AlphaAnalyticsDataClient create() throws IOException { - return create(AlphaAnalyticsDataSettings.newBuilder().build()); - } - - /** - * Constructs an instance of AlphaAnalyticsDataClient, 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 AlphaAnalyticsDataClient create(AlphaAnalyticsDataSettings settings) - throws IOException { - return new AlphaAnalyticsDataClient(settings); - } - - /** - * Constructs an instance of AlphaAnalyticsDataClient, using the given stub for making calls. This - * is for advanced usage - prefer using create(AlphaAnalyticsDataSettings). - */ - public static final AlphaAnalyticsDataClient create(AlphaAnalyticsDataStub stub) { - return new AlphaAnalyticsDataClient(stub); - } - - /** - * Constructs an instance of AlphaAnalyticsDataClient, 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 AlphaAnalyticsDataClient(AlphaAnalyticsDataSettings settings) throws IOException { - this.settings = settings; - this.stub = ((AlphaAnalyticsDataStubSettings) settings.getStubSettings()).createStub(); - } - - protected AlphaAnalyticsDataClient(AlphaAnalyticsDataStub stub) { - this.settings = null; - this.stub = stub; - } - - public final AlphaAnalyticsDataSettings getSettings() { - return settings; - } - - public AlphaAnalyticsDataStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a customized funnel report of your Google Analytics event data. The data returned from - * the API is as a table with columns for the requested dimensions and metrics. - * - *

Funnel exploration lets you visualize the steps your users take to complete a task and - * quickly see how well they are succeeding or failing at each step. For example, how do prospects - * become shoppers and then become buyers? How do one time buyers become repeat buyers? With this - * information, you can improve inefficient or abandoned customer journeys. To learn more, see - * [GA4 Funnel Explorations](https://support.google.com/analytics/answer/9327974). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   RunFunnelReportRequest request =
-   *       RunFunnelReportRequest.newBuilder()
-   *           .setProperty("property-993141291")
-   *           .addAllDateRanges(new ArrayList())
-   *           .setFunnel(Funnel.newBuilder().build())
-   *           .setFunnelBreakdown(FunnelBreakdown.newBuilder().build())
-   *           .setFunnelNextAction(FunnelNextAction.newBuilder().build())
-   *           .addAllSegments(new ArrayList())
-   *           .setLimit(102976443)
-   *           .setDimensionFilter(FilterExpression.newBuilder().build())
-   *           .setReturnPropertyQuota(true)
-   *           .build();
-   *   RunFunnelReportResponse response = alphaAnalyticsDataClient.runFunnelReport(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 RunFunnelReportResponse runFunnelReport(RunFunnelReportRequest request) { - return runFunnelReportCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a customized funnel report of your Google Analytics event data. The data returned from - * the API is as a table with columns for the requested dimensions and metrics. - * - *

Funnel exploration lets you visualize the steps your users take to complete a task and - * quickly see how well they are succeeding or failing at each step. For example, how do prospects - * become shoppers and then become buyers? How do one time buyers become repeat buyers? With this - * information, you can improve inefficient or abandoned customer journeys. To learn more, see - * [GA4 Funnel Explorations](https://support.google.com/analytics/answer/9327974). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
-   *   RunFunnelReportRequest request =
-   *       RunFunnelReportRequest.newBuilder()
-   *           .setProperty("property-993141291")
-   *           .addAllDateRanges(new ArrayList())
-   *           .setFunnel(Funnel.newBuilder().build())
-   *           .setFunnelBreakdown(FunnelBreakdown.newBuilder().build())
-   *           .setFunnelNextAction(FunnelNextAction.newBuilder().build())
-   *           .addAllSegments(new ArrayList())
-   *           .setLimit(102976443)
-   *           .setDimensionFilter(FilterExpression.newBuilder().build())
-   *           .setReturnPropertyQuota(true)
-   *           .build();
-   *   ApiFuture future =
-   *       alphaAnalyticsDataClient.runFunnelReportCallable().futureCall(request);
-   *   // Do something.
-   *   RunFunnelReportResponse response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - runFunnelReportCallable() { - return stub.runFunnelReportCallable(); - } - - @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/v1alpha/AlphaAnalyticsDataSettings.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java deleted file mode 100644 index 9ec486c1..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataSettings.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha; - -import com.google.analytics.data.v1alpha.stub.AlphaAnalyticsDataStubSettings; -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.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 AlphaAnalyticsDataClient}. - * - *

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 runFunnelReport to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * AlphaAnalyticsDataSettings.Builder alphaAnalyticsDataSettingsBuilder =
- *     AlphaAnalyticsDataSettings.newBuilder();
- * alphaAnalyticsDataSettingsBuilder
- *     .runFunnelReportSettings()
- *     .setRetrySettings(
- *         alphaAnalyticsDataSettingsBuilder
- *             .runFunnelReportSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * AlphaAnalyticsDataSettings alphaAnalyticsDataSettings =
- *     alphaAnalyticsDataSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class AlphaAnalyticsDataSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to runFunnelReport. */ - public UnaryCallSettings - runFunnelReportSettings() { - return ((AlphaAnalyticsDataStubSettings) getStubSettings()).runFunnelReportSettings(); - } - - public static final AlphaAnalyticsDataSettings create(AlphaAnalyticsDataStubSettings stub) - throws IOException { - return new AlphaAnalyticsDataSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return AlphaAnalyticsDataStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return AlphaAnalyticsDataStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return AlphaAnalyticsDataStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return AlphaAnalyticsDataStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return AlphaAnalyticsDataStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return AlphaAnalyticsDataStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return AlphaAnalyticsDataStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return AlphaAnalyticsDataStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected AlphaAnalyticsDataSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for AlphaAnalyticsDataSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(AlphaAnalyticsDataStubSettings.newBuilder(clientContext)); - } - - protected Builder(AlphaAnalyticsDataSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(AlphaAnalyticsDataStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(AlphaAnalyticsDataStubSettings.newBuilder()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(AlphaAnalyticsDataStubSettings.newHttpJsonBuilder()); - } - - public AlphaAnalyticsDataStubSettings.Builder getStubSettingsBuilder() { - return ((AlphaAnalyticsDataStubSettings.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 runFunnelReport. */ - public UnaryCallSettings.Builder - runFunnelReportSettings() { - return getStubSettingsBuilder().runFunnelReportSettings(); - } - - @Override - public AlphaAnalyticsDataSettings build() throws IOException { - return new AlphaAnalyticsDataSettings(this); - } - } -} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json deleted file mode 100644 index 270aa547..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/gapic_metadata.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.analytics.data.v1alpha", - "libraryPackage": "com.google.analytics.data.v1alpha", - "services": { - "AlphaAnalyticsData": { - "clients": { - "grpc": { - "libraryClient": "AlphaAnalyticsDataClient", - "rpcs": { - "RunFunnelReport": { - "methods": ["runFunnelReport", "runFunnelReportCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java deleted file mode 100644 index 9a8f36d7..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/package-info.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * A client to Google Analytics Data API - * - *

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

======================= AlphaAnalyticsDataClient ======================= - * - *

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

Sample for AlphaAnalyticsDataClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * try (AlphaAnalyticsDataClient alphaAnalyticsDataClient = AlphaAnalyticsDataClient.create()) {
- *   RunFunnelReportRequest request =
- *       RunFunnelReportRequest.newBuilder()
- *           .setProperty("property-993141291")
- *           .addAllDateRanges(new ArrayList())
- *           .setFunnel(Funnel.newBuilder().build())
- *           .setFunnelBreakdown(FunnelBreakdown.newBuilder().build())
- *           .setFunnelNextAction(FunnelNextAction.newBuilder().build())
- *           .addAllSegments(new ArrayList())
- *           .setLimit(102976443)
- *           .setDimensionFilter(FilterExpression.newBuilder().build())
- *           .setReturnPropertyQuota(true)
- *           .build();
- *   RunFunnelReportResponse response = alphaAnalyticsDataClient.runFunnelReport(request);
- * }
- * }
- */ -@Generated("by gapic-generator-java") -package com.google.analytics.data.v1alpha; - -import javax.annotation.Generated; diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java deleted file mode 100644 index 18da5c70..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStub.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1alpha.stub; - -import com.google.analytics.data.v1alpha.RunFunnelReportRequest; -import com.google.analytics.data.v1alpha.RunFunnelReportResponse; -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 AlphaAnalyticsData service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public abstract class AlphaAnalyticsDataStub implements BackgroundResource { - - public UnaryCallable runFunnelReportCallable() { - throw new UnsupportedOperationException("Not implemented: runFunnelReportCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java deleted file mode 100644 index a03234e7..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/AlphaAnalyticsDataStubSettings.java +++ /dev/null @@ -1,331 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha.stub; - -import com.google.analytics.data.v1alpha.RunFunnelReportRequest; -import com.google.analytics.data.v1alpha.RunFunnelReportResponse; -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.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.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 AlphaAnalyticsDataStub}. - * - *

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 runFunnelReport to 30 seconds: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * AlphaAnalyticsDataStubSettings.Builder alphaAnalyticsDataSettingsBuilder =
- *     AlphaAnalyticsDataStubSettings.newBuilder();
- * alphaAnalyticsDataSettingsBuilder
- *     .runFunnelReportSettings()
- *     .setRetrySettings(
- *         alphaAnalyticsDataSettingsBuilder
- *             .runFunnelReportSettings()
- *             .getRetrySettings()
- *             .toBuilder()
- *             .setTotalTimeout(Duration.ofSeconds(30))
- *             .build());
- * AlphaAnalyticsDataStubSettings alphaAnalyticsDataSettings =
- *     alphaAnalyticsDataSettingsBuilder.build();
- * }
- */ -@BetaApi -@Generated("by gapic-generator-java") -public class AlphaAnalyticsDataStubSettings 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 - runFunnelReportSettings; - - /** Returns the object with the settings used for calls to runFunnelReport. */ - public UnaryCallSettings - runFunnelReportSettings() { - return runFunnelReportSettings; - } - - public AlphaAnalyticsDataStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcAlphaAnalyticsDataStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonAlphaAnalyticsDataStub.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 gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(AlphaAnalyticsDataStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(AlphaAnalyticsDataStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return AlphaAnalyticsDataStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected AlphaAnalyticsDataStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - runFunnelReportSettings = settingsBuilder.runFunnelReportSettings().build(); - } - - /** Builder for AlphaAnalyticsDataStubSettings. */ - public static class Builder - extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - runFunnelReportSettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("no_retry_1_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - runFunnelReportSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of(runFunnelReportSettings); - initDefaults(this); - } - - protected Builder(AlphaAnalyticsDataStubSettings settings) { - super(settings); - - runFunnelReportSettings = settings.runFunnelReportSettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of(runFunnelReportSettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .runFunnelReportSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_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 runFunnelReport. */ - public UnaryCallSettings.Builder - runFunnelReportSettings() { - return runFunnelReportSettings; - } - - @Override - public AlphaAnalyticsDataStubSettings build() throws IOException { - return new AlphaAnalyticsDataStubSettings(this); - } - } -} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataCallableFactory.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataCallableFactory.java deleted file mode 100644 index ee9bed88..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1alpha.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 AlphaAnalyticsData service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcAlphaAnalyticsDataCallableFactory 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/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java deleted file mode 100644 index 528c5508..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/GrpcAlphaAnalyticsDataStub.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1alpha.stub; - -import com.google.analytics.data.v1alpha.RunFunnelReportRequest; -import com.google.analytics.data.v1alpha.RunFunnelReportResponse; -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 AlphaAnalyticsData service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { - private static final MethodDescriptor - runFunnelReportMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.analytics.data.v1alpha.AlphaAnalyticsData/RunFunnelReport") - .setRequestMarshaller( - ProtoUtils.marshaller(RunFunnelReportRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(RunFunnelReportResponse.getDefaultInstance())) - .build(); - - private final UnaryCallable - runFunnelReportCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcAlphaAnalyticsDataStub create(AlphaAnalyticsDataStubSettings settings) - throws IOException { - return new GrpcAlphaAnalyticsDataStub(settings, ClientContext.create(settings)); - } - - public static final GrpcAlphaAnalyticsDataStub create(ClientContext clientContext) - throws IOException { - return new GrpcAlphaAnalyticsDataStub( - AlphaAnalyticsDataStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcAlphaAnalyticsDataStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcAlphaAnalyticsDataStub( - AlphaAnalyticsDataStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcAlphaAnalyticsDataStub, 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 GrpcAlphaAnalyticsDataStub( - AlphaAnalyticsDataStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcAlphaAnalyticsDataCallableFactory()); - } - - /** - * Constructs an instance of GrpcAlphaAnalyticsDataStub, 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 GrpcAlphaAnalyticsDataStub( - AlphaAnalyticsDataStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - runFunnelReportTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(runFunnelReportMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("property", String.valueOf(request.getProperty())); - return params.build(); - }) - .build(); - - this.runFunnelReportCallable = - callableFactory.createUnaryCallable( - runFunnelReportTransportSettings, settings.runFunnelReportSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable runFunnelReportCallable() { - return runFunnelReportCallable; - } - - @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/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataCallableFactory.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataCallableFactory.java deleted file mode 100644 index 0d45a48a..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1alpha.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the AlphaAnalyticsData service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonAlphaAnalyticsDataCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java deleted file mode 100644 index 6ee5506d..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1alpha/stub/HttpJsonAlphaAnalyticsDataStub.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha.stub; - -import com.google.analytics.data.v1alpha.RunFunnelReportRequest; -import com.google.analytics.data.v1alpha.RunFunnelReportResponse; -import com.google.api.core.BetaApi; -import com.google.api.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the AlphaAnalyticsData service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonAlphaAnalyticsDataStub extends AlphaAnalyticsDataStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); - - private static final ApiMethodDescriptor - runFunnelReportMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.analytics.data.v1alpha.AlphaAnalyticsData/RunFunnelReport") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1alpha/{property=properties/*}:runFunnelReport", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "property", request.getProperty()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearProperty().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(RunFunnelReportResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable - runFunnelReportCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonAlphaAnalyticsDataStub create(AlphaAnalyticsDataStubSettings settings) - throws IOException { - return new HttpJsonAlphaAnalyticsDataStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonAlphaAnalyticsDataStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonAlphaAnalyticsDataStub( - AlphaAnalyticsDataStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonAlphaAnalyticsDataStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonAlphaAnalyticsDataStub( - AlphaAnalyticsDataStubSettings.newHttpJsonBuilder().build(), - clientContext, - callableFactory); - } - - /** - * Constructs an instance of HttpJsonAlphaAnalyticsDataStub, 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 HttpJsonAlphaAnalyticsDataStub( - AlphaAnalyticsDataStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new HttpJsonAlphaAnalyticsDataCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonAlphaAnalyticsDataStub, 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 HttpJsonAlphaAnalyticsDataStub( - AlphaAnalyticsDataStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - HttpJsonCallSettings - runFunnelReportTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(runFunnelReportMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - - this.runFunnelReportCallable = - callableFactory.createUnaryCallable( - runFunnelReportTransportSettings, settings.runFunnelReportSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(runFunnelReportMethodDescriptor); - return methodDescriptors; - } - - @Override - public UnaryCallable runFunnelReportCallable() { - return runFunnelReportCallable; - } - - @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/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 276ed4ef..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClient.java +++ /dev/null @@ -1,834 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * 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
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * BetaAnalyticsDataSettings betaAnalyticsDataSettings =
- *     BetaAnalyticsDataSettings.newBuilder()
- *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
- *         .build();
- * BetaAnalyticsDataClient betaAnalyticsDataClient =
- *     BetaAnalyticsDataClient.create(betaAnalyticsDataSettings);
- * }
- * - *

To customize the endpoint: - * - *

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

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

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * BetaAnalyticsDataSettings betaAnalyticsDataSettings =
- *     BetaAnalyticsDataSettings.newHttpJsonBuilder().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). - */ - 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(); - } - - protected BetaAnalyticsDataClient(BetaAnalyticsDataStub stub) { - this.settings = null; - this.stub = stub; - } - - public final BetaAnalyticsDataSettings getSettings() { - return settings; - } - - 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. - * - *

For a guide to constructing requests & understanding responses, see [Creating a - * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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. - * - *

For a guide to constructing requests & understanding responses, see [Creating a - * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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. - /** - * Returns a customized report of realtime event data for your property. Events appear in realtime - * reports seconds after they have been sent to the Google Analytics. Realtime reports show events - * and usage data for the periods of time ranging from the present moment to 30 minutes ago (up to - * 60 minutes for Google Analytics 360 properties). - * - *

For a guide to constructing realtime requests & understanding responses, see [Creating a - * Realtime - * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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. - /** - * Returns a customized report of realtime event data for your property. Events appear in realtime - * reports seconds after they have been sent to the Google Analytics. Realtime reports show events - * and usage data for the periods of time ranging from the present moment to 30 minutes ago (up to - * 60 minutes for Google Analytics 360 properties). - * - *

For a guide to constructing realtime requests & understanding responses, see [Creating a - * Realtime - * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics). - * - *

Sample code: - * - *

{@code
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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
-   * // This snippet has been automatically generated and should be regarded as a code template only.
-   * // It will require modifications to work:
-   * // - It may require correct/in-range values for request initialization.
-   * // - It may require specifying regional endpoints when creating the service client as shown in
-   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
-   * 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 dd7f7779..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataSettings.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.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
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * 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 gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return BetaAnalyticsDataStubSettings.defaultGrpcTransportProviderBuilder(); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return BetaAnalyticsDataStubSettings.defaultHttpJsonTransportProviderBuilder(); - } - - 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 gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - @BetaApi - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected 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()); - } - - @BetaApi - private static Builder createHttpJsonDefault() { - return new Builder(BetaAnalyticsDataStubSettings.newHttpJsonBuilder()); - } - - 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 a2ae6249..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/package-info.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * A client to Google Analytics Data API - * - *

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

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

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

Sample for BetaAnalyticsDataClient: - * - *

{@code
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * 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 1f39e741..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStub.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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 fda9c6eb..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/BetaAnalyticsDataStubSettings.java +++ /dev/null @@ -1,489 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.HttpJsonTransportChannel; -import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.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
- * // This snippet has been automatically generated and should be regarded as a code template only.
- * // It will require modifications to work:
- * // - It may require correct/in-range values for request initialization.
- * // - It may require specifying regional endpoints when creating the service client as shown in
- * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * 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; - } - - public BetaAnalyticsDataStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcBetaAnalyticsDataStub.create(this); - } - if (getTransportChannelProvider() - .getTransportName() - .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonBetaAnalyticsDataStub.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 gRPC ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - /** Returns a builder for the default REST ChannelProvider for this service. */ - @BetaApi - public static InstantiatingHttpJsonChannelProvider.Builder - defaultHttpJsonTransportProviderBuilder() { - return InstantiatingHttpJsonChannelProvider.newBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(BetaAnalyticsDataStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(BetaAnalyticsDataStubSettings.class)) - .setTransportToken( - GaxHttpJsonProperties.getHttpJsonTokenName(), - GaxHttpJsonProperties.getHttpJsonVersion()); - } - - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return BetaAnalyticsDataStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); - } - - /** Returns a new gRPC builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new REST builder for this class. */ - public static Builder newHttpJsonBuilder() { - return Builder.createHttpJsonDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected 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())); - 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); - 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 createHttpJsonDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .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("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_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("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_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 b12e6e4e..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/GrpcBetaAnalyticsDataCallableFactory.java +++ /dev/null @@ -1,115 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 586ca680..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/GrpcBetaAnalyticsDataStub.java +++ /dev/null @@ -1,372 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataCallableFactory.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataCallableFactory.java deleted file mode 100644 index e5094846..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataCallableFactory.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1beta.stub; - -import com.google.api.core.BetaApi; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonCallableFactory; -import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST callable factory implementation for the BetaAnalyticsData service API. - * - *

This class is for advanced usage. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonBetaAnalyticsDataCallableFactory - implements HttpJsonStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - HttpJsonCallSettings httpJsonCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createUnaryCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - HttpJsonCallSettings httpJsonCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createPagedCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - HttpJsonCallSettings httpJsonCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createBatchingCallable( - httpJsonCallSettings, callSettings, clientContext); - } - - @BetaApi( - "The surface for long-running operations is not stable yet and may change in the future.") - @Override - public - OperationCallable createOperationCallable( - HttpJsonCallSettings httpJsonCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - UnaryCallable innerCallable = - HttpJsonCallableFactory.createBaseUnaryCallable( - httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); - HttpJsonOperationSnapshotCallable initialCallable = - new HttpJsonOperationSnapshotCallable( - innerCallable, - httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); - return HttpJsonCallableFactory.createOperationCallable( - callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - HttpJsonCallSettings httpJsonCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return HttpJsonCallableFactory.createServerStreamingCallable( - httpJsonCallSettings, callSettings, clientContext); - } -} diff --git a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataStub.java b/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataStub.java deleted file mode 100644 index 92511960..00000000 --- a/google-analytics-data/src/main/java/com/google/analytics/data/v1beta/stub/HttpJsonBetaAnalyticsDataStub.java +++ /dev/null @@ -1,532 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.core.InternalApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.httpjson.ApiMethodDescriptor; -import com.google.api.gax.httpjson.HttpJsonCallSettings; -import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; -import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; -import com.google.api.gax.httpjson.ProtoMessageResponseParser; -import com.google.api.gax.httpjson.ProtoRestSerializer; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.protobuf.TypeRegistry; -import java.io.IOException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the BetaAnalyticsData service API. - * - *

This class is for advanced usage and reflects the underlying API directly. - */ -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonBetaAnalyticsDataStub extends BetaAnalyticsDataStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); - - private static final ApiMethodDescriptor - runReportMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.analytics.data.v1beta.BetaAnalyticsData/RunReport") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{property=properties/*}:runReport", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "property", request.getProperty()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearProperty().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(RunReportResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - runPivotReportMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.analytics.data.v1beta.BetaAnalyticsData/RunPivotReport") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{property=properties/*}:runPivotReport", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "property", request.getProperty()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearProperty().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(RunPivotReportResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - batchRunReportsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.analytics.data.v1beta.BetaAnalyticsData/BatchRunReports") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{property=properties/*}:batchRunReports", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "property", request.getProperty()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearProperty().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(BatchRunReportsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor< - BatchRunPivotReportsRequest, BatchRunPivotReportsResponse> - batchRunPivotReportsMethodDescriptor = - ApiMethodDescriptor - .newBuilder() - .setFullMethodName( - "google.analytics.data.v1beta.BetaAnalyticsData/BatchRunPivotReports") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{property=properties/*}:batchRunPivotReports", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "property", request.getProperty()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearProperty().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(BatchRunPivotReportsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getMetadataMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.analytics.data.v1beta.BetaAnalyticsData/GetMetadata") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=properties/*/metadata}", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "name", request.getName()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor(request -> null) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(Metadata.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - runRealtimeReportMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.analytics.data.v1beta.BetaAnalyticsData/RunRealtimeReport") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{property=properties/*}:runRealtimeReport", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "property", request.getProperty()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearProperty().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(RunRealtimeReportResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - checkCompatibilityMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.analytics.data.v1beta.BetaAnalyticsData/CheckCompatibility") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{property=properties/*}:checkCompatibility", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "property", request.getProperty()); - return fields; - }) - .setQueryParamsExtractor( - request -> { - Map> fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - return fields; - }) - .setRequestBodyExtractor( - request -> - ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearProperty().build(), false)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(CheckCompatibilityResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .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 HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonBetaAnalyticsDataStub create(BetaAnalyticsDataStubSettings settings) - throws IOException { - return new HttpJsonBetaAnalyticsDataStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonBetaAnalyticsDataStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonBetaAnalyticsDataStub( - BetaAnalyticsDataStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonBetaAnalyticsDataStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonBetaAnalyticsDataStub( - BetaAnalyticsDataStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonBetaAnalyticsDataStub, 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 HttpJsonBetaAnalyticsDataStub( - BetaAnalyticsDataStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new HttpJsonBetaAnalyticsDataCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonBetaAnalyticsDataStub, 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 HttpJsonBetaAnalyticsDataStub( - BetaAnalyticsDataStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - HttpJsonCallSettings runReportTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(runReportMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - runPivotReportTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(runPivotReportMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - batchRunReportsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(batchRunReportsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - batchRunPivotReportsTransportSettings = - HttpJsonCallSettings - .newBuilder() - .setMethodDescriptor(batchRunPivotReportsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings getMetadataTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getMetadataMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - runRealtimeReportTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(runRealtimeReportMethodDescriptor) - .setTypeRegistry(typeRegistry) - .build(); - HttpJsonCallSettings - checkCompatibilityTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(checkCompatibilityMethodDescriptor) - .setTypeRegistry(typeRegistry) - .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()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(runReportMethodDescriptor); - methodDescriptors.add(runPivotReportMethodDescriptor); - methodDescriptors.add(batchRunReportsMethodDescriptor); - methodDescriptors.add(batchRunPivotReportsMethodDescriptor); - methodDescriptors.add(getMetadataMethodDescriptor); - methodDescriptors.add(runRealtimeReportMethodDescriptor); - methodDescriptors.add(checkCompatibilityMethodDescriptor); - return methodDescriptors; - } - - @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/v1alpha/AlphaAnalyticsDataClientHttpJsonTest.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientHttpJsonTest.java deleted file mode 100644 index b2d7572d..00000000 --- a/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientHttpJsonTest.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1alpha; - -import com.google.analytics.data.v1alpha.stub.HttpJsonAlphaAnalyticsDataStub; -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class AlphaAnalyticsDataClientHttpJsonTest { - private static MockHttpService mockService; - private static AlphaAnalyticsDataClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonAlphaAnalyticsDataStub.getMethodDescriptors(), - AlphaAnalyticsDataSettings.getDefaultEndpoint()); - AlphaAnalyticsDataSettings settings = - AlphaAnalyticsDataSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - AlphaAnalyticsDataSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = AlphaAnalyticsDataClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void runFunnelReportTest() throws Exception { - RunFunnelReportResponse expectedResponse = - RunFunnelReportResponse.newBuilder() - .setFunnelTable(FunnelSubReport.newBuilder().build()) - .setFunnelVisualization(FunnelSubReport.newBuilder().build()) - .setPropertyQuota(PropertyQuota.newBuilder().build()) - .setKind("kind3292052") - .build(); - mockService.addResponse(expectedResponse); - - RunFunnelReportRequest request = - RunFunnelReportRequest.newBuilder() - .setProperty("properties/propertie-2179") - .addAllDateRanges(new ArrayList()) - .setFunnel(Funnel.newBuilder().build()) - .setFunnelBreakdown(FunnelBreakdown.newBuilder().build()) - .setFunnelNextAction(FunnelNextAction.newBuilder().build()) - .addAllSegments(new ArrayList()) - .setLimit(102976443) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setReturnPropertyQuota(true) - .build(); - - RunFunnelReportResponse actualResponse = client.runFunnelReport(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void runFunnelReportExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RunFunnelReportRequest request = - RunFunnelReportRequest.newBuilder() - .setProperty("properties/propertie-2179") - .addAllDateRanges(new ArrayList()) - .setFunnel(Funnel.newBuilder().build()) - .setFunnelBreakdown(FunnelBreakdown.newBuilder().build()) - .setFunnelNextAction(FunnelNextAction.newBuilder().build()) - .addAllSegments(new ArrayList()) - .setLimit(102976443) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setReturnPropertyQuota(true) - .build(); - client.runFunnelReport(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java deleted file mode 100644 index b198eeeb..00000000 --- a/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataClientTest.java +++ /dev/null @@ -1,151 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha; - -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 AlphaAnalyticsDataClientTest { - private static MockAlphaAnalyticsData mockAlphaAnalyticsData; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private AlphaAnalyticsDataClient client; - - @BeforeClass - public static void startStaticServer() { - mockAlphaAnalyticsData = new MockAlphaAnalyticsData(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockAlphaAnalyticsData)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - AlphaAnalyticsDataSettings settings = - AlphaAnalyticsDataSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = AlphaAnalyticsDataClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void runFunnelReportTest() throws Exception { - RunFunnelReportResponse expectedResponse = - RunFunnelReportResponse.newBuilder() - .setFunnelTable(FunnelSubReport.newBuilder().build()) - .setFunnelVisualization(FunnelSubReport.newBuilder().build()) - .setPropertyQuota(PropertyQuota.newBuilder().build()) - .setKind("kind3292052") - .build(); - mockAlphaAnalyticsData.addResponse(expectedResponse); - - RunFunnelReportRequest request = - RunFunnelReportRequest.newBuilder() - .setProperty("property-993141291") - .addAllDateRanges(new ArrayList()) - .setFunnel(Funnel.newBuilder().build()) - .setFunnelBreakdown(FunnelBreakdown.newBuilder().build()) - .setFunnelNextAction(FunnelNextAction.newBuilder().build()) - .addAllSegments(new ArrayList()) - .setLimit(102976443) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setReturnPropertyQuota(true) - .build(); - - RunFunnelReportResponse actualResponse = client.runFunnelReport(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAlphaAnalyticsData.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - RunFunnelReportRequest actualRequest = ((RunFunnelReportRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getDateRangesList(), actualRequest.getDateRangesList()); - Assert.assertEquals(request.getFunnel(), actualRequest.getFunnel()); - Assert.assertEquals(request.getFunnelBreakdown(), actualRequest.getFunnelBreakdown()); - Assert.assertEquals(request.getFunnelNextAction(), actualRequest.getFunnelNextAction()); - Assert.assertEquals( - request.getFunnelVisualizationType(), actualRequest.getFunnelVisualizationType()); - Assert.assertEquals(request.getSegmentsList(), actualRequest.getSegmentsList()); - Assert.assertEquals(request.getLimit(), actualRequest.getLimit()); - Assert.assertEquals(request.getDimensionFilter(), actualRequest.getDimensionFilter()); - Assert.assertEquals(request.getReturnPropertyQuota(), actualRequest.getReturnPropertyQuota()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void runFunnelReportExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAlphaAnalyticsData.addException(exception); - - try { - RunFunnelReportRequest request = - RunFunnelReportRequest.newBuilder() - .setProperty("property-993141291") - .addAllDateRanges(new ArrayList()) - .setFunnel(Funnel.newBuilder().build()) - .setFunnelBreakdown(FunnelBreakdown.newBuilder().build()) - .setFunnelNextAction(FunnelNextAction.newBuilder().build()) - .addAllSegments(new ArrayList()) - .setLimit(102976443) - .setDimensionFilter(FilterExpression.newBuilder().build()) - .setReturnPropertyQuota(true) - .build(); - client.runFunnelReport(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsData.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsData.java deleted file mode 100644 index 9acf21d4..00000000 --- a/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsData.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.analytics.data.v1alpha; - -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 MockAlphaAnalyticsData implements MockGrpcService { - private final MockAlphaAnalyticsDataImpl serviceImpl; - - public MockAlphaAnalyticsData() { - serviceImpl = new MockAlphaAnalyticsDataImpl(); - } - - @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/v1alpha/MockAlphaAnalyticsDataImpl.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java deleted file mode 100644 index c5e60e4c..00000000 --- a/google-analytics-data/src/test/java/com/google/analytics/data/v1alpha/MockAlphaAnalyticsDataImpl.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha; - -import com.google.analytics.data.v1alpha.AlphaAnalyticsDataGrpc.AlphaAnalyticsDataImplBase; -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 MockAlphaAnalyticsDataImpl extends AlphaAnalyticsDataImplBase { - private List requests; - private Queue responses; - - public MockAlphaAnalyticsDataImpl() { - 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 runFunnelReport( - RunFunnelReportRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof RunFunnelReportResponse) { - requests.add(request); - responseObserver.onNext(((RunFunnelReportResponse) 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 RunFunnelReport, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - RunFunnelReportResponse.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClientHttpJsonTest.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClientHttpJsonTest.java deleted file mode 100644 index 0d070d5c..00000000 --- a/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClientHttpJsonTest.java +++ /dev/null @@ -1,571 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.HttpJsonBetaAnalyticsDataStub; -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.httpjson.GaxHttpJsonProperties; -import com.google.api.gax.httpjson.testing.MockHttpService; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ApiException; -import com.google.api.gax.rpc.ApiExceptionFactory; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.testing.FakeStatusCode; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class BetaAnalyticsDataClientHttpJsonTest { - private static MockHttpService mockService; - private static BetaAnalyticsDataClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonBetaAnalyticsDataStub.getMethodDescriptors(), - BetaAnalyticsDataSettings.getDefaultEndpoint()); - BetaAnalyticsDataSettings settings = - BetaAnalyticsDataSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - BetaAnalyticsDataSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = BetaAnalyticsDataClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @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(); - mockService.addResponse(expectedResponse); - - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/propertie-2179") - .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 = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void runReportExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/propertie-2179") - .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(); - mockService.addResponse(expectedResponse); - - RunPivotReportRequest request = - RunPivotReportRequest.newBuilder() - .setProperty("properties/propertie-2179") - .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 = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void runPivotReportExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RunPivotReportRequest request = - RunPivotReportRequest.newBuilder() - .setProperty("properties/propertie-2179") - .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(); - mockService.addResponse(expectedResponse); - - BatchRunReportsRequest request = - BatchRunReportsRequest.newBuilder() - .setProperty("properties/propertie-2179") - .addAllRequests(new ArrayList()) - .build(); - - BatchRunReportsResponse actualResponse = client.batchRunReports(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchRunReportsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - BatchRunReportsRequest request = - BatchRunReportsRequest.newBuilder() - .setProperty("properties/propertie-2179") - .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(); - mockService.addResponse(expectedResponse); - - BatchRunPivotReportsRequest request = - BatchRunPivotReportsRequest.newBuilder() - .setProperty("properties/propertie-2179") - .addAllRequests(new ArrayList()) - .build(); - - BatchRunPivotReportsResponse actualResponse = client.batchRunPivotReports(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void batchRunPivotReportsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - BatchRunPivotReportsRequest request = - BatchRunPivotReportsRequest.newBuilder() - .setProperty("properties/propertie-2179") - .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(); - mockService.addResponse(expectedResponse); - - MetadataName name = MetadataName.of("[PROPERTY]"); - - Metadata actualResponse = client.getMetadata(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getMetadataExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.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(); - mockService.addResponse(expectedResponse); - - String name = "properties/propertie-8635/metadata"; - - Metadata actualResponse = client.getMetadata(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void getMetadataExceptionTest2() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String name = "properties/propertie-8635/metadata"; - 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(); - mockService.addResponse(expectedResponse); - - RunRealtimeReportRequest request = - RunRealtimeReportRequest.newBuilder() - .setProperty("properties/propertie-2179") - .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 = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void runRealtimeReportExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - RunRealtimeReportRequest request = - RunRealtimeReportRequest.newBuilder() - .setProperty("properties/propertie-2179") - .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(); - mockService.addResponse(expectedResponse); - - CheckCompatibilityRequest request = - CheckCompatibilityRequest.newBuilder() - .setProperty("properties/propertie-2179") - .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 = mockService.getRequestPaths(); - Assert.assertEquals(1, actualRequests.size()); - - String apiClientHeaderKey = - mockService - .getRequestHeaders() - .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) - .iterator() - .next(); - Assert.assertTrue( - GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() - .matcher(apiClientHeaderKey) - .matches()); - } - - @Test - public void checkCompatibilityExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - CheckCompatibilityRequest request = - CheckCompatibilityRequest.newBuilder() - .setProperty("properties/propertie-2179") - .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/BetaAnalyticsDataClientTest.java b/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClientTest.java deleted file mode 100644 index 25470ad6..00000000 --- a/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/BetaAnalyticsDataClientTest.java +++ /dev/null @@ -1,569 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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 584e549e..00000000 --- a/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/MockBetaAnalyticsData.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.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 ef40e48e..00000000 --- a/google-analytics-data/src/test/java/com/google/analytics/data/v1beta/MockBetaAnalyticsDataImpl.java +++ /dev/null @@ -1,209 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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-v1alpha/clirr-ignored-differences.xml b/grpc-google-analytics-data-v1alpha/clirr-ignored-differences.xml deleted file mode 100644 index a2d53f48..00000000 --- a/grpc-google-analytics-data-v1alpha/clirr-ignored-differences.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 8001 - com/google/analytics/data/v1alpha/** - - - 7006 - com/google/analytics/data/v1alpha/** - * - * - - - 7002 - com/google/analytics/data/v1alpha/** - * - - - 7005 - com/google/analytics/data/v1alpha/** - * - * - - - 6011 - com/google/analytics/data/v1alpha/** - * - - - 6003 - com/google/analytics/data/v1alpha/** - * - - - 6001 - com/google/analytics/data/v1alpha/** - * - - - 7012 - com/google/analytics/data/v1alpha/** - * - - diff --git a/grpc-google-analytics-data-v1alpha/pom.xml b/grpc-google-analytics-data-v1alpha/pom.xml deleted file mode 100644 index 1a8c8a09..00000000 --- a/grpc-google-analytics-data-v1alpha/pom.xml +++ /dev/null @@ -1,65 +0,0 @@ - - 4.0.0 - com.google.api.grpc - grpc-google-analytics-data-v1alpha - 0.14.10-SNAPSHOT - grpc-google-analytics-data-v1alpha - GRPC library for google-analytics-data - - com.google.analytics - google-analytics-data-parent - 0.14.10-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-v1alpha - - - com.google.guava - guava - - - - - - java9 - - [9,) - - - - javax.annotation - javax.annotation-api - - - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - diff --git a/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java b/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java deleted file mode 100644 index d5b8dad6..00000000 --- a/grpc-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AlphaAnalyticsDataGrpc.java +++ /dev/null @@ -1,398 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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.v1alpha; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
- * Google Analytics reporting data service.
- * 
- */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/analytics/data/v1alpha/analytics_data_api.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class AlphaAnalyticsDataGrpc { - - private AlphaAnalyticsDataGrpc() {} - - public static final String SERVICE_NAME = "google.analytics.data.v1alpha.AlphaAnalyticsData"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.RunFunnelReportRequest, - com.google.analytics.data.v1alpha.RunFunnelReportResponse> - getRunFunnelReportMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "RunFunnelReport", - requestType = com.google.analytics.data.v1alpha.RunFunnelReportRequest.class, - responseType = com.google.analytics.data.v1alpha.RunFunnelReportResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.RunFunnelReportRequest, - com.google.analytics.data.v1alpha.RunFunnelReportResponse> - getRunFunnelReportMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.data.v1alpha.RunFunnelReportRequest, - com.google.analytics.data.v1alpha.RunFunnelReportResponse> - getRunFunnelReportMethod; - if ((getRunFunnelReportMethod = AlphaAnalyticsDataGrpc.getRunFunnelReportMethod) == null) { - synchronized (AlphaAnalyticsDataGrpc.class) { - if ((getRunFunnelReportMethod = AlphaAnalyticsDataGrpc.getRunFunnelReportMethod) == null) { - AlphaAnalyticsDataGrpc.getRunFunnelReportMethod = - getRunFunnelReportMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunFunnelReport")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1alpha.RunFunnelReportRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.data.v1alpha.RunFunnelReportResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new AlphaAnalyticsDataMethodDescriptorSupplier("RunFunnelReport")) - .build(); - } - } - } - return getRunFunnelReportMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static AlphaAnalyticsDataStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AlphaAnalyticsDataStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AlphaAnalyticsDataStub(channel, callOptions); - } - }; - return AlphaAnalyticsDataStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AlphaAnalyticsDataBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AlphaAnalyticsDataBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AlphaAnalyticsDataBlockingStub(channel, callOptions); - } - }; - return AlphaAnalyticsDataBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AlphaAnalyticsDataFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AlphaAnalyticsDataFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AlphaAnalyticsDataFutureStub(channel, callOptions); - } - }; - return AlphaAnalyticsDataFutureStub.newStub(factory, channel); - } - - /** - * - * - *
-   * Google Analytics reporting data service.
-   * 
- */ - public abstract static class AlphaAnalyticsDataImplBase implements io.grpc.BindableService { - - /** - * - * - *
-     * Returns a customized funnel report of your Google Analytics event data. The
-     * data returned from the API is as a table with columns for the requested
-     * dimensions and metrics.
-     * Funnel exploration lets you visualize the steps your users take to complete
-     * a task and quickly see how well they are succeeding or failing at each
-     * step. For example, how do prospects become shoppers and then become buyers?
-     * How do one time buyers become repeat buyers? With this information, you can
-     * improve inefficient or abandoned customer journeys. To learn more, see [GA4
-     * Funnel Explorations](https://support.google.com/analytics/answer/9327974).
-     * 
- */ - public void runFunnelReport( - com.google.analytics.data.v1alpha.RunFunnelReportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getRunFunnelReportMethod(), responseObserver); - } - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getRunFunnelReportMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.data.v1alpha.RunFunnelReportRequest, - com.google.analytics.data.v1alpha.RunFunnelReportResponse>( - this, METHODID_RUN_FUNNEL_REPORT))) - .build(); - } - } - - /** - * - * - *
-   * Google Analytics reporting data service.
-   * 
- */ - public static final class AlphaAnalyticsDataStub - extends io.grpc.stub.AbstractAsyncStub { - private AlphaAnalyticsDataStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AlphaAnalyticsDataStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AlphaAnalyticsDataStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a customized funnel report of your Google Analytics event data. The
-     * data returned from the API is as a table with columns for the requested
-     * dimensions and metrics.
-     * Funnel exploration lets you visualize the steps your users take to complete
-     * a task and quickly see how well they are succeeding or failing at each
-     * step. For example, how do prospects become shoppers and then become buyers?
-     * How do one time buyers become repeat buyers? With this information, you can
-     * improve inefficient or abandoned customer journeys. To learn more, see [GA4
-     * Funnel Explorations](https://support.google.com/analytics/answer/9327974).
-     * 
- */ - public void runFunnelReport( - com.google.analytics.data.v1alpha.RunFunnelReportRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getRunFunnelReportMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * - * - *
-   * Google Analytics reporting data service.
-   * 
- */ - public static final class AlphaAnalyticsDataBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AlphaAnalyticsDataBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AlphaAnalyticsDataBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AlphaAnalyticsDataBlockingStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a customized funnel report of your Google Analytics event data. The
-     * data returned from the API is as a table with columns for the requested
-     * dimensions and metrics.
-     * Funnel exploration lets you visualize the steps your users take to complete
-     * a task and quickly see how well they are succeeding or failing at each
-     * step. For example, how do prospects become shoppers and then become buyers?
-     * How do one time buyers become repeat buyers? With this information, you can
-     * improve inefficient or abandoned customer journeys. To learn more, see [GA4
-     * Funnel Explorations](https://support.google.com/analytics/answer/9327974).
-     * 
- */ - public com.google.analytics.data.v1alpha.RunFunnelReportResponse runFunnelReport( - com.google.analytics.data.v1alpha.RunFunnelReportRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getRunFunnelReportMethod(), getCallOptions(), request); - } - } - - /** - * - * - *
-   * Google Analytics reporting data service.
-   * 
- */ - public static final class AlphaAnalyticsDataFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AlphaAnalyticsDataFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AlphaAnalyticsDataFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AlphaAnalyticsDataFutureStub(channel, callOptions); - } - - /** - * - * - *
-     * Returns a customized funnel report of your Google Analytics event data. The
-     * data returned from the API is as a table with columns for the requested
-     * dimensions and metrics.
-     * Funnel exploration lets you visualize the steps your users take to complete
-     * a task and quickly see how well they are succeeding or failing at each
-     * step. For example, how do prospects become shoppers and then become buyers?
-     * How do one time buyers become repeat buyers? With this information, you can
-     * improve inefficient or abandoned customer journeys. To learn more, see [GA4
-     * Funnel Explorations](https://support.google.com/analytics/answer/9327974).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.data.v1alpha.RunFunnelReportResponse> - runFunnelReport(com.google.analytics.data.v1alpha.RunFunnelReportRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getRunFunnelReportMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_RUN_FUNNEL_REPORT = 0; - - 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 AlphaAnalyticsDataImplBase serviceImpl; - private final int methodId; - - MethodHandlers(AlphaAnalyticsDataImplBase 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_FUNNEL_REPORT: - serviceImpl.runFunnelReport( - (com.google.analytics.data.v1alpha.RunFunnelReportRequest) request, - (io.grpc.stub.StreamObserver< - com.google.analytics.data.v1alpha.RunFunnelReportResponse>) - 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 AlphaAnalyticsDataBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - AlphaAnalyticsDataBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("AlphaAnalyticsData"); - } - } - - private static final class AlphaAnalyticsDataFileDescriptorSupplier - extends AlphaAnalyticsDataBaseDescriptorSupplier { - AlphaAnalyticsDataFileDescriptorSupplier() {} - } - - private static final class AlphaAnalyticsDataMethodDescriptorSupplier - extends AlphaAnalyticsDataBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - AlphaAnalyticsDataMethodDescriptorSupplier(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 (AlphaAnalyticsDataGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new AlphaAnalyticsDataFileDescriptorSupplier()) - .addMethod(getRunFunnelReportMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/grpc-google-analytics-data-v1beta/pom.xml b/grpc-google-analytics-data-v1beta/pom.xml deleted file mode 100644 index ceb63b30..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.14.10-SNAPSHOT - grpc-google-analytics-data-v1beta - GRPC library for grpc-google-analytics-data-v1beta - - com.google.analytics - google-analytics-data-parent - 0.14.10-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 f03e8068..00000000 --- a/grpc-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BetaAnalyticsDataGrpc.java +++ /dev/null @@ -1,1241 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -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.
-     * For a guide to constructing requests & understanding responses, see
-     * [Creating a
-     * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics).
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Returns a customized report of realtime event data for your property.
-     * Events appear in realtime reports seconds after they have been sent to
-     * the Google Analytics. Realtime reports show events and usage data for the
-     * periods of time ranging from the present moment to 30 minutes ago (up to
-     * 60 minutes for Google Analytics 360 properties).
-     * For a guide to constructing realtime requests & understanding responses,
-     * see [Creating a Realtime
-     * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).
-     * 
- */ - 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.
-     * For a guide to constructing requests & understanding responses, see
-     * [Creating a
-     * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics).
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Returns a customized report of realtime event data for your property.
-     * Events appear in realtime reports seconds after they have been sent to
-     * the Google Analytics. Realtime reports show events and usage data for the
-     * periods of time ranging from the present moment to 30 minutes ago (up to
-     * 60 minutes for Google Analytics 360 properties).
-     * For a guide to constructing realtime requests & understanding responses,
-     * see [Creating a Realtime
-     * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).
-     * 
- */ - 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.
-     * For a guide to constructing requests & understanding responses, see
-     * [Creating a
-     * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics).
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Returns a customized report of realtime event data for your property.
-     * Events appear in realtime reports seconds after they have been sent to
-     * the Google Analytics. Realtime reports show events and usage data for the
-     * periods of time ranging from the present moment to 30 minutes ago (up to
-     * 60 minutes for Google Analytics 360 properties).
-     * For a guide to constructing realtime requests & understanding responses,
-     * see [Creating a Realtime
-     * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).
-     * 
- */ - 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.
-     * For a guide to constructing requests & understanding responses, see
-     * [Creating a
-     * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics).
-     * 
- */ - 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); - } - - /** - * - * - *
-     * Returns a customized report of realtime event data for your property.
-     * Events appear in realtime reports seconds after they have been sent to
-     * the Google Analytics. Realtime reports show events and usage data for the
-     * periods of time ranging from the present moment to 30 minutes ago (up to
-     * 60 minutes for Google Analytics 360 properties).
-     * For a guide to constructing realtime requests & understanding responses,
-     * see [Creating a Realtime
-     * Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics).
-     * 
- */ - 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/pom.xml b/pom.xml deleted file mode 100644 index bf9e0965..00000000 --- a/pom.xml +++ /dev/null @@ -1,192 +0,0 @@ - - - 4.0.0 - com.google.analytics - google-analytics-data-parent - pom - 0.14.10-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.5.3 - - - - - 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.14.10-SNAPSHOT - - - com.google.api.grpc - proto-google-analytics-data-v1alpha - 0.14.10-SNAPSHOT - - - com.google.api.grpc - grpc-google-analytics-data-v1alpha - 0.14.10-SNAPSHOT - - - com.google.api.grpc - proto-google-analytics-data-v1beta - 0.14.10-SNAPSHOT - - - com.google.api.grpc - grpc-google-analytics-data-v1beta - 0.14.10-SNAPSHOT - - - - com.google.cloud - google-cloud-shared-dependencies - 3.0.4 - pom - import - - - - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - org.objenesis:objenesis - javax.annotation:javax.annotation-api - - - - - - - - - google-analytics-data - grpc-google-analytics-data-v1beta - grpc-google-analytics-data-v1alpha - proto-google-analytics-data-v1beta - proto-google-analytics-data-v1alpha - google-analytics-data-bom - - - - - - org.apache.maven.plugins - maven-project-info-reports-plugin - 3.4.1 - - - - index - dependency-info - team - ci-management - issue-management - licenses - scm - dependency-management - distribution-management - summary - modules - - - - - true - ${site.installationModule} - jar - - - - org.apache.maven.plugins - maven-javadoc-plugin - 3.4.1 - - - html - - aggregate - javadoc - - - - - none - protected - true - ${project.build.directory}/javadoc - - - Test helpers packages - com.google.cloud.testing - - - SPI packages - com.google.cloud.spi* - - - - - https://grpc.io/grpc-java/javadoc/ - https://developers.google.com/protocol-buffers/docs/reference/java/ - https://googleapis.dev/java/google-auth-library/latest/ - https://googleapis.dev/java/gax/latest/ - https://googleapis.github.io/api-common-java/${google.api-common.version}/apidocs/ - - - - - - diff --git a/proto-google-analytics-data-v1alpha/clirr-ignored-differences.xml b/proto-google-analytics-data-v1alpha/clirr-ignored-differences.xml deleted file mode 100644 index a2d53f48..00000000 --- a/proto-google-analytics-data-v1alpha/clirr-ignored-differences.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - 8001 - com/google/analytics/data/v1alpha/** - - - 7006 - com/google/analytics/data/v1alpha/** - * - * - - - 7002 - com/google/analytics/data/v1alpha/** - * - - - 7005 - com/google/analytics/data/v1alpha/** - * - * - - - 6011 - com/google/analytics/data/v1alpha/** - * - - - 6003 - com/google/analytics/data/v1alpha/** - * - - - 6001 - com/google/analytics/data/v1alpha/** - * - - - 7012 - com/google/analytics/data/v1alpha/** - * - - diff --git a/proto-google-analytics-data-v1alpha/pom.xml b/proto-google-analytics-data-v1alpha/pom.xml deleted file mode 100644 index 77e82c53..00000000 --- a/proto-google-analytics-data-v1alpha/pom.xml +++ /dev/null @@ -1,34 +0,0 @@ - - 4.0.0 - com.google.api.grpc - proto-google-analytics-data-v1alpha - 0.14.10-SNAPSHOT - proto-google-analytics-data-v1alpha - Proto library for google-analytics-data - - com.google.analytics - google-analytics-data-parent - 0.14.10-SNAPSHOT - - - - com.google.protobuf - protobuf-java - - - com.google.api.grpc - proto-google-common-protos - - - - - - - org.codehaus.mojo - flatten-maven-plugin - - - - diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java deleted file mode 100644 index 3f89bffd..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/AnalyticsDataApiProto.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -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_v1alpha_RunFunnelReportRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { - return descriptor; - } - - private static com.google.protobuf.Descriptors.FileDescriptor descriptor; - - static { - java.lang.String[] descriptorData = { - "\n6google/analytics/data/v1alpha/analytic" - + "s_data_api.proto\022\035google.analytics.data." - + "v1alpha\032(google/analytics/data/v1alpha/d" - + "ata.proto\032\034google/api/annotations.proto\032" - + "\027google/api/client.proto\"\313\005\n\026RunFunnelRe" - + "portRequest\022\020\n\010property\030\001 \001(\t\022=\n\013date_ra" - + "nges\030\002 \003(\0132(.google.analytics.data.v1alp" - + "ha.DateRange\0225\n\006funnel\030\003 \001(\0132%.google.an" - + "alytics.data.v1alpha.Funnel\022H\n\020funnel_br" - + "eakdown\030\004 \001(\0132..google.analytics.data.v1" - + "alpha.FunnelBreakdown\022K\n\022funnel_next_act" - + "ion\030\005 \001(\0132/.google.analytics.data.v1alph" - + "a.FunnelNextAction\022p\n\031funnel_visualizati" - + "on_type\030\006 \001(\0162M.google.analytics.data.v1" - + "alpha.RunFunnelReportRequest.FunnelVisua" - + "lizationType\0228\n\010segments\030\007 \003(\0132&.google." - + "analytics.data.v1alpha.Segment\022\r\n\005limit\030" - + "\t \001(\003\022I\n\020dimension_filter\030\n \001(\0132/.google" - + ".analytics.data.v1alpha.FilterExpression" - + "\022\035\n\025return_property_quota\030\014 \001(\010\"m\n\027Funne" - + "lVisualizationType\022)\n%FUNNEL_VISUALIZATI" - + "ON_TYPE_UNSPECIFIED\020\000\022\023\n\017STANDARD_FUNNEL" - + "\020\001\022\022\n\016TRENDED_FUNNEL\020\002\"\201\002\n\027RunFunnelRepo" - + "rtResponse\022D\n\014funnel_table\030\001 \001(\0132..googl" - + "e.analytics.data.v1alpha.FunnelSubReport" - + "\022L\n\024funnel_visualization\030\002 \001(\0132..google." - + "analytics.data.v1alpha.FunnelSubReport\022D" - + "\n\016property_quota\030\003 \001(\0132,.google.analytic" - + "s.data.v1alpha.PropertyQuota\022\014\n\004kind\030\004 \001" - + "(\t2\324\002\n\022AlphaAnalyticsData\022\275\001\n\017RunFunnelR" - + "eport\0225.google.analytics.data.v1alpha.Ru" - + "nFunnelReportRequest\0326.google.analytics." - + "data.v1alpha.RunFunnelReportResponse\";\202\323" - + "\344\223\0025\"0/v1alpha/{property=properties/*}:r" - + "unFunnelReport:\001*\032~\312A\034analyticsdata.goog" - + "leapis.com\322A\\https://www.googleapis.com/" - + "auth/analytics,https://www.googleapis.co" - + "m/auth/analytics.readonlyB\177\n!com.google." - + "analytics.data.v1alphaB\025AnalyticsDataApi" - + "ProtoP\001ZAgoogle.golang.org/genproto/goog" - + "leapis/analytics/data/v1alpha;datab\006prot" - + "o3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor(), - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - }); - internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_descriptor, - new java.lang.String[] { - "Property", - "DateRanges", - "Funnel", - "FunnelBreakdown", - "FunnelNextAction", - "FunnelVisualizationType", - "Segments", - "Limit", - "DimensionFilter", - "ReturnPropertyQuota", - }); - internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor, - new java.lang.String[] { - "FunnelTable", "FunnelVisualization", "PropertyQuota", "Kind", - }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.oauthScopes); - com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( - descriptor, registry); - com.google.analytics.data.v1alpha.ReportingApiProto.getDescriptor(); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilter.java deleted file mode 100644 index 4e683694..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilter.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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * To express that the result needs to be between two numbers (inclusive).
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.BetweenFilter} - */ -public final class BetweenFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_BetweenFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.BetweenFilter.class, - com.google.analytics.data.v1alpha.BetweenFilter.Builder.class); - } - - public static final int FROM_VALUE_FIELD_NUMBER = 1; - private com.google.analytics.data.v1alpha.NumericValue fromValue_; - /** - * - * - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericValue from_value = 1; - * - * @return The fromValue. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericValue getFromValue() { - return fromValue_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : fromValue_; - } - /** - * - * - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.data.v1alpha.NumericValue from_value = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericValueOrBuilder getFromValueOrBuilder() { - return getFromValue(); - } - - public static final int TO_VALUE_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.NumericValue toValue_; - /** - * - * - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericValue to_value = 2; - * - * @return The toValue. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericValue getToValue() { - return toValue_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : toValue_; - } - /** - * - * - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.data.v1alpha.NumericValue to_value = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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()); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.BetweenFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.BetweenFilter other = - (com.google.analytics.data.v1alpha.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.BetweenFilter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BetweenFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BetweenFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BetweenFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.BetweenFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.BetweenFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.BetweenFilter) - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_BetweenFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.BetweenFilter.class, - com.google.analytics.data.v1alpha.BetweenFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.BetweenFilter.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilter build() { - com.google.analytics.data.v1alpha.BetweenFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilter buildPartial() { - com.google.analytics.data.v1alpha.BetweenFilter result = - new com.google.analytics.data.v1alpha.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.v1alpha.BetweenFilter) { - return mergeFrom((com.google.analytics.data.v1alpha.BetweenFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.BetweenFilter other) { - if (other == com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance()) - return this; - if (other.hasFromValue()) { - mergeFromValue(other.getFromValue()); - } - if (other.hasToValue()) { - mergeToValue(other.getToValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getFromValueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getToValueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.analytics.data.v1alpha.NumericValue fromValue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.NumericValueOrBuilder> - fromValueBuilder_; - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericValue from_value = 1; - * - * @return The fromValue. - */ - public com.google.analytics.data.v1alpha.NumericValue getFromValue() { - if (fromValueBuilder_ == null) { - return fromValue_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : fromValue_; - } else { - return fromValueBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue from_value = 1; - */ - public Builder setFromValue(com.google.analytics.data.v1alpha.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.v1alpha.NumericValue from_value = 1; - */ - public Builder setFromValue( - com.google.analytics.data.v1alpha.NumericValue.Builder builderForValue) { - if (fromValueBuilder_ == null) { - fromValue_ = builderForValue.build(); - onChanged(); - } else { - fromValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue from_value = 1; - */ - public Builder mergeFromValue(com.google.analytics.data.v1alpha.NumericValue value) { - if (fromValueBuilder_ == null) { - if (fromValue_ != null) { - fromValue_ = - com.google.analytics.data.v1alpha.NumericValue.newBuilder(fromValue_) - .mergeFrom(value) - .buildPartial(); - } else { - fromValue_ = value; - } - onChanged(); - } else { - fromValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericValue from_value = 1; - */ - public com.google.analytics.data.v1alpha.NumericValue.Builder getFromValueBuilder() { - - onChanged(); - return getFromValueFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue from_value = 1; - */ - public com.google.analytics.data.v1alpha.NumericValueOrBuilder getFromValueOrBuilder() { - if (fromValueBuilder_ != null) { - return fromValueBuilder_.getMessageOrBuilder(); - } else { - return fromValue_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : fromValue_; - } - } - /** - * - * - *
-     * Begins with this number.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue from_value = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.NumericValueOrBuilder> - getFromValueFieldBuilder() { - if (fromValueBuilder_ == null) { - fromValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.NumericValueOrBuilder>( - getFromValue(), getParentForChildren(), isClean()); - fromValue_ = null; - } - return fromValueBuilder_; - } - - private com.google.analytics.data.v1alpha.NumericValue toValue_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.NumericValueOrBuilder> - toValueBuilder_; - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericValue to_value = 2; - * - * @return The toValue. - */ - public com.google.analytics.data.v1alpha.NumericValue getToValue() { - if (toValueBuilder_ == null) { - return toValue_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : toValue_; - } else { - return toValueBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue to_value = 2; - */ - public Builder setToValue(com.google.analytics.data.v1alpha.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.v1alpha.NumericValue to_value = 2; - */ - public Builder setToValue( - com.google.analytics.data.v1alpha.NumericValue.Builder builderForValue) { - if (toValueBuilder_ == null) { - toValue_ = builderForValue.build(); - onChanged(); - } else { - toValueBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue to_value = 2; - */ - public Builder mergeToValue(com.google.analytics.data.v1alpha.NumericValue value) { - if (toValueBuilder_ == null) { - if (toValue_ != null) { - toValue_ = - com.google.analytics.data.v1alpha.NumericValue.newBuilder(toValue_) - .mergeFrom(value) - .buildPartial(); - } else { - toValue_ = value; - } - onChanged(); - } else { - toValueBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericValue to_value = 2; - */ - public com.google.analytics.data.v1alpha.NumericValue.Builder getToValueBuilder() { - - onChanged(); - return getToValueFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue to_value = 2; - */ - public com.google.analytics.data.v1alpha.NumericValueOrBuilder getToValueOrBuilder() { - if (toValueBuilder_ != null) { - return toValueBuilder_.getMessageOrBuilder(); - } else { - return toValue_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : toValue_; - } - } - /** - * - * - *
-     * Ends with this number.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue to_value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.NumericValueOrBuilder> - getToValueFieldBuilder() { - if (toValueBuilder_ == null) { - toValueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.BetweenFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.BetweenFilter) - private static final com.google.analytics.data.v1alpha.BetweenFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.BetweenFilter(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilterOrBuilder.java deleted file mode 100644 index ec16ff09..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/BetweenFilterOrBuilder.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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface BetweenFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.BetweenFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.data.v1alpha.NumericValue from_value = 1; - * - * @return Whether the fromValue field is set. - */ - boolean hasFromValue(); - /** - * - * - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.data.v1alpha.NumericValue from_value = 1; - * - * @return The fromValue. - */ - com.google.analytics.data.v1alpha.NumericValue getFromValue(); - /** - * - * - *
-   * Begins with this number.
-   * 
- * - * .google.analytics.data.v1alpha.NumericValue from_value = 1; - */ - com.google.analytics.data.v1alpha.NumericValueOrBuilder getFromValueOrBuilder(); - - /** - * - * - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.data.v1alpha.NumericValue to_value = 2; - * - * @return Whether the toValue field is set. - */ - boolean hasToValue(); - /** - * - * - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.data.v1alpha.NumericValue to_value = 2; - * - * @return The toValue. - */ - com.google.analytics.data.v1alpha.NumericValue getToValue(); - /** - * - * - *
-   * Ends with this number.
-   * 
- * - * .google.analytics.data.v1alpha.NumericValue to_value = 2; - */ - com.google.analytics.data.v1alpha.NumericValueOrBuilder getToValueOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java deleted file mode 100644 index 04413cfb..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRange.java +++ /dev/null @@ -1,1035 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * A contiguous set of days: startDate, startDate + 1, ..., endDate. Requests
- * are allowed up to 4 date ranges.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.DateRange} - */ -public final class DateRange extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DateRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DateRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DateRange.class, - com.google.analytics.data.v1alpha.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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.DateRange)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.DateRange other = - (com.google.analytics.data.v1alpha.DateRange) obj; - - if (!getStartDate().equals(other.getStartDate())) return false; - if (!getEndDate().equals(other.getEndDate())) return false; - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.DateRange parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DateRange parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DateRange parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DateRange parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DateRange parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DateRange} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DateRange) - com.google.analytics.data.v1alpha.DateRangeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DateRange_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DateRange_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DateRange.class, - com.google.analytics.data.v1alpha.DateRange.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.DateRange.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DateRange_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DateRange getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.DateRange.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DateRange build() { - com.google.analytics.data.v1alpha.DateRange result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DateRange buildPartial() { - com.google.analytics.data.v1alpha.DateRange result = - new com.google.analytics.data.v1alpha.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.v1alpha.DateRange) { - return mergeFrom((com.google.analytics.data.v1alpha.DateRange) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.DateRange other) { - if (other == com.google.analytics.data.v1alpha.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - startDate_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - endDate_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object 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.v1alpha.DateRange) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DateRange) - private static final com.google.analytics.data.v1alpha.DateRange DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DateRange(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DateRange getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRangeOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DateRangeOrBuilder.java deleted file mode 100644 index f111e6c0..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface DateRangeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java deleted file mode 100644 index 5176e475..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Dimension.java +++ /dev/null @@ -1,967 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * 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, the city could be "Paris" or "New York".
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Dimension} - */ -public final class Dimension extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Dimension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Dimension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Dimension.class, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - * - * @return The dimensionExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression getDimensionExpression() { - return dimensionExpression_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (dimensionExpression_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDimensionExpression()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.Dimension)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Dimension other = - (com.google.analytics.data.v1alpha.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasDimensionExpression()) { - hash = (37 * hash) + DIMENSION_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getDimensionExpression().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.Dimension parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Dimension parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Dimension parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Dimension parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Dimension parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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, the city could be "Paris" or "New York".
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Dimension} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Dimension) - com.google.analytics.data.v1alpha.DimensionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Dimension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Dimension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Dimension.class, - com.google.analytics.data.v1alpha.Dimension.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.Dimension.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Dimension_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Dimension getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Dimension.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Dimension build() { - com.google.analytics.data.v1alpha.Dimension result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Dimension buildPartial() { - com.google.analytics.data.v1alpha.Dimension result = - new com.google.analytics.data.v1alpha.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.v1alpha.Dimension) { - return mergeFrom((com.google.analytics.data.v1alpha.Dimension) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Dimension other) { - if (other == com.google.analytics.data.v1alpha.Dimension.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasDimensionExpression()) { - mergeDimensionExpression(other.getDimensionExpression()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getDimensionExpressionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object 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.v1alpha.DimensionExpression dimensionExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression, - com.google.analytics.data.v1alpha.DimensionExpression.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - * - * @return The dimensionExpression. - */ - public com.google.analytics.data.v1alpha.DimensionExpression getDimensionExpression() { - if (dimensionExpressionBuilder_ == null) { - return dimensionExpression_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - */ - public Builder setDimensionExpression( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - */ - public Builder setDimensionExpression( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - */ - public Builder mergeDimensionExpression( - com.google.analytics.data.v1alpha.DimensionExpression value) { - if (dimensionExpressionBuilder_ == null) { - if (dimensionExpression_ != null) { - dimensionExpression_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - */ - public com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder - getDimensionExpressionOrBuilder() { - if (dimensionExpressionBuilder_ != null) { - return dimensionExpressionBuilder_.getMessageOrBuilder(); - } else { - return dimensionExpression_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression, - com.google.analytics.data.v1alpha.DimensionExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder> - getDimensionExpressionFieldBuilder() { - if (dimensionExpressionBuilder_ == null) { - dimensionExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression, - com.google.analytics.data.v1alpha.DimensionExpression.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Dimension) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Dimension) - private static final com.google.analytics.data.v1alpha.Dimension DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Dimension(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Dimension getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java deleted file mode 100644 index f412ae79..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpression.java +++ /dev/null @@ -1,3236 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * 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.v1alpha.DimensionExpression} - */ -public final class DimensionExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionExpression.class, - com.google.analytics.data.v1alpha.DimensionExpression.Builder.class); - } - - public interface CaseExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression} - */ - public static final class CaseExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.class, - com.google.analytics.data.v1alpha.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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression other = - (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) obj; - - if (!getDimensionName().equals(other.getDimensionName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DIMENSION_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDimensionName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression.CaseExpression} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.class, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder.class); - } - - // Construct using - // com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression build() { - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression buildPartial() { - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression result = - new com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression) { - return mergeFrom( - (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression other) { - if (other - == com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance()) return this; - if (!other.getDimensionName().isEmpty()) { - dimensionName_ = other.dimensionName_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - dimensionName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object 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.v1alpha.DimensionExpression.CaseExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - private static final com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } - - public interface ConcatenateExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression} - */ - public static final class ConcatenateExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.class, - com.google.analytics.data.v1alpha.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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression other = - (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) obj; - - if (!getDimensionNamesList().equals(other.getDimensionNamesList())) return false; - if (!getDelimiter().equals(other.getDelimiter())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression - parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression - parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression} - */ - public static final class Builder - extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.class, - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder - .class); - } - - // Construct using - // com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression build() { - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - buildPartial() { - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression result = - new com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression) { - return mergeFrom( - (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression other) { - if (other - == com.google.analytics.data.v1alpha.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDimensionNamesIsMutable(); - dimensionNames_.add(s); - break; - } // case 10 - case 18: - { - delimiter_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private 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.v1alpha.DimensionExpression.ConcatenateExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - private static final com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = - new com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - * @return The lowerCase. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getLowerCase() { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - /** - * - * - *
-   * Used to convert a dimension value to lower case.
-   * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder - getLowerCaseOrBuilder() { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - - public static final int UPPER_CASE_FIELD_NUMBER = 5; - /** - * - * - *
-   * Used to convert a dimension value to upper case.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - * @return The upperCase. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getUpperCase() { - if (oneExpressionCase_ == 5) { - return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - /** - * - * - *
-   * Used to convert a dimension value to upper case.
-   * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder - getUpperCaseOrBuilder() { - if (oneExpressionCase_ == 5) { - return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_; - } - return com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - * - * @return The concatenate. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - getConcatenate() { - if (oneExpressionCase_ == 6) { - return (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } - /** - * - * - *
-   * Used to combine dimension values to a single dimension.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder - getConcatenateOrBuilder() { - if (oneExpressionCase_ == 6) { - return (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - oneExpression_; - } - return com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression) oneExpression_); - } - if (oneExpressionCase_ == 5) { - output.writeMessage( - 5, (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) oneExpression_); - } - if (oneExpressionCase_ == 6) { - output.writeMessage( - 6, - (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - oneExpression_); - } - getUnknownFields().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.v1alpha.DimensionExpression.CaseExpression) - oneExpression_); - } - if (oneExpressionCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, - (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_); - } - if (oneExpressionCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, - (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - oneExpression_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.DimensionExpression)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.DimensionExpression other = - (com.google.analytics.data.v1alpha.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.DimensionExpression parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionExpression) - com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionExpression.class, - com.google.analytics.data.v1alpha.DimensionExpression.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.DimensionExpression.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (lowerCaseBuilder_ != null) { - lowerCaseBuilder_.clear(); - } - if (upperCaseBuilder_ != null) { - upperCaseBuilder_.clear(); - } - if (concatenateBuilder_ != null) { - concatenateBuilder_.clear(); - } - oneExpressionCase_ = 0; - oneExpression_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.DimensionExpression.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression build() { - com.google.analytics.data.v1alpha.DimensionExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression buildPartial() { - com.google.analytics.data.v1alpha.DimensionExpression result = - new com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression) { - return mergeFrom((com.google.analytics.data.v1alpha.DimensionExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.DimensionExpression other) { - if (other == com.google.analytics.data.v1alpha.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 34: - { - input.readMessage(getLowerCaseFieldBuilder().getBuilder(), extensionRegistry); - oneExpressionCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getUpperCaseFieldBuilder().getBuilder(), extensionRegistry); - oneExpressionCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getConcatenateFieldBuilder().getBuilder(), extensionRegistry); - oneExpressionCase_ = 6; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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.v1alpha.DimensionExpression.CaseExpression, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder> - lowerCaseBuilder_; - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - * - * @return The lowerCase. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getLowerCase() { - if (lowerCaseBuilder_ == null) { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } else { - if (oneExpressionCase_ == 4) { - return lowerCaseBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - */ - public Builder setLowerCase( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - */ - public Builder setLowerCase( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - */ - public Builder mergeLowerCase( - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression value) { - if (lowerCaseBuilder_ == null) { - if (oneExpressionCase_ == 4 - && oneExpression_ - != com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance()) { - oneExpression_ = - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.newBuilder( - (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - oneExpression_ = value; - } - onChanged(); - } else { - if (oneExpressionCase_ == 4) { - lowerCaseBuilder_.mergeFrom(value); - } else { - lowerCaseBuilder_.setMessage(value); - } - } - oneExpressionCase_ = 4; - return this; - } - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - */ - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder - getLowerCaseBuilder() { - return getLowerCaseFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder - getLowerCaseOrBuilder() { - if ((oneExpressionCase_ == 4) && (lowerCaseBuilder_ != null)) { - return lowerCaseBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 4) { - return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to convert a dimension value to lower case.
-     * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder> - getLowerCaseFieldBuilder() { - if (lowerCaseBuilder_ == null) { - if (!(oneExpressionCase_ == 4)) { - oneExpression_ = - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - lowerCaseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder>( - (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_, - getParentForChildren(), - isClean()); - oneExpression_ = null; - } - oneExpressionCase_ = 4; - onChanged(); - ; - return lowerCaseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder> - upperCaseBuilder_; - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - * - * @return The upperCase. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getUpperCase() { - if (upperCaseBuilder_ == null) { - if (oneExpressionCase_ == 5) { - return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } else { - if (oneExpressionCase_ == 5) { - return upperCaseBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - */ - public Builder setUpperCase( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - */ - public Builder setUpperCase( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - */ - public Builder mergeUpperCase( - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression value) { - if (upperCaseBuilder_ == null) { - if (oneExpressionCase_ == 5 - && oneExpression_ - != com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance()) { - oneExpression_ = - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.newBuilder( - (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - oneExpression_ = value; - } - onChanged(); - } else { - if (oneExpressionCase_ == 5) { - upperCaseBuilder_.mergeFrom(value); - } else { - upperCaseBuilder_.setMessage(value); - } - } - oneExpressionCase_ = 5; - return this; - } - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - */ - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder - getUpperCaseBuilder() { - return getUpperCaseFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder - getUpperCaseOrBuilder() { - if ((oneExpressionCase_ == 5) && (upperCaseBuilder_ != null)) { - return upperCaseBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 5) { - return (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to convert a dimension value to upper case.
-     * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder> - getUpperCaseFieldBuilder() { - if (upperCaseBuilder_ == null) { - if (!(oneExpressionCase_ == 5)) { - oneExpression_ = - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression - .getDefaultInstance(); - } - upperCaseBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder>( - (com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression) - oneExpression_, - getParentForChildren(), - isClean()); - oneExpression_ = null; - } - oneExpressionCase_ = 5; - onChanged(); - ; - return upperCaseBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression, - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder> - concatenateBuilder_; - /** - * - * - *
-     * Used to combine dimension values to a single dimension.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * - * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - * - * @return The concatenate. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - getConcatenate() { - if (concatenateBuilder_ == null) { - if (oneExpressionCase_ == 6) { - return (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } else { - if (oneExpressionCase_ == 6) { - return concatenateBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to combine dimension values to a single dimension.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * - * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - public Builder setConcatenate( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - public Builder setConcatenate( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - public Builder mergeConcatenate( - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression value) { - if (concatenateBuilder_ == null) { - if (oneExpressionCase_ == 6 - && oneExpression_ - != com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .getDefaultInstance()) { - oneExpression_ = - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .newBuilder( - (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - oneExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - oneExpression_ = value; - } - onChanged(); - } else { - if (oneExpressionCase_ == 6) { - concatenateBuilder_.mergeFrom(value); - } 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.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder - getConcatenateOrBuilder() { - if ((oneExpressionCase_ == 6) && (concatenateBuilder_ != null)) { - return concatenateBuilder_.getMessageOrBuilder(); - } else { - if (oneExpressionCase_ == 6) { - return (com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression) - oneExpression_; - } - return com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * Used to combine dimension values to a single dimension.
-     * For example, dimension "country, city": concatenate(country, ", ", city).
-     * 
- * - * - * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression, - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder> - getConcatenateFieldBuilder() { - if (concatenateBuilder_ == null) { - if (!(oneExpressionCase_ == 6)) { - oneExpression_ = - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression - .getDefaultInstance(); - } - concatenateBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression, - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression.Builder, - com.google.analytics.data.v1alpha.DimensionExpression - .ConcatenateExpressionOrBuilder>( - (com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionExpression) - private static final com.google.analytics.data.v1alpha.DimensionExpression DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionExpression(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionExpressionOrBuilder.java deleted file mode 100644 index 78304cc0..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface DimensionExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.DimensionExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Used to convert a dimension value to lower case.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - * - * @return The lowerCase. - */ - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getLowerCase(); - /** - * - * - *
-   * Used to convert a dimension value to lower case.
-   * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression lower_case = 4; - */ - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder - getLowerCaseOrBuilder(); - - /** - * - * - *
-   * Used to convert a dimension value to upper case.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - * - * @return The upperCase. - */ - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpression getUpperCase(); - /** - * - * - *
-   * Used to convert a dimension value to upper case.
-   * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.CaseExpression upper_case = 5; - */ - com.google.analytics.data.v1alpha.DimensionExpression.CaseExpressionOrBuilder - getUpperCaseOrBuilder(); - - /** - * - * - *
-   * Used to combine dimension values to a single dimension.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - * - * @return The concatenate. - */ - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression getConcatenate(); - /** - * - * - *
-   * Used to combine dimension values to a single dimension.
-   * For example, dimension "country, city": concatenate(country, ", ", city).
-   * 
- * - * .google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpression concatenate = 6; - * - */ - com.google.analytics.data.v1alpha.DimensionExpression.ConcatenateExpressionOrBuilder - getConcatenateOrBuilder(); - - public com.google.analytics.data.v1alpha.DimensionExpression.OneExpressionCase - getOneExpressionCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java deleted file mode 100644 index b62c7c52..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeader.java +++ /dev/null @@ -1,621 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * 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.v1alpha.DimensionHeader} - */ -public final class DimensionHeader extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionHeader.class, - com.google.analytics.data.v1alpha.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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.DimensionHeader)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.DimensionHeader other = - (com.google.analytics.data.v1alpha.DimensionHeader) obj; - - if (!getName().equals(other.getName())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.DimensionHeader parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionHeader} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionHeader) - com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionHeader.class, - com.google.analytics.data.v1alpha.DimensionHeader.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.DimensionHeader.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionHeader getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionHeader build() { - com.google.analytics.data.v1alpha.DimensionHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionHeader buildPartial() { - com.google.analytics.data.v1alpha.DimensionHeader result = - new com.google.analytics.data.v1alpha.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.v1alpha.DimensionHeader) { - return mergeFrom((com.google.analytics.data.v1alpha.DimensionHeader) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.DimensionHeader other) { - if (other == com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance()) - return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * 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.v1alpha.DimensionHeader) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionHeader) - private static final com.google.analytics.data.v1alpha.DimensionHeader DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionHeader(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeaderOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionHeaderOrBuilder.java deleted file mode 100644 index e514389a..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface DimensionHeaderOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionOrBuilder.java deleted file mode 100644 index 06c69152..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface DimensionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - * - * @return The dimensionExpression. - */ - com.google.analytics.data.v1alpha.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.v1alpha.DimensionExpression dimension_expression = 2; - */ - com.google.analytics.data.v1alpha.DimensionExpressionOrBuilder getDimensionExpressionOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java deleted file mode 100644 index 6ab62c43..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValue.java +++ /dev/null @@ -1,746 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The value of a dimension.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.DimensionValue} - */ -public final class DimensionValue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionValue.class, - com.google.analytics.data.v1alpha.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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.DimensionValue)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.DimensionValue other = - (com.google.analytics.data.v1alpha.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (oneValueCase_) { - case 1: - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.DimensionValue parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.DimensionValue) - com.google.analytics.data.v1alpha.DimensionValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.DimensionValue.class, - com.google.analytics.data.v1alpha.DimensionValue.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.DimensionValue.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionValue getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.DimensionValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionValue build() { - com.google.analytics.data.v1alpha.DimensionValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionValue buildPartial() { - com.google.analytics.data.v1alpha.DimensionValue result = - new com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue) { - return mergeFrom((com.google.analytics.data.v1alpha.DimensionValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.DimensionValue other) { - if (other == com.google.analytics.data.v1alpha.DimensionValue.getDefaultInstance()) - return this; - switch (other.getOneValueCase()) { - case VALUE: - { - oneValueCase_ = 1; - oneValue_ = other.oneValue_; - onChanged(); - break; - } - case ONEVALUE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - oneValueCase_ = 1; - oneValue_ = s; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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.v1alpha.DimensionValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.DimensionValue) - private static final com.google.analytics.data.v1alpha.DimensionValue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.DimensionValue(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValueOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/DimensionValueOrBuilder.java deleted file mode 100644 index 2813f66c..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface DimensionValueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.DimensionValue.OneValueCase getOneValueCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventCriteriaScoping.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventCriteriaScoping.java deleted file mode 100644 index 555eb191..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventCriteriaScoping.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Scoping specifies which events are considered when evaluating if an event
- * meets a criteria.
- * 
- * - * Protobuf enum {@code google.analytics.data.v1alpha.EventCriteriaScoping} - */ -public enum EventCriteriaScoping implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Unspecified criteria scoping. Do not specify.
-   * 
- * - * EVENT_CRITERIA_SCOPING_UNSPECIFIED = 0; - */ - EVENT_CRITERIA_SCOPING_UNSPECIFIED(0), - /** - * - * - *
-   * If the criteria is satisfied within one event, the event matches the
-   * criteria.
-   * 
- * - * EVENT_CRITERIA_WITHIN_SAME_EVENT = 1; - */ - EVENT_CRITERIA_WITHIN_SAME_EVENT(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Unspecified criteria scoping. Do not specify.
-   * 
- * - * EVENT_CRITERIA_SCOPING_UNSPECIFIED = 0; - */ - public static final int EVENT_CRITERIA_SCOPING_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * If the criteria is satisfied within one event, the event matches the
-   * criteria.
-   * 
- * - * EVENT_CRITERIA_WITHIN_SAME_EVENT = 1; - */ - public static final int EVENT_CRITERIA_WITHIN_SAME_EVENT_VALUE = 1; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EventCriteriaScoping 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 EventCriteriaScoping forNumber(int value) { - switch (value) { - case 0: - return EVENT_CRITERIA_SCOPING_UNSPECIFIED; - case 1: - return EVENT_CRITERIA_WITHIN_SAME_EVENT; - 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 EventCriteriaScoping findValueByNumber(int number) { - return EventCriteriaScoping.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.v1alpha.ReportingApiProto.getDescriptor() - .getEnumTypes() - .get(4); - } - - private static final EventCriteriaScoping[] VALUES = values(); - - public static EventCriteriaScoping 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 EventCriteriaScoping(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.EventCriteriaScoping) -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventExclusionDuration.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventExclusionDuration.java deleted file mode 100644 index c9a8ba35..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventExclusionDuration.java +++ /dev/null @@ -1,162 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Enumerates options for how long an exclusion will last if an event
- * matches the `eventExclusionCriteria`.
- * 
- * - * Protobuf enum {@code google.analytics.data.v1alpha.EventExclusionDuration} - */ -public enum EventExclusionDuration implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Unspecified exclusion duration. Do not specify.
-   * 
- * - * EVENT_EXCLUSION_DURATION_UNSPECIFIED = 0; - */ - EVENT_EXCLUSION_DURATION_UNSPECIFIED(0), - /** - * - * - *
-   * Permanently exclude events from the segment if the event ever meets
-   * the `eventExclusionCriteria` condition.
-   * 
- * - * EVENT_EXCLUSION_PERMANENT = 1; - */ - EVENT_EXCLUSION_PERMANENT(1), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Unspecified exclusion duration. Do not specify.
-   * 
- * - * EVENT_EXCLUSION_DURATION_UNSPECIFIED = 0; - */ - public static final int EVENT_EXCLUSION_DURATION_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Permanently exclude events from the segment if the event ever meets
-   * the `eventExclusionCriteria` condition.
-   * 
- * - * EVENT_EXCLUSION_PERMANENT = 1; - */ - public static final int EVENT_EXCLUSION_PERMANENT_VALUE = 1; - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static EventExclusionDuration 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 EventExclusionDuration forNumber(int value) { - switch (value) { - case 0: - return EVENT_EXCLUSION_DURATION_UNSPECIFIED; - case 1: - return EVENT_EXCLUSION_PERMANENT; - 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 EventExclusionDuration findValueByNumber(int number) { - return EventExclusionDuration.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.v1alpha.ReportingApiProto.getDescriptor() - .getEnumTypes() - .get(5); - } - - private static final EventExclusionDuration[] VALUES = values(); - - public static EventExclusionDuration 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 EventExclusionDuration(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.EventExclusionDuration) -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegment.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegment.java deleted file mode 100644 index 13b9ec3b..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegment.java +++ /dev/null @@ -1,993 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Event segments are subsets of events that were triggered on your site or app.
- * for example, all purchase events made in a particular location; app_exception
- * events that occurred on a specific operating system.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.EventSegment} - */ -public final class EventSegment extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.EventSegment) - EventSegmentOrBuilder { - private static final long serialVersionUID = 0L; - // Use EventSegment.newBuilder() to construct. - private EventSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EventSegment() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EventSegment(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.EventSegment.class, - com.google.analytics.data.v1alpha.EventSegment.Builder.class); - } - - public static final int EVENT_INCLUSION_CRITERIA_FIELD_NUMBER = 1; - private com.google.analytics.data.v1alpha.EventSegmentCriteria eventInclusionCriteria_; - /** - * - * - *
-   * Defines which events are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - * - * @return Whether the eventInclusionCriteria field is set. - */ - @java.lang.Override - public boolean hasEventInclusionCriteria() { - return eventInclusionCriteria_ != null; - } - /** - * - * - *
-   * Defines which events are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - * - * @return The eventInclusionCriteria. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentCriteria getEventInclusionCriteria() { - return eventInclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance() - : eventInclusionCriteria_; - } - /** - * - * - *
-   * Defines which events are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder - getEventInclusionCriteriaOrBuilder() { - return getEventInclusionCriteria(); - } - - public static final int EXCLUSION_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.EventSegmentExclusion exclusion_; - /** - * - * - *
-   * Defines which events are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - * - * @return Whether the exclusion field is set. - */ - @java.lang.Override - public boolean hasExclusion() { - return exclusion_ != null; - } - /** - * - * - *
-   * Defines which events are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - * - * @return The exclusion. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentExclusion getExclusion() { - return exclusion_ == null - ? com.google.analytics.data.v1alpha.EventSegmentExclusion.getDefaultInstance() - : exclusion_; - } - /** - * - * - *
-   * Defines which events are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder getExclusionOrBuilder() { - return getExclusion(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (eventInclusionCriteria_ != null) { - output.writeMessage(1, getEventInclusionCriteria()); - } - if (exclusion_ != null) { - output.writeMessage(2, getExclusion()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (eventInclusionCriteria_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getEventInclusionCriteria()); - } - if (exclusion_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.EventSegment)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.EventSegment other = - (com.google.analytics.data.v1alpha.EventSegment) obj; - - if (hasEventInclusionCriteria() != other.hasEventInclusionCriteria()) return false; - if (hasEventInclusionCriteria()) { - if (!getEventInclusionCriteria().equals(other.getEventInclusionCriteria())) return false; - } - if (hasExclusion() != other.hasExclusion()) return false; - if (hasExclusion()) { - if (!getExclusion().equals(other.getExclusion())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasEventInclusionCriteria()) { - hash = (37 * hash) + EVENT_INCLUSION_CRITERIA_FIELD_NUMBER; - hash = (53 * hash) + getEventInclusionCriteria().hashCode(); - } - if (hasExclusion()) { - hash = (37 * hash) + EXCLUSION_FIELD_NUMBER; - hash = (53 * hash) + getExclusion().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.EventSegment parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.EventSegment 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.v1alpha.EventSegment parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.EventSegment parseFrom( - 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.v1alpha.EventSegment parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.EventSegment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.EventSegment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.EventSegment parseFrom( - java.io.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.v1alpha.EventSegment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.EventSegment parseDelimitedFrom( - java.io.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.v1alpha.EventSegment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.EventSegment parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.EventSegment prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Event segments are subsets of events that were triggered on your site or app.
-   * for example, all purchase events made in a particular location; app_exception
-   * events that occurred on a specific operating system.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.EventSegment} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.EventSegment) - com.google.analytics.data.v1alpha.EventSegmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.EventSegment.class, - com.google.analytics.data.v1alpha.EventSegment.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.EventSegment.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (eventInclusionCriteriaBuilder_ == null) { - eventInclusionCriteria_ = null; - } else { - eventInclusionCriteria_ = null; - eventInclusionCriteriaBuilder_ = null; - } - if (exclusionBuilder_ == null) { - exclusion_ = null; - } else { - exclusion_ = null; - exclusionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegment_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegment getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.EventSegment.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegment build() { - com.google.analytics.data.v1alpha.EventSegment result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegment buildPartial() { - com.google.analytics.data.v1alpha.EventSegment result = - new com.google.analytics.data.v1alpha.EventSegment(this); - if (eventInclusionCriteriaBuilder_ == null) { - result.eventInclusionCriteria_ = eventInclusionCriteria_; - } else { - result.eventInclusionCriteria_ = eventInclusionCriteriaBuilder_.build(); - } - if (exclusionBuilder_ == null) { - result.exclusion_ = exclusion_; - } else { - result.exclusion_ = exclusionBuilder_.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.v1alpha.EventSegment) { - return mergeFrom((com.google.analytics.data.v1alpha.EventSegment) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.EventSegment other) { - if (other == com.google.analytics.data.v1alpha.EventSegment.getDefaultInstance()) return this; - if (other.hasEventInclusionCriteria()) { - mergeEventInclusionCriteria(other.getEventInclusionCriteria()); - } - if (other.hasExclusion()) { - mergeExclusion(other.getExclusion()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getEventInclusionCriteriaFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getExclusionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.analytics.data.v1alpha.EventSegmentCriteria eventInclusionCriteria_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.EventSegmentCriteria, - com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder> - eventInclusionCriteriaBuilder_; - /** - * - * - *
-     * Defines which events are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - * - * - * @return Whether the eventInclusionCriteria field is set. - */ - public boolean hasEventInclusionCriteria() { - return eventInclusionCriteriaBuilder_ != null || eventInclusionCriteria_ != null; - } - /** - * - * - *
-     * Defines which events are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - * - * - * @return The eventInclusionCriteria. - */ - public com.google.analytics.data.v1alpha.EventSegmentCriteria getEventInclusionCriteria() { - if (eventInclusionCriteriaBuilder_ == null) { - return eventInclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance() - : eventInclusionCriteria_; - } else { - return eventInclusionCriteriaBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Defines which events are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - * - */ - public Builder setEventInclusionCriteria( - com.google.analytics.data.v1alpha.EventSegmentCriteria value) { - if (eventInclusionCriteriaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - eventInclusionCriteria_ = value; - onChanged(); - } else { - eventInclusionCriteriaBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Defines which events are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - * - */ - public Builder setEventInclusionCriteria( - com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder builderForValue) { - if (eventInclusionCriteriaBuilder_ == null) { - eventInclusionCriteria_ = builderForValue.build(); - onChanged(); - } else { - eventInclusionCriteriaBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Defines which events are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - * - */ - public Builder mergeEventInclusionCriteria( - com.google.analytics.data.v1alpha.EventSegmentCriteria value) { - if (eventInclusionCriteriaBuilder_ == null) { - if (eventInclusionCriteria_ != null) { - eventInclusionCriteria_ = - com.google.analytics.data.v1alpha.EventSegmentCriteria.newBuilder( - eventInclusionCriteria_) - .mergeFrom(value) - .buildPartial(); - } else { - eventInclusionCriteria_ = value; - } - onChanged(); - } else { - eventInclusionCriteriaBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Defines which events are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - * - */ - public Builder clearEventInclusionCriteria() { - if (eventInclusionCriteriaBuilder_ == null) { - eventInclusionCriteria_ = null; - onChanged(); - } else { - eventInclusionCriteria_ = null; - eventInclusionCriteriaBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Defines which events are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - * - */ - public com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder - getEventInclusionCriteriaBuilder() { - - onChanged(); - return getEventInclusionCriteriaFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Defines which events are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - * - */ - public com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder - getEventInclusionCriteriaOrBuilder() { - if (eventInclusionCriteriaBuilder_ != null) { - return eventInclusionCriteriaBuilder_.getMessageOrBuilder(); - } else { - return eventInclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance() - : eventInclusionCriteria_; - } - } - /** - * - * - *
-     * Defines which events are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.EventSegmentCriteria, - com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder> - getEventInclusionCriteriaFieldBuilder() { - if (eventInclusionCriteriaBuilder_ == null) { - eventInclusionCriteriaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.EventSegmentCriteria, - com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder>( - getEventInclusionCriteria(), getParentForChildren(), isClean()); - eventInclusionCriteria_ = null; - } - return eventInclusionCriteriaBuilder_; - } - - private com.google.analytics.data.v1alpha.EventSegmentExclusion exclusion_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.EventSegmentExclusion, - com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder, - com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder> - exclusionBuilder_; - /** - * - * - *
-     * Defines which events are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - * - * @return Whether the exclusion field is set. - */ - public boolean hasExclusion() { - return exclusionBuilder_ != null || exclusion_ != null; - } - /** - * - * - *
-     * Defines which events are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - * - * @return The exclusion. - */ - public com.google.analytics.data.v1alpha.EventSegmentExclusion getExclusion() { - if (exclusionBuilder_ == null) { - return exclusion_ == null - ? com.google.analytics.data.v1alpha.EventSegmentExclusion.getDefaultInstance() - : exclusion_; - } else { - return exclusionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Defines which events are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - */ - public Builder setExclusion(com.google.analytics.data.v1alpha.EventSegmentExclusion value) { - if (exclusionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - exclusion_ = value; - onChanged(); - } else { - exclusionBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Defines which events are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - */ - public Builder setExclusion( - com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder builderForValue) { - if (exclusionBuilder_ == null) { - exclusion_ = builderForValue.build(); - onChanged(); - } else { - exclusionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Defines which events are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - */ - public Builder mergeExclusion(com.google.analytics.data.v1alpha.EventSegmentExclusion value) { - if (exclusionBuilder_ == null) { - if (exclusion_ != null) { - exclusion_ = - com.google.analytics.data.v1alpha.EventSegmentExclusion.newBuilder(exclusion_) - .mergeFrom(value) - .buildPartial(); - } else { - exclusion_ = value; - } - onChanged(); - } else { - exclusionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Defines which events are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - */ - public Builder clearExclusion() { - if (exclusionBuilder_ == null) { - exclusion_ = null; - onChanged(); - } else { - exclusion_ = null; - exclusionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Defines which events are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - */ - public com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder getExclusionBuilder() { - - onChanged(); - return getExclusionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Defines which events are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - */ - public com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder - getExclusionOrBuilder() { - if (exclusionBuilder_ != null) { - return exclusionBuilder_.getMessageOrBuilder(); - } else { - return exclusion_ == null - ? com.google.analytics.data.v1alpha.EventSegmentExclusion.getDefaultInstance() - : exclusion_; - } - } - /** - * - * - *
-     * Defines which events are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.EventSegmentExclusion, - com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder, - com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder> - getExclusionFieldBuilder() { - if (exclusionBuilder_ == null) { - exclusionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.EventSegmentExclusion, - com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder, - com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder>( - getExclusion(), getParentForChildren(), isClean()); - exclusion_ = null; - } - return exclusionBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.EventSegment) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.EventSegment) - private static final com.google.analytics.data.v1alpha.EventSegment DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.EventSegment(); - } - - public static com.google.analytics.data.v1alpha.EventSegment getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventSegment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegment getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroup.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroup.java deleted file mode 100644 index afd86f22..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroup.java +++ /dev/null @@ -1,927 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Conditions tell Analytics what data to include in or exclude from the
- * segment.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentConditionGroup} - */ -public final class EventSegmentConditionGroup extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.EventSegmentConditionGroup) - EventSegmentConditionGroupOrBuilder { - private static final long serialVersionUID = 0L; - // Use EventSegmentConditionGroup.newBuilder() to construct. - private EventSegmentConditionGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EventSegmentConditionGroup() { - conditionScoping_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EventSegmentConditionGroup(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.EventSegmentConditionGroup.class, - com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder.class); - } - - public static final int CONDITION_SCOPING_FIELD_NUMBER = 1; - private int conditionScoping_; - /** - * - * - *
-   * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
-   * Optional. If unspecified, a `conditionScoping` of
-   * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
-   * 
- * - * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; - * - * @return The enum numeric value on the wire for conditionScoping. - */ - @java.lang.Override - public int getConditionScopingValue() { - return conditionScoping_; - } - /** - * - * - *
-   * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
-   * Optional. If unspecified, a `conditionScoping` of
-   * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
-   * 
- * - * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; - * - * @return The conditionScoping. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EventCriteriaScoping getConditionScoping() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.EventCriteriaScoping result = - com.google.analytics.data.v1alpha.EventCriteriaScoping.valueOf(conditionScoping_); - return result == null - ? com.google.analytics.data.v1alpha.EventCriteriaScoping.UNRECOGNIZED - : result; - } - - public static final int SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_; - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return Whether the segmentFilterExpression field is set. - */ - @java.lang.Override - public boolean hasSegmentFilterExpression() { - return segmentFilterExpression_ != null; - } - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return The segmentFilterExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() { - return segmentFilterExpression_ == null - ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() - : segmentFilterExpression_; - } - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder - getSegmentFilterExpressionOrBuilder() { - return getSegmentFilterExpression(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (conditionScoping_ - != com.google.analytics.data.v1alpha.EventCriteriaScoping.EVENT_CRITERIA_SCOPING_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, conditionScoping_); - } - if (segmentFilterExpression_ != null) { - output.writeMessage(2, getSegmentFilterExpression()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (conditionScoping_ - != com.google.analytics.data.v1alpha.EventCriteriaScoping.EVENT_CRITERIA_SCOPING_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, conditionScoping_); - } - if (segmentFilterExpression_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSegmentFilterExpression()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.EventSegmentConditionGroup)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.EventSegmentConditionGroup other = - (com.google.analytics.data.v1alpha.EventSegmentConditionGroup) obj; - - if (conditionScoping_ != other.conditionScoping_) return false; - if (hasSegmentFilterExpression() != other.hasSegmentFilterExpression()) return false; - if (hasSegmentFilterExpression()) { - if (!getSegmentFilterExpression().equals(other.getSegmentFilterExpression())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONDITION_SCOPING_FIELD_NUMBER; - hash = (53 * hash) + conditionScoping_; - if (hasSegmentFilterExpression()) { - hash = (37 * hash) + SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getSegmentFilterExpression().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup 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.v1alpha.EventSegmentConditionGroup parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup parseFrom( - 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.v1alpha.EventSegmentConditionGroup parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup parseFrom( - java.io.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.v1alpha.EventSegmentConditionGroup parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup parseDelimitedFrom( - java.io.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.v1alpha.EventSegmentConditionGroup parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.EventSegmentConditionGroup prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Conditions tell Analytics what data to include in or exclude from the
-   * segment.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentConditionGroup} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.EventSegmentConditionGroup) - com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.EventSegmentConditionGroup.class, - com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.EventSegmentConditionGroup.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - conditionScoping_ = 0; - - if (segmentFilterExpressionBuilder_ == null) { - segmentFilterExpression_ = null; - } else { - segmentFilterExpression_ = null; - segmentFilterExpressionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentConditionGroup - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.EventSegmentConditionGroup.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentConditionGroup build() { - com.google.analytics.data.v1alpha.EventSegmentConditionGroup result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentConditionGroup buildPartial() { - com.google.analytics.data.v1alpha.EventSegmentConditionGroup result = - new com.google.analytics.data.v1alpha.EventSegmentConditionGroup(this); - result.conditionScoping_ = conditionScoping_; - if (segmentFilterExpressionBuilder_ == null) { - result.segmentFilterExpression_ = segmentFilterExpression_; - } else { - result.segmentFilterExpression_ = segmentFilterExpressionBuilder_.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.v1alpha.EventSegmentConditionGroup) { - return mergeFrom((com.google.analytics.data.v1alpha.EventSegmentConditionGroup) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.EventSegmentConditionGroup other) { - if (other - == com.google.analytics.data.v1alpha.EventSegmentConditionGroup.getDefaultInstance()) - return this; - if (other.conditionScoping_ != 0) { - setConditionScopingValue(other.getConditionScopingValue()); - } - if (other.hasSegmentFilterExpression()) { - mergeSegmentFilterExpression(other.getSegmentFilterExpression()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - conditionScoping_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getSegmentFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int conditionScoping_ = 0; - /** - * - * - *
-     * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
-     * Optional. If unspecified, a `conditionScoping` of
-     * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
-     * 
- * - * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; - * - * @return The enum numeric value on the wire for conditionScoping. - */ - @java.lang.Override - public int getConditionScopingValue() { - return conditionScoping_; - } - /** - * - * - *
-     * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
-     * Optional. If unspecified, a `conditionScoping` of
-     * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
-     * 
- * - * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; - * - * @param value The enum numeric value on the wire for conditionScoping to set. - * @return This builder for chaining. - */ - public Builder setConditionScopingValue(int value) { - - conditionScoping_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
-     * Optional. If unspecified, a `conditionScoping` of
-     * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
-     * 
- * - * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; - * - * @return The conditionScoping. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EventCriteriaScoping getConditionScoping() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.EventCriteriaScoping result = - com.google.analytics.data.v1alpha.EventCriteriaScoping.valueOf(conditionScoping_); - return result == null - ? com.google.analytics.data.v1alpha.EventCriteriaScoping.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
-     * Optional. If unspecified, a `conditionScoping` of
-     * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
-     * 
- * - * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; - * - * @param value The conditionScoping to set. - * @return This builder for chaining. - */ - public Builder setConditionScoping( - com.google.analytics.data.v1alpha.EventCriteriaScoping value) { - if (value == null) { - throw new NullPointerException(); - } - - conditionScoping_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
-     * Optional. If unspecified, a `conditionScoping` of
-     * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
-     * 
- * - * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; - * - * @return This builder for chaining. - */ - public Builder clearConditionScoping() { - - conditionScoping_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> - segmentFilterExpressionBuilder_; - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return Whether the segmentFilterExpression field is set. - */ - public boolean hasSegmentFilterExpression() { - return segmentFilterExpressionBuilder_ != null || segmentFilterExpression_ != null; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return The segmentFilterExpression. - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() { - if (segmentFilterExpressionBuilder_ == null) { - return segmentFilterExpression_ == null - ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() - : segmentFilterExpression_; - } else { - return segmentFilterExpressionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public Builder setSegmentFilterExpression( - com.google.analytics.data.v1alpha.SegmentFilterExpression value) { - if (segmentFilterExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - segmentFilterExpression_ = value; - onChanged(); - } else { - segmentFilterExpressionBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public Builder setSegmentFilterExpression( - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) { - if (segmentFilterExpressionBuilder_ == null) { - segmentFilterExpression_ = builderForValue.build(); - onChanged(); - } else { - segmentFilterExpressionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public Builder mergeSegmentFilterExpression( - com.google.analytics.data.v1alpha.SegmentFilterExpression value) { - if (segmentFilterExpressionBuilder_ == null) { - if (segmentFilterExpression_ != null) { - segmentFilterExpression_ = - com.google.analytics.data.v1alpha.SegmentFilterExpression.newBuilder( - segmentFilterExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - segmentFilterExpression_ = value; - } - onChanged(); - } else { - segmentFilterExpressionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public Builder clearSegmentFilterExpression() { - if (segmentFilterExpressionBuilder_ == null) { - segmentFilterExpression_ = null; - onChanged(); - } else { - segmentFilterExpression_ = null; - segmentFilterExpressionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder - getSegmentFilterExpressionBuilder() { - - onChanged(); - return getSegmentFilterExpressionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder - getSegmentFilterExpressionOrBuilder() { - if (segmentFilterExpressionBuilder_ != null) { - return segmentFilterExpressionBuilder_.getMessageOrBuilder(); - } else { - return segmentFilterExpression_ == null - ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() - : segmentFilterExpression_; - } - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> - getSegmentFilterExpressionFieldBuilder() { - if (segmentFilterExpressionBuilder_ == null) { - segmentFilterExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder>( - getSegmentFilterExpression(), getParentForChildren(), isClean()); - segmentFilterExpression_ = null; - } - return segmentFilterExpressionBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.EventSegmentConditionGroup) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.EventSegmentConditionGroup) - private static final com.google.analytics.data.v1alpha.EventSegmentConditionGroup - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.EventSegmentConditionGroup(); - } - - public static com.google.analytics.data.v1alpha.EventSegmentConditionGroup getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventSegmentConditionGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentConditionGroup getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroupOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroupOrBuilder.java deleted file mode 100644 index 33e74cfd..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentConditionGroupOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface EventSegmentConditionGroupOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.EventSegmentConditionGroup) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
-   * Optional. If unspecified, a `conditionScoping` of
-   * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
-   * 
- * - * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; - * - * @return The enum numeric value on the wire for conditionScoping. - */ - int getConditionScopingValue(); - /** - * - * - *
-   * `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`.
-   * Optional. If unspecified, a `conditionScoping` of
-   * `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used.
-   * 
- * - * .google.analytics.data.v1alpha.EventCriteriaScoping condition_scoping = 1; - * - * @return The conditionScoping. - */ - com.google.analytics.data.v1alpha.EventCriteriaScoping getConditionScoping(); - - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return Whether the segmentFilterExpression field is set. - */ - boolean hasSegmentFilterExpression(); - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return The segmentFilterExpression. - */ - com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression(); - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder - getSegmentFilterExpressionOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteria.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteria.java deleted file mode 100644 index 0dceb2c7..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteria.java +++ /dev/null @@ -1,1027 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * An event matches a criteria if the event meet the conditions in the
- * criteria.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentCriteria} - */ -public final class EventSegmentCriteria extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.EventSegmentCriteria) - EventSegmentCriteriaOrBuilder { - private static final long serialVersionUID = 0L; - // Use EventSegmentCriteria.newBuilder() to construct. - private EventSegmentCriteria(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EventSegmentCriteria() { - andConditionGroups_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EventSegmentCriteria(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.EventSegmentCriteria.class, - com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder.class); - } - - public static final int AND_CONDITION_GROUPS_FIELD_NUMBER = 1; - private java.util.List - andConditionGroups_; - /** - * - * - *
-   * An event matches this criteria if the event matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - @java.lang.Override - public java.util.List - getAndConditionGroupsList() { - return andConditionGroups_; - } - /** - * - * - *
-   * An event matches this criteria if the event matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder> - getAndConditionGroupsOrBuilderList() { - return andConditionGroups_; - } - /** - * - * - *
-   * An event matches this criteria if the event matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - @java.lang.Override - public int getAndConditionGroupsCount() { - return andConditionGroups_.size(); - } - /** - * - * - *
-   * An event matches this criteria if the event matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentConditionGroup getAndConditionGroups( - int index) { - return andConditionGroups_.get(index); - } - /** - * - * - *
-   * An event matches this criteria if the event matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder - getAndConditionGroupsOrBuilder(int index) { - return andConditionGroups_.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 < andConditionGroups_.size(); i++) { - output.writeMessage(1, andConditionGroups_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < andConditionGroups_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, andConditionGroups_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.EventSegmentCriteria)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.EventSegmentCriteria other = - (com.google.analytics.data.v1alpha.EventSegmentCriteria) obj; - - if (!getAndConditionGroupsList().equals(other.getAndConditionGroupsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAndConditionGroupsCount() > 0) { - hash = (37 * hash) + AND_CONDITION_GROUPS_FIELD_NUMBER; - hash = (53 * hash) + getAndConditionGroupsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.EventSegmentCriteria parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.EventSegmentCriteria 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.v1alpha.EventSegmentCriteria parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.EventSegmentCriteria parseFrom( - 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.v1alpha.EventSegmentCriteria parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.EventSegmentCriteria parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.EventSegmentCriteria parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.EventSegmentCriteria parseFrom( - java.io.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.v1alpha.EventSegmentCriteria parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.EventSegmentCriteria parseDelimitedFrom( - java.io.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.v1alpha.EventSegmentCriteria parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.EventSegmentCriteria parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.EventSegmentCriteria prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 event matches a criteria if the event meet the conditions in the
-   * criteria.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentCriteria} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.EventSegmentCriteria) - com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.EventSegmentCriteria.class, - com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.EventSegmentCriteria.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (andConditionGroupsBuilder_ == null) { - andConditionGroups_ = java.util.Collections.emptyList(); - } else { - andConditionGroups_ = null; - andConditionGroupsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentCriteria getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentCriteria build() { - com.google.analytics.data.v1alpha.EventSegmentCriteria result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentCriteria buildPartial() { - com.google.analytics.data.v1alpha.EventSegmentCriteria result = - new com.google.analytics.data.v1alpha.EventSegmentCriteria(this); - int from_bitField0_ = bitField0_; - if (andConditionGroupsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - andConditionGroups_ = java.util.Collections.unmodifiableList(andConditionGroups_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.andConditionGroups_ = andConditionGroups_; - } else { - result.andConditionGroups_ = andConditionGroupsBuilder_.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.v1alpha.EventSegmentCriteria) { - return mergeFrom((com.google.analytics.data.v1alpha.EventSegmentCriteria) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.EventSegmentCriteria other) { - if (other == com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance()) - return this; - if (andConditionGroupsBuilder_ == null) { - if (!other.andConditionGroups_.isEmpty()) { - if (andConditionGroups_.isEmpty()) { - andConditionGroups_ = other.andConditionGroups_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.addAll(other.andConditionGroups_); - } - onChanged(); - } - } else { - if (!other.andConditionGroups_.isEmpty()) { - if (andConditionGroupsBuilder_.isEmpty()) { - andConditionGroupsBuilder_.dispose(); - andConditionGroupsBuilder_ = null; - andConditionGroups_ = other.andConditionGroups_; - bitField0_ = (bitField0_ & ~0x00000001); - andConditionGroupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAndConditionGroupsFieldBuilder() - : null; - } else { - andConditionGroupsBuilder_.addAllMessages(other.andConditionGroups_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1alpha.EventSegmentConditionGroup m = - input.readMessage( - com.google.analytics.data.v1alpha.EventSegmentConditionGroup.parser(), - extensionRegistry); - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.add(m); - } else { - andConditionGroupsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List - andConditionGroups_ = java.util.Collections.emptyList(); - - private void ensureAndConditionGroupsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - andConditionGroups_ = - new java.util.ArrayList( - andConditionGroups_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.EventSegmentConditionGroup, - com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder, - com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder> - andConditionGroupsBuilder_; - - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public java.util.List - getAndConditionGroupsList() { - if (andConditionGroupsBuilder_ == null) { - return java.util.Collections.unmodifiableList(andConditionGroups_); - } else { - return andConditionGroupsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public int getAndConditionGroupsCount() { - if (andConditionGroupsBuilder_ == null) { - return andConditionGroups_.size(); - } else { - return andConditionGroupsBuilder_.getCount(); - } - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public com.google.analytics.data.v1alpha.EventSegmentConditionGroup getAndConditionGroups( - int index) { - if (andConditionGroupsBuilder_ == null) { - return andConditionGroups_.get(index); - } else { - return andConditionGroupsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder setAndConditionGroups( - int index, com.google.analytics.data.v1alpha.EventSegmentConditionGroup value) { - if (andConditionGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.set(index, value); - onChanged(); - } else { - andConditionGroupsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder setAndConditionGroups( - int index, - com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder builderForValue) { - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.set(index, builderForValue.build()); - onChanged(); - } else { - andConditionGroupsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder addAndConditionGroups( - com.google.analytics.data.v1alpha.EventSegmentConditionGroup value) { - if (andConditionGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.add(value); - onChanged(); - } else { - andConditionGroupsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder addAndConditionGroups( - int index, com.google.analytics.data.v1alpha.EventSegmentConditionGroup value) { - if (andConditionGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.add(index, value); - onChanged(); - } else { - andConditionGroupsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder addAndConditionGroups( - com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder builderForValue) { - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.add(builderForValue.build()); - onChanged(); - } else { - andConditionGroupsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder addAndConditionGroups( - int index, - com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder builderForValue) { - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.add(index, builderForValue.build()); - onChanged(); - } else { - andConditionGroupsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder addAllAndConditionGroups( - java.lang.Iterable - values) { - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, andConditionGroups_); - onChanged(); - } else { - andConditionGroupsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder clearAndConditionGroups() { - if (andConditionGroupsBuilder_ == null) { - andConditionGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - andConditionGroupsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder removeAndConditionGroups(int index) { - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.remove(index); - onChanged(); - } else { - andConditionGroupsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder - getAndConditionGroupsBuilder(int index) { - return getAndConditionGroupsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder - getAndConditionGroupsOrBuilder(int index) { - if (andConditionGroupsBuilder_ == null) { - return andConditionGroups_.get(index); - } else { - return andConditionGroupsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public java.util.List< - ? extends com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder> - getAndConditionGroupsOrBuilderList() { - if (andConditionGroupsBuilder_ != null) { - return andConditionGroupsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(andConditionGroups_); - } - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder - addAndConditionGroupsBuilder() { - return getAndConditionGroupsFieldBuilder() - .addBuilder( - com.google.analytics.data.v1alpha.EventSegmentConditionGroup.getDefaultInstance()); - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder - addAndConditionGroupsBuilder(int index) { - return getAndConditionGroupsFieldBuilder() - .addBuilder( - index, - com.google.analytics.data.v1alpha.EventSegmentConditionGroup.getDefaultInstance()); - } - /** - * - * - *
-     * An event matches this criteria if the event matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - public java.util.List - getAndConditionGroupsBuilderList() { - return getAndConditionGroupsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.EventSegmentConditionGroup, - com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder, - com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder> - getAndConditionGroupsFieldBuilder() { - if (andConditionGroupsBuilder_ == null) { - andConditionGroupsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.EventSegmentConditionGroup, - com.google.analytics.data.v1alpha.EventSegmentConditionGroup.Builder, - com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder>( - andConditionGroups_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - andConditionGroups_ = null; - } - return andConditionGroupsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.EventSegmentCriteria) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.EventSegmentCriteria) - private static final com.google.analytics.data.v1alpha.EventSegmentCriteria DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.EventSegmentCriteria(); - } - - public static com.google.analytics.data.v1alpha.EventSegmentCriteria getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventSegmentCriteria parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentCriteria getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteriaOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteriaOrBuilder.java deleted file mode 100644 index c694e414..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentCriteriaOrBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface EventSegmentCriteriaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.EventSegmentCriteria) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * An event matches this criteria if the event matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - java.util.List - getAndConditionGroupsList(); - /** - * - * - *
-   * An event matches this criteria if the event matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - com.google.analytics.data.v1alpha.EventSegmentConditionGroup getAndConditionGroups(int index); - /** - * - * - *
-   * An event matches this criteria if the event matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - int getAndConditionGroupsCount(); - /** - * - * - *
-   * An event matches this criteria if the event matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - java.util.List - getAndConditionGroupsOrBuilderList(); - /** - * - * - *
-   * An event matches this criteria if the event matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.EventSegmentConditionGroup and_condition_groups = 1; - * - */ - com.google.analytics.data.v1alpha.EventSegmentConditionGroupOrBuilder - getAndConditionGroupsOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusion.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusion.java deleted file mode 100644 index cb5f63d1..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusion.java +++ /dev/null @@ -1,916 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Specifies which events are excluded in this segment.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentExclusion} - */ -public final class EventSegmentExclusion extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.EventSegmentExclusion) - EventSegmentExclusionOrBuilder { - private static final long serialVersionUID = 0L; - // Use EventSegmentExclusion.newBuilder() to construct. - private EventSegmentExclusion(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private EventSegmentExclusion() { - eventExclusionDuration_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new EventSegmentExclusion(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.EventSegmentExclusion.class, - com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder.class); - } - - public static final int EVENT_EXCLUSION_DURATION_FIELD_NUMBER = 1; - private int eventExclusionDuration_; - /** - * - * - *
-   * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
-   * Optional. If unspecified, an `eventExclusionDuration` of
-   * `EVENT_EXCLUSION_PERMANENT` is used.
-   * 
- * - * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; - * - * - * @return The enum numeric value on the wire for eventExclusionDuration. - */ - @java.lang.Override - public int getEventExclusionDurationValue() { - return eventExclusionDuration_; - } - /** - * - * - *
-   * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
-   * Optional. If unspecified, an `eventExclusionDuration` of
-   * `EVENT_EXCLUSION_PERMANENT` is used.
-   * 
- * - * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; - * - * - * @return The eventExclusionDuration. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EventExclusionDuration getEventExclusionDuration() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.EventExclusionDuration result = - com.google.analytics.data.v1alpha.EventExclusionDuration.valueOf(eventExclusionDuration_); - return result == null - ? com.google.analytics.data.v1alpha.EventExclusionDuration.UNRECOGNIZED - : result; - } - - public static final int EVENT_EXCLUSION_CRITERIA_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.EventSegmentCriteria eventExclusionCriteria_; - /** - * - * - *
-   * If an event meets this condition, the event is excluded from membership
-   * in the segment for the `eventExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - * - * @return Whether the eventExclusionCriteria field is set. - */ - @java.lang.Override - public boolean hasEventExclusionCriteria() { - return eventExclusionCriteria_ != null; - } - /** - * - * - *
-   * If an event meets this condition, the event is excluded from membership
-   * in the segment for the `eventExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - * - * @return The eventExclusionCriteria. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentCriteria getEventExclusionCriteria() { - return eventExclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance() - : eventExclusionCriteria_; - } - /** - * - * - *
-   * If an event meets this condition, the event is excluded from membership
-   * in the segment for the `eventExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder - getEventExclusionCriteriaOrBuilder() { - return getEventExclusionCriteria(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (eventExclusionDuration_ - != com.google.analytics.data.v1alpha.EventExclusionDuration - .EVENT_EXCLUSION_DURATION_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, eventExclusionDuration_); - } - if (eventExclusionCriteria_ != null) { - output.writeMessage(2, getEventExclusionCriteria()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (eventExclusionDuration_ - != com.google.analytics.data.v1alpha.EventExclusionDuration - .EVENT_EXCLUSION_DURATION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, eventExclusionDuration_); - } - if (eventExclusionCriteria_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEventExclusionCriteria()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.EventSegmentExclusion)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.EventSegmentExclusion other = - (com.google.analytics.data.v1alpha.EventSegmentExclusion) obj; - - if (eventExclusionDuration_ != other.eventExclusionDuration_) return false; - if (hasEventExclusionCriteria() != other.hasEventExclusionCriteria()) return false; - if (hasEventExclusionCriteria()) { - if (!getEventExclusionCriteria().equals(other.getEventExclusionCriteria())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + EVENT_EXCLUSION_DURATION_FIELD_NUMBER; - hash = (53 * hash) + eventExclusionDuration_; - if (hasEventExclusionCriteria()) { - hash = (37 * hash) + EVENT_EXCLUSION_CRITERIA_FIELD_NUMBER; - hash = (53 * hash) + getEventExclusionCriteria().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.EventSegmentExclusion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.EventSegmentExclusion 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.v1alpha.EventSegmentExclusion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.EventSegmentExclusion parseFrom( - 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.v1alpha.EventSegmentExclusion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.EventSegmentExclusion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.EventSegmentExclusion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.EventSegmentExclusion parseFrom( - java.io.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.v1alpha.EventSegmentExclusion parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.EventSegmentExclusion parseDelimitedFrom( - java.io.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.v1alpha.EventSegmentExclusion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.EventSegmentExclusion parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.EventSegmentExclusion prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Specifies which events are excluded in this segment.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.EventSegmentExclusion} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.EventSegmentExclusion) - com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.EventSegmentExclusion.class, - com.google.analytics.data.v1alpha.EventSegmentExclusion.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.EventSegmentExclusion.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - eventExclusionDuration_ = 0; - - if (eventExclusionCriteriaBuilder_ == null) { - eventExclusionCriteria_ = null; - } else { - eventExclusionCriteria_ = null; - eventExclusionCriteriaBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentExclusion getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.EventSegmentExclusion.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentExclusion build() { - com.google.analytics.data.v1alpha.EventSegmentExclusion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentExclusion buildPartial() { - com.google.analytics.data.v1alpha.EventSegmentExclusion result = - new com.google.analytics.data.v1alpha.EventSegmentExclusion(this); - result.eventExclusionDuration_ = eventExclusionDuration_; - if (eventExclusionCriteriaBuilder_ == null) { - result.eventExclusionCriteria_ = eventExclusionCriteria_; - } else { - result.eventExclusionCriteria_ = eventExclusionCriteriaBuilder_.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.v1alpha.EventSegmentExclusion) { - return mergeFrom((com.google.analytics.data.v1alpha.EventSegmentExclusion) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.EventSegmentExclusion other) { - if (other == com.google.analytics.data.v1alpha.EventSegmentExclusion.getDefaultInstance()) - return this; - if (other.eventExclusionDuration_ != 0) { - setEventExclusionDurationValue(other.getEventExclusionDurationValue()); - } - if (other.hasEventExclusionCriteria()) { - mergeEventExclusionCriteria(other.getEventExclusionCriteria()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - eventExclusionDuration_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getEventExclusionCriteriaFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int eventExclusionDuration_ = 0; - /** - * - * - *
-     * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
-     * Optional. If unspecified, an `eventExclusionDuration` of
-     * `EVENT_EXCLUSION_PERMANENT` is used.
-     * 
- * - * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; - * - * - * @return The enum numeric value on the wire for eventExclusionDuration. - */ - @java.lang.Override - public int getEventExclusionDurationValue() { - return eventExclusionDuration_; - } - /** - * - * - *
-     * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
-     * Optional. If unspecified, an `eventExclusionDuration` of
-     * `EVENT_EXCLUSION_PERMANENT` is used.
-     * 
- * - * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; - * - * - * @param value The enum numeric value on the wire for eventExclusionDuration to set. - * @return This builder for chaining. - */ - public Builder setEventExclusionDurationValue(int value) { - - eventExclusionDuration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
-     * Optional. If unspecified, an `eventExclusionDuration` of
-     * `EVENT_EXCLUSION_PERMANENT` is used.
-     * 
- * - * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; - * - * - * @return The eventExclusionDuration. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EventExclusionDuration getEventExclusionDuration() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.EventExclusionDuration result = - com.google.analytics.data.v1alpha.EventExclusionDuration.valueOf(eventExclusionDuration_); - return result == null - ? com.google.analytics.data.v1alpha.EventExclusionDuration.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
-     * Optional. If unspecified, an `eventExclusionDuration` of
-     * `EVENT_EXCLUSION_PERMANENT` is used.
-     * 
- * - * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; - * - * - * @param value The eventExclusionDuration to set. - * @return This builder for chaining. - */ - public Builder setEventExclusionDuration( - com.google.analytics.data.v1alpha.EventExclusionDuration value) { - if (value == null) { - throw new NullPointerException(); - } - - eventExclusionDuration_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
-     * Optional. If unspecified, an `eventExclusionDuration` of
-     * `EVENT_EXCLUSION_PERMANENT` is used.
-     * 
- * - * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearEventExclusionDuration() { - - eventExclusionDuration_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.data.v1alpha.EventSegmentCriteria eventExclusionCriteria_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.EventSegmentCriteria, - com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder> - eventExclusionCriteriaBuilder_; - /** - * - * - *
-     * If an event meets this condition, the event is excluded from membership
-     * in the segment for the `eventExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - * - * - * @return Whether the eventExclusionCriteria field is set. - */ - public boolean hasEventExclusionCriteria() { - return eventExclusionCriteriaBuilder_ != null || eventExclusionCriteria_ != null; - } - /** - * - * - *
-     * If an event meets this condition, the event is excluded from membership
-     * in the segment for the `eventExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - * - * - * @return The eventExclusionCriteria. - */ - public com.google.analytics.data.v1alpha.EventSegmentCriteria getEventExclusionCriteria() { - if (eventExclusionCriteriaBuilder_ == null) { - return eventExclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance() - : eventExclusionCriteria_; - } else { - return eventExclusionCriteriaBuilder_.getMessage(); - } - } - /** - * - * - *
-     * If an event meets this condition, the event is excluded from membership
-     * in the segment for the `eventExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - * - */ - public Builder setEventExclusionCriteria( - com.google.analytics.data.v1alpha.EventSegmentCriteria value) { - if (eventExclusionCriteriaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - eventExclusionCriteria_ = value; - onChanged(); - } else { - eventExclusionCriteriaBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * If an event meets this condition, the event is excluded from membership
-     * in the segment for the `eventExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - * - */ - public Builder setEventExclusionCriteria( - com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder builderForValue) { - if (eventExclusionCriteriaBuilder_ == null) { - eventExclusionCriteria_ = builderForValue.build(); - onChanged(); - } else { - eventExclusionCriteriaBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * If an event meets this condition, the event is excluded from membership
-     * in the segment for the `eventExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - * - */ - public Builder mergeEventExclusionCriteria( - com.google.analytics.data.v1alpha.EventSegmentCriteria value) { - if (eventExclusionCriteriaBuilder_ == null) { - if (eventExclusionCriteria_ != null) { - eventExclusionCriteria_ = - com.google.analytics.data.v1alpha.EventSegmentCriteria.newBuilder( - eventExclusionCriteria_) - .mergeFrom(value) - .buildPartial(); - } else { - eventExclusionCriteria_ = value; - } - onChanged(); - } else { - eventExclusionCriteriaBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * If an event meets this condition, the event is excluded from membership
-     * in the segment for the `eventExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - * - */ - public Builder clearEventExclusionCriteria() { - if (eventExclusionCriteriaBuilder_ == null) { - eventExclusionCriteria_ = null; - onChanged(); - } else { - eventExclusionCriteria_ = null; - eventExclusionCriteriaBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * If an event meets this condition, the event is excluded from membership
-     * in the segment for the `eventExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - * - */ - public com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder - getEventExclusionCriteriaBuilder() { - - onChanged(); - return getEventExclusionCriteriaFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If an event meets this condition, the event is excluded from membership
-     * in the segment for the `eventExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - * - */ - public com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder - getEventExclusionCriteriaOrBuilder() { - if (eventExclusionCriteriaBuilder_ != null) { - return eventExclusionCriteriaBuilder_.getMessageOrBuilder(); - } else { - return eventExclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.EventSegmentCriteria.getDefaultInstance() - : eventExclusionCriteria_; - } - } - /** - * - * - *
-     * If an event meets this condition, the event is excluded from membership
-     * in the segment for the `eventExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.EventSegmentCriteria, - com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder> - getEventExclusionCriteriaFieldBuilder() { - if (eventExclusionCriteriaBuilder_ == null) { - eventExclusionCriteriaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.EventSegmentCriteria, - com.google.analytics.data.v1alpha.EventSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder>( - getEventExclusionCriteria(), getParentForChildren(), isClean()); - eventExclusionCriteria_ = null; - } - return eventExclusionCriteriaBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.EventSegmentExclusion) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.EventSegmentExclusion) - private static final com.google.analytics.data.v1alpha.EventSegmentExclusion DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.EventSegmentExclusion(); - } - - public static com.google.analytics.data.v1alpha.EventSegmentExclusion getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EventSegmentExclusion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentExclusion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusionOrBuilder.java deleted file mode 100644 index 4965e733..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentExclusionOrBuilder.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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface EventSegmentExclusionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.EventSegmentExclusion) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
-   * Optional. If unspecified, an `eventExclusionDuration` of
-   * `EVENT_EXCLUSION_PERMANENT` is used.
-   * 
- * - * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; - * - * - * @return The enum numeric value on the wire for eventExclusionDuration. - */ - int getEventExclusionDurationValue(); - /** - * - * - *
-   * `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`.
-   * Optional. If unspecified, an `eventExclusionDuration` of
-   * `EVENT_EXCLUSION_PERMANENT` is used.
-   * 
- * - * .google.analytics.data.v1alpha.EventExclusionDuration event_exclusion_duration = 1; - * - * - * @return The eventExclusionDuration. - */ - com.google.analytics.data.v1alpha.EventExclusionDuration getEventExclusionDuration(); - - /** - * - * - *
-   * If an event meets this condition, the event is excluded from membership
-   * in the segment for the `eventExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - * - * @return Whether the eventExclusionCriteria field is set. - */ - boolean hasEventExclusionCriteria(); - /** - * - * - *
-   * If an event meets this condition, the event is excluded from membership
-   * in the segment for the `eventExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - * - * @return The eventExclusionCriteria. - */ - com.google.analytics.data.v1alpha.EventSegmentCriteria getEventExclusionCriteria(); - /** - * - * - *
-   * If an event meets this condition, the event is excluded from membership
-   * in the segment for the `eventExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_exclusion_criteria = 2; - */ - com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder - getEventExclusionCriteriaOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentOrBuilder.java deleted file mode 100644 index 9c0a76f6..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/EventSegmentOrBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface EventSegmentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.EventSegment) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Defines which events are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - * - * @return Whether the eventInclusionCriteria field is set. - */ - boolean hasEventInclusionCriteria(); - /** - * - * - *
-   * Defines which events are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - * - * @return The eventInclusionCriteria. - */ - com.google.analytics.data.v1alpha.EventSegmentCriteria getEventInclusionCriteria(); - /** - * - * - *
-   * Defines which events are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentCriteria event_inclusion_criteria = 1; - */ - com.google.analytics.data.v1alpha.EventSegmentCriteriaOrBuilder - getEventInclusionCriteriaOrBuilder(); - - /** - * - * - *
-   * Defines which events are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - * - * @return Whether the exclusion field is set. - */ - boolean hasExclusion(); - /** - * - * - *
-   * Defines which events are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - * - * @return The exclusion. - */ - com.google.analytics.data.v1alpha.EventSegmentExclusion getExclusion(); - /** - * - * - *
-   * Defines which events are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegmentExclusion exclusion = 2; - */ - com.google.analytics.data.v1alpha.EventSegmentExclusionOrBuilder getExclusionOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java deleted file mode 100644 index 29038420..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Filter.java +++ /dev/null @@ -1,1893 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * An expression to filter dimension or metric values.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Filter} - */ -public final class Filter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Filter.class, - com.google.analytics.data.v1alpha.Filter.Builder.class); - } - - 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(2), - IN_LIST_FILTER(3), - NUMERIC_FILTER(4), - BETWEEN_FILTER(5), - 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 2: - return STRING_FILTER; - case 3: - return IN_LIST_FILTER; - case 4: - return NUMERIC_FILTER; - case 5: - 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 = 2; - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 2; - * - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 2; - } - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 2; - * - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { - if (oneFilterCase_ == 2) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { - if (oneFilterCase_ == 2) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - - public static final int IN_LIST_FILTER_FIELD_NUMBER = 3; - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - * - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 3; - } - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - * - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { - if (oneFilterCase_ == 3) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - - public static final int NUMERIC_FILTER_FIELD_NUMBER = 4; - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - * - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 4; - } - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - * - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - - public static final int BETWEEN_FILTER_FIELD_NUMBER = 5; - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - * - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 5; - } - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - * - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.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_ == 2) { - output.writeMessage(2, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 3) { - output.writeMessage(3, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); - } - if (oneFilterCase_ == 4) { - output.writeMessage(4, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - output.writeMessage(5, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); - } - if (oneFilterCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); - } - if (oneFilterCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.Filter)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Filter other = (com.google.analytics.data.v1alpha.Filter) obj; - - if (!getFieldName().equals(other.getFieldName())) return false; - if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; - switch (oneFilterCase_) { - case 2: - if (!getStringFilter().equals(other.getStringFilter())) return false; - break; - case 3: - if (!getInListFilter().equals(other.getInListFilter())) return false; - break; - case 4: - if (!getNumericFilter().equals(other.getNumericFilter())) return false; - break; - case 5: - if (!getBetweenFilter().equals(other.getBetweenFilter())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFieldName().hashCode(); - switch (oneFilterCase_) { - case 2: - hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getStringFilter().hashCode(); - break; - case 3: - hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getInListFilter().hashCode(); - break; - case 4: - hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getNumericFilter().hashCode(); - break; - case 5: - hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getBetweenFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.Filter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Filter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Filter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Filter) - com.google.analytics.data.v1alpha.FilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Filter.class, - com.google.analytics.data.v1alpha.Filter.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.Filter.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - fieldName_ = ""; - - if (stringFilterBuilder_ != null) { - stringFilterBuilder_.clear(); - } - if (inListFilterBuilder_ != null) { - inListFilterBuilder_.clear(); - } - if (numericFilterBuilder_ != null) { - numericFilterBuilder_.clear(); - } - if (betweenFilterBuilder_ != null) { - betweenFilterBuilder_.clear(); - } - oneFilterCase_ = 0; - oneFilter_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Filter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter build() { - com.google.analytics.data.v1alpha.Filter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter buildPartial() { - com.google.analytics.data.v1alpha.Filter result = - new com.google.analytics.data.v1alpha.Filter(this); - result.fieldName_ = fieldName_; - if (oneFilterCase_ == 2) { - if (stringFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = stringFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 3) { - if (inListFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = inListFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 4) { - if (numericFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = numericFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 5) { - 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.v1alpha.Filter) { - return mergeFrom((com.google.analytics.data.v1alpha.Filter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Filter other) { - if (other == com.google.analytics.data.v1alpha.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - fieldName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getNumericFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getBetweenFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 5; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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.v1alpha.StringFilter, - com.google.analytics.data.v1alpha.StringFilter.Builder, - com.google.analytics.data.v1alpha.StringFilterOrBuilder> - stringFilterBuilder_; - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 2; - * - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 2; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 2; - * - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 2) { - return stringFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 2; - */ - public Builder setStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - stringFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 2; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 2; - */ - public Builder setStringFilter( - com.google.analytics.data.v1alpha.StringFilter.Builder builderForValue) { - if (stringFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - stringFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 2; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 2; - */ - public Builder mergeStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2 - && oneFilter_ != com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.StringFilter.newBuilder( - (com.google.analytics.data.v1alpha.StringFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 2) { - stringFilterBuilder_.mergeFrom(value); - } else { - stringFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 2; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 2; - */ - public Builder clearStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 2) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 2) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - stringFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 2; - */ - public com.google.analytics.data.v1alpha.StringFilter.Builder getStringFilterBuilder() { - return getStringFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { - if ((oneFilterCase_ == 2) && (stringFilterBuilder_ != null)) { - return stringFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 2) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.StringFilter, - com.google.analytics.data.v1alpha.StringFilter.Builder, - com.google.analytics.data.v1alpha.StringFilterOrBuilder> - getStringFilterFieldBuilder() { - if (stringFilterBuilder_ == null) { - if (!(oneFilterCase_ == 2)) { - oneFilter_ = com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - stringFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.StringFilter, - com.google.analytics.data.v1alpha.StringFilter.Builder, - com.google.analytics.data.v1alpha.StringFilterOrBuilder>( - (com.google.analytics.data.v1alpha.StringFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 2; - onChanged(); - ; - return stringFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.InListFilter, - com.google.analytics.data.v1alpha.InListFilter.Builder, - com.google.analytics.data.v1alpha.InListFilterOrBuilder> - inListFilterBuilder_; - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - * - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 3; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - * - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 3) { - return inListFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - */ - public Builder setInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - inListFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 3; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - */ - public Builder setInListFilter( - com.google.analytics.data.v1alpha.InListFilter.Builder builderForValue) { - if (inListFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - inListFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 3; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - */ - public Builder mergeInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3 - && oneFilter_ != com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.InListFilter.newBuilder( - (com.google.analytics.data.v1alpha.InListFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 3) { - inListFilterBuilder_.mergeFrom(value); - } else { - inListFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 3; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - */ - public Builder clearInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 3) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 3) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - inListFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - */ - public com.google.analytics.data.v1alpha.InListFilter.Builder getInListFilterBuilder() { - return getInListFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { - if ((oneFilterCase_ == 3) && (inListFilterBuilder_ != null)) { - return inListFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 3) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.InListFilter, - com.google.analytics.data.v1alpha.InListFilter.Builder, - com.google.analytics.data.v1alpha.InListFilterOrBuilder> - getInListFilterFieldBuilder() { - if (inListFilterBuilder_ == null) { - if (!(oneFilterCase_ == 3)) { - oneFilter_ = com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - inListFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.InListFilter, - com.google.analytics.data.v1alpha.InListFilter.Builder, - com.google.analytics.data.v1alpha.InListFilterOrBuilder>( - (com.google.analytics.data.v1alpha.InListFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 3; - onChanged(); - ; - return inListFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericFilter, - com.google.analytics.data.v1alpha.NumericFilter.Builder, - com.google.analytics.data.v1alpha.NumericFilterOrBuilder> - numericFilterBuilder_; - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - * - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 4; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - * - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 4) { - return numericFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - */ - public Builder setNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { - if (numericFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - numericFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - */ - public Builder setNumericFilter( - com.google.analytics.data.v1alpha.NumericFilter.Builder builderForValue) { - if (numericFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - numericFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - */ - public Builder mergeNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 4 - && oneFilter_ != com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.NumericFilter.newBuilder( - (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 4) { - numericFilterBuilder_.mergeFrom(value); - } else { - numericFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - */ - public Builder clearNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - numericFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - */ - public com.google.analytics.data.v1alpha.NumericFilter.Builder getNumericFilterBuilder() { - return getNumericFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { - if ((oneFilterCase_ == 4) && (numericFilterBuilder_ != null)) { - return numericFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericFilter, - com.google.analytics.data.v1alpha.NumericFilter.Builder, - com.google.analytics.data.v1alpha.NumericFilterOrBuilder> - getNumericFilterFieldBuilder() { - if (numericFilterBuilder_ == null) { - if (!(oneFilterCase_ == 4)) { - oneFilter_ = com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - numericFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericFilter, - com.google.analytics.data.v1alpha.NumericFilter.Builder, - com.google.analytics.data.v1alpha.NumericFilterOrBuilder>( - (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 4; - onChanged(); - ; - return numericFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.BetweenFilter, - com.google.analytics.data.v1alpha.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> - betweenFilterBuilder_; - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - * - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 5; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - * - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 5) { - return betweenFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - */ - public Builder setBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - betweenFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - */ - public Builder setBetweenFilter( - com.google.analytics.data.v1alpha.BetweenFilter.Builder builderForValue) { - if (betweenFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - betweenFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - */ - public Builder mergeBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 5 - && oneFilter_ != com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.BetweenFilter.newBuilder( - (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 5) { - betweenFilterBuilder_.mergeFrom(value); - } else { - betweenFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - */ - public Builder clearBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - betweenFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - */ - public com.google.analytics.data.v1alpha.BetweenFilter.Builder getBetweenFilterBuilder() { - return getBetweenFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { - if ((oneFilterCase_ == 5) && (betweenFilterBuilder_ != null)) { - return betweenFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.BetweenFilter, - com.google.analytics.data.v1alpha.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> - getBetweenFilterFieldBuilder() { - if (betweenFilterBuilder_ == null) { - if (!(oneFilterCase_ == 5)) { - oneFilter_ = com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - betweenFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.BetweenFilter, - com.google.analytics.data.v1alpha.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>( - (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 5; - 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.v1alpha.Filter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Filter) - private static final com.google.analytics.data.v1alpha.Filter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Filter(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java deleted file mode 100644 index 5ca3fe51..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpression.java +++ /dev/null @@ -1,1724 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * 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.v1alpha.FilterExpression} - */ -public final class FilterExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FilterExpression.class, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionList getAndGroup() { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - /** - * - * - *
-   * The FilterExpressions in and_group have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getAndGroupOrBuilder() { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - - public static final int OR_GROUP_FIELD_NUMBER = 2; - /** - * - * - *
-   * The FilterExpressions in or_group have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionList getOrGroup() { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - /** - * - * - *
-   * The FilterExpressions in or_group have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getOrGroupOrBuilder() { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - - public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpression not_expression = 3; - * - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression getNotExpression() { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.FilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); - } - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getNotExpressionOrBuilder() { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.FilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); - } - - public static final int FILTER_FIELD_NUMBER = 4; - /** - * - * - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - * - * @return Whether the filter field is set. - */ - @java.lang.Override - public boolean hasFilter() { - return exprCase_ == 4; - } - /** - * - * - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - * - * @return The filter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter getFilter() { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.Filter) expr_; - } - return com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); - } - /** - * - * - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterOrBuilder getFilterOrBuilder() { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.Filter) expr_; - } - return com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList) expr_); - } - if (exprCase_ == 2) { - output.writeMessage(2, (com.google.analytics.data.v1alpha.FilterExpressionList) expr_); - } - if (exprCase_ == 3) { - output.writeMessage(3, (com.google.analytics.data.v1alpha.FilterExpression) expr_); - } - if (exprCase_ == 4) { - output.writeMessage(4, (com.google.analytics.data.v1alpha.Filter) expr_); - } - getUnknownFields().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.v1alpha.FilterExpressionList) expr_); - } - if (exprCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.analytics.data.v1alpha.FilterExpressionList) expr_); - } - if (exprCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.analytics.data.v1alpha.FilterExpression) expr_); - } - if (exprCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.data.v1alpha.Filter) expr_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.FilterExpression)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.FilterExpression other = - (com.google.analytics.data.v1alpha.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.FilterExpression parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.FilterExpression} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FilterExpression) - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FilterExpression.class, - com.google.analytics.data.v1alpha.FilterExpression.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.FilterExpression.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (andGroupBuilder_ != null) { - andGroupBuilder_.clear(); - } - if (orGroupBuilder_ != null) { - orGroupBuilder_.clear(); - } - if (notExpressionBuilder_ != null) { - notExpressionBuilder_.clear(); - } - if (filterBuilder_ != null) { - filterBuilder_.clear(); - } - exprCase_ = 0; - expr_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression build() { - com.google.analytics.data.v1alpha.FilterExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression buildPartial() { - com.google.analytics.data.v1alpha.FilterExpression result = - new com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression) { - return mergeFrom((com.google.analytics.data.v1alpha.FilterExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.FilterExpression other) { - if (other == com.google.analytics.data.v1alpha.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 4; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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.v1alpha.FilterExpressionList, - com.google.analytics.data.v1alpha.FilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder> - andGroupBuilder_; - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionList getAndGroup() { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } else { - if (exprCase_ == 1) { - return andGroupBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; - */ - public Builder setAndGroup(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; - */ - public Builder setAndGroup( - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; - */ - public Builder mergeAndGroup(com.google.analytics.data.v1alpha.FilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1 - && expr_ - != com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.FilterExpressionList.newBuilder( - (com.google.analytics.data.v1alpha.FilterExpressionList) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 1) { - andGroupBuilder_.mergeFrom(value); - } else { - andGroupBuilder_.setMessage(value); - } - } - exprCase_ = 1; - return this; - } - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; - */ - public com.google.analytics.data.v1alpha.FilterExpressionList.Builder getAndGroupBuilder() { - return getAndGroupFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getAndGroupOrBuilder() { - if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { - return andGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpressions in and_group have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpressionList, - com.google.analytics.data.v1alpha.FilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder> - getAndGroupFieldBuilder() { - if (andGroupBuilder_ == null) { - if (!(exprCase_ == 1)) { - expr_ = com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - andGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpressionList, - com.google.analytics.data.v1alpha.FilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder>( - (com.google.analytics.data.v1alpha.FilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 1; - onChanged(); - ; - return andGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpressionList, - com.google.analytics.data.v1alpha.FilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder> - orGroupBuilder_; - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionList getOrGroup() { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } else { - if (exprCase_ == 2) { - return orGroupBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; - */ - public Builder setOrGroup(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; - */ - public Builder setOrGroup( - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; - */ - public Builder mergeOrGroup(com.google.analytics.data.v1alpha.FilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2 - && expr_ - != com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.FilterExpressionList.newBuilder( - (com.google.analytics.data.v1alpha.FilterExpressionList) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 2) { - orGroupBuilder_.mergeFrom(value); - } else { - orGroupBuilder_.setMessage(value); - } - } - exprCase_ = 2; - return this; - } - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; - */ - public com.google.analytics.data.v1alpha.FilterExpressionList.Builder getOrGroupBuilder() { - return getOrGroupFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getOrGroupOrBuilder() { - if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { - return orGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.FilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpressions in or_group have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpressionList, - com.google.analytics.data.v1alpha.FilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder> - getOrGroupFieldBuilder() { - if (orGroupBuilder_ == null) { - if (!(exprCase_ == 2)) { - expr_ = com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - orGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpressionList, - com.google.analytics.data.v1alpha.FilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder>( - (com.google.analytics.data.v1alpha.FilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 2; - onChanged(); - ; - return orGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> - notExpressionBuilder_; - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpression not_expression = 3; - * - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression getNotExpression() { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.FilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); - } else { - if (exprCase_ == 3) { - return notExpressionBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; - */ - public Builder setNotExpression(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression not_expression = 3; - */ - public Builder setNotExpression( - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression not_expression = 3; - */ - public Builder mergeNotExpression(com.google.analytics.data.v1alpha.FilterExpression value) { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3 - && expr_ != com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.FilterExpression.newBuilder( - (com.google.analytics.data.v1alpha.FilterExpression) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 3) { - notExpressionBuilder_.mergeFrom(value); - } else { - notExpressionBuilder_.setMessage(value); - } - } - exprCase_ = 3; - return this; - } - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpression not_expression = 3; - */ - public com.google.analytics.data.v1alpha.FilterExpression.Builder getNotExpressionBuilder() { - return getNotExpressionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getNotExpressionOrBuilder() { - if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { - return notExpressionBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.FilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FilterExpression is NOT of not_expression.
-     * 
- * - * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> - getNotExpressionFieldBuilder() { - if (notExpressionBuilder_ == null) { - if (!(exprCase_ == 3)) { - expr_ = com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance(); - } - notExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>( - (com.google.analytics.data.v1alpha.FilterExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 3; - onChanged(); - ; - return notExpressionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter, - com.google.analytics.data.v1alpha.Filter.Builder, - com.google.analytics.data.v1alpha.FilterOrBuilder> - filterBuilder_; - /** - * - * - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - * - * @return Whether the filter field is set. - */ - @java.lang.Override - public boolean hasFilter() { - return exprCase_ == 4; - } - /** - * - * - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - * - * @return The filter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Filter getFilter() { - if (filterBuilder_ == null) { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.Filter) expr_; - } - return com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); - } else { - if (exprCase_ == 4) { - return filterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - */ - public Builder setFilter(com.google.analytics.data.v1alpha.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. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - */ - public Builder setFilter(com.google.analytics.data.v1alpha.Filter.Builder builderForValue) { - if (filterBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - filterBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - */ - public Builder mergeFilter(com.google.analytics.data.v1alpha.Filter value) { - if (filterBuilder_ == null) { - if (exprCase_ == 4 - && expr_ != com.google.analytics.data.v1alpha.Filter.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.Filter.newBuilder( - (com.google.analytics.data.v1alpha.Filter) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 4) { - filterBuilder_.mergeFrom(value); - } else { - filterBuilder_.setMessage(value); - } - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.data.v1alpha.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. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - */ - public com.google.analytics.data.v1alpha.Filter.Builder getFilterBuilder() { - return getFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterOrBuilder getFilterOrBuilder() { - if ((exprCase_ == 4) && (filterBuilder_ != null)) { - return filterBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.Filter) expr_; - } - return com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter, - com.google.analytics.data.v1alpha.Filter.Builder, - com.google.analytics.data.v1alpha.FilterOrBuilder> - getFilterFieldBuilder() { - if (filterBuilder_ == null) { - if (!(exprCase_ == 4)) { - expr_ = com.google.analytics.data.v1alpha.Filter.getDefaultInstance(); - } - filterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Filter, - com.google.analytics.data.v1alpha.Filter.Builder, - com.google.analytics.data.v1alpha.FilterOrBuilder>( - (com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FilterExpression) - private static final com.google.analytics.data.v1alpha.FilterExpression DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FilterExpression(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionList.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionList.java deleted file mode 100644 index f9d4c14e..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionList.java +++ /dev/null @@ -1,938 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * A list of filter expressions.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FilterExpressionList} - */ -public final class FilterExpressionList extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FilterExpressionList.class, - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - @java.lang.Override - public java.util.List getExpressionsList() { - return expressions_; - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - @java.lang.Override - public java.util.List - getExpressionsOrBuilderList() { - return expressions_; - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - @java.lang.Override - public int getExpressionsCount() { - return expressions_.size(); - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression getExpressions(int index) { - return expressions_.get(index); - } - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.FilterExpressionList)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.FilterExpressionList other = - (com.google.analytics.data.v1alpha.FilterExpressionList) obj; - - if (!getExpressionsList().equals(other.getExpressionsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getExpressionsCount() > 0) { - hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; - hash = (53 * hash) + getExpressionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.FilterExpressionList parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.FilterExpressionList} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FilterExpressionList) - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FilterExpressionList.class, - com.google.analytics.data.v1alpha.FilterExpressionList.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.FilterExpressionList.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (expressionsBuilder_ == null) { - expressions_ = java.util.Collections.emptyList(); - } else { - expressions_ = null; - expressionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionList getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FilterExpressionList.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionList build() { - com.google.analytics.data.v1alpha.FilterExpressionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionList buildPartial() { - com.google.analytics.data.v1alpha.FilterExpressionList result = - new com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList) { - return mergeFrom((com.google.analytics.data.v1alpha.FilterExpressionList) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.FilterExpressionList other) { - if (other == com.google.analytics.data.v1alpha.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1alpha.FilterExpression m = - input.readMessage( - com.google.analytics.data.v1alpha.FilterExpression.parser(), - extensionRegistry); - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(m); - } else { - expressionsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List 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.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> - expressionsBuilder_; - - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public Builder setExpressions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public Builder setExpressions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public Builder addExpressions(com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public Builder addExpressions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public Builder addExpressions( - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public Builder addExpressions( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.FilterExpression.Builder getExpressionsBuilder( - int index) { - return getExpressionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.FilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.FilterExpression.Builder addExpressionsBuilder() { - return getExpressionsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance()); - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.FilterExpression.Builder addExpressionsBuilder( - int index) { - return getExpressionsFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance()); - } - /** - * - * - *
-     * A list of filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - public java.util.List - getExpressionsBuilderList() { - return getExpressionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> - getExpressionsFieldBuilder() { - if (expressionsBuilder_ == null) { - expressionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FilterExpressionList) - private static final com.google.analytics.data.v1alpha.FilterExpressionList DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FilterExpressionList(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionListOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionListOrBuilder.java deleted file mode 100644 index e8c0264e..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FilterExpressionListOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FilterExpressionList) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - java.util.List getExpressionsList(); - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - com.google.analytics.data.v1alpha.FilterExpression getExpressions(int index); - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - int getExpressionsCount(); - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - java.util.List - getExpressionsOrBuilderList(); - /** - * - * - *
-   * A list of filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FilterExpression expressions = 1; - */ - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getExpressionsOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionOrBuilder.java deleted file mode 100644 index 68ef0917..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterExpressionOrBuilder.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FilterExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FilterExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The FilterExpressions in and_group have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - com.google.analytics.data.v1alpha.FilterExpressionList getAndGroup(); - /** - * - * - *
-   * The FilterExpressions in and_group have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList and_group = 1; - */ - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getAndGroupOrBuilder(); - - /** - * - * - *
-   * The FilterExpressions in or_group have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.FilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - com.google.analytics.data.v1alpha.FilterExpressionList getOrGroup(); - /** - * - * - *
-   * The FilterExpressions in or_group have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpressionList or_group = 2; - */ - com.google.analytics.data.v1alpha.FilterExpressionListOrBuilder getOrGroupOrBuilder(); - - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; - * - * @return Whether the notExpression field is set. - */ - boolean hasNotExpression(); - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; - * - * @return The notExpression. - */ - com.google.analytics.data.v1alpha.FilterExpression getNotExpression(); - /** - * - * - *
-   * The FilterExpression is NOT of not_expression.
-   * 
- * - * .google.analytics.data.v1alpha.FilterExpression not_expression = 3; - */ - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getNotExpressionOrBuilder(); - - /** - * - * - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - * - * @return Whether the filter field is set. - */ - boolean hasFilter(); - /** - * - * - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - * - * @return The filter. - */ - com.google.analytics.data.v1alpha.Filter getFilter(); - /** - * - * - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.data.v1alpha.Filter filter = 4; - */ - com.google.analytics.data.v1alpha.FilterOrBuilder getFilterOrBuilder(); - - public com.google.analytics.data.v1alpha.FilterExpression.ExprCase getExprCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FilterOrBuilder.java deleted file mode 100644 index 769dabb5..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.StringFilter string_filter = 2; - * - * @return Whether the stringFilter field is set. - */ - boolean hasStringFilter(); - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 2; - * - * @return The stringFilter. - */ - com.google.analytics.data.v1alpha.StringFilter getStringFilter(); - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 2; - */ - com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder(); - - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - * - * @return Whether the inListFilter field is set. - */ - boolean hasInListFilter(); - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - * - * @return The inListFilter. - */ - com.google.analytics.data.v1alpha.InListFilter getInListFilter(); - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 3; - */ - com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder(); - - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - * - * @return Whether the numericFilter field is set. - */ - boolean hasNumericFilter(); - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - * - * @return The numericFilter. - */ - com.google.analytics.data.v1alpha.NumericFilter getNumericFilter(); - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 4; - */ - com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder(); - - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - * - * @return Whether the betweenFilter field is set. - */ - boolean hasBetweenFilter(); - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - * - * @return The betweenFilter. - */ - com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter(); - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 5; - */ - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder(); - - public com.google.analytics.data.v1alpha.Filter.OneFilterCase getOneFilterCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Funnel.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Funnel.java deleted file mode 100644 index 8dc646e3..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Funnel.java +++ /dev/null @@ -1,1035 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Configures the funnel in a funnel report request. A funnel reports on users
- * as they pass through a sequence of steps.
- * Funnel exploration lets you visualize the steps your users take to complete a
- * task and quickly see how well they are succeeding or failing at each step.
- * For example, how do prospects become shoppers and then become buyers? How do
- * one time buyers become repeat buyers? With this information, you can improve
- * inefficient or abandoned customer journeys.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Funnel} - */ -public final class Funnel extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.Funnel) - FunnelOrBuilder { - private static final long serialVersionUID = 0L; - // Use Funnel.newBuilder() to construct. - private Funnel(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Funnel() { - steps_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Funnel(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Funnel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Funnel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Funnel.class, - com.google.analytics.data.v1alpha.Funnel.Builder.class); - } - - public static final int IS_OPEN_FUNNEL_FIELD_NUMBER = 1; - private boolean isOpenFunnel_; - /** - * - * - *
-   * In an open funnel, users can enter the funnel in any step, and in a closed
-   * funnel, users must enter the funnel in the first step. Optional. If
-   * unspecified, a closed funnel is used.
-   * 
- * - * bool is_open_funnel = 1; - * - * @return The isOpenFunnel. - */ - @java.lang.Override - public boolean getIsOpenFunnel() { - return isOpenFunnel_; - } - - public static final int STEPS_FIELD_NUMBER = 2; - private java.util.List steps_; - /** - * - * - *
-   * The sequential steps of this funnel.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - @java.lang.Override - public java.util.List getStepsList() { - return steps_; - } - /** - * - * - *
-   * The sequential steps of this funnel.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - @java.lang.Override - public java.util.List - getStepsOrBuilderList() { - return steps_; - } - /** - * - * - *
-   * The sequential steps of this funnel.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - @java.lang.Override - public int getStepsCount() { - return steps_.size(); - } - /** - * - * - *
-   * The sequential steps of this funnel.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelStep getSteps(int index) { - return steps_.get(index); - } - /** - * - * - *
-   * The sequential steps of this funnel.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelStepOrBuilder getStepsOrBuilder(int index) { - return steps_.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 (isOpenFunnel_ != false) { - output.writeBool(1, isOpenFunnel_); - } - for (int i = 0; i < steps_.size(); i++) { - output.writeMessage(2, steps_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isOpenFunnel_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isOpenFunnel_); - } - for (int i = 0; i < steps_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, steps_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.Funnel)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Funnel other = (com.google.analytics.data.v1alpha.Funnel) obj; - - if (getIsOpenFunnel() != other.getIsOpenFunnel()) return false; - if (!getStepsList().equals(other.getStepsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IS_OPEN_FUNNEL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsOpenFunnel()); - if (getStepsCount() > 0) { - hash = (37 * hash) + STEPS_FIELD_NUMBER; - hash = (53 * hash) + getStepsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.Funnel parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.Funnel 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.v1alpha.Funnel parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.Funnel parseFrom( - 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.v1alpha.Funnel parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.Funnel parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.Funnel parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.Funnel parseFrom( - java.io.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.v1alpha.Funnel parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.Funnel parseDelimitedFrom( - java.io.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.v1alpha.Funnel parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.Funnel parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.Funnel prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 funnel in a funnel report request. A funnel reports on users
-   * as they pass through a sequence of steps.
-   * Funnel exploration lets you visualize the steps your users take to complete a
-   * task and quickly see how well they are succeeding or failing at each step.
-   * For example, how do prospects become shoppers and then become buyers? How do
-   * one time buyers become repeat buyers? With this information, you can improve
-   * inefficient or abandoned customer journeys.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Funnel} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Funnel) - com.google.analytics.data.v1alpha.FunnelOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Funnel_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Funnel_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Funnel.class, - com.google.analytics.data.v1alpha.Funnel.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.Funnel.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - isOpenFunnel_ = false; - - if (stepsBuilder_ == null) { - steps_ = java.util.Collections.emptyList(); - } else { - steps_ = null; - stepsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Funnel_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Funnel getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Funnel.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Funnel build() { - com.google.analytics.data.v1alpha.Funnel result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Funnel buildPartial() { - com.google.analytics.data.v1alpha.Funnel result = - new com.google.analytics.data.v1alpha.Funnel(this); - int from_bitField0_ = bitField0_; - result.isOpenFunnel_ = isOpenFunnel_; - if (stepsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - steps_ = java.util.Collections.unmodifiableList(steps_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.steps_ = steps_; - } else { - result.steps_ = stepsBuilder_.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.v1alpha.Funnel) { - return mergeFrom((com.google.analytics.data.v1alpha.Funnel) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Funnel other) { - if (other == com.google.analytics.data.v1alpha.Funnel.getDefaultInstance()) return this; - if (other.getIsOpenFunnel() != false) { - setIsOpenFunnel(other.getIsOpenFunnel()); - } - if (stepsBuilder_ == null) { - if (!other.steps_.isEmpty()) { - if (steps_.isEmpty()) { - steps_ = other.steps_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureStepsIsMutable(); - steps_.addAll(other.steps_); - } - onChanged(); - } - } else { - if (!other.steps_.isEmpty()) { - if (stepsBuilder_.isEmpty()) { - stepsBuilder_.dispose(); - stepsBuilder_ = null; - steps_ = other.steps_; - bitField0_ = (bitField0_ & ~0x00000001); - stepsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getStepsFieldBuilder() - : null; - } else { - stepsBuilder_.addAllMessages(other.steps_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - isOpenFunnel_ = input.readBool(); - - break; - } // case 8 - case 18: - { - com.google.analytics.data.v1alpha.FunnelStep m = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelStep.parser(), extensionRegistry); - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.add(m); - } else { - stepsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean isOpenFunnel_; - /** - * - * - *
-     * In an open funnel, users can enter the funnel in any step, and in a closed
-     * funnel, users must enter the funnel in the first step. Optional. If
-     * unspecified, a closed funnel is used.
-     * 
- * - * bool is_open_funnel = 1; - * - * @return The isOpenFunnel. - */ - @java.lang.Override - public boolean getIsOpenFunnel() { - return isOpenFunnel_; - } - /** - * - * - *
-     * In an open funnel, users can enter the funnel in any step, and in a closed
-     * funnel, users must enter the funnel in the first step. Optional. If
-     * unspecified, a closed funnel is used.
-     * 
- * - * bool is_open_funnel = 1; - * - * @param value The isOpenFunnel to set. - * @return This builder for chaining. - */ - public Builder setIsOpenFunnel(boolean value) { - - isOpenFunnel_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * In an open funnel, users can enter the funnel in any step, and in a closed
-     * funnel, users must enter the funnel in the first step. Optional. If
-     * unspecified, a closed funnel is used.
-     * 
- * - * bool is_open_funnel = 1; - * - * @return This builder for chaining. - */ - public Builder clearIsOpenFunnel() { - - isOpenFunnel_ = false; - onChanged(); - return this; - } - - private java.util.List steps_ = - java.util.Collections.emptyList(); - - private void ensureStepsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - steps_ = new java.util.ArrayList(steps_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelStep, - com.google.analytics.data.v1alpha.FunnelStep.Builder, - com.google.analytics.data.v1alpha.FunnelStepOrBuilder> - stepsBuilder_; - - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public java.util.List getStepsList() { - if (stepsBuilder_ == null) { - return java.util.Collections.unmodifiableList(steps_); - } else { - return stepsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public int getStepsCount() { - if (stepsBuilder_ == null) { - return steps_.size(); - } else { - return stepsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public com.google.analytics.data.v1alpha.FunnelStep getSteps(int index) { - if (stepsBuilder_ == null) { - return steps_.get(index); - } else { - return stepsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public Builder setSteps(int index, com.google.analytics.data.v1alpha.FunnelStep value) { - if (stepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStepsIsMutable(); - steps_.set(index, value); - onChanged(); - } else { - stepsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public Builder setSteps( - int index, com.google.analytics.data.v1alpha.FunnelStep.Builder builderForValue) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.set(index, builderForValue.build()); - onChanged(); - } else { - stepsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public Builder addSteps(com.google.analytics.data.v1alpha.FunnelStep value) { - if (stepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStepsIsMutable(); - steps_.add(value); - onChanged(); - } else { - stepsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public Builder addSteps(int index, com.google.analytics.data.v1alpha.FunnelStep value) { - if (stepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureStepsIsMutable(); - steps_.add(index, value); - onChanged(); - } else { - stepsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public Builder addSteps(com.google.analytics.data.v1alpha.FunnelStep.Builder builderForValue) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.add(builderForValue.build()); - onChanged(); - } else { - stepsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public Builder addSteps( - int index, com.google.analytics.data.v1alpha.FunnelStep.Builder builderForValue) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.add(index, builderForValue.build()); - onChanged(); - } else { - stepsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public Builder addAllSteps( - java.lang.Iterable values) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, steps_); - onChanged(); - } else { - stepsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public Builder clearSteps() { - if (stepsBuilder_ == null) { - steps_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - stepsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public Builder removeSteps(int index) { - if (stepsBuilder_ == null) { - ensureStepsIsMutable(); - steps_.remove(index); - onChanged(); - } else { - stepsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public com.google.analytics.data.v1alpha.FunnelStep.Builder getStepsBuilder(int index) { - return getStepsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public com.google.analytics.data.v1alpha.FunnelStepOrBuilder getStepsOrBuilder(int index) { - if (stepsBuilder_ == null) { - return steps_.get(index); - } else { - return stepsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public java.util.List - getStepsOrBuilderList() { - if (stepsBuilder_ != null) { - return stepsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(steps_); - } - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public com.google.analytics.data.v1alpha.FunnelStep.Builder addStepsBuilder() { - return getStepsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.FunnelStep.getDefaultInstance()); - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public com.google.analytics.data.v1alpha.FunnelStep.Builder addStepsBuilder(int index) { - return getStepsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.FunnelStep.getDefaultInstance()); - } - /** - * - * - *
-     * The sequential steps of this funnel.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - public java.util.List - getStepsBuilderList() { - return getStepsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelStep, - com.google.analytics.data.v1alpha.FunnelStep.Builder, - com.google.analytics.data.v1alpha.FunnelStepOrBuilder> - getStepsFieldBuilder() { - if (stepsBuilder_ == null) { - stepsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelStep, - com.google.analytics.data.v1alpha.FunnelStep.Builder, - com.google.analytics.data.v1alpha.FunnelStepOrBuilder>( - steps_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - steps_ = null; - } - return stepsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.Funnel) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Funnel) - private static final com.google.analytics.data.v1alpha.Funnel DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Funnel(); - } - - public static com.google.analytics.data.v1alpha.Funnel getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Funnel parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Funnel getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdown.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdown.java deleted file mode 100644 index b1bb9688..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdown.java +++ /dev/null @@ -1,876 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Breakdowns add a dimension to the funnel table sub report response.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelBreakdown} - */ -public final class FunnelBreakdown extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelBreakdown) - FunnelBreakdownOrBuilder { - private static final long serialVersionUID = 0L; - // Use FunnelBreakdown.newBuilder() to construct. - private FunnelBreakdown(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FunnelBreakdown() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FunnelBreakdown(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelBreakdown_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelBreakdown.class, - com.google.analytics.data.v1alpha.FunnelBreakdown.Builder.class); - } - - private int bitField0_; - public static final int BREAKDOWN_DIMENSION_FIELD_NUMBER = 1; - private com.google.analytics.data.v1alpha.Dimension breakdownDimension_; - /** - * - * - *
-   * The dimension column added to the funnel table sub report response. The
-   * breakdown dimension breaks down each funnel step. A valid
-   * `breakdownDimension` is required if `funnelBreakdown` is specified.
-   * 
- * - * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - * - * @return Whether the breakdownDimension field is set. - */ - @java.lang.Override - public boolean hasBreakdownDimension() { - return breakdownDimension_ != null; - } - /** - * - * - *
-   * The dimension column added to the funnel table sub report response. The
-   * breakdown dimension breaks down each funnel step. A valid
-   * `breakdownDimension` is required if `funnelBreakdown` is specified.
-   * 
- * - * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - * - * @return The breakdownDimension. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Dimension getBreakdownDimension() { - return breakdownDimension_ == null - ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance() - : breakdownDimension_; - } - /** - * - * - *
-   * The dimension column added to the funnel table sub report response. The
-   * breakdown dimension breaks down each funnel step. A valid
-   * `breakdownDimension` is required if `funnelBreakdown` is specified.
-   * 
- * - * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionOrBuilder getBreakdownDimensionOrBuilder() { - return getBreakdownDimension(); - } - - public static final int LIMIT_FIELD_NUMBER = 2; - private long limit_; - /** - * - * - *
-   * The maximum number of distinct values of the breakdown dimension to return
-   * in the response. A `limit` of `5` is used if limit is not specified. Limit
-   * must exceed zero and cannot exceed 15.
-   * 
- * - * optional int64 limit = 2; - * - * @return Whether the limit field is set. - */ - @java.lang.Override - public boolean hasLimit() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The maximum number of distinct values of the breakdown dimension to return
-   * in the response. A `limit` of `5` is used if limit is not specified. Limit
-   * must exceed zero and cannot exceed 15.
-   * 
- * - * optional int64 limit = 2; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (breakdownDimension_ != null) { - output.writeMessage(1, getBreakdownDimension()); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt64(2, limit_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (breakdownDimension_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getBreakdownDimension()); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, limit_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.FunnelBreakdown)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.FunnelBreakdown other = - (com.google.analytics.data.v1alpha.FunnelBreakdown) obj; - - if (hasBreakdownDimension() != other.hasBreakdownDimension()) return false; - if (hasBreakdownDimension()) { - if (!getBreakdownDimension().equals(other.getBreakdownDimension())) return false; - } - if (hasLimit() != other.hasLimit()) return false; - if (hasLimit()) { - if (getLimit() != other.getLimit()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasBreakdownDimension()) { - hash = (37 * hash) + BREAKDOWN_DIMENSION_FIELD_NUMBER; - hash = (53 * hash) + getBreakdownDimension().hashCode(); - } - if (hasLimit()) { - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.FunnelBreakdown parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelBreakdown 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.v1alpha.FunnelBreakdown parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelBreakdown parseFrom( - 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.v1alpha.FunnelBreakdown parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelBreakdown parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.FunnelBreakdown parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelBreakdown parseFrom( - java.io.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.v1alpha.FunnelBreakdown parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelBreakdown parseDelimitedFrom( - java.io.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.v1alpha.FunnelBreakdown parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelBreakdown parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.FunnelBreakdown prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Breakdowns add a dimension to the funnel table sub report response.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelBreakdown} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelBreakdown) - com.google.analytics.data.v1alpha.FunnelBreakdownOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelBreakdown_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelBreakdown.class, - com.google.analytics.data.v1alpha.FunnelBreakdown.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.FunnelBreakdown.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (breakdownDimensionBuilder_ == null) { - breakdownDimension_ = null; - } else { - breakdownDimension_ = null; - breakdownDimensionBuilder_ = null; - } - limit_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelBreakdown getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FunnelBreakdown.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelBreakdown build() { - com.google.analytics.data.v1alpha.FunnelBreakdown result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelBreakdown buildPartial() { - com.google.analytics.data.v1alpha.FunnelBreakdown result = - new com.google.analytics.data.v1alpha.FunnelBreakdown(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (breakdownDimensionBuilder_ == null) { - result.breakdownDimension_ = breakdownDimension_; - } else { - result.breakdownDimension_ = breakdownDimensionBuilder_.build(); - } - if (((from_bitField0_ & 0x00000001) != 0)) { - result.limit_ = limit_; - to_bitField0_ |= 0x00000001; - } - 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.v1alpha.FunnelBreakdown) { - return mergeFrom((com.google.analytics.data.v1alpha.FunnelBreakdown) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelBreakdown other) { - if (other == com.google.analytics.data.v1alpha.FunnelBreakdown.getDefaultInstance()) - return this; - if (other.hasBreakdownDimension()) { - mergeBreakdownDimension(other.getBreakdownDimension()); - } - if (other.hasLimit()) { - setLimit(other.getLimit()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getBreakdownDimensionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 16: - { - limit_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.analytics.data.v1alpha.Dimension breakdownDimension_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Dimension, - com.google.analytics.data.v1alpha.Dimension.Builder, - com.google.analytics.data.v1alpha.DimensionOrBuilder> - breakdownDimensionBuilder_; - /** - * - * - *
-     * The dimension column added to the funnel table sub report response. The
-     * breakdown dimension breaks down each funnel step. A valid
-     * `breakdownDimension` is required if `funnelBreakdown` is specified.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - * - * @return Whether the breakdownDimension field is set. - */ - public boolean hasBreakdownDimension() { - return breakdownDimensionBuilder_ != null || breakdownDimension_ != null; - } - /** - * - * - *
-     * The dimension column added to the funnel table sub report response. The
-     * breakdown dimension breaks down each funnel step. A valid
-     * `breakdownDimension` is required if `funnelBreakdown` is specified.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - * - * @return The breakdownDimension. - */ - public com.google.analytics.data.v1alpha.Dimension getBreakdownDimension() { - if (breakdownDimensionBuilder_ == null) { - return breakdownDimension_ == null - ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance() - : breakdownDimension_; - } else { - return breakdownDimensionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The dimension column added to the funnel table sub report response. The
-     * breakdown dimension breaks down each funnel step. A valid
-     * `breakdownDimension` is required if `funnelBreakdown` is specified.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - */ - public Builder setBreakdownDimension(com.google.analytics.data.v1alpha.Dimension value) { - if (breakdownDimensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - breakdownDimension_ = value; - onChanged(); - } else { - breakdownDimensionBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The dimension column added to the funnel table sub report response. The
-     * breakdown dimension breaks down each funnel step. A valid
-     * `breakdownDimension` is required if `funnelBreakdown` is specified.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - */ - public Builder setBreakdownDimension( - com.google.analytics.data.v1alpha.Dimension.Builder builderForValue) { - if (breakdownDimensionBuilder_ == null) { - breakdownDimension_ = builderForValue.build(); - onChanged(); - } else { - breakdownDimensionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The dimension column added to the funnel table sub report response. The
-     * breakdown dimension breaks down each funnel step. A valid
-     * `breakdownDimension` is required if `funnelBreakdown` is specified.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - */ - public Builder mergeBreakdownDimension(com.google.analytics.data.v1alpha.Dimension value) { - if (breakdownDimensionBuilder_ == null) { - if (breakdownDimension_ != null) { - breakdownDimension_ = - com.google.analytics.data.v1alpha.Dimension.newBuilder(breakdownDimension_) - .mergeFrom(value) - .buildPartial(); - } else { - breakdownDimension_ = value; - } - onChanged(); - } else { - breakdownDimensionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The dimension column added to the funnel table sub report response. The
-     * breakdown dimension breaks down each funnel step. A valid
-     * `breakdownDimension` is required if `funnelBreakdown` is specified.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - */ - public Builder clearBreakdownDimension() { - if (breakdownDimensionBuilder_ == null) { - breakdownDimension_ = null; - onChanged(); - } else { - breakdownDimension_ = null; - breakdownDimensionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The dimension column added to the funnel table sub report response. The
-     * breakdown dimension breaks down each funnel step. A valid
-     * `breakdownDimension` is required if `funnelBreakdown` is specified.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - */ - public com.google.analytics.data.v1alpha.Dimension.Builder getBreakdownDimensionBuilder() { - - onChanged(); - return getBreakdownDimensionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The dimension column added to the funnel table sub report response. The
-     * breakdown dimension breaks down each funnel step. A valid
-     * `breakdownDimension` is required if `funnelBreakdown` is specified.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - */ - public com.google.analytics.data.v1alpha.DimensionOrBuilder getBreakdownDimensionOrBuilder() { - if (breakdownDimensionBuilder_ != null) { - return breakdownDimensionBuilder_.getMessageOrBuilder(); - } else { - return breakdownDimension_ == null - ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance() - : breakdownDimension_; - } - } - /** - * - * - *
-     * The dimension column added to the funnel table sub report response. The
-     * breakdown dimension breaks down each funnel step. A valid
-     * `breakdownDimension` is required if `funnelBreakdown` is specified.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Dimension, - com.google.analytics.data.v1alpha.Dimension.Builder, - com.google.analytics.data.v1alpha.DimensionOrBuilder> - getBreakdownDimensionFieldBuilder() { - if (breakdownDimensionBuilder_ == null) { - breakdownDimensionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Dimension, - com.google.analytics.data.v1alpha.Dimension.Builder, - com.google.analytics.data.v1alpha.DimensionOrBuilder>( - getBreakdownDimension(), getParentForChildren(), isClean()); - breakdownDimension_ = null; - } - return breakdownDimensionBuilder_; - } - - private long limit_; - /** - * - * - *
-     * The maximum number of distinct values of the breakdown dimension to return
-     * in the response. A `limit` of `5` is used if limit is not specified. Limit
-     * must exceed zero and cannot exceed 15.
-     * 
- * - * optional int64 limit = 2; - * - * @return Whether the limit field is set. - */ - @java.lang.Override - public boolean hasLimit() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * The maximum number of distinct values of the breakdown dimension to return
-     * in the response. A `limit` of `5` is used if limit is not specified. Limit
-     * must exceed zero and cannot exceed 15.
-     * 
- * - * optional int64 limit = 2; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - /** - * - * - *
-     * The maximum number of distinct values of the breakdown dimension to return
-     * in the response. A `limit` of `5` is used if limit is not specified. Limit
-     * must exceed zero and cannot exceed 15.
-     * 
- * - * optional int64 limit = 2; - * - * @param value The limit to set. - * @return This builder for chaining. - */ - public Builder setLimit(long value) { - bitField0_ |= 0x00000001; - limit_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of distinct values of the breakdown dimension to return
-     * in the response. A `limit` of `5` is used if limit is not specified. Limit
-     * must exceed zero and cannot exceed 15.
-     * 
- * - * optional int64 limit = 2; - * - * @return This builder for chaining. - */ - public Builder clearLimit() { - bitField0_ = (bitField0_ & ~0x00000001); - limit_ = 0L; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.FunnelBreakdown) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelBreakdown) - private static final com.google.analytics.data.v1alpha.FunnelBreakdown DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelBreakdown(); - } - - public static com.google.analytics.data.v1alpha.FunnelBreakdown getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FunnelBreakdown parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelBreakdown getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdownOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdownOrBuilder.java deleted file mode 100644 index 23f2d19e..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelBreakdownOrBuilder.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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FunnelBreakdownOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelBreakdown) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The dimension column added to the funnel table sub report response. The
-   * breakdown dimension breaks down each funnel step. A valid
-   * `breakdownDimension` is required if `funnelBreakdown` is specified.
-   * 
- * - * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - * - * @return Whether the breakdownDimension field is set. - */ - boolean hasBreakdownDimension(); - /** - * - * - *
-   * The dimension column added to the funnel table sub report response. The
-   * breakdown dimension breaks down each funnel step. A valid
-   * `breakdownDimension` is required if `funnelBreakdown` is specified.
-   * 
- * - * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - * - * @return The breakdownDimension. - */ - com.google.analytics.data.v1alpha.Dimension getBreakdownDimension(); - /** - * - * - *
-   * The dimension column added to the funnel table sub report response. The
-   * breakdown dimension breaks down each funnel step. A valid
-   * `breakdownDimension` is required if `funnelBreakdown` is specified.
-   * 
- * - * .google.analytics.data.v1alpha.Dimension breakdown_dimension = 1; - */ - com.google.analytics.data.v1alpha.DimensionOrBuilder getBreakdownDimensionOrBuilder(); - - /** - * - * - *
-   * The maximum number of distinct values of the breakdown dimension to return
-   * in the response. A `limit` of `5` is used if limit is not specified. Limit
-   * must exceed zero and cannot exceed 15.
-   * 
- * - * optional int64 limit = 2; - * - * @return Whether the limit field is set. - */ - boolean hasLimit(); - /** - * - * - *
-   * The maximum number of distinct values of the breakdown dimension to return
-   * in the response. A `limit` of `5` is used if limit is not specified. Limit
-   * must exceed zero and cannot exceed 15.
-   * 
- * - * optional int64 limit = 2; - * - * @return The limit. - */ - long getLimit(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilter.java deleted file mode 100644 index 55c83c10..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilter.java +++ /dev/null @@ -1,1035 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Creates a filter that matches events of a single event name. If a parameter
- * filter expression is specified, only the subset of events that match both the
- * single event name and the parameter filter expressions match this event
- * filter.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelEventFilter} - */ -public final class FunnelEventFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelEventFilter) - FunnelEventFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use FunnelEventFilter.newBuilder() to construct. - private FunnelEventFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FunnelEventFilter() { - eventName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FunnelEventFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelEventFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelEventFilter.class, - com.google.analytics.data.v1alpha.FunnelEventFilter.Builder.class); - } - - private int bitField0_; - public static final int EVENT_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object eventName_; - /** - * - * - *
-   * This filter matches events of this single event name. Event name is
-   * required.
-   * 
- * - * optional string event_name = 1; - * - * @return Whether the eventName field is set. - */ - @java.lang.Override - public boolean hasEventName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * This filter matches events of this single event name. Event name is
-   * required.
-   * 
- * - * optional string event_name = 1; - * - * @return The eventName. - */ - @java.lang.Override - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - eventName_ = s; - return s; - } - } - /** - * - * - *
-   * This filter matches events of this single event name. Event name is
-   * required.
-   * 
- * - * optional string event_name = 1; - * - * @return The bytes for eventName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FUNNEL_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - funnelParameterFilterExpression_; - /** - * - * - *
-   * If specified, this filter matches events that match both the single event
-   * name and the parameter filter expressions.
-   * Inside the parameter filter expression, only parameter filters are
-   * available.
-   * 
- * - * - * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * - * - * @return Whether the funnelParameterFilterExpression field is set. - */ - @java.lang.Override - public boolean hasFunnelParameterFilterExpression() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * If specified, this filter matches events that match both the single event
-   * name and the parameter filter expressions.
-   * Inside the parameter filter expression, only parameter filters are
-   * available.
-   * 
- * - * - * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * - * - * @return The funnelParameterFilterExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - getFunnelParameterFilterExpression() { - return funnelParameterFilterExpression_ == null - ? com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance() - : funnelParameterFilterExpression_; - } - /** - * - * - *
-   * If specified, this filter matches events that match both the single event
-   * name and the parameter filter expressions.
-   * Inside the parameter filter expression, only parameter filters are
-   * available.
-   * 
- * - * - * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder - getFunnelParameterFilterExpressionOrBuilder() { - return funnelParameterFilterExpression_ == null - ? com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance() - : funnelParameterFilterExpression_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventName_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getFunnelParameterFilterExpression()); - } - getUnknownFields().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, eventName_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getFunnelParameterFilterExpression()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.FunnelEventFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.FunnelEventFilter other = - (com.google.analytics.data.v1alpha.FunnelEventFilter) obj; - - if (hasEventName() != other.hasEventName()) return false; - if (hasEventName()) { - if (!getEventName().equals(other.getEventName())) return false; - } - if (hasFunnelParameterFilterExpression() != other.hasFunnelParameterFilterExpression()) - return false; - if (hasFunnelParameterFilterExpression()) { - if (!getFunnelParameterFilterExpression().equals(other.getFunnelParameterFilterExpression())) - return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasEventName()) { - hash = (37 * hash) + EVENT_NAME_FIELD_NUMBER; - hash = (53 * hash) + getEventName().hashCode(); - } - if (hasFunnelParameterFilterExpression()) { - hash = (37 * hash) + FUNNEL_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getFunnelParameterFilterExpression().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.FunnelEventFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelEventFilter 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.v1alpha.FunnelEventFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelEventFilter parseFrom( - 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.v1alpha.FunnelEventFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelEventFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.FunnelEventFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelEventFilter parseFrom( - java.io.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.v1alpha.FunnelEventFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelEventFilter parseDelimitedFrom( - java.io.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.v1alpha.FunnelEventFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelEventFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.FunnelEventFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Creates a filter that matches events of a single event name. If a parameter
-   * filter expression is specified, only the subset of events that match both the
-   * single event name and the parameter filter expressions match this event
-   * filter.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelEventFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelEventFilter) - com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelEventFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelEventFilter.class, - com.google.analytics.data.v1alpha.FunnelEventFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.FunnelEventFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getFunnelParameterFilterExpressionFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - eventName_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (funnelParameterFilterExpressionBuilder_ == null) { - funnelParameterFilterExpression_ = null; - } else { - funnelParameterFilterExpressionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelEventFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelEventFilter build() { - com.google.analytics.data.v1alpha.FunnelEventFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelEventFilter buildPartial() { - com.google.analytics.data.v1alpha.FunnelEventFilter result = - new com.google.analytics.data.v1alpha.FunnelEventFilter(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.eventName_ = eventName_; - if (((from_bitField0_ & 0x00000002) != 0)) { - if (funnelParameterFilterExpressionBuilder_ == null) { - result.funnelParameterFilterExpression_ = funnelParameterFilterExpression_; - } else { - result.funnelParameterFilterExpression_ = funnelParameterFilterExpressionBuilder_.build(); - } - to_bitField0_ |= 0x00000002; - } - 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.v1alpha.FunnelEventFilter) { - return mergeFrom((com.google.analytics.data.v1alpha.FunnelEventFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelEventFilter other) { - if (other == com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance()) - return this; - if (other.hasEventName()) { - bitField0_ |= 0x00000001; - eventName_ = other.eventName_; - onChanged(); - } - if (other.hasFunnelParameterFilterExpression()) { - mergeFunnelParameterFilterExpression(other.getFunnelParameterFilterExpression()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - eventName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getFunnelParameterFilterExpressionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object eventName_ = ""; - /** - * - * - *
-     * This filter matches events of this single event name. Event name is
-     * required.
-     * 
- * - * optional string event_name = 1; - * - * @return Whether the eventName field is set. - */ - public boolean hasEventName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * This filter matches events of this single event name. Event name is
-     * required.
-     * 
- * - * optional string event_name = 1; - * - * @return The eventName. - */ - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - eventName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This filter matches events of this single event name. Event name is
-     * required.
-     * 
- * - * optional string event_name = 1; - * - * @return The bytes for eventName. - */ - public com.google.protobuf.ByteString getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This filter matches events of this single event name. Event name is
-     * required.
-     * 
- * - * optional string event_name = 1; - * - * @param value The eventName to set. - * @return This builder for chaining. - */ - public Builder setEventName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - eventName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * This filter matches events of this single event name. Event name is
-     * required.
-     * 
- * - * optional string event_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearEventName() { - bitField0_ = (bitField0_ & ~0x00000001); - eventName_ = getDefaultInstance().getEventName(); - onChanged(); - return this; - } - /** - * - * - *
-     * This filter matches events of this single event name. Event name is
-     * required.
-     * 
- * - * optional string event_name = 1; - * - * @param value The bytes for eventName to set. - * @return This builder for chaining. - */ - public Builder setEventNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - bitField0_ |= 0x00000001; - eventName_ = value; - onChanged(); - return this; - } - - private com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - funnelParameterFilterExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> - funnelParameterFilterExpressionBuilder_; - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * - * - * @return Whether the funnelParameterFilterExpression field is set. - */ - public boolean hasFunnelParameterFilterExpression() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * - * - * @return The funnelParameterFilterExpression. - */ - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - getFunnelParameterFilterExpression() { - if (funnelParameterFilterExpressionBuilder_ == null) { - return funnelParameterFilterExpression_ == null - ? com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance() - : funnelParameterFilterExpression_; - } else { - return funnelParameterFilterExpressionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * - */ - public Builder setFunnelParameterFilterExpression( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) { - if (funnelParameterFilterExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - funnelParameterFilterExpression_ = value; - onChanged(); - } else { - funnelParameterFilterExpressionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * - */ - public Builder setFunnelParameterFilterExpression( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder builderForValue) { - if (funnelParameterFilterExpressionBuilder_ == null) { - funnelParameterFilterExpression_ = builderForValue.build(); - onChanged(); - } else { - funnelParameterFilterExpressionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * - */ - public Builder mergeFunnelParameterFilterExpression( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) { - if (funnelParameterFilterExpressionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && funnelParameterFilterExpression_ != null - && funnelParameterFilterExpression_ - != com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - .getDefaultInstance()) { - funnelParameterFilterExpression_ = - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.newBuilder( - funnelParameterFilterExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - funnelParameterFilterExpression_ = value; - } - onChanged(); - } else { - funnelParameterFilterExpressionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * - */ - public Builder clearFunnelParameterFilterExpression() { - if (funnelParameterFilterExpressionBuilder_ == null) { - funnelParameterFilterExpression_ = null; - onChanged(); - } else { - funnelParameterFilterExpressionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * - */ - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder - getFunnelParameterFilterExpressionBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getFunnelParameterFilterExpressionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * - */ - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder - getFunnelParameterFilterExpressionOrBuilder() { - if (funnelParameterFilterExpressionBuilder_ != null) { - return funnelParameterFilterExpressionBuilder_.getMessageOrBuilder(); - } else { - return funnelParameterFilterExpression_ == null - ? com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance() - : funnelParameterFilterExpression_; - } - } - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> - getFunnelParameterFilterExpressionFieldBuilder() { - if (funnelParameterFilterExpressionBuilder_ == null) { - funnelParameterFilterExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder>( - getFunnelParameterFilterExpression(), getParentForChildren(), isClean()); - funnelParameterFilterExpression_ = null; - } - return funnelParameterFilterExpressionBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.FunnelEventFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelEventFilter) - private static final com.google.analytics.data.v1alpha.FunnelEventFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelEventFilter(); - } - - public static com.google.analytics.data.v1alpha.FunnelEventFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FunnelEventFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelEventFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilterOrBuilder.java deleted file mode 100644 index 962cfb0f..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelEventFilterOrBuilder.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FunnelEventFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelEventFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * This filter matches events of this single event name. Event name is
-   * required.
-   * 
- * - * optional string event_name = 1; - * - * @return Whether the eventName field is set. - */ - boolean hasEventName(); - /** - * - * - *
-   * This filter matches events of this single event name. Event name is
-   * required.
-   * 
- * - * optional string event_name = 1; - * - * @return The eventName. - */ - java.lang.String getEventName(); - /** - * - * - *
-   * This filter matches events of this single event name. Event name is
-   * required.
-   * 
- * - * optional string event_name = 1; - * - * @return The bytes for eventName. - */ - com.google.protobuf.ByteString getEventNameBytes(); - - /** - * - * - *
-   * If specified, this filter matches events that match both the single event
-   * name and the parameter filter expressions.
-   * Inside the parameter filter expression, only parameter filters are
-   * available.
-   * 
- * - * - * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * - * - * @return Whether the funnelParameterFilterExpression field is set. - */ - boolean hasFunnelParameterFilterExpression(); - /** - * - * - *
-   * If specified, this filter matches events that match both the single event
-   * name and the parameter filter expressions.
-   * Inside the parameter filter expression, only parameter filters are
-   * available.
-   * 
- * - * - * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * - * - * @return The funnelParameterFilterExpression. - */ - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - getFunnelParameterFilterExpression(); - /** - * - * - *
-   * If specified, this filter matches events that match both the single event
-   * name and the parameter filter expressions.
-   * Inside the parameter filter expression, only parameter filters are
-   * available.
-   * 
- * - * - * optional .google.analytics.data.v1alpha.FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; - * - */ - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder - getFunnelParameterFilterExpressionOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilter.java deleted file mode 100644 index d6b931d0..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilter.java +++ /dev/null @@ -1,1888 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * An expression to filter dimension or metric values.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelFieldFilter} - */ -public final class FunnelFieldFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelFieldFilter) - FunnelFieldFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use FunnelFieldFilter.newBuilder() to construct. - private FunnelFieldFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FunnelFieldFilter() { - fieldName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FunnelFieldFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelFieldFilter.class, - com.google.analytics.data.v1alpha.FunnelFieldFilter.Builder.class); - } - - 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(4), - IN_LIST_FILTER(5), - NUMERIC_FILTER(6), - BETWEEN_FILTER(7), - 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 4: - return STRING_FILTER; - case 5: - return IN_LIST_FILTER; - case 6: - return NUMERIC_FILTER; - case 7: - 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.
-   * 
- * - * 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.
-   * 
- * - * 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 = 4; - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 4; - } - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - - public static final int IN_LIST_FILTER_FIELD_NUMBER = 5; - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 5; - } - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - - public static final int NUMERIC_FILTER_FIELD_NUMBER = 6; - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 6; - } - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - - public static final int BETWEEN_FILTER_FIELD_NUMBER = 7; - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 7; - } - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { - if (oneFilterCase_ == 7) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { - if (oneFilterCase_ == 7) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.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_ == 4) { - output.writeMessage(4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - output.writeMessage(5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); - } - if (oneFilterCase_ == 6) { - output.writeMessage(6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); - } - if (oneFilterCase_ == 7) { - output.writeMessage(7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); - } - if (oneFilterCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); - } - if (oneFilterCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); - } - if (oneFilterCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.FunnelFieldFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.FunnelFieldFilter other = - (com.google.analytics.data.v1alpha.FunnelFieldFilter) obj; - - if (!getFieldName().equals(other.getFieldName())) return false; - if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; - switch (oneFilterCase_) { - case 4: - if (!getStringFilter().equals(other.getStringFilter())) return false; - break; - case 5: - if (!getInListFilter().equals(other.getInListFilter())) return false; - break; - case 6: - if (!getNumericFilter().equals(other.getNumericFilter())) return false; - break; - case 7: - if (!getBetweenFilter().equals(other.getBetweenFilter())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFieldName().hashCode(); - switch (oneFilterCase_) { - case 4: - hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getStringFilter().hashCode(); - break; - case 5: - hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getInListFilter().hashCode(); - break; - case 6: - hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getNumericFilter().hashCode(); - break; - case 7: - hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getBetweenFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelFieldFilter 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.v1alpha.FunnelFieldFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseFrom( - 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.v1alpha.FunnelFieldFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseFrom( - java.io.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.v1alpha.FunnelFieldFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseDelimitedFrom( - java.io.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.v1alpha.FunnelFieldFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelFieldFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.FunnelFieldFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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.v1alpha.FunnelFieldFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelFieldFilter) - com.google.analytics.data.v1alpha.FunnelFieldFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelFieldFilter.class, - com.google.analytics.data.v1alpha.FunnelFieldFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.FunnelFieldFilter.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - fieldName_ = ""; - - if (stringFilterBuilder_ != null) { - stringFilterBuilder_.clear(); - } - if (inListFilterBuilder_ != null) { - inListFilterBuilder_.clear(); - } - if (numericFilterBuilder_ != null) { - numericFilterBuilder_.clear(); - } - if (betweenFilterBuilder_ != null) { - betweenFilterBuilder_.clear(); - } - oneFilterCase_ = 0; - oneFilter_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFieldFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFieldFilter build() { - com.google.analytics.data.v1alpha.FunnelFieldFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFieldFilter buildPartial() { - com.google.analytics.data.v1alpha.FunnelFieldFilter result = - new com.google.analytics.data.v1alpha.FunnelFieldFilter(this); - result.fieldName_ = fieldName_; - if (oneFilterCase_ == 4) { - if (stringFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = stringFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 5) { - if (inListFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = inListFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 6) { - if (numericFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = numericFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 7) { - 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.v1alpha.FunnelFieldFilter) { - return mergeFrom((com.google.analytics.data.v1alpha.FunnelFieldFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelFieldFilter other) { - if (other == com.google.analytics.data.v1alpha.FunnelFieldFilter.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - fieldName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 34: - { - input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getNumericFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage(getBetweenFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 7; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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.
-     * 
- * - * 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.
-     * 
- * - * 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.
-     * 
- * - * 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.
-     * 
- * - * string field_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearFieldName() { - - fieldName_ = getDefaultInstance().getFieldName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The dimension name or metric name.
-     * 
- * - * 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.v1alpha.StringFilter, - com.google.analytics.data.v1alpha.StringFilter.Builder, - com.google.analytics.data.v1alpha.StringFilterOrBuilder> - stringFilterBuilder_; - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 4; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 4) { - return stringFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public Builder setStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - stringFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public Builder setStringFilter( - com.google.analytics.data.v1alpha.StringFilter.Builder builderForValue) { - if (stringFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - stringFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public Builder mergeStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 4 - && oneFilter_ != com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.StringFilter.newBuilder( - (com.google.analytics.data.v1alpha.StringFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 4) { - stringFilterBuilder_.mergeFrom(value); - } else { - stringFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public Builder clearStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - stringFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public com.google.analytics.data.v1alpha.StringFilter.Builder getStringFilterBuilder() { - return getStringFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { - if ((oneFilterCase_ == 4) && (stringFilterBuilder_ != null)) { - return stringFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.StringFilter, - com.google.analytics.data.v1alpha.StringFilter.Builder, - com.google.analytics.data.v1alpha.StringFilterOrBuilder> - getStringFilterFieldBuilder() { - if (stringFilterBuilder_ == null) { - if (!(oneFilterCase_ == 4)) { - oneFilter_ = com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - stringFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.StringFilter, - com.google.analytics.data.v1alpha.StringFilter.Builder, - com.google.analytics.data.v1alpha.StringFilterOrBuilder>( - (com.google.analytics.data.v1alpha.StringFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 4; - onChanged(); - ; - return stringFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.InListFilter, - com.google.analytics.data.v1alpha.InListFilter.Builder, - com.google.analytics.data.v1alpha.InListFilterOrBuilder> - inListFilterBuilder_; - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 5; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 5) { - return inListFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public Builder setInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - inListFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public Builder setInListFilter( - com.google.analytics.data.v1alpha.InListFilter.Builder builderForValue) { - if (inListFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - inListFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public Builder mergeInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 5 - && oneFilter_ != com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.InListFilter.newBuilder( - (com.google.analytics.data.v1alpha.InListFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 5) { - inListFilterBuilder_.mergeFrom(value); - } else { - inListFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public Builder clearInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - inListFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public com.google.analytics.data.v1alpha.InListFilter.Builder getInListFilterBuilder() { - return getInListFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { - if ((oneFilterCase_ == 5) && (inListFilterBuilder_ != null)) { - return inListFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.InListFilter, - com.google.analytics.data.v1alpha.InListFilter.Builder, - com.google.analytics.data.v1alpha.InListFilterOrBuilder> - getInListFilterFieldBuilder() { - if (inListFilterBuilder_ == null) { - if (!(oneFilterCase_ == 5)) { - oneFilter_ = com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - inListFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.InListFilter, - com.google.analytics.data.v1alpha.InListFilter.Builder, - com.google.analytics.data.v1alpha.InListFilterOrBuilder>( - (com.google.analytics.data.v1alpha.InListFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 5; - onChanged(); - ; - return inListFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericFilter, - com.google.analytics.data.v1alpha.NumericFilter.Builder, - com.google.analytics.data.v1alpha.NumericFilterOrBuilder> - numericFilterBuilder_; - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 6; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 6) { - return numericFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public Builder setNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { - if (numericFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - numericFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 6; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public Builder setNumericFilter( - com.google.analytics.data.v1alpha.NumericFilter.Builder builderForValue) { - if (numericFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - numericFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 6; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public Builder mergeNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 6 - && oneFilter_ != com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.NumericFilter.newBuilder( - (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 6) { - numericFilterBuilder_.mergeFrom(value); - } else { - numericFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 6; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public Builder clearNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 6) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 6) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - numericFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public com.google.analytics.data.v1alpha.NumericFilter.Builder getNumericFilterBuilder() { - return getNumericFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { - if ((oneFilterCase_ == 6) && (numericFilterBuilder_ != null)) { - return numericFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericFilter, - com.google.analytics.data.v1alpha.NumericFilter.Builder, - com.google.analytics.data.v1alpha.NumericFilterOrBuilder> - getNumericFilterFieldBuilder() { - if (numericFilterBuilder_ == null) { - if (!(oneFilterCase_ == 6)) { - oneFilter_ = com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - numericFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericFilter, - com.google.analytics.data.v1alpha.NumericFilter.Builder, - com.google.analytics.data.v1alpha.NumericFilterOrBuilder>( - (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 6; - onChanged(); - ; - return numericFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.BetweenFilter, - com.google.analytics.data.v1alpha.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> - betweenFilterBuilder_; - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 7; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 7) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 7) { - return betweenFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public Builder setBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - betweenFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 7; - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public Builder setBetweenFilter( - com.google.analytics.data.v1alpha.BetweenFilter.Builder builderForValue) { - if (betweenFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - betweenFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 7; - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public Builder mergeBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 7 - && oneFilter_ != com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.BetweenFilter.newBuilder( - (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 7) { - betweenFilterBuilder_.mergeFrom(value); - } else { - betweenFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 7; - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public Builder clearBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 7) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 7) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - betweenFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public com.google.analytics.data.v1alpha.BetweenFilter.Builder getBetweenFilterBuilder() { - return getBetweenFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { - if ((oneFilterCase_ == 7) && (betweenFilterBuilder_ != null)) { - return betweenFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 7) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.BetweenFilter, - com.google.analytics.data.v1alpha.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> - getBetweenFilterFieldBuilder() { - if (betweenFilterBuilder_ == null) { - if (!(oneFilterCase_ == 7)) { - oneFilter_ = com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - betweenFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.BetweenFilter, - com.google.analytics.data.v1alpha.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>( - (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 7; - 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.v1alpha.FunnelFieldFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelFieldFilter) - private static final com.google.analytics.data.v1alpha.FunnelFieldFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelFieldFilter(); - } - - public static com.google.analytics.data.v1alpha.FunnelFieldFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FunnelFieldFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFieldFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilterOrBuilder.java deleted file mode 100644 index 5c105956..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFieldFilterOrBuilder.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FunnelFieldFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelFieldFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The dimension name or metric name.
-   * 
- * - * string field_name = 1; - * - * @return The fieldName. - */ - java.lang.String getFieldName(); - /** - * - * - *
-   * The dimension name or metric name.
-   * 
- * - * string field_name = 1; - * - * @return The bytes for fieldName. - */ - com.google.protobuf.ByteString getFieldNameBytes(); - - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return Whether the stringFilter field is set. - */ - boolean hasStringFilter(); - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return The stringFilter. - */ - com.google.analytics.data.v1alpha.StringFilter getStringFilter(); - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder(); - - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return Whether the inListFilter field is set. - */ - boolean hasInListFilter(); - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return The inListFilter. - */ - com.google.analytics.data.v1alpha.InListFilter getInListFilter(); - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder(); - - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return Whether the numericFilter field is set. - */ - boolean hasNumericFilter(); - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return The numericFilter. - */ - com.google.analytics.data.v1alpha.NumericFilter getNumericFilter(); - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder(); - - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return Whether the betweenFilter field is set. - */ - boolean hasBetweenFilter(); - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return The betweenFilter. - */ - com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter(); - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder(); - - public com.google.analytics.data.v1alpha.FunnelFieldFilter.OneFilterCase getOneFilterCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpression.java deleted file mode 100644 index 1ec4a4a5..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpression.java +++ /dev/null @@ -1,2074 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Expresses combinations of funnel filters.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilterExpression} - */ -public final class FunnelFilterExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelFilterExpression) - FunnelFilterExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use FunnelFilterExpression.newBuilder() to construct. - private FunnelFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FunnelFilterExpression() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FunnelFilterExpression(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelFilterExpression.class, - com.google.analytics.data.v1alpha.FunnelFilterExpression.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), - FUNNEL_FIELD_FILTER(4), - FUNNEL_EVENT_FILTER(5), - 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 FUNNEL_FIELD_FILTER; - case 5: - return FUNNEL_EVENT_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 FunnelFilterExpression in `andGroup` have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; - * - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return exprCase_ == 1; - } - /** - * - * - *
-   * The FunnelFilterExpression in `andGroup` have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpressionList getAndGroup() { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); - } - /** - * - * - *
-   * The FunnelFilterExpression in `andGroup` have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder - getAndGroupOrBuilder() { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); - } - - public static final int OR_GROUP_FIELD_NUMBER = 2; - /** - * - * - *
-   * The FunnelFilterExpression in `orGroup` have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; - * - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return exprCase_ == 2; - } - /** - * - * - *
-   * The FunnelFilterExpression in `orGroup` have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpressionList getOrGroup() { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); - } - /** - * - * - *
-   * The FunnelFilterExpression in `orGroup` have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder - getOrGroupOrBuilder() { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); - } - - public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; - /** - * - * - *
-   * The FunnelFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; - * - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 3; - } - /** - * - * - *
-   * The FunnelFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; - * - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpression getNotExpression() { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance(); - } - /** - * - * - *
-   * The FunnelFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder - getNotExpressionOrBuilder() { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance(); - } - - public static final int FUNNEL_FIELD_FILTER_FIELD_NUMBER = 4; - /** - * - * - *
-   * A funnel filter for a dimension or metric.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - * - * @return Whether the funnelFieldFilter field is set. - */ - @java.lang.Override - public boolean hasFunnelFieldFilter() { - return exprCase_ == 4; - } - /** - * - * - *
-   * A funnel filter for a dimension or metric.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - * - * @return The funnelFieldFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFieldFilter getFunnelFieldFilter() { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_; - } - return com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A funnel filter for a dimension or metric.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFieldFilterOrBuilder - getFunnelFieldFilterOrBuilder() { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_; - } - return com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance(); - } - - public static final int FUNNEL_EVENT_FILTER_FIELD_NUMBER = 5; - /** - * - * - *
-   * Creates a filter that matches events of a single event name. If a
-   * parameter filter expression is specified, only the subset of events that
-   * match both the single event name and the parameter filter expressions
-   * match this event filter.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - * - * @return Whether the funnelEventFilter field is set. - */ - @java.lang.Override - public boolean hasFunnelEventFilter() { - return exprCase_ == 5; - } - /** - * - * - *
-   * Creates a filter that matches events of a single event name. If a
-   * parameter filter expression is specified, only the subset of events that
-   * match both the single event name and the parameter filter expressions
-   * match this event filter.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - * - * @return The funnelEventFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelEventFilter getFunnelEventFilter() { - if (exprCase_ == 5) { - return (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_; - } - return com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance(); - } - /** - * - * - *
-   * Creates a filter that matches events of a single event name. If a
-   * parameter filter expression is specified, only the subset of events that
-   * match both the single event name and the parameter filter expressions
-   * match this event filter.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder - getFunnelEventFilterOrBuilder() { - if (exprCase_ == 5) { - return (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_; - } - return com.google.analytics.data.v1alpha.FunnelEventFilter.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.v1alpha.FunnelFilterExpressionList) expr_); - } - if (exprCase_ == 2) { - output.writeMessage(2, (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_); - } - if (exprCase_ == 3) { - output.writeMessage(3, (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_); - } - if (exprCase_ == 4) { - output.writeMessage(4, (com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_); - } - if (exprCase_ == 5) { - output.writeMessage(5, (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_); - } - getUnknownFields().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.v1alpha.FunnelFilterExpressionList) expr_); - } - if (exprCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_); - } - if (exprCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_); - } - if (exprCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_); - } - if (exprCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.FunnelFilterExpression)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.FunnelFilterExpression other = - (com.google.analytics.data.v1alpha.FunnelFilterExpression) 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 (!getFunnelFieldFilter().equals(other.getFunnelFieldFilter())) return false; - break; - case 5: - if (!getFunnelEventFilter().equals(other.getFunnelEventFilter())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (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) + FUNNEL_FIELD_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFunnelFieldFilter().hashCode(); - break; - case 5: - hash = (37 * hash) + FUNNEL_EVENT_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFunnelEventFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpression parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpression 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.v1alpha.FunnelFilterExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpression parseFrom( - 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.v1alpha.FunnelFilterExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpression parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpression parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpression parseFrom( - java.io.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.v1alpha.FunnelFilterExpression parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpression parseDelimitedFrom( - java.io.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.v1alpha.FunnelFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.FunnelFilterExpression prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Expresses combinations of funnel filters.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilterExpression} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelFilterExpression) - com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelFilterExpression.class, - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.FunnelFilterExpression.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (andGroupBuilder_ != null) { - andGroupBuilder_.clear(); - } - if (orGroupBuilder_ != null) { - orGroupBuilder_.clear(); - } - if (notExpressionBuilder_ != null) { - notExpressionBuilder_.clear(); - } - if (funnelFieldFilterBuilder_ != null) { - funnelFieldFilterBuilder_.clear(); - } - if (funnelEventFilterBuilder_ != null) { - funnelEventFilterBuilder_.clear(); - } - exprCase_ = 0; - expr_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpression getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpression build() { - com.google.analytics.data.v1alpha.FunnelFilterExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpression buildPartial() { - com.google.analytics.data.v1alpha.FunnelFilterExpression result = - new com.google.analytics.data.v1alpha.FunnelFilterExpression(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 (funnelFieldFilterBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = funnelFieldFilterBuilder_.build(); - } - } - if (exprCase_ == 5) { - if (funnelEventFilterBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = funnelEventFilterBuilder_.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.v1alpha.FunnelFilterExpression) { - return mergeFrom((com.google.analytics.data.v1alpha.FunnelFilterExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelFilterExpression other) { - if (other == com.google.analytics.data.v1alpha.FunnelFilterExpression.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 FUNNEL_FIELD_FILTER: - { - mergeFunnelFieldFilter(other.getFunnelFieldFilter()); - break; - } - case FUNNEL_EVENT_FILTER: - { - mergeFunnelEventFilter(other.getFunnelEventFilter()); - break; - } - case EXPR_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - getFunnelFieldFilterFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage( - getFunnelEventFilterFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 5; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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.v1alpha.FunnelFilterExpressionList, - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder> - andGroupBuilder_; - /** - * - * - *
-     * The FunnelFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; - * - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return exprCase_ == 1; - } - /** - * - * - *
-     * The FunnelFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpressionList getAndGroup() { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); - } else { - if (exprCase_ == 1) { - return andGroupBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FunnelFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; - */ - public Builder setAndGroup(com.google.analytics.data.v1alpha.FunnelFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - andGroupBuilder_.setMessage(value); - } - exprCase_ = 1; - return this; - } - /** - * - * - *
-     * The FunnelFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; - */ - public Builder setAndGroup( - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder builderForValue) { - if (andGroupBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - andGroupBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 1; - return this; - } - /** - * - * - *
-     * The FunnelFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; - */ - public Builder mergeAndGroup( - com.google.analytics.data.v1alpha.FunnelFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1 - && expr_ - != com.google.analytics.data.v1alpha.FunnelFilterExpressionList - .getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.newBuilder( - (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 1) { - andGroupBuilder_.mergeFrom(value); - } else { - andGroupBuilder_.setMessage(value); - } - } - exprCase_ = 1; - return this; - } - /** - * - * - *
-     * The FunnelFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList 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 FunnelFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; - */ - public com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder - getAndGroupBuilder() { - return getAndGroupFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The FunnelFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder - getAndGroupOrBuilder() { - if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { - return andGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FunnelFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFilterExpressionList, - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder> - getAndGroupFieldBuilder() { - if (andGroupBuilder_ == null) { - if (!(exprCase_ == 1)) { - expr_ = com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); - } - andGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFilterExpressionList, - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder>( - (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 1; - onChanged(); - ; - return andGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFilterExpressionList, - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder> - orGroupBuilder_; - /** - * - * - *
-     * The FunnelFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; - * - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return exprCase_ == 2; - } - /** - * - * - *
-     * The FunnelFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpressionList getOrGroup() { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); - } else { - if (exprCase_ == 2) { - return orGroupBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FunnelFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; - */ - public Builder setOrGroup(com.google.analytics.data.v1alpha.FunnelFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - orGroupBuilder_.setMessage(value); - } - exprCase_ = 2; - return this; - } - /** - * - * - *
-     * The FunnelFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; - */ - public Builder setOrGroup( - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder builderForValue) { - if (orGroupBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - orGroupBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 2; - return this; - } - /** - * - * - *
-     * The FunnelFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; - */ - public Builder mergeOrGroup( - com.google.analytics.data.v1alpha.FunnelFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2 - && expr_ - != com.google.analytics.data.v1alpha.FunnelFilterExpressionList - .getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.newBuilder( - (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 2) { - orGroupBuilder_.mergeFrom(value); - } else { - orGroupBuilder_.setMessage(value); - } - } - exprCase_ = 2; - return this; - } - /** - * - * - *
-     * The FunnelFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList 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 FunnelFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; - */ - public com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder - getOrGroupBuilder() { - return getOrGroupFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The FunnelFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder - getOrGroupOrBuilder() { - if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { - return orGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FunnelFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFilterExpressionList, - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder> - getOrGroupFieldBuilder() { - if (orGroupBuilder_ == null) { - if (!(exprCase_ == 2)) { - expr_ = com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); - } - orGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFilterExpressionList, - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder>( - (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 2; - onChanged(); - ; - return orGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFilterExpression, - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder> - notExpressionBuilder_; - /** - * - * - *
-     * The FunnelFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; - * - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 3; - } - /** - * - * - *
-     * The FunnelFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; - * - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpression getNotExpression() { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance(); - } else { - if (exprCase_ == 3) { - return notExpressionBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FunnelFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; - */ - public Builder setNotExpression( - com.google.analytics.data.v1alpha.FunnelFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - notExpressionBuilder_.setMessage(value); - } - exprCase_ = 3; - return this; - } - /** - * - * - *
-     * The FunnelFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; - */ - public Builder setNotExpression( - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder builderForValue) { - if (notExpressionBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - notExpressionBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 3; - return this; - } - /** - * - * - *
-     * The FunnelFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; - */ - public Builder mergeNotExpression( - com.google.analytics.data.v1alpha.FunnelFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3 - && expr_ - != com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.FunnelFilterExpression.newBuilder( - (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 3) { - notExpressionBuilder_.mergeFrom(value); - } else { - notExpressionBuilder_.setMessage(value); - } - } - exprCase_ = 3; - return this; - } - /** - * - * - *
-     * The FunnelFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression 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 FunnelFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; - */ - public com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder - getNotExpressionBuilder() { - return getNotExpressionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The FunnelFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder - getNotExpressionOrBuilder() { - if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { - return notExpressionBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance(); - } - } - /** - * - * - *
-     * The FunnelFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFilterExpression, - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder> - getNotExpressionFieldBuilder() { - if (notExpressionBuilder_ == null) { - if (!(exprCase_ == 3)) { - expr_ = com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance(); - } - notExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFilterExpression, - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder>( - (com.google.analytics.data.v1alpha.FunnelFilterExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 3; - onChanged(); - ; - return notExpressionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFieldFilter, - com.google.analytics.data.v1alpha.FunnelFieldFilter.Builder, - com.google.analytics.data.v1alpha.FunnelFieldFilterOrBuilder> - funnelFieldFilterBuilder_; - /** - * - * - *
-     * A funnel filter for a dimension or metric.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - * - * @return Whether the funnelFieldFilter field is set. - */ - @java.lang.Override - public boolean hasFunnelFieldFilter() { - return exprCase_ == 4; - } - /** - * - * - *
-     * A funnel filter for a dimension or metric.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - * - * @return The funnelFieldFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFieldFilter getFunnelFieldFilter() { - if (funnelFieldFilterBuilder_ == null) { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_; - } - return com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance(); - } else { - if (exprCase_ == 4) { - return funnelFieldFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A funnel filter for a dimension or metric.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - */ - public Builder setFunnelFieldFilter(com.google.analytics.data.v1alpha.FunnelFieldFilter value) { - if (funnelFieldFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - funnelFieldFilterBuilder_.setMessage(value); - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A funnel filter for a dimension or metric.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - */ - public Builder setFunnelFieldFilter( - com.google.analytics.data.v1alpha.FunnelFieldFilter.Builder builderForValue) { - if (funnelFieldFilterBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - funnelFieldFilterBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A funnel filter for a dimension or metric.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - */ - public Builder mergeFunnelFieldFilter( - com.google.analytics.data.v1alpha.FunnelFieldFilter value) { - if (funnelFieldFilterBuilder_ == null) { - if (exprCase_ == 4 - && expr_ != com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.FunnelFieldFilter.newBuilder( - (com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 4) { - funnelFieldFilterBuilder_.mergeFrom(value); - } else { - funnelFieldFilterBuilder_.setMessage(value); - } - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A funnel filter for a dimension or metric.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - */ - public Builder clearFunnelFieldFilter() { - if (funnelFieldFilterBuilder_ == null) { - if (exprCase_ == 4) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 4) { - exprCase_ = 0; - expr_ = null; - } - funnelFieldFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A funnel filter for a dimension or metric.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - */ - public com.google.analytics.data.v1alpha.FunnelFieldFilter.Builder - getFunnelFieldFilterBuilder() { - return getFunnelFieldFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A funnel filter for a dimension or metric.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFieldFilterOrBuilder - getFunnelFieldFilterOrBuilder() { - if ((exprCase_ == 4) && (funnelFieldFilterBuilder_ != null)) { - return funnelFieldFilterBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_; - } - return com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A funnel filter for a dimension or metric.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFieldFilter, - com.google.analytics.data.v1alpha.FunnelFieldFilter.Builder, - com.google.analytics.data.v1alpha.FunnelFieldFilterOrBuilder> - getFunnelFieldFilterFieldBuilder() { - if (funnelFieldFilterBuilder_ == null) { - if (!(exprCase_ == 4)) { - expr_ = com.google.analytics.data.v1alpha.FunnelFieldFilter.getDefaultInstance(); - } - funnelFieldFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFieldFilter, - com.google.analytics.data.v1alpha.FunnelFieldFilter.Builder, - com.google.analytics.data.v1alpha.FunnelFieldFilterOrBuilder>( - (com.google.analytics.data.v1alpha.FunnelFieldFilter) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 4; - onChanged(); - ; - return funnelFieldFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelEventFilter, - com.google.analytics.data.v1alpha.FunnelEventFilter.Builder, - com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder> - funnelEventFilterBuilder_; - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - * - * @return Whether the funnelEventFilter field is set. - */ - @java.lang.Override - public boolean hasFunnelEventFilter() { - return exprCase_ == 5; - } - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - * - * @return The funnelEventFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelEventFilter getFunnelEventFilter() { - if (funnelEventFilterBuilder_ == null) { - if (exprCase_ == 5) { - return (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_; - } - return com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance(); - } else { - if (exprCase_ == 5) { - return funnelEventFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - */ - public Builder setFunnelEventFilter(com.google.analytics.data.v1alpha.FunnelEventFilter value) { - if (funnelEventFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - funnelEventFilterBuilder_.setMessage(value); - } - exprCase_ = 5; - return this; - } - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - */ - public Builder setFunnelEventFilter( - com.google.analytics.data.v1alpha.FunnelEventFilter.Builder builderForValue) { - if (funnelEventFilterBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - funnelEventFilterBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 5; - return this; - } - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - */ - public Builder mergeFunnelEventFilter( - com.google.analytics.data.v1alpha.FunnelEventFilter value) { - if (funnelEventFilterBuilder_ == null) { - if (exprCase_ == 5 - && expr_ != com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.FunnelEventFilter.newBuilder( - (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 5) { - funnelEventFilterBuilder_.mergeFrom(value); - } else { - funnelEventFilterBuilder_.setMessage(value); - } - } - exprCase_ = 5; - return this; - } - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - */ - public Builder clearFunnelEventFilter() { - if (funnelEventFilterBuilder_ == null) { - if (exprCase_ == 5) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 5) { - exprCase_ = 0; - expr_ = null; - } - funnelEventFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - */ - public com.google.analytics.data.v1alpha.FunnelEventFilter.Builder - getFunnelEventFilterBuilder() { - return getFunnelEventFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder - getFunnelEventFilterOrBuilder() { - if ((exprCase_ == 5) && (funnelEventFilterBuilder_ != null)) { - return funnelEventFilterBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 5) { - return (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_; - } - return com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelEventFilter, - com.google.analytics.data.v1alpha.FunnelEventFilter.Builder, - com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder> - getFunnelEventFilterFieldBuilder() { - if (funnelEventFilterBuilder_ == null) { - if (!(exprCase_ == 5)) { - expr_ = com.google.analytics.data.v1alpha.FunnelEventFilter.getDefaultInstance(); - } - funnelEventFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelEventFilter, - com.google.analytics.data.v1alpha.FunnelEventFilter.Builder, - com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder>( - (com.google.analytics.data.v1alpha.FunnelEventFilter) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 5; - onChanged(); - ; - return funnelEventFilterBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.FunnelFilterExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelFilterExpression) - private static final com.google.analytics.data.v1alpha.FunnelFilterExpression DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelFilterExpression(); - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FunnelFilterExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionList.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionList.java deleted file mode 100644 index 3aa39d25..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionList.java +++ /dev/null @@ -1,949 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * A list of funnel filter expressions.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilterExpressionList} - */ -public final class FunnelFilterExpressionList extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelFilterExpressionList) - FunnelFilterExpressionListOrBuilder { - private static final long serialVersionUID = 0L; - // Use FunnelFilterExpressionList.newBuilder() to construct. - private FunnelFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FunnelFilterExpressionList() { - expressions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FunnelFilterExpressionList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.class, - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder.class); - } - - public static final int EXPRESSIONS_FIELD_NUMBER = 1; - private java.util.List expressions_; - /** - * - * - *
-   * The list of funnel filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - @java.lang.Override - public java.util.List - getExpressionsList() { - return expressions_; - } - /** - * - * - *
-   * The list of funnel filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - @java.lang.Override - public java.util.List - getExpressionsOrBuilderList() { - return expressions_; - } - /** - * - * - *
-   * The list of funnel filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - @java.lang.Override - public int getExpressionsCount() { - return expressions_.size(); - } - /** - * - * - *
-   * The list of funnel filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpression getExpressions(int index) { - return expressions_.get(index); - } - /** - * - * - *
-   * The list of funnel filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder 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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.FunnelFilterExpressionList)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.FunnelFilterExpressionList other = - (com.google.analytics.data.v1alpha.FunnelFilterExpressionList) obj; - - if (!getExpressionsList().equals(other.getExpressionsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getExpressionsCount() > 0) { - hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; - hash = (53 * hash) + getExpressionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList 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.v1alpha.FunnelFilterExpressionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList parseFrom( - 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.v1alpha.FunnelFilterExpressionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList parseFrom( - java.io.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.v1alpha.FunnelFilterExpressionList parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList parseDelimitedFrom( - java.io.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.v1alpha.FunnelFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.FunnelFilterExpressionList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 funnel filter expressions.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelFilterExpressionList} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelFilterExpressionList) - com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.class, - com.google.analytics.data.v1alpha.FunnelFilterExpressionList.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.FunnelFilterExpressionList.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (expressionsBuilder_ == null) { - expressions_ = java.util.Collections.emptyList(); - } else { - expressions_ = null; - expressionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpressionList - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FunnelFilterExpressionList.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpressionList build() { - com.google.analytics.data.v1alpha.FunnelFilterExpressionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpressionList buildPartial() { - com.google.analytics.data.v1alpha.FunnelFilterExpressionList result = - new com.google.analytics.data.v1alpha.FunnelFilterExpressionList(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.v1alpha.FunnelFilterExpressionList) { - return mergeFrom((com.google.analytics.data.v1alpha.FunnelFilterExpressionList) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelFilterExpressionList other) { - if (other - == com.google.analytics.data.v1alpha.FunnelFilterExpressionList.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1alpha.FunnelFilterExpression m = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelFilterExpression.parser(), - extensionRegistry); - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(m); - } else { - expressionsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List 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.v1alpha.FunnelFilterExpression, - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder> - expressionsBuilder_; - - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public java.util.List - getExpressionsList() { - if (expressionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(expressions_); - } else { - return expressionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public int getExpressionsCount() { - if (expressionsBuilder_ == null) { - return expressions_.size(); - } else { - return expressionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.FunnelFilterExpression getExpressions(int index) { - if (expressionsBuilder_ == null) { - return expressions_.get(index); - } else { - return expressionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public Builder setExpressions( - int index, com.google.analytics.data.v1alpha.FunnelFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.set(index, value); - onChanged(); - } else { - expressionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public Builder setExpressions( - int index, - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.set(index, builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public Builder addExpressions(com.google.analytics.data.v1alpha.FunnelFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.add(value); - onChanged(); - } else { - expressionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public Builder addExpressions( - int index, com.google.analytics.data.v1alpha.FunnelFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.add(index, value); - onChanged(); - } else { - expressionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public Builder addExpressions( - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public Builder addExpressions( - int index, - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(index, builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression 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; - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public Builder clearExpressions() { - if (expressionsBuilder_ == null) { - expressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - expressionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public Builder removeExpressions(int index) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.remove(index); - onChanged(); - } else { - expressionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder getExpressionsBuilder( - int index) { - return getExpressionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder - getExpressionsOrBuilder(int index) { - if (expressionsBuilder_ == null) { - return expressions_.get(index); - } else { - return expressionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public java.util.List< - ? extends com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder> - getExpressionsOrBuilderList() { - if (expressionsBuilder_ != null) { - return expressionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(expressions_); - } - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder - addExpressionsBuilder() { - return getExpressionsFieldBuilder() - .addBuilder( - com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance()); - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder addExpressionsBuilder( - int index) { - return getExpressionsFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance()); - } - /** - * - * - *
-     * The list of funnel filter expressions.
-     * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - public java.util.List - getExpressionsBuilderList() { - return getExpressionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFilterExpression, - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder> - getExpressionsFieldBuilder() { - if (expressionsBuilder_ == null) { - expressionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFilterExpression, - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder>( - 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.v1alpha.FunnelFilterExpressionList) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelFilterExpressionList) - private static final com.google.analytics.data.v1alpha.FunnelFilterExpressionList - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelFilterExpressionList(); - } - - public static com.google.analytics.data.v1alpha.FunnelFilterExpressionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FunnelFilterExpressionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpressionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionListOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionListOrBuilder.java deleted file mode 100644 index d3a24d6d..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionListOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FunnelFilterExpressionListOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelFilterExpressionList) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of funnel filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - java.util.List getExpressionsList(); - /** - * - * - *
-   * The list of funnel filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - com.google.analytics.data.v1alpha.FunnelFilterExpression getExpressions(int index); - /** - * - * - *
-   * The list of funnel filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - int getExpressionsCount(); - /** - * - * - *
-   * The list of funnel filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - java.util.List - getExpressionsOrBuilderList(); - /** - * - * - *
-   * The list of funnel filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelFilterExpression expressions = 1; - */ - com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder getExpressionsOrBuilder( - int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionOrBuilder.java deleted file mode 100644 index ebf68b15..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelFilterExpressionOrBuilder.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FunnelFilterExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelFilterExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The FunnelFilterExpression in `andGroup` have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; - * - * @return Whether the andGroup field is set. - */ - boolean hasAndGroup(); - /** - * - * - *
-   * The FunnelFilterExpression in `andGroup` have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - com.google.analytics.data.v1alpha.FunnelFilterExpressionList getAndGroup(); - /** - * - * - *
-   * The FunnelFilterExpression in `andGroup` have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList and_group = 1; - */ - com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder getAndGroupOrBuilder(); - - /** - * - * - *
-   * The FunnelFilterExpression in `orGroup` have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; - * - * @return Whether the orGroup field is set. - */ - boolean hasOrGroup(); - /** - * - * - *
-   * The FunnelFilterExpression in `orGroup` have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - com.google.analytics.data.v1alpha.FunnelFilterExpressionList getOrGroup(); - /** - * - * - *
-   * The FunnelFilterExpression in `orGroup` have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpressionList or_group = 2; - */ - com.google.analytics.data.v1alpha.FunnelFilterExpressionListOrBuilder getOrGroupOrBuilder(); - - /** - * - * - *
-   * The FunnelFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; - * - * @return Whether the notExpression field is set. - */ - boolean hasNotExpression(); - /** - * - * - *
-   * The FunnelFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; - * - * @return The notExpression. - */ - com.google.analytics.data.v1alpha.FunnelFilterExpression getNotExpression(); - /** - * - * - *
-   * The FunnelFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression not_expression = 3; - */ - com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder getNotExpressionOrBuilder(); - - /** - * - * - *
-   * A funnel filter for a dimension or metric.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - * - * @return Whether the funnelFieldFilter field is set. - */ - boolean hasFunnelFieldFilter(); - /** - * - * - *
-   * A funnel filter for a dimension or metric.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - * - * @return The funnelFieldFilter. - */ - com.google.analytics.data.v1alpha.FunnelFieldFilter getFunnelFieldFilter(); - /** - * - * - *
-   * A funnel filter for a dimension or metric.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFieldFilter funnel_field_filter = 4; - */ - com.google.analytics.data.v1alpha.FunnelFieldFilterOrBuilder getFunnelFieldFilterOrBuilder(); - - /** - * - * - *
-   * Creates a filter that matches events of a single event name. If a
-   * parameter filter expression is specified, only the subset of events that
-   * match both the single event name and the parameter filter expressions
-   * match this event filter.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - * - * @return Whether the funnelEventFilter field is set. - */ - boolean hasFunnelEventFilter(); - /** - * - * - *
-   * Creates a filter that matches events of a single event name. If a
-   * parameter filter expression is specified, only the subset of events that
-   * match both the single event name and the parameter filter expressions
-   * match this event filter.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - * - * @return The funnelEventFilter. - */ - com.google.analytics.data.v1alpha.FunnelEventFilter getFunnelEventFilter(); - /** - * - * - *
-   * Creates a filter that matches events of a single event name. If a
-   * parameter filter expression is specified, only the subset of events that
-   * match both the single event name and the parameter filter expressions
-   * match this event filter.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelEventFilter funnel_event_filter = 5; - */ - com.google.analytics.data.v1alpha.FunnelEventFilterOrBuilder getFunnelEventFilterOrBuilder(); - - public com.google.analytics.data.v1alpha.FunnelFilterExpression.ExprCase getExprCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java deleted file mode 100644 index 4024e3e3..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextAction.java +++ /dev/null @@ -1,922 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Next actions state the value for a dimension after the user has achieved
- * a step but before the same user has achieved the next step. For example if
- * the `nextActionDimension` is `eventName`, then `nextActionDimension` in the
- * `i`th funnel step row will return first event after the event that qualified
- * the user into the `i`th funnel step but before the user achieved the `i+1`th
- * funnel step.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelNextAction} - */ -public final class FunnelNextAction extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelNextAction) - FunnelNextActionOrBuilder { - private static final long serialVersionUID = 0L; - // Use FunnelNextAction.newBuilder() to construct. - private FunnelNextAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FunnelNextAction() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FunnelNextAction(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelNextAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelNextAction.class, - com.google.analytics.data.v1alpha.FunnelNextAction.Builder.class); - } - - private int bitField0_; - public static final int NEXT_ACTION_DIMENSION_FIELD_NUMBER = 1; - private com.google.analytics.data.v1alpha.Dimension nextActionDimension_; - /** - * - * - *
-   * The dimension column added to the funnel visualization sub report response.
-   * The next action dimension returns the next dimension value of this
-   * dimension after the user has attained the `i`th funnel step.
-   * `nextActionDimension` currently only supports `eventName` and most Page /
-   * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension`
-   * cannot be a dimension expression.
-   * 
- * - * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - * - * @return Whether the nextActionDimension field is set. - */ - @java.lang.Override - public boolean hasNextActionDimension() { - return nextActionDimension_ != null; - } - /** - * - * - *
-   * The dimension column added to the funnel visualization sub report response.
-   * The next action dimension returns the next dimension value of this
-   * dimension after the user has attained the `i`th funnel step.
-   * `nextActionDimension` currently only supports `eventName` and most Page /
-   * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension`
-   * cannot be a dimension expression.
-   * 
- * - * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - * - * @return The nextActionDimension. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Dimension getNextActionDimension() { - return nextActionDimension_ == null - ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance() - : nextActionDimension_; - } - /** - * - * - *
-   * The dimension column added to the funnel visualization sub report response.
-   * The next action dimension returns the next dimension value of this
-   * dimension after the user has attained the `i`th funnel step.
-   * `nextActionDimension` currently only supports `eventName` and most Page /
-   * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension`
-   * cannot be a dimension expression.
-   * 
- * - * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionOrBuilder getNextActionDimensionOrBuilder() { - return getNextActionDimension(); - } - - public static final int LIMIT_FIELD_NUMBER = 2; - private long limit_; - /** - * - * - *
-   * The maximum number of distinct values of the breakdown dimension to return
-   * in the response. A `limit` of `5` is used if limit is not specified. Limit
-   * must exceed zero and cannot exceed 5.
-   * 
- * - * optional int64 limit = 2; - * - * @return Whether the limit field is set. - */ - @java.lang.Override - public boolean hasLimit() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * The maximum number of distinct values of the breakdown dimension to return
-   * in the response. A `limit` of `5` is used if limit is not specified. Limit
-   * must exceed zero and cannot exceed 5.
-   * 
- * - * optional int64 limit = 2; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (nextActionDimension_ != null) { - output.writeMessage(1, getNextActionDimension()); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeInt64(2, limit_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (nextActionDimension_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getNextActionDimension()); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, limit_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.FunnelNextAction)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.FunnelNextAction other = - (com.google.analytics.data.v1alpha.FunnelNextAction) obj; - - if (hasNextActionDimension() != other.hasNextActionDimension()) return false; - if (hasNextActionDimension()) { - if (!getNextActionDimension().equals(other.getNextActionDimension())) return false; - } - if (hasLimit() != other.hasLimit()) return false; - if (hasLimit()) { - if (getLimit() != other.getLimit()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasNextActionDimension()) { - hash = (37 * hash) + NEXT_ACTION_DIMENSION_FIELD_NUMBER; - hash = (53 * hash) + getNextActionDimension().hashCode(); - } - if (hasLimit()) { - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.FunnelNextAction parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelNextAction 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.v1alpha.FunnelNextAction parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelNextAction parseFrom( - 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.v1alpha.FunnelNextAction parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelNextAction parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.FunnelNextAction parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelNextAction parseFrom( - java.io.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.v1alpha.FunnelNextAction parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelNextAction parseDelimitedFrom( - java.io.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.v1alpha.FunnelNextAction parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelNextAction parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.FunnelNextAction prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Next actions state the value for a dimension after the user has achieved
-   * a step but before the same user has achieved the next step. For example if
-   * the `nextActionDimension` is `eventName`, then `nextActionDimension` in the
-   * `i`th funnel step row will return first event after the event that qualified
-   * the user into the `i`th funnel step but before the user achieved the `i+1`th
-   * funnel step.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelNextAction} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelNextAction) - com.google.analytics.data.v1alpha.FunnelNextActionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelNextAction_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelNextAction.class, - com.google.analytics.data.v1alpha.FunnelNextAction.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.FunnelNextAction.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (nextActionDimensionBuilder_ == null) { - nextActionDimension_ = null; - } else { - nextActionDimension_ = null; - nextActionDimensionBuilder_ = null; - } - limit_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelNextAction getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FunnelNextAction.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelNextAction build() { - com.google.analytics.data.v1alpha.FunnelNextAction result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelNextAction buildPartial() { - com.google.analytics.data.v1alpha.FunnelNextAction result = - new com.google.analytics.data.v1alpha.FunnelNextAction(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (nextActionDimensionBuilder_ == null) { - result.nextActionDimension_ = nextActionDimension_; - } else { - result.nextActionDimension_ = nextActionDimensionBuilder_.build(); - } - if (((from_bitField0_ & 0x00000001) != 0)) { - result.limit_ = limit_; - to_bitField0_ |= 0x00000001; - } - 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.v1alpha.FunnelNextAction) { - return mergeFrom((com.google.analytics.data.v1alpha.FunnelNextAction) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelNextAction other) { - if (other == com.google.analytics.data.v1alpha.FunnelNextAction.getDefaultInstance()) - return this; - if (other.hasNextActionDimension()) { - mergeNextActionDimension(other.getNextActionDimension()); - } - if (other.hasLimit()) { - setLimit(other.getLimit()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getNextActionDimensionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 16: - { - limit_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.analytics.data.v1alpha.Dimension nextActionDimension_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Dimension, - com.google.analytics.data.v1alpha.Dimension.Builder, - com.google.analytics.data.v1alpha.DimensionOrBuilder> - nextActionDimensionBuilder_; - /** - * - * - *
-     * The dimension column added to the funnel visualization sub report response.
-     * The next action dimension returns the next dimension value of this
-     * dimension after the user has attained the `i`th funnel step.
-     * `nextActionDimension` currently only supports `eventName` and most Page /
-     * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension`
-     * cannot be a dimension expression.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - * - * @return Whether the nextActionDimension field is set. - */ - public boolean hasNextActionDimension() { - return nextActionDimensionBuilder_ != null || nextActionDimension_ != null; - } - /** - * - * - *
-     * The dimension column added to the funnel visualization sub report response.
-     * The next action dimension returns the next dimension value of this
-     * dimension after the user has attained the `i`th funnel step.
-     * `nextActionDimension` currently only supports `eventName` and most Page /
-     * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension`
-     * cannot be a dimension expression.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - * - * @return The nextActionDimension. - */ - public com.google.analytics.data.v1alpha.Dimension getNextActionDimension() { - if (nextActionDimensionBuilder_ == null) { - return nextActionDimension_ == null - ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance() - : nextActionDimension_; - } else { - return nextActionDimensionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The dimension column added to the funnel visualization sub report response.
-     * The next action dimension returns the next dimension value of this
-     * dimension after the user has attained the `i`th funnel step.
-     * `nextActionDimension` currently only supports `eventName` and most Page /
-     * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension`
-     * cannot be a dimension expression.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - */ - public Builder setNextActionDimension(com.google.analytics.data.v1alpha.Dimension value) { - if (nextActionDimensionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - nextActionDimension_ = value; - onChanged(); - } else { - nextActionDimensionBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The dimension column added to the funnel visualization sub report response.
-     * The next action dimension returns the next dimension value of this
-     * dimension after the user has attained the `i`th funnel step.
-     * `nextActionDimension` currently only supports `eventName` and most Page /
-     * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension`
-     * cannot be a dimension expression.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - */ - public Builder setNextActionDimension( - com.google.analytics.data.v1alpha.Dimension.Builder builderForValue) { - if (nextActionDimensionBuilder_ == null) { - nextActionDimension_ = builderForValue.build(); - onChanged(); - } else { - nextActionDimensionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The dimension column added to the funnel visualization sub report response.
-     * The next action dimension returns the next dimension value of this
-     * dimension after the user has attained the `i`th funnel step.
-     * `nextActionDimension` currently only supports `eventName` and most Page /
-     * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension`
-     * cannot be a dimension expression.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - */ - public Builder mergeNextActionDimension(com.google.analytics.data.v1alpha.Dimension value) { - if (nextActionDimensionBuilder_ == null) { - if (nextActionDimension_ != null) { - nextActionDimension_ = - com.google.analytics.data.v1alpha.Dimension.newBuilder(nextActionDimension_) - .mergeFrom(value) - .buildPartial(); - } else { - nextActionDimension_ = value; - } - onChanged(); - } else { - nextActionDimensionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The dimension column added to the funnel visualization sub report response.
-     * The next action dimension returns the next dimension value of this
-     * dimension after the user has attained the `i`th funnel step.
-     * `nextActionDimension` currently only supports `eventName` and most Page /
-     * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension`
-     * cannot be a dimension expression.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - */ - public Builder clearNextActionDimension() { - if (nextActionDimensionBuilder_ == null) { - nextActionDimension_ = null; - onChanged(); - } else { - nextActionDimension_ = null; - nextActionDimensionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The dimension column added to the funnel visualization sub report response.
-     * The next action dimension returns the next dimension value of this
-     * dimension after the user has attained the `i`th funnel step.
-     * `nextActionDimension` currently only supports `eventName` and most Page /
-     * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension`
-     * cannot be a dimension expression.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - */ - public com.google.analytics.data.v1alpha.Dimension.Builder getNextActionDimensionBuilder() { - - onChanged(); - return getNextActionDimensionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The dimension column added to the funnel visualization sub report response.
-     * The next action dimension returns the next dimension value of this
-     * dimension after the user has attained the `i`th funnel step.
-     * `nextActionDimension` currently only supports `eventName` and most Page /
-     * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension`
-     * cannot be a dimension expression.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - */ - public com.google.analytics.data.v1alpha.DimensionOrBuilder getNextActionDimensionOrBuilder() { - if (nextActionDimensionBuilder_ != null) { - return nextActionDimensionBuilder_.getMessageOrBuilder(); - } else { - return nextActionDimension_ == null - ? com.google.analytics.data.v1alpha.Dimension.getDefaultInstance() - : nextActionDimension_; - } - } - /** - * - * - *
-     * The dimension column added to the funnel visualization sub report response.
-     * The next action dimension returns the next dimension value of this
-     * dimension after the user has attained the `i`th funnel step.
-     * `nextActionDimension` currently only supports `eventName` and most Page /
-     * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension`
-     * cannot be a dimension expression.
-     * 
- * - * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Dimension, - com.google.analytics.data.v1alpha.Dimension.Builder, - com.google.analytics.data.v1alpha.DimensionOrBuilder> - getNextActionDimensionFieldBuilder() { - if (nextActionDimensionBuilder_ == null) { - nextActionDimensionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Dimension, - com.google.analytics.data.v1alpha.Dimension.Builder, - com.google.analytics.data.v1alpha.DimensionOrBuilder>( - getNextActionDimension(), getParentForChildren(), isClean()); - nextActionDimension_ = null; - } - return nextActionDimensionBuilder_; - } - - private long limit_; - /** - * - * - *
-     * The maximum number of distinct values of the breakdown dimension to return
-     * in the response. A `limit` of `5` is used if limit is not specified. Limit
-     * must exceed zero and cannot exceed 5.
-     * 
- * - * optional int64 limit = 2; - * - * @return Whether the limit field is set. - */ - @java.lang.Override - public boolean hasLimit() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * The maximum number of distinct values of the breakdown dimension to return
-     * in the response. A `limit` of `5` is used if limit is not specified. Limit
-     * must exceed zero and cannot exceed 5.
-     * 
- * - * optional int64 limit = 2; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - /** - * - * - *
-     * The maximum number of distinct values of the breakdown dimension to return
-     * in the response. A `limit` of `5` is used if limit is not specified. Limit
-     * must exceed zero and cannot exceed 5.
-     * 
- * - * optional int64 limit = 2; - * - * @param value The limit to set. - * @return This builder for chaining. - */ - public Builder setLimit(long value) { - bitField0_ |= 0x00000001; - limit_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The maximum number of distinct values of the breakdown dimension to return
-     * in the response. A `limit` of `5` is used if limit is not specified. Limit
-     * must exceed zero and cannot exceed 5.
-     * 
- * - * optional int64 limit = 2; - * - * @return This builder for chaining. - */ - public Builder clearLimit() { - bitField0_ = (bitField0_ & ~0x00000001); - limit_ = 0L; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.FunnelNextAction) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelNextAction) - private static final com.google.analytics.data.v1alpha.FunnelNextAction DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelNextAction(); - } - - public static com.google.analytics.data.v1alpha.FunnelNextAction getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FunnelNextAction parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelNextAction getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextActionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextActionOrBuilder.java deleted file mode 100644 index 404a3869..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelNextActionOrBuilder.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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FunnelNextActionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelNextAction) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The dimension column added to the funnel visualization sub report response.
-   * The next action dimension returns the next dimension value of this
-   * dimension after the user has attained the `i`th funnel step.
-   * `nextActionDimension` currently only supports `eventName` and most Page /
-   * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension`
-   * cannot be a dimension expression.
-   * 
- * - * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - * - * @return Whether the nextActionDimension field is set. - */ - boolean hasNextActionDimension(); - /** - * - * - *
-   * The dimension column added to the funnel visualization sub report response.
-   * The next action dimension returns the next dimension value of this
-   * dimension after the user has attained the `i`th funnel step.
-   * `nextActionDimension` currently only supports `eventName` and most Page /
-   * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension`
-   * cannot be a dimension expression.
-   * 
- * - * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - * - * @return The nextActionDimension. - */ - com.google.analytics.data.v1alpha.Dimension getNextActionDimension(); - /** - * - * - *
-   * The dimension column added to the funnel visualization sub report response.
-   * The next action dimension returns the next dimension value of this
-   * dimension after the user has attained the `i`th funnel step.
-   * `nextActionDimension` currently only supports `eventName` and most Page /
-   * Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension`
-   * cannot be a dimension expression.
-   * 
- * - * .google.analytics.data.v1alpha.Dimension next_action_dimension = 1; - */ - com.google.analytics.data.v1alpha.DimensionOrBuilder getNextActionDimensionOrBuilder(); - - /** - * - * - *
-   * The maximum number of distinct values of the breakdown dimension to return
-   * in the response. A `limit` of `5` is used if limit is not specified. Limit
-   * must exceed zero and cannot exceed 5.
-   * 
- * - * optional int64 limit = 2; - * - * @return Whether the limit field is set. - */ - boolean hasLimit(); - /** - * - * - *
-   * The maximum number of distinct values of the breakdown dimension to return
-   * in the response. A `limit` of `5` is used if limit is not specified. Limit
-   * must exceed zero and cannot exceed 5.
-   * 
- * - * optional int64 limit = 2; - * - * @return The limit. - */ - long getLimit(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelOrBuilder.java deleted file mode 100644 index 5cc16096..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelOrBuilder.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FunnelOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.Funnel) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * In an open funnel, users can enter the funnel in any step, and in a closed
-   * funnel, users must enter the funnel in the first step. Optional. If
-   * unspecified, a closed funnel is used.
-   * 
- * - * bool is_open_funnel = 1; - * - * @return The isOpenFunnel. - */ - boolean getIsOpenFunnel(); - - /** - * - * - *
-   * The sequential steps of this funnel.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - java.util.List getStepsList(); - /** - * - * - *
-   * The sequential steps of this funnel.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - com.google.analytics.data.v1alpha.FunnelStep getSteps(int index); - /** - * - * - *
-   * The sequential steps of this funnel.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - int getStepsCount(); - /** - * - * - *
-   * The sequential steps of this funnel.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - java.util.List - getStepsOrBuilderList(); - /** - * - * - *
-   * The sequential steps of this funnel.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelStep steps = 2; - */ - com.google.analytics.data.v1alpha.FunnelStepOrBuilder getStepsOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilter.java deleted file mode 100644 index 3308080e..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilter.java +++ /dev/null @@ -1,2383 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * An expression to filter parameter values in a funnel.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilter} - */ -public final class FunnelParameterFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelParameterFilter) - FunnelParameterFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use FunnelParameterFilter.newBuilder() to construct. - private FunnelParameterFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FunnelParameterFilter() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FunnelParameterFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelParameterFilter.class, - com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder.class); - } - - private int oneParameterCase_ = 0; - private java.lang.Object oneParameter_; - - public enum OneParameterCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - EVENT_PARAMETER_NAME(1), - ITEM_PARAMETER_NAME(2), - ONEPARAMETER_NOT_SET(0); - private final int value; - - private OneParameterCase(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 OneParameterCase valueOf(int value) { - return forNumber(value); - } - - public static OneParameterCase forNumber(int value) { - switch (value) { - case 1: - return EVENT_PARAMETER_NAME; - case 2: - return ITEM_PARAMETER_NAME; - case 0: - return ONEPARAMETER_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OneParameterCase getOneParameterCase() { - return OneParameterCase.forNumber(oneParameterCase_); - } - - 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(4), - IN_LIST_FILTER(5), - NUMERIC_FILTER(6), - BETWEEN_FILTER(7), - 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 4: - return STRING_FILTER; - case 5: - return IN_LIST_FILTER; - case 6: - return NUMERIC_FILTER; - case 7: - 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 EVENT_PARAMETER_NAME_FIELD_NUMBER = 1; - /** - * - * - *
-   * This filter will be evaluated on the specified event parameter. Event
-   * parameters are logged as parameters of the event. Event parameters
-   * include fields like "firebase_screen" & "currency".
-   * Event parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * 
- * - * string event_parameter_name = 1; - * - * @return Whether the eventParameterName field is set. - */ - public boolean hasEventParameterName() { - return oneParameterCase_ == 1; - } - /** - * - * - *
-   * This filter will be evaluated on the specified event parameter. Event
-   * parameters are logged as parameters of the event. Event parameters
-   * include fields like "firebase_screen" & "currency".
-   * Event parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * 
- * - * string event_parameter_name = 1; - * - * @return The eventParameterName. - */ - public java.lang.String getEventParameterName() { - java.lang.Object ref = ""; - if (oneParameterCase_ == 1) { - ref = oneParameter_; - } - if (ref instanceof java.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 (oneParameterCase_ == 1) { - oneParameter_ = s; - } - return s; - } - } - /** - * - * - *
-   * This filter will be evaluated on the specified event parameter. Event
-   * parameters are logged as parameters of the event. Event parameters
-   * include fields like "firebase_screen" & "currency".
-   * Event parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * 
- * - * string event_parameter_name = 1; - * - * @return The bytes for eventParameterName. - */ - public com.google.protobuf.ByteString getEventParameterNameBytes() { - java.lang.Object ref = ""; - if (oneParameterCase_ == 1) { - ref = oneParameter_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (oneParameterCase_ == 1) { - oneParameter_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ITEM_PARAMETER_NAME_FIELD_NUMBER = 2; - /** - * - * - *
-   * This filter will be evaluated on the specified item parameter. Item
-   * parameters are logged as parameters in the item array. Item parameters
-   * include fields like "item_name" & "item_category".
-   * Item parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * Item parameters are only available in ecommerce events. To learn more
-   * about ecommerce events, see the [Measure ecommerce]
-   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-   * guide.
-   * 
- * - * string item_parameter_name = 2; - * - * @return Whether the itemParameterName field is set. - */ - public boolean hasItemParameterName() { - return oneParameterCase_ == 2; - } - /** - * - * - *
-   * This filter will be evaluated on the specified item parameter. Item
-   * parameters are logged as parameters in the item array. Item parameters
-   * include fields like "item_name" & "item_category".
-   * Item parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * Item parameters are only available in ecommerce events. To learn more
-   * about ecommerce events, see the [Measure ecommerce]
-   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-   * guide.
-   * 
- * - * string item_parameter_name = 2; - * - * @return The itemParameterName. - */ - public java.lang.String getItemParameterName() { - java.lang.Object ref = ""; - if (oneParameterCase_ == 2) { - ref = oneParameter_; - } - if (ref instanceof java.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 (oneParameterCase_ == 2) { - oneParameter_ = s; - } - return s; - } - } - /** - * - * - *
-   * This filter will be evaluated on the specified item parameter. Item
-   * parameters are logged as parameters in the item array. Item parameters
-   * include fields like "item_name" & "item_category".
-   * Item parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * Item parameters are only available in ecommerce events. To learn more
-   * about ecommerce events, see the [Measure ecommerce]
-   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-   * guide.
-   * 
- * - * string item_parameter_name = 2; - * - * @return The bytes for itemParameterName. - */ - public com.google.protobuf.ByteString getItemParameterNameBytes() { - java.lang.Object ref = ""; - if (oneParameterCase_ == 2) { - ref = oneParameter_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (oneParameterCase_ == 2) { - oneParameter_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STRING_FILTER_FIELD_NUMBER = 4; - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 4; - } - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - - public static final int IN_LIST_FILTER_FIELD_NUMBER = 5; - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 5; - } - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - - public static final int NUMERIC_FILTER_FIELD_NUMBER = 6; - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 6; - } - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - - public static final int BETWEEN_FILTER_FIELD_NUMBER = 7; - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 7; - } - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { - if (oneFilterCase_ == 7) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { - if (oneFilterCase_ == 7) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.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 (oneParameterCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oneParameter_); - } - if (oneParameterCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, oneParameter_); - } - if (oneFilterCase_ == 4) { - output.writeMessage(4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - output.writeMessage(5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); - } - if (oneFilterCase_ == 6) { - output.writeMessage(6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); - } - if (oneFilterCase_ == 7) { - output.writeMessage(7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oneParameterCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, oneParameter_); - } - if (oneParameterCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, oneParameter_); - } - if (oneFilterCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); - } - if (oneFilterCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); - } - if (oneFilterCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.FunnelParameterFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.FunnelParameterFilter other = - (com.google.analytics.data.v1alpha.FunnelParameterFilter) obj; - - if (!getOneParameterCase().equals(other.getOneParameterCase())) return false; - switch (oneParameterCase_) { - case 1: - if (!getEventParameterName().equals(other.getEventParameterName())) return false; - break; - case 2: - if (!getItemParameterName().equals(other.getItemParameterName())) return false; - break; - case 0: - default: - } - if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; - switch (oneFilterCase_) { - case 4: - if (!getStringFilter().equals(other.getStringFilter())) return false; - break; - case 5: - if (!getInListFilter().equals(other.getInListFilter())) return false; - break; - case 6: - if (!getNumericFilter().equals(other.getNumericFilter())) return false; - break; - case 7: - if (!getBetweenFilter().equals(other.getBetweenFilter())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (oneParameterCase_) { - case 1: - hash = (37 * hash) + EVENT_PARAMETER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getEventParameterName().hashCode(); - break; - case 2: - hash = (37 * hash) + ITEM_PARAMETER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getItemParameterName().hashCode(); - break; - case 0: - default: - } - switch (oneFilterCase_) { - case 4: - hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getStringFilter().hashCode(); - break; - case 5: - hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getInListFilter().hashCode(); - break; - case 6: - hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getNumericFilter().hashCode(); - break; - case 7: - hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getBetweenFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilter 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.v1alpha.FunnelParameterFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilter parseFrom( - 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.v1alpha.FunnelParameterFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilter parseFrom( - java.io.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.v1alpha.FunnelParameterFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilter parseDelimitedFrom( - java.io.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.v1alpha.FunnelParameterFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.FunnelParameterFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 parameter values in a funnel.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelParameterFilter) - com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelParameterFilter.class, - com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.FunnelParameterFilter.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (stringFilterBuilder_ != null) { - stringFilterBuilder_.clear(); - } - if (inListFilterBuilder_ != null) { - inListFilterBuilder_.clear(); - } - if (numericFilterBuilder_ != null) { - numericFilterBuilder_.clear(); - } - if (betweenFilterBuilder_ != null) { - betweenFilterBuilder_.clear(); - } - oneParameterCase_ = 0; - oneParameter_ = null; - oneFilterCase_ = 0; - oneFilter_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilter build() { - com.google.analytics.data.v1alpha.FunnelParameterFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilter buildPartial() { - com.google.analytics.data.v1alpha.FunnelParameterFilter result = - new com.google.analytics.data.v1alpha.FunnelParameterFilter(this); - if (oneParameterCase_ == 1) { - result.oneParameter_ = oneParameter_; - } - if (oneParameterCase_ == 2) { - result.oneParameter_ = oneParameter_; - } - if (oneFilterCase_ == 4) { - if (stringFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = stringFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 5) { - if (inListFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = inListFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 6) { - if (numericFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = numericFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 7) { - if (betweenFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = betweenFilterBuilder_.build(); - } - } - result.oneParameterCase_ = oneParameterCase_; - 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.v1alpha.FunnelParameterFilter) { - return mergeFrom((com.google.analytics.data.v1alpha.FunnelParameterFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelParameterFilter other) { - if (other == com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance()) - return this; - switch (other.getOneParameterCase()) { - case EVENT_PARAMETER_NAME: - { - oneParameterCase_ = 1; - oneParameter_ = other.oneParameter_; - onChanged(); - break; - } - case ITEM_PARAMETER_NAME: - { - oneParameterCase_ = 2; - oneParameter_ = other.oneParameter_; - onChanged(); - break; - } - case ONEPARAMETER_NOT_SET: - { - break; - } - } - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - oneParameterCase_ = 1; - oneParameter_ = s; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - oneParameterCase_ = 2; - oneParameter_ = s; - break; - } // case 18 - case 34: - { - input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getNumericFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage(getBetweenFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 7; - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int oneParameterCase_ = 0; - private java.lang.Object oneParameter_; - - public OneParameterCase getOneParameterCase() { - return OneParameterCase.forNumber(oneParameterCase_); - } - - public Builder clearOneParameter() { - oneParameterCase_ = 0; - oneParameter_ = null; - onChanged(); - 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; - } - - /** - * - * - *
-     * This filter will be evaluated on the specified event parameter. Event
-     * parameters are logged as parameters of the event. Event parameters
-     * include fields like "firebase_screen" & "currency".
-     * Event parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * 
- * - * string event_parameter_name = 1; - * - * @return Whether the eventParameterName field is set. - */ - @java.lang.Override - public boolean hasEventParameterName() { - return oneParameterCase_ == 1; - } - /** - * - * - *
-     * This filter will be evaluated on the specified event parameter. Event
-     * parameters are logged as parameters of the event. Event parameters
-     * include fields like "firebase_screen" & "currency".
-     * Event parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * 
- * - * string event_parameter_name = 1; - * - * @return The eventParameterName. - */ - @java.lang.Override - public java.lang.String getEventParameterName() { - java.lang.Object ref = ""; - if (oneParameterCase_ == 1) { - ref = oneParameter_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oneParameterCase_ == 1) { - oneParameter_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This filter will be evaluated on the specified event parameter. Event
-     * parameters are logged as parameters of the event. Event parameters
-     * include fields like "firebase_screen" & "currency".
-     * Event parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * 
- * - * string event_parameter_name = 1; - * - * @return The bytes for eventParameterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEventParameterNameBytes() { - java.lang.Object ref = ""; - if (oneParameterCase_ == 1) { - ref = oneParameter_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (oneParameterCase_ == 1) { - oneParameter_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This filter will be evaluated on the specified event parameter. Event
-     * parameters are logged as parameters of the event. Event parameters
-     * include fields like "firebase_screen" & "currency".
-     * Event parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * 
- * - * string event_parameter_name = 1; - * - * @param value The eventParameterName to set. - * @return This builder for chaining. - */ - public Builder setEventParameterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - oneParameterCase_ = 1; - oneParameter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * This filter will be evaluated on the specified event parameter. Event
-     * parameters are logged as parameters of the event. Event parameters
-     * include fields like "firebase_screen" & "currency".
-     * Event parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * 
- * - * string event_parameter_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearEventParameterName() { - if (oneParameterCase_ == 1) { - oneParameterCase_ = 0; - oneParameter_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * This filter will be evaluated on the specified event parameter. Event
-     * parameters are logged as parameters of the event. Event parameters
-     * include fields like "firebase_screen" & "currency".
-     * Event parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * 
- * - * string event_parameter_name = 1; - * - * @param value The bytes for eventParameterName to set. - * @return This builder for chaining. - */ - public Builder setEventParameterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - oneParameterCase_ = 1; - oneParameter_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * This filter will be evaluated on the specified item parameter. Item
-     * parameters are logged as parameters in the item array. Item parameters
-     * include fields like "item_name" & "item_category".
-     * Item parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * Item parameters are only available in ecommerce events. To learn more
-     * about ecommerce events, see the [Measure ecommerce]
-     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-     * guide.
-     * 
- * - * string item_parameter_name = 2; - * - * @return Whether the itemParameterName field is set. - */ - @java.lang.Override - public boolean hasItemParameterName() { - return oneParameterCase_ == 2; - } - /** - * - * - *
-     * This filter will be evaluated on the specified item parameter. Item
-     * parameters are logged as parameters in the item array. Item parameters
-     * include fields like "item_name" & "item_category".
-     * Item parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * Item parameters are only available in ecommerce events. To learn more
-     * about ecommerce events, see the [Measure ecommerce]
-     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-     * guide.
-     * 
- * - * string item_parameter_name = 2; - * - * @return The itemParameterName. - */ - @java.lang.Override - public java.lang.String getItemParameterName() { - java.lang.Object ref = ""; - if (oneParameterCase_ == 2) { - ref = oneParameter_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oneParameterCase_ == 2) { - oneParameter_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This filter will be evaluated on the specified item parameter. Item
-     * parameters are logged as parameters in the item array. Item parameters
-     * include fields like "item_name" & "item_category".
-     * Item parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * Item parameters are only available in ecommerce events. To learn more
-     * about ecommerce events, see the [Measure ecommerce]
-     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-     * guide.
-     * 
- * - * string item_parameter_name = 2; - * - * @return The bytes for itemParameterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getItemParameterNameBytes() { - java.lang.Object ref = ""; - if (oneParameterCase_ == 2) { - ref = oneParameter_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (oneParameterCase_ == 2) { - oneParameter_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This filter will be evaluated on the specified item parameter. Item
-     * parameters are logged as parameters in the item array. Item parameters
-     * include fields like "item_name" & "item_category".
-     * Item parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * Item parameters are only available in ecommerce events. To learn more
-     * about ecommerce events, see the [Measure ecommerce]
-     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-     * guide.
-     * 
- * - * string item_parameter_name = 2; - * - * @param value The itemParameterName to set. - * @return This builder for chaining. - */ - public Builder setItemParameterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - oneParameterCase_ = 2; - oneParameter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * This filter will be evaluated on the specified item parameter. Item
-     * parameters are logged as parameters in the item array. Item parameters
-     * include fields like "item_name" & "item_category".
-     * Item parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * Item parameters are only available in ecommerce events. To learn more
-     * about ecommerce events, see the [Measure ecommerce]
-     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-     * guide.
-     * 
- * - * string item_parameter_name = 2; - * - * @return This builder for chaining. - */ - public Builder clearItemParameterName() { - if (oneParameterCase_ == 2) { - oneParameterCase_ = 0; - oneParameter_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * This filter will be evaluated on the specified item parameter. Item
-     * parameters are logged as parameters in the item array. Item parameters
-     * include fields like "item_name" & "item_category".
-     * Item parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * Item parameters are only available in ecommerce events. To learn more
-     * about ecommerce events, see the [Measure ecommerce]
-     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-     * guide.
-     * 
- * - * string item_parameter_name = 2; - * - * @param value The bytes for itemParameterName to set. - * @return This builder for chaining. - */ - public Builder setItemParameterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - oneParameterCase_ = 2; - oneParameter_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.StringFilter, - com.google.analytics.data.v1alpha.StringFilter.Builder, - com.google.analytics.data.v1alpha.StringFilterOrBuilder> - stringFilterBuilder_; - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 4; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 4) { - return stringFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public Builder setStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - stringFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public Builder setStringFilter( - com.google.analytics.data.v1alpha.StringFilter.Builder builderForValue) { - if (stringFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - stringFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public Builder mergeStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 4 - && oneFilter_ != com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.StringFilter.newBuilder( - (com.google.analytics.data.v1alpha.StringFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 4) { - stringFilterBuilder_.mergeFrom(value); - } else { - stringFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public Builder clearStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - stringFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public com.google.analytics.data.v1alpha.StringFilter.Builder getStringFilterBuilder() { - return getStringFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { - if ((oneFilterCase_ == 4) && (stringFilterBuilder_ != null)) { - return stringFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.StringFilter, - com.google.analytics.data.v1alpha.StringFilter.Builder, - com.google.analytics.data.v1alpha.StringFilterOrBuilder> - getStringFilterFieldBuilder() { - if (stringFilterBuilder_ == null) { - if (!(oneFilterCase_ == 4)) { - oneFilter_ = com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - stringFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.StringFilter, - com.google.analytics.data.v1alpha.StringFilter.Builder, - com.google.analytics.data.v1alpha.StringFilterOrBuilder>( - (com.google.analytics.data.v1alpha.StringFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 4; - onChanged(); - ; - return stringFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.InListFilter, - com.google.analytics.data.v1alpha.InListFilter.Builder, - com.google.analytics.data.v1alpha.InListFilterOrBuilder> - inListFilterBuilder_; - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 5; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 5) { - return inListFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public Builder setInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - inListFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public Builder setInListFilter( - com.google.analytics.data.v1alpha.InListFilter.Builder builderForValue) { - if (inListFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - inListFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public Builder mergeInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 5 - && oneFilter_ != com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.InListFilter.newBuilder( - (com.google.analytics.data.v1alpha.InListFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 5) { - inListFilterBuilder_.mergeFrom(value); - } else { - inListFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public Builder clearInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - inListFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public com.google.analytics.data.v1alpha.InListFilter.Builder getInListFilterBuilder() { - return getInListFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { - if ((oneFilterCase_ == 5) && (inListFilterBuilder_ != null)) { - return inListFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.InListFilter, - com.google.analytics.data.v1alpha.InListFilter.Builder, - com.google.analytics.data.v1alpha.InListFilterOrBuilder> - getInListFilterFieldBuilder() { - if (inListFilterBuilder_ == null) { - if (!(oneFilterCase_ == 5)) { - oneFilter_ = com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - inListFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.InListFilter, - com.google.analytics.data.v1alpha.InListFilter.Builder, - com.google.analytics.data.v1alpha.InListFilterOrBuilder>( - (com.google.analytics.data.v1alpha.InListFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 5; - onChanged(); - ; - return inListFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericFilter, - com.google.analytics.data.v1alpha.NumericFilter.Builder, - com.google.analytics.data.v1alpha.NumericFilterOrBuilder> - numericFilterBuilder_; - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 6; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 6) { - return numericFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public Builder setNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { - if (numericFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - numericFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 6; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public Builder setNumericFilter( - com.google.analytics.data.v1alpha.NumericFilter.Builder builderForValue) { - if (numericFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - numericFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 6; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public Builder mergeNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 6 - && oneFilter_ != com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.NumericFilter.newBuilder( - (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 6) { - numericFilterBuilder_.mergeFrom(value); - } else { - numericFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 6; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public Builder clearNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 6) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 6) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - numericFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public com.google.analytics.data.v1alpha.NumericFilter.Builder getNumericFilterBuilder() { - return getNumericFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { - if ((oneFilterCase_ == 6) && (numericFilterBuilder_ != null)) { - return numericFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericFilter, - com.google.analytics.data.v1alpha.NumericFilter.Builder, - com.google.analytics.data.v1alpha.NumericFilterOrBuilder> - getNumericFilterFieldBuilder() { - if (numericFilterBuilder_ == null) { - if (!(oneFilterCase_ == 6)) { - oneFilter_ = com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - numericFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericFilter, - com.google.analytics.data.v1alpha.NumericFilter.Builder, - com.google.analytics.data.v1alpha.NumericFilterOrBuilder>( - (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 6; - onChanged(); - ; - return numericFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.BetweenFilter, - com.google.analytics.data.v1alpha.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> - betweenFilterBuilder_; - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 7; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 7) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 7) { - return betweenFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public Builder setBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - betweenFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 7; - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public Builder setBetweenFilter( - com.google.analytics.data.v1alpha.BetweenFilter.Builder builderForValue) { - if (betweenFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - betweenFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 7; - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public Builder mergeBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 7 - && oneFilter_ != com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.BetweenFilter.newBuilder( - (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 7) { - betweenFilterBuilder_.mergeFrom(value); - } else { - betweenFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 7; - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public Builder clearBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 7) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 7) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - betweenFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public com.google.analytics.data.v1alpha.BetweenFilter.Builder getBetweenFilterBuilder() { - return getBetweenFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { - if ((oneFilterCase_ == 7) && (betweenFilterBuilder_ != null)) { - return betweenFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 7) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.BetweenFilter, - com.google.analytics.data.v1alpha.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> - getBetweenFilterFieldBuilder() { - if (betweenFilterBuilder_ == null) { - if (!(oneFilterCase_ == 7)) { - oneFilter_ = com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - betweenFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.BetweenFilter, - com.google.analytics.data.v1alpha.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>( - (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 7; - 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.v1alpha.FunnelParameterFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelParameterFilter) - private static final com.google.analytics.data.v1alpha.FunnelParameterFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelParameterFilter(); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FunnelParameterFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpression.java deleted file mode 100644 index 7a325168..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpression.java +++ /dev/null @@ -1,1822 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Expresses combinations of funnel filters on parameters.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilterExpression} - */ -public final class FunnelParameterFilterExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelParameterFilterExpression) - FunnelParameterFilterExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use FunnelParameterFilterExpression.newBuilder() to construct. - private FunnelParameterFilterExpression( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FunnelParameterFilterExpression() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FunnelParameterFilterExpression(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.class, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.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), - FUNNEL_PARAMETER_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 FUNNEL_PARAMETER_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 FunnelParameterFilterExpression in `andGroup` have an AND
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; - * - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return exprCase_ == 1; - } - /** - * - * - *
-   * The FunnelParameterFilterExpression in `andGroup` have an AND
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getAndGroup() { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .getDefaultInstance(); - } - /** - * - * - *
-   * The FunnelParameterFilterExpression in `andGroup` have an AND
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder - getAndGroupOrBuilder() { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .getDefaultInstance(); - } - - public static final int OR_GROUP_FIELD_NUMBER = 2; - /** - * - * - *
-   * The FunnelParameterFilterExpression in `orGroup` have an OR
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; - * - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return exprCase_ == 2; - } - /** - * - * - *
-   * The FunnelParameterFilterExpression in `orGroup` have an OR
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getOrGroup() { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .getDefaultInstance(); - } - /** - * - * - *
-   * The FunnelParameterFilterExpression in `orGroup` have an OR
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder - getOrGroupOrBuilder() { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .getDefaultInstance(); - } - - public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; - /** - * - * - *
-   * The FunnelParameterFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; - * - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 3; - } - /** - * - * - *
-   * The FunnelParameterFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; - * - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getNotExpression() { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance(); - } - /** - * - * - *
-   * The FunnelParameterFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder - getNotExpressionOrBuilder() { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance(); - } - - public static final int FUNNEL_PARAMETER_FILTER_FIELD_NUMBER = 4; - /** - * - * - *
-   * A primitive funnel parameter filter.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - * - * @return Whether the funnelParameterFilter field is set. - */ - @java.lang.Override - public boolean hasFunnelParameterFilter() { - return exprCase_ == 4; - } - /** - * - * - *
-   * A primitive funnel parameter filter.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - * - * @return The funnelParameterFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilter getFunnelParameterFilter() { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_; - } - return com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A primitive funnel parameter filter.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder - getFunnelParameterFilterOrBuilder() { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_; - } - return com.google.analytics.data.v1alpha.FunnelParameterFilter.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.v1alpha.FunnelParameterFilterExpressionList) expr_); - } - if (exprCase_ == 2) { - output.writeMessage( - 2, (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_); - } - if (exprCase_ == 3) { - output.writeMessage( - 3, (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_); - } - if (exprCase_ == 4) { - output.writeMessage(4, (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_); - } - getUnknownFields().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.v1alpha.FunnelParameterFilterExpressionList) expr_); - } - if (exprCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_); - } - if (exprCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_); - } - if (exprCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.FunnelParameterFilterExpression)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression other = - (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) 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 (!getFunnelParameterFilter().equals(other.getFunnelParameterFilter())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (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) + FUNNEL_PARAMETER_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getFunnelParameterFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression 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.v1alpha.FunnelParameterFilterExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression parseFrom( - 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.v1alpha.FunnelParameterFilterExpression parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression parseFrom( - java.io.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.v1alpha.FunnelParameterFilterExpression - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - parseDelimitedFrom( - java.io.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.v1alpha.FunnelParameterFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.FunnelParameterFilterExpression prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Expresses combinations of funnel filters on parameters.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilterExpression} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelParameterFilterExpression) - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.class, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder.class); - } - - // Construct using - // com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (andGroupBuilder_ != null) { - andGroupBuilder_.clear(); - } - if (orGroupBuilder_ != null) { - orGroupBuilder_.clear(); - } - if (notExpressionBuilder_ != null) { - notExpressionBuilder_.clear(); - } - if (funnelParameterFilterBuilder_ != null) { - funnelParameterFilterBuilder_.clear(); - } - exprCase_ = 0; - expr_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression build() { - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression buildPartial() { - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression result = - new com.google.analytics.data.v1alpha.FunnelParameterFilterExpression(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 (funnelParameterFilterBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = funnelParameterFilterBuilder_.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.v1alpha.FunnelParameterFilterExpression) { - return mergeFrom((com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression other) { - if (other - == com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.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 FUNNEL_PARAMETER_FILTER: - { - mergeFunnelParameterFilter(other.getFunnelParameterFilter()); - break; - } - case EXPR_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - getFunnelParameterFilterFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 4; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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.v1alpha.FunnelParameterFilterExpressionList, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder> - andGroupBuilder_; - /** - * - * - *
-     * The FunnelParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; - * - * - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return exprCase_ == 1; - } - /** - * - * - *
-     * The FunnelParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; - * - * - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getAndGroup() { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .getDefaultInstance(); - } else { - if (exprCase_ == 1) { - return andGroupBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The FunnelParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; - * - */ - public Builder setAndGroup( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - andGroupBuilder_.setMessage(value); - } - exprCase_ = 1; - return this; - } - /** - * - * - *
-     * The FunnelParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; - * - */ - public Builder setAndGroup( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder - builderForValue) { - if (andGroupBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - andGroupBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 1; - return this; - } - /** - * - * - *
-     * The FunnelParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; - * - */ - public Builder mergeAndGroup( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1 - && expr_ - != com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.newBuilder( - (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 1) { - andGroupBuilder_.mergeFrom(value); - } else { - andGroupBuilder_.setMessage(value); - } - } - exprCase_ = 1; - return this; - } - /** - * - * - *
-     * The FunnelParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList 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 FunnelParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; - * - */ - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder - getAndGroupBuilder() { - return getAndGroupFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The FunnelParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder - getAndGroupOrBuilder() { - if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { - return andGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The FunnelParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder> - getAndGroupFieldBuilder() { - if (andGroupBuilder_ == null) { - if (!(exprCase_ == 1)) { - expr_ = - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .getDefaultInstance(); - } - andGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder>( - (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 1; - onChanged(); - ; - return andGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder> - orGroupBuilder_; - /** - * - * - *
-     * The FunnelParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; - * - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return exprCase_ == 2; - } - /** - * - * - *
-     * The FunnelParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getOrGroup() { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .getDefaultInstance(); - } else { - if (exprCase_ == 2) { - return orGroupBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The FunnelParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; - */ - public Builder setOrGroup( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - orGroupBuilder_.setMessage(value); - } - exprCase_ = 2; - return this; - } - /** - * - * - *
-     * The FunnelParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; - */ - public Builder setOrGroup( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder - builderForValue) { - if (orGroupBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - orGroupBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 2; - return this; - } - /** - * - * - *
-     * The FunnelParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; - */ - public Builder mergeOrGroup( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2 - && expr_ - != com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.newBuilder( - (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 2) { - orGroupBuilder_.mergeFrom(value); - } else { - orGroupBuilder_.setMessage(value); - } - } - exprCase_ = 2; - return this; - } - /** - * - * - *
-     * The FunnelParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList 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 FunnelParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; - */ - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder - getOrGroupBuilder() { - return getOrGroupFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The FunnelParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder - getOrGroupOrBuilder() { - if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { - return orGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The FunnelParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder> - getOrGroupFieldBuilder() { - if (orGroupBuilder_ == null) { - if (!(exprCase_ == 2)) { - expr_ = - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .getDefaultInstance(); - } - orGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder>( - (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 2; - onChanged(); - ; - return orGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> - notExpressionBuilder_; - /** - * - * - *
-     * The FunnelParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; - * - * - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 3; - } - /** - * - * - *
-     * The FunnelParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; - * - * - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getNotExpression() { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - .getDefaultInstance(); - } else { - if (exprCase_ == 3) { - return notExpressionBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The FunnelParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; - * - */ - public Builder setNotExpression( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - notExpressionBuilder_.setMessage(value); - } - exprCase_ = 3; - return this; - } - /** - * - * - *
-     * The FunnelParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; - * - */ - public Builder setNotExpression( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder builderForValue) { - if (notExpressionBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - notExpressionBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 3; - return this; - } - /** - * - * - *
-     * The FunnelParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; - * - */ - public Builder mergeNotExpression( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3 - && expr_ - != com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - .getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.newBuilder( - (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 3) { - notExpressionBuilder_.mergeFrom(value); - } else { - notExpressionBuilder_.setMessage(value); - } - } - exprCase_ = 3; - return this; - } - /** - * - * - *
-     * The FunnelParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpression 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 FunnelParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; - * - */ - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder - getNotExpressionBuilder() { - return getNotExpressionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The FunnelParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder - getNotExpressionOrBuilder() { - if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { - return notExpressionBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The FunnelParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> - getNotExpressionFieldBuilder() { - if (notExpressionBuilder_ == null) { - if (!(exprCase_ == 3)) { - expr_ = - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - .getDefaultInstance(); - } - notExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder>( - (com.google.analytics.data.v1alpha.FunnelParameterFilterExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 3; - onChanged(); - ; - return notExpressionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilter, - com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder> - funnelParameterFilterBuilder_; - /** - * - * - *
-     * A primitive funnel parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - * - * - * @return Whether the funnelParameterFilter field is set. - */ - @java.lang.Override - public boolean hasFunnelParameterFilter() { - return exprCase_ == 4; - } - /** - * - * - *
-     * A primitive funnel parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - * - * - * @return The funnelParameterFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilter getFunnelParameterFilter() { - if (funnelParameterFilterBuilder_ == null) { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_; - } - return com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance(); - } else { - if (exprCase_ == 4) { - return funnelParameterFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A primitive funnel parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - * - */ - public Builder setFunnelParameterFilter( - com.google.analytics.data.v1alpha.FunnelParameterFilter value) { - if (funnelParameterFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - funnelParameterFilterBuilder_.setMessage(value); - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A primitive funnel parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - * - */ - public Builder setFunnelParameterFilter( - com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder builderForValue) { - if (funnelParameterFilterBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - funnelParameterFilterBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A primitive funnel parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - * - */ - public Builder mergeFunnelParameterFilter( - com.google.analytics.data.v1alpha.FunnelParameterFilter value) { - if (funnelParameterFilterBuilder_ == null) { - if (exprCase_ == 4 - && expr_ - != com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.FunnelParameterFilter.newBuilder( - (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 4) { - funnelParameterFilterBuilder_.mergeFrom(value); - } else { - funnelParameterFilterBuilder_.setMessage(value); - } - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A primitive funnel parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - * - */ - public Builder clearFunnelParameterFilter() { - if (funnelParameterFilterBuilder_ == null) { - if (exprCase_ == 4) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 4) { - exprCase_ = 0; - expr_ = null; - } - funnelParameterFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A primitive funnel parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - * - */ - public com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder - getFunnelParameterFilterBuilder() { - return getFunnelParameterFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A primitive funnel parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder - getFunnelParameterFilterOrBuilder() { - if ((exprCase_ == 4) && (funnelParameterFilterBuilder_ != null)) { - return funnelParameterFilterBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_; - } - return com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A primitive funnel parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilter, - com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder> - getFunnelParameterFilterFieldBuilder() { - if (funnelParameterFilterBuilder_ == null) { - if (!(exprCase_ == 4)) { - expr_ = com.google.analytics.data.v1alpha.FunnelParameterFilter.getDefaultInstance(); - } - funnelParameterFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilter, - com.google.analytics.data.v1alpha.FunnelParameterFilter.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder>( - (com.google.analytics.data.v1alpha.FunnelParameterFilter) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 4; - onChanged(); - ; - return funnelParameterFilterBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.FunnelParameterFilterExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelParameterFilterExpression) - private static final com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelParameterFilterExpression(); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FunnelParameterFilterExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionList.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionList.java deleted file mode 100644 index 70a53aa9..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionList.java +++ /dev/null @@ -1,1008 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * A list of funnel parameter filter expressions.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilterExpressionList} - */ -public final class FunnelParameterFilterExpressionList - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) - FunnelParameterFilterExpressionListOrBuilder { - private static final long serialVersionUID = 0L; - // Use FunnelParameterFilterExpressionList.newBuilder() to construct. - private FunnelParameterFilterExpressionList( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FunnelParameterFilterExpressionList() { - expressions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FunnelParameterFilterExpressionList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.class, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder.class); - } - - public static final int EXPRESSIONS_FIELD_NUMBER = 1; - private java.util.List - expressions_; - /** - * - * - *
-   * The list of funnel parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - @java.lang.Override - public java.util.List - getExpressionsList() { - return expressions_; - } - /** - * - * - *
-   * The list of funnel parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> - getExpressionsOrBuilderList() { - return expressions_; - } - /** - * - * - *
-   * The list of funnel parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - @java.lang.Override - public int getExpressionsCount() { - return expressions_.size(); - } - /** - * - * - *
-   * The list of funnel parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getExpressions( - int index) { - return expressions_.get(index); - } - /** - * - * - *
-   * The list of funnel parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder - 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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList other = - (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) obj; - - if (!getExpressionsList().equals(other.getExpressionsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getExpressionsCount() > 0) { - hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; - hash = (53 * hash) + getExpressionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList 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.v1alpha.FunnelParameterFilterExpressionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList parseFrom( - 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.v1alpha.FunnelParameterFilterExpressionList parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList parseFrom( - java.io.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.v1alpha.FunnelParameterFilterExpressionList - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - parseDelimitedFrom( - java.io.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.v1alpha.FunnelParameterFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.FunnelParameterFilterExpressionList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 funnel parameter filter expressions.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelParameterFilterExpressionList} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.class, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.Builder.class); - } - - // Construct using - // com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (expressionsBuilder_ == null) { - expressions_ = java.util.Collections.emptyList(); - } else { - expressions_ = null; - expressionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList build() { - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList buildPartial() { - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList result = - new com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList(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.v1alpha.FunnelParameterFilterExpressionList) { - return mergeFrom( - (com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList other) { - if (other - == com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - .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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression m = - input.readMessage( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.parser(), - extensionRegistry); - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(m); - } else { - expressionsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List - expressions_ = java.util.Collections.emptyList(); - - private void ensureExpressionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - expressions_ = - new java.util.ArrayList< - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression>(expressions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> - expressionsBuilder_; - - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public java.util.List - getExpressionsList() { - if (expressionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(expressions_); - } else { - return expressionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public int getExpressionsCount() { - if (expressionsBuilder_ == null) { - return expressions_.size(); - } else { - return expressionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getExpressions( - int index) { - if (expressionsBuilder_ == null) { - return expressions_.get(index); - } else { - return expressionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public Builder setExpressions( - int index, com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.set(index, value); - onChanged(); - } else { - expressionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public Builder setExpressions( - int index, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.set(index, builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public Builder addExpressions( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.add(value); - onChanged(); - } else { - expressionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public Builder addExpressions( - int index, com.google.analytics.data.v1alpha.FunnelParameterFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.add(index, value); - onChanged(); - } else { - expressionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public Builder addExpressions( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public Builder addExpressions( - int index, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(index, builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public Builder addAllExpressions( - java.lang.Iterable< - ? extends com.google.analytics.data.v1alpha.FunnelParameterFilterExpression> - values) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expressions_); - onChanged(); - } else { - expressionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public Builder clearExpressions() { - if (expressionsBuilder_ == null) { - expressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - expressionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public Builder removeExpressions(int index) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.remove(index); - onChanged(); - } else { - expressionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder - getExpressionsBuilder(int index) { - return getExpressionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder - getExpressionsOrBuilder(int index) { - if (expressionsBuilder_ == null) { - return expressions_.get(index); - } else { - return expressionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public java.util.List< - ? extends com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> - getExpressionsOrBuilderList() { - if (expressionsBuilder_ != null) { - return expressionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(expressions_); - } - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder - addExpressionsBuilder() { - return getExpressionsFieldBuilder() - .addBuilder( - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - .getDefaultInstance()); - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder - addExpressionsBuilder(int index) { - return getExpressionsFieldBuilder() - .addBuilder( - index, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression - .getDefaultInstance()); - } - /** - * - * - *
-     * The list of funnel parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - public java.util.List - getExpressionsBuilderList() { - return getExpressionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> - getExpressionsFieldBuilder() { - if (expressionsBuilder_ == null) { - expressionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder>( - 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.v1alpha.FunnelParameterFilterExpressionList) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) - private static final com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList(); - } - - public static com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FunnelParameterFilterExpressionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionListOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionListOrBuilder.java deleted file mode 100644 index 483f0c53..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionListOrBuilder.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FunnelParameterFilterExpressionListOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelParameterFilterExpressionList) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of funnel parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - java.util.List - getExpressionsList(); - /** - * - * - *
-   * The list of funnel parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getExpressions(int index); - /** - * - * - *
-   * The list of funnel parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - int getExpressionsCount(); - /** - * - * - *
-   * The list of funnel parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - java.util.List< - ? extends com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder> - getExpressionsOrBuilderList(); - /** - * - * - *
-   * The list of funnel parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.FunnelParameterFilterExpression expressions = 1; - * - */ - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder - getExpressionsOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionOrBuilder.java deleted file mode 100644 index a60e54a6..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterExpressionOrBuilder.java +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FunnelParameterFilterExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelParameterFilterExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The FunnelParameterFilterExpression in `andGroup` have an AND
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; - * - * @return Whether the andGroup field is set. - */ - boolean hasAndGroup(); - /** - * - * - *
-   * The FunnelParameterFilterExpression in `andGroup` have an AND
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getAndGroup(); - /** - * - * - *
-   * The FunnelParameterFilterExpression in `andGroup` have an AND
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList and_group = 1; - */ - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder - getAndGroupOrBuilder(); - - /** - * - * - *
-   * The FunnelParameterFilterExpression in `orGroup` have an OR
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; - * - * @return Whether the orGroup field is set. - */ - boolean hasOrGroup(); - /** - * - * - *
-   * The FunnelParameterFilterExpression in `orGroup` have an OR
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionList getOrGroup(); - /** - * - * - *
-   * The FunnelParameterFilterExpression in `orGroup` have an OR
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpressionList or_group = 2; - */ - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionListOrBuilder - getOrGroupOrBuilder(); - - /** - * - * - *
-   * The FunnelParameterFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; - * - * @return Whether the notExpression field is set. - */ - boolean hasNotExpression(); - /** - * - * - *
-   * The FunnelParameterFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; - * - * @return The notExpression. - */ - com.google.analytics.data.v1alpha.FunnelParameterFilterExpression getNotExpression(); - /** - * - * - *
-   * The FunnelParameterFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilterExpression not_expression = 3; - */ - com.google.analytics.data.v1alpha.FunnelParameterFilterExpressionOrBuilder - getNotExpressionOrBuilder(); - - /** - * - * - *
-   * A primitive funnel parameter filter.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - * - * @return Whether the funnelParameterFilter field is set. - */ - boolean hasFunnelParameterFilter(); - /** - * - * - *
-   * A primitive funnel parameter filter.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - * - * @return The funnelParameterFilter. - */ - com.google.analytics.data.v1alpha.FunnelParameterFilter getFunnelParameterFilter(); - /** - * - * - *
-   * A primitive funnel parameter filter.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelParameterFilter funnel_parameter_filter = 4; - */ - com.google.analytics.data.v1alpha.FunnelParameterFilterOrBuilder - getFunnelParameterFilterOrBuilder(); - - public com.google.analytics.data.v1alpha.FunnelParameterFilterExpression.ExprCase getExprCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterOrBuilder.java deleted file mode 100644 index 9b09f780..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelParameterFilterOrBuilder.java +++ /dev/null @@ -1,286 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FunnelParameterFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelParameterFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * This filter will be evaluated on the specified event parameter. Event
-   * parameters are logged as parameters of the event. Event parameters
-   * include fields like "firebase_screen" & "currency".
-   * Event parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * 
- * - * string event_parameter_name = 1; - * - * @return Whether the eventParameterName field is set. - */ - boolean hasEventParameterName(); - /** - * - * - *
-   * This filter will be evaluated on the specified event parameter. Event
-   * parameters are logged as parameters of the event. Event parameters
-   * include fields like "firebase_screen" & "currency".
-   * Event parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * 
- * - * string event_parameter_name = 1; - * - * @return The eventParameterName. - */ - java.lang.String getEventParameterName(); - /** - * - * - *
-   * This filter will be evaluated on the specified event parameter. Event
-   * parameters are logged as parameters of the event. Event parameters
-   * include fields like "firebase_screen" & "currency".
-   * Event parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * 
- * - * string event_parameter_name = 1; - * - * @return The bytes for eventParameterName. - */ - com.google.protobuf.ByteString getEventParameterNameBytes(); - - /** - * - * - *
-   * This filter will be evaluated on the specified item parameter. Item
-   * parameters are logged as parameters in the item array. Item parameters
-   * include fields like "item_name" & "item_category".
-   * Item parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * Item parameters are only available in ecommerce events. To learn more
-   * about ecommerce events, see the [Measure ecommerce]
-   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-   * guide.
-   * 
- * - * string item_parameter_name = 2; - * - * @return Whether the itemParameterName field is set. - */ - boolean hasItemParameterName(); - /** - * - * - *
-   * This filter will be evaluated on the specified item parameter. Item
-   * parameters are logged as parameters in the item array. Item parameters
-   * include fields like "item_name" & "item_category".
-   * Item parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * Item parameters are only available in ecommerce events. To learn more
-   * about ecommerce events, see the [Measure ecommerce]
-   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-   * guide.
-   * 
- * - * string item_parameter_name = 2; - * - * @return The itemParameterName. - */ - java.lang.String getItemParameterName(); - /** - * - * - *
-   * This filter will be evaluated on the specified item parameter. Item
-   * parameters are logged as parameters in the item array. Item parameters
-   * include fields like "item_name" & "item_category".
-   * Item parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * Item parameters are only available in ecommerce events. To learn more
-   * about ecommerce events, see the [Measure ecommerce]
-   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-   * guide.
-   * 
- * - * string item_parameter_name = 2; - * - * @return The bytes for itemParameterName. - */ - com.google.protobuf.ByteString getItemParameterNameBytes(); - - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return Whether the stringFilter field is set. - */ - boolean hasStringFilter(); - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return The stringFilter. - */ - com.google.analytics.data.v1alpha.StringFilter getStringFilter(); - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder(); - - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return Whether the inListFilter field is set. - */ - boolean hasInListFilter(); - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return The inListFilter. - */ - com.google.analytics.data.v1alpha.InListFilter getInListFilter(); - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder(); - - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return Whether the numericFilter field is set. - */ - boolean hasNumericFilter(); - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return The numericFilter. - */ - com.google.analytics.data.v1alpha.NumericFilter getNumericFilter(); - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder(); - - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return Whether the betweenFilter field is set. - */ - boolean hasBetweenFilter(); - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return The betweenFilter. - */ - com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter(); - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder(); - - public com.google.analytics.data.v1alpha.FunnelParameterFilter.OneParameterCase - getOneParameterCase(); - - public com.google.analytics.data.v1alpha.FunnelParameterFilter.OneFilterCase getOneFilterCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java deleted file mode 100644 index dafde6a2..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadata.java +++ /dev/null @@ -1,1085 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The funnel report's response metadata carries additional information about
- * the funnel report.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelResponseMetadata} - */ -public final class FunnelResponseMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelResponseMetadata) - FunnelResponseMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use FunnelResponseMetadata.newBuilder() to construct. - private FunnelResponseMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FunnelResponseMetadata() { - samplingMetadatas_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FunnelResponseMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelResponseMetadata.class, - com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder.class); - } - - public static final int SAMPLING_METADATAS_FIELD_NUMBER = 1; - private java.util.List samplingMetadatas_; - /** - * - * - *
-   * If funnel report results are
-   * [sampled](https://support.google.com/analytics/answer/2637192), this
-   * describes what percentage of events were used in this funnel report. One
-   * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in order that date ranges
-   * were specified in the request.
-   * However if the results are not sampled, this field will not be defined.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - @java.lang.Override - public java.util.List - getSamplingMetadatasList() { - return samplingMetadatas_; - } - /** - * - * - *
-   * If funnel report results are
-   * [sampled](https://support.google.com/analytics/answer/2637192), this
-   * describes what percentage of events were used in this funnel report. One
-   * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in order that date ranges
-   * were specified in the request.
-   * However if the results are not sampled, this field will not be defined.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - @java.lang.Override - public java.util.List - getSamplingMetadatasOrBuilderList() { - return samplingMetadatas_; - } - /** - * - * - *
-   * If funnel report results are
-   * [sampled](https://support.google.com/analytics/answer/2637192), this
-   * describes what percentage of events were used in this funnel report. One
-   * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in order that date ranges
-   * were specified in the request.
-   * However if the results are not sampled, this field will not be defined.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - @java.lang.Override - public int getSamplingMetadatasCount() { - return samplingMetadatas_.size(); - } - /** - * - * - *
-   * If funnel report results are
-   * [sampled](https://support.google.com/analytics/answer/2637192), this
-   * describes what percentage of events were used in this funnel report. One
-   * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in order that date ranges
-   * were specified in the request.
-   * However if the results are not sampled, this field will not be defined.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(int index) { - return samplingMetadatas_.get(index); - } - /** - * - * - *
-   * If funnel report results are
-   * [sampled](https://support.google.com/analytics/answer/2637192), this
-   * describes what percentage of events were used in this funnel report. One
-   * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in order that date ranges
-   * were specified in the request.
-   * However if the results are not sampled, this field will not be defined.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder getSamplingMetadatasOrBuilder( - int index) { - return samplingMetadatas_.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 < samplingMetadatas_.size(); i++) { - output.writeMessage(1, samplingMetadatas_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < samplingMetadatas_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, samplingMetadatas_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.FunnelResponseMetadata)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.FunnelResponseMetadata other = - (com.google.analytics.data.v1alpha.FunnelResponseMetadata) obj; - - if (!getSamplingMetadatasList().equals(other.getSamplingMetadatasList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getSamplingMetadatasCount() > 0) { - hash = (37 * hash) + SAMPLING_METADATAS_FIELD_NUMBER; - hash = (53 * hash) + getSamplingMetadatasList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.FunnelResponseMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelResponseMetadata 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.v1alpha.FunnelResponseMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelResponseMetadata parseFrom( - 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.v1alpha.FunnelResponseMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelResponseMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.FunnelResponseMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelResponseMetadata parseFrom( - java.io.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.v1alpha.FunnelResponseMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelResponseMetadata parseDelimitedFrom( - java.io.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.v1alpha.FunnelResponseMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelResponseMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.FunnelResponseMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 funnel report's response metadata carries additional information about
-   * the funnel report.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelResponseMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelResponseMetadata) - com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelResponseMetadata.class, - com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.FunnelResponseMetadata.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (samplingMetadatasBuilder_ == null) { - samplingMetadatas_ = java.util.Collections.emptyList(); - } else { - samplingMetadatas_ = null; - samplingMetadatasBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelResponseMetadata getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FunnelResponseMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelResponseMetadata build() { - com.google.analytics.data.v1alpha.FunnelResponseMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelResponseMetadata buildPartial() { - com.google.analytics.data.v1alpha.FunnelResponseMetadata result = - new com.google.analytics.data.v1alpha.FunnelResponseMetadata(this); - int from_bitField0_ = bitField0_; - if (samplingMetadatasBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - samplingMetadatas_ = java.util.Collections.unmodifiableList(samplingMetadatas_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.samplingMetadatas_ = samplingMetadatas_; - } else { - result.samplingMetadatas_ = samplingMetadatasBuilder_.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.v1alpha.FunnelResponseMetadata) { - return mergeFrom((com.google.analytics.data.v1alpha.FunnelResponseMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelResponseMetadata other) { - if (other == com.google.analytics.data.v1alpha.FunnelResponseMetadata.getDefaultInstance()) - return this; - if (samplingMetadatasBuilder_ == null) { - if (!other.samplingMetadatas_.isEmpty()) { - if (samplingMetadatas_.isEmpty()) { - samplingMetadatas_ = other.samplingMetadatas_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureSamplingMetadatasIsMutable(); - samplingMetadatas_.addAll(other.samplingMetadatas_); - } - onChanged(); - } - } else { - if (!other.samplingMetadatas_.isEmpty()) { - if (samplingMetadatasBuilder_.isEmpty()) { - samplingMetadatasBuilder_.dispose(); - samplingMetadatasBuilder_ = null; - samplingMetadatas_ = other.samplingMetadatas_; - bitField0_ = (bitField0_ & ~0x00000001); - samplingMetadatasBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSamplingMetadatasFieldBuilder() - : null; - } else { - samplingMetadatasBuilder_.addAllMessages(other.samplingMetadatas_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1alpha.SamplingMetadata m = - input.readMessage( - com.google.analytics.data.v1alpha.SamplingMetadata.parser(), - extensionRegistry); - if (samplingMetadatasBuilder_ == null) { - ensureSamplingMetadatasIsMutable(); - samplingMetadatas_.add(m); - } else { - samplingMetadatasBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List samplingMetadatas_ = - java.util.Collections.emptyList(); - - private void ensureSamplingMetadatasIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - samplingMetadatas_ = - new java.util.ArrayList( - samplingMetadatas_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.SamplingMetadata, - com.google.analytics.data.v1alpha.SamplingMetadata.Builder, - com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder> - samplingMetadatasBuilder_; - - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public java.util.List - getSamplingMetadatasList() { - if (samplingMetadatasBuilder_ == null) { - return java.util.Collections.unmodifiableList(samplingMetadatas_); - } else { - return samplingMetadatasBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public int getSamplingMetadatasCount() { - if (samplingMetadatasBuilder_ == null) { - return samplingMetadatas_.size(); - } else { - return samplingMetadatasBuilder_.getCount(); - } - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(int index) { - if (samplingMetadatasBuilder_ == null) { - return samplingMetadatas_.get(index); - } else { - return samplingMetadatasBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public Builder setSamplingMetadatas( - int index, com.google.analytics.data.v1alpha.SamplingMetadata value) { - if (samplingMetadatasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSamplingMetadatasIsMutable(); - samplingMetadatas_.set(index, value); - onChanged(); - } else { - samplingMetadatasBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public Builder setSamplingMetadatas( - int index, com.google.analytics.data.v1alpha.SamplingMetadata.Builder builderForValue) { - if (samplingMetadatasBuilder_ == null) { - ensureSamplingMetadatasIsMutable(); - samplingMetadatas_.set(index, builderForValue.build()); - onChanged(); - } else { - samplingMetadatasBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public Builder addSamplingMetadatas(com.google.analytics.data.v1alpha.SamplingMetadata value) { - if (samplingMetadatasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSamplingMetadatasIsMutable(); - samplingMetadatas_.add(value); - onChanged(); - } else { - samplingMetadatasBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public Builder addSamplingMetadatas( - int index, com.google.analytics.data.v1alpha.SamplingMetadata value) { - if (samplingMetadatasBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSamplingMetadatasIsMutable(); - samplingMetadatas_.add(index, value); - onChanged(); - } else { - samplingMetadatasBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public Builder addSamplingMetadatas( - com.google.analytics.data.v1alpha.SamplingMetadata.Builder builderForValue) { - if (samplingMetadatasBuilder_ == null) { - ensureSamplingMetadatasIsMutable(); - samplingMetadatas_.add(builderForValue.build()); - onChanged(); - } else { - samplingMetadatasBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public Builder addSamplingMetadatas( - int index, com.google.analytics.data.v1alpha.SamplingMetadata.Builder builderForValue) { - if (samplingMetadatasBuilder_ == null) { - ensureSamplingMetadatasIsMutable(); - samplingMetadatas_.add(index, builderForValue.build()); - onChanged(); - } else { - samplingMetadatasBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public Builder addAllSamplingMetadatas( - java.lang.Iterable values) { - if (samplingMetadatasBuilder_ == null) { - ensureSamplingMetadatasIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, samplingMetadatas_); - onChanged(); - } else { - samplingMetadatasBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public Builder clearSamplingMetadatas() { - if (samplingMetadatasBuilder_ == null) { - samplingMetadatas_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - samplingMetadatasBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public Builder removeSamplingMetadatas(int index) { - if (samplingMetadatasBuilder_ == null) { - ensureSamplingMetadatasIsMutable(); - samplingMetadatas_.remove(index); - onChanged(); - } else { - samplingMetadatasBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public com.google.analytics.data.v1alpha.SamplingMetadata.Builder getSamplingMetadatasBuilder( - int index) { - return getSamplingMetadatasFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder - getSamplingMetadatasOrBuilder(int index) { - if (samplingMetadatasBuilder_ == null) { - return samplingMetadatas_.get(index); - } else { - return samplingMetadatasBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public java.util.List - getSamplingMetadatasOrBuilderList() { - if (samplingMetadatasBuilder_ != null) { - return samplingMetadatasBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(samplingMetadatas_); - } - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public com.google.analytics.data.v1alpha.SamplingMetadata.Builder - addSamplingMetadatasBuilder() { - return getSamplingMetadatasFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.SamplingMetadata.getDefaultInstance()); - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public com.google.analytics.data.v1alpha.SamplingMetadata.Builder addSamplingMetadatasBuilder( - int index) { - return getSamplingMetadatasFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1alpha.SamplingMetadata.getDefaultInstance()); - } - /** - * - * - *
-     * If funnel report results are
-     * [sampled](https://support.google.com/analytics/answer/2637192), this
-     * describes what percentage of events were used in this funnel report. One
-     * `samplingMetadatas` is populated for each date range. Each
-     * `samplingMetadatas` corresponds to a date range in order that date ranges
-     * were specified in the request.
-     * However if the results are not sampled, this field will not be defined.
-     * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - public java.util.List - getSamplingMetadatasBuilderList() { - return getSamplingMetadatasFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.SamplingMetadata, - com.google.analytics.data.v1alpha.SamplingMetadata.Builder, - com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder> - getSamplingMetadatasFieldBuilder() { - if (samplingMetadatasBuilder_ == null) { - samplingMetadatasBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.SamplingMetadata, - com.google.analytics.data.v1alpha.SamplingMetadata.Builder, - com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder>( - samplingMetadatas_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - samplingMetadatas_ = null; - } - return samplingMetadatasBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.FunnelResponseMetadata) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelResponseMetadata) - private static final com.google.analytics.data.v1alpha.FunnelResponseMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelResponseMetadata(); - } - - public static com.google.analytics.data.v1alpha.FunnelResponseMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FunnelResponseMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelResponseMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadataOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadataOrBuilder.java deleted file mode 100644 index 6c7319b0..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelResponseMetadataOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FunnelResponseMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelResponseMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * If funnel report results are
-   * [sampled](https://support.google.com/analytics/answer/2637192), this
-   * describes what percentage of events were used in this funnel report. One
-   * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in order that date ranges
-   * were specified in the request.
-   * However if the results are not sampled, this field will not be defined.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - java.util.List getSamplingMetadatasList(); - /** - * - * - *
-   * If funnel report results are
-   * [sampled](https://support.google.com/analytics/answer/2637192), this
-   * describes what percentage of events were used in this funnel report. One
-   * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in order that date ranges
-   * were specified in the request.
-   * However if the results are not sampled, this field will not be defined.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - com.google.analytics.data.v1alpha.SamplingMetadata getSamplingMetadatas(int index); - /** - * - * - *
-   * If funnel report results are
-   * [sampled](https://support.google.com/analytics/answer/2637192), this
-   * describes what percentage of events were used in this funnel report. One
-   * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in order that date ranges
-   * were specified in the request.
-   * However if the results are not sampled, this field will not be defined.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - int getSamplingMetadatasCount(); - /** - * - * - *
-   * If funnel report results are
-   * [sampled](https://support.google.com/analytics/answer/2637192), this
-   * describes what percentage of events were used in this funnel report. One
-   * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in order that date ranges
-   * were specified in the request.
-   * However if the results are not sampled, this field will not be defined.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - java.util.List - getSamplingMetadatasOrBuilderList(); - /** - * - * - *
-   * If funnel report results are
-   * [sampled](https://support.google.com/analytics/answer/2637192), this
-   * describes what percentage of events were used in this funnel report. One
-   * `samplingMetadatas` is populated for each date range. Each
-   * `samplingMetadatas` corresponds to a date range in order that date ranges
-   * were specified in the request.
-   * However if the results are not sampled, this field will not be defined.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SamplingMetadata sampling_metadatas = 1; - */ - com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder getSamplingMetadatasOrBuilder( - int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStep.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStep.java deleted file mode 100644 index 23fae198..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStep.java +++ /dev/null @@ -1,1396 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Steps define the user journey you want to measure. Steps contain one or
- * more conditions that your users must meet to be included in that step of
- * the funnel journey.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelStep} - */ -public final class FunnelStep extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelStep) - FunnelStepOrBuilder { - private static final long serialVersionUID = 0L; - // Use FunnelStep.newBuilder() to construct. - private FunnelStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FunnelStep() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FunnelStep(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelStep_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelStep.class, - com.google.analytics.data.v1alpha.FunnelStep.Builder.class); - } - - private int bitField0_; - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The distinctive name for this step. If unspecified, steps will be named
-   * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
-   * string value returned by the `funnelStepName` dimension. For example,
-   * specifying `name = Purchase` in the request's third funnel step will
-   * produce `3. Purchase` in the funnel report response.
-   * 
- * - * 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 distinctive name for this step. If unspecified, steps will be named
-   * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
-   * string value returned by the `funnelStepName` dimension. For example,
-   * specifying `name = Purchase` in the request's third funnel step will
-   * produce `3. Purchase` in the funnel report response.
-   * 
- * - * 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 IS_DIRECTLY_FOLLOWED_BY_FIELD_NUMBER = 2; - private boolean isDirectlyFollowedBy_; - /** - * - * - *
-   * If true, this step must directly follow the previous step. If false,
-   * there can be events between the previous step and this step. If
-   * unspecified, `isDirectlyFollowedBy` is treated as false.
-   * 
- * - * bool is_directly_followed_by = 2; - * - * @return The isDirectlyFollowedBy. - */ - @java.lang.Override - public boolean getIsDirectlyFollowedBy() { - return isDirectlyFollowedBy_; - } - - public static final int WITHIN_DURATION_FROM_PRIOR_STEP_FIELD_NUMBER = 3; - private com.google.protobuf.Duration withinDurationFromPriorStep_; - /** - * - * - *
-   * If specified, this step must complete within this duration of the
-   * completion of the prior step. `withinDurationFromPriorStep` is inclusive
-   * of the endpoint at the microsecond granularity. For example a duration of
-   * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
-   * microsecond.
-   * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
-   * be separated by any time duration.
-   * 
- * - * optional .google.protobuf.Duration within_duration_from_prior_step = 3; - * - * @return Whether the withinDurationFromPriorStep field is set. - */ - @java.lang.Override - public boolean hasWithinDurationFromPriorStep() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * If specified, this step must complete within this duration of the
-   * completion of the prior step. `withinDurationFromPriorStep` is inclusive
-   * of the endpoint at the microsecond granularity. For example a duration of
-   * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
-   * microsecond.
-   * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
-   * be separated by any time duration.
-   * 
- * - * optional .google.protobuf.Duration within_duration_from_prior_step = 3; - * - * @return The withinDurationFromPriorStep. - */ - @java.lang.Override - public com.google.protobuf.Duration getWithinDurationFromPriorStep() { - return withinDurationFromPriorStep_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : withinDurationFromPriorStep_; - } - /** - * - * - *
-   * If specified, this step must complete within this duration of the
-   * completion of the prior step. `withinDurationFromPriorStep` is inclusive
-   * of the endpoint at the microsecond granularity. For example a duration of
-   * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
-   * microsecond.
-   * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
-   * be separated by any time duration.
-   * 
- * - * optional .google.protobuf.Duration within_duration_from_prior_step = 3; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getWithinDurationFromPriorStepOrBuilder() { - return withinDurationFromPriorStep_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : withinDurationFromPriorStep_; - } - - public static final int FILTER_EXPRESSION_FIELD_NUMBER = 4; - private com.google.analytics.data.v1alpha.FunnelFilterExpression filterExpression_; - /** - * - * - *
-   * The condition that your users must meet to be included in this step of
-   * the funnel journey.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - * - * @return Whether the filterExpression field is set. - */ - @java.lang.Override - public boolean hasFilterExpression() { - return filterExpression_ != null; - } - /** - * - * - *
-   * The condition that your users must meet to be included in this step of
-   * the funnel journey.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - * - * @return The filterExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpression getFilterExpression() { - return filterExpression_ == null - ? com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance() - : filterExpression_; - } - /** - * - * - *
-   * The condition that your users must meet to be included in this step of
-   * the funnel journey.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder - getFilterExpressionOrBuilder() { - return getFilterExpression(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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 (isDirectlyFollowedBy_ != false) { - output.writeBool(2, isDirectlyFollowedBy_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getWithinDurationFromPriorStep()); - } - if (filterExpression_ != null) { - output.writeMessage(4, getFilterExpression()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (isDirectlyFollowedBy_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, isDirectlyFollowedBy_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, getWithinDurationFromPriorStep()); - } - if (filterExpression_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFilterExpression()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.FunnelStep)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.FunnelStep other = - (com.google.analytics.data.v1alpha.FunnelStep) obj; - - if (!getName().equals(other.getName())) return false; - if (getIsDirectlyFollowedBy() != other.getIsDirectlyFollowedBy()) return false; - if (hasWithinDurationFromPriorStep() != other.hasWithinDurationFromPriorStep()) return false; - if (hasWithinDurationFromPriorStep()) { - if (!getWithinDurationFromPriorStep().equals(other.getWithinDurationFromPriorStep())) - return false; - } - if (hasFilterExpression() != other.hasFilterExpression()) return false; - if (hasFilterExpression()) { - if (!getFilterExpression().equals(other.getFilterExpression())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + IS_DIRECTLY_FOLLOWED_BY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsDirectlyFollowedBy()); - if (hasWithinDurationFromPriorStep()) { - hash = (37 * hash) + WITHIN_DURATION_FROM_PRIOR_STEP_FIELD_NUMBER; - hash = (53 * hash) + getWithinDurationFromPriorStep().hashCode(); - } - if (hasFilterExpression()) { - hash = (37 * hash) + FILTER_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getFilterExpression().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.FunnelStep parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelStep 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.v1alpha.FunnelStep parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelStep parseFrom( - 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.v1alpha.FunnelStep parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelStep parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.FunnelStep parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelStep parseFrom( - java.io.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.v1alpha.FunnelStep parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelStep parseDelimitedFrom( - java.io.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.v1alpha.FunnelStep parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelStep parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.FunnelStep prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Steps define the user journey you want to measure. Steps contain one or
-   * more conditions that your users must meet to be included in that step of
-   * the funnel journey.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelStep} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelStep) - com.google.analytics.data.v1alpha.FunnelStepOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelStep_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelStep.class, - com.google.analytics.data.v1alpha.FunnelStep.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.FunnelStep.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getWithinDurationFromPriorStepFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - isDirectlyFollowedBy_ = false; - - if (withinDurationFromPriorStepBuilder_ == null) { - withinDurationFromPriorStep_ = null; - } else { - withinDurationFromPriorStepBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (filterExpressionBuilder_ == null) { - filterExpression_ = null; - } else { - filterExpression_ = null; - filterExpressionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelStep getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FunnelStep.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelStep build() { - com.google.analytics.data.v1alpha.FunnelStep result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelStep buildPartial() { - com.google.analytics.data.v1alpha.FunnelStep result = - new com.google.analytics.data.v1alpha.FunnelStep(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - result.name_ = name_; - result.isDirectlyFollowedBy_ = isDirectlyFollowedBy_; - if (((from_bitField0_ & 0x00000001) != 0)) { - if (withinDurationFromPriorStepBuilder_ == null) { - result.withinDurationFromPriorStep_ = withinDurationFromPriorStep_; - } else { - result.withinDurationFromPriorStep_ = withinDurationFromPriorStepBuilder_.build(); - } - to_bitField0_ |= 0x00000001; - } - if (filterExpressionBuilder_ == null) { - result.filterExpression_ = filterExpression_; - } else { - result.filterExpression_ = filterExpressionBuilder_.build(); - } - 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.v1alpha.FunnelStep) { - return mergeFrom((com.google.analytics.data.v1alpha.FunnelStep) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelStep other) { - if (other == com.google.analytics.data.v1alpha.FunnelStep.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getIsDirectlyFollowedBy() != false) { - setIsDirectlyFollowedBy(other.getIsDirectlyFollowedBy()); - } - if (other.hasWithinDurationFromPriorStep()) { - mergeWithinDurationFromPriorStep(other.getWithinDurationFromPriorStep()); - } - if (other.hasFilterExpression()) { - mergeFilterExpression(other.getFilterExpression()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - isDirectlyFollowedBy_ = input.readBool(); - - break; - } // case 16 - case 26: - { - input.readMessage( - getWithinDurationFromPriorStepFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 26 - case 34: - { - input.readMessage( - getFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The distinctive name for this step. If unspecified, steps will be named
-     * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
-     * string value returned by the `funnelStepName` dimension. For example,
-     * specifying `name = Purchase` in the request's third funnel step will
-     * produce `3. Purchase` in the funnel report response.
-     * 
- * - * 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 distinctive name for this step. If unspecified, steps will be named
-     * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
-     * string value returned by the `funnelStepName` dimension. For example,
-     * specifying `name = Purchase` in the request's third funnel step will
-     * produce `3. Purchase` in the funnel report response.
-     * 
- * - * 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 distinctive name for this step. If unspecified, steps will be named
-     * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
-     * string value returned by the `funnelStepName` dimension. For example,
-     * specifying `name = Purchase` in the request's third funnel step will
-     * produce `3. Purchase` in the funnel report response.
-     * 
- * - * 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 distinctive name for this step. If unspecified, steps will be named
-     * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
-     * string value returned by the `funnelStepName` dimension. For example,
-     * specifying `name = Purchase` in the request's third funnel step will
-     * produce `3. Purchase` in the funnel report response.
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The distinctive name for this step. If unspecified, steps will be named
-     * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
-     * string value returned by the `funnelStepName` dimension. For example,
-     * specifying `name = Purchase` in the request's third funnel step will
-     * produce `3. Purchase` in the funnel report response.
-     * 
- * - * 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 boolean isDirectlyFollowedBy_; - /** - * - * - *
-     * If true, this step must directly follow the previous step. If false,
-     * there can be events between the previous step and this step. If
-     * unspecified, `isDirectlyFollowedBy` is treated as false.
-     * 
- * - * bool is_directly_followed_by = 2; - * - * @return The isDirectlyFollowedBy. - */ - @java.lang.Override - public boolean getIsDirectlyFollowedBy() { - return isDirectlyFollowedBy_; - } - /** - * - * - *
-     * If true, this step must directly follow the previous step. If false,
-     * there can be events between the previous step and this step. If
-     * unspecified, `isDirectlyFollowedBy` is treated as false.
-     * 
- * - * bool is_directly_followed_by = 2; - * - * @param value The isDirectlyFollowedBy to set. - * @return This builder for chaining. - */ - public Builder setIsDirectlyFollowedBy(boolean value) { - - isDirectlyFollowedBy_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If true, this step must directly follow the previous step. If false,
-     * there can be events between the previous step and this step. If
-     * unspecified, `isDirectlyFollowedBy` is treated as false.
-     * 
- * - * bool is_directly_followed_by = 2; - * - * @return This builder for chaining. - */ - public Builder clearIsDirectlyFollowedBy() { - - isDirectlyFollowedBy_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Duration withinDurationFromPriorStep_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - withinDurationFromPriorStepBuilder_; - /** - * - * - *
-     * If specified, this step must complete within this duration of the
-     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
-     * of the endpoint at the microsecond granularity. For example a duration of
-     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
-     * microsecond.
-     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
-     * be separated by any time duration.
-     * 
- * - * optional .google.protobuf.Duration within_duration_from_prior_step = 3; - * - * @return Whether the withinDurationFromPriorStep field is set. - */ - public boolean hasWithinDurationFromPriorStep() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * If specified, this step must complete within this duration of the
-     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
-     * of the endpoint at the microsecond granularity. For example a duration of
-     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
-     * microsecond.
-     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
-     * be separated by any time duration.
-     * 
- * - * optional .google.protobuf.Duration within_duration_from_prior_step = 3; - * - * @return The withinDurationFromPriorStep. - */ - public com.google.protobuf.Duration getWithinDurationFromPriorStep() { - if (withinDurationFromPriorStepBuilder_ == null) { - return withinDurationFromPriorStep_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : withinDurationFromPriorStep_; - } else { - return withinDurationFromPriorStepBuilder_.getMessage(); - } - } - /** - * - * - *
-     * If specified, this step must complete within this duration of the
-     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
-     * of the endpoint at the microsecond granularity. For example a duration of
-     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
-     * microsecond.
-     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
-     * be separated by any time duration.
-     * 
- * - * optional .google.protobuf.Duration within_duration_from_prior_step = 3; - */ - public Builder setWithinDurationFromPriorStep(com.google.protobuf.Duration value) { - if (withinDurationFromPriorStepBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - withinDurationFromPriorStep_ = value; - onChanged(); - } else { - withinDurationFromPriorStepBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * If specified, this step must complete within this duration of the
-     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
-     * of the endpoint at the microsecond granularity. For example a duration of
-     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
-     * microsecond.
-     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
-     * be separated by any time duration.
-     * 
- * - * optional .google.protobuf.Duration within_duration_from_prior_step = 3; - */ - public Builder setWithinDurationFromPriorStep( - com.google.protobuf.Duration.Builder builderForValue) { - if (withinDurationFromPriorStepBuilder_ == null) { - withinDurationFromPriorStep_ = builderForValue.build(); - onChanged(); - } else { - withinDurationFromPriorStepBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * If specified, this step must complete within this duration of the
-     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
-     * of the endpoint at the microsecond granularity. For example a duration of
-     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
-     * microsecond.
-     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
-     * be separated by any time duration.
-     * 
- * - * optional .google.protobuf.Duration within_duration_from_prior_step = 3; - */ - public Builder mergeWithinDurationFromPriorStep(com.google.protobuf.Duration value) { - if (withinDurationFromPriorStepBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && withinDurationFromPriorStep_ != null - && withinDurationFromPriorStep_ != com.google.protobuf.Duration.getDefaultInstance()) { - withinDurationFromPriorStep_ = - com.google.protobuf.Duration.newBuilder(withinDurationFromPriorStep_) - .mergeFrom(value) - .buildPartial(); - } else { - withinDurationFromPriorStep_ = value; - } - onChanged(); - } else { - withinDurationFromPriorStepBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000001; - return this; - } - /** - * - * - *
-     * If specified, this step must complete within this duration of the
-     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
-     * of the endpoint at the microsecond granularity. For example a duration of
-     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
-     * microsecond.
-     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
-     * be separated by any time duration.
-     * 
- * - * optional .google.protobuf.Duration within_duration_from_prior_step = 3; - */ - public Builder clearWithinDurationFromPriorStep() { - if (withinDurationFromPriorStepBuilder_ == null) { - withinDurationFromPriorStep_ = null; - onChanged(); - } else { - withinDurationFromPriorStepBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - /** - * - * - *
-     * If specified, this step must complete within this duration of the
-     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
-     * of the endpoint at the microsecond granularity. For example a duration of
-     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
-     * microsecond.
-     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
-     * be separated by any time duration.
-     * 
- * - * optional .google.protobuf.Duration within_duration_from_prior_step = 3; - */ - public com.google.protobuf.Duration.Builder getWithinDurationFromPriorStepBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return getWithinDurationFromPriorStepFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If specified, this step must complete within this duration of the
-     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
-     * of the endpoint at the microsecond granularity. For example a duration of
-     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
-     * microsecond.
-     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
-     * be separated by any time duration.
-     * 
- * - * optional .google.protobuf.Duration within_duration_from_prior_step = 3; - */ - public com.google.protobuf.DurationOrBuilder getWithinDurationFromPriorStepOrBuilder() { - if (withinDurationFromPriorStepBuilder_ != null) { - return withinDurationFromPriorStepBuilder_.getMessageOrBuilder(); - } else { - return withinDurationFromPriorStep_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : withinDurationFromPriorStep_; - } - } - /** - * - * - *
-     * If specified, this step must complete within this duration of the
-     * completion of the prior step. `withinDurationFromPriorStep` is inclusive
-     * of the endpoint at the microsecond granularity. For example a duration of
-     * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
-     * microsecond.
-     * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
-     * be separated by any time duration.
-     * 
- * - * optional .google.protobuf.Duration within_duration_from_prior_step = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getWithinDurationFromPriorStepFieldBuilder() { - if (withinDurationFromPriorStepBuilder_ == null) { - withinDurationFromPriorStepBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getWithinDurationFromPriorStep(), getParentForChildren(), isClean()); - withinDurationFromPriorStep_ = null; - } - return withinDurationFromPriorStepBuilder_; - } - - private com.google.analytics.data.v1alpha.FunnelFilterExpression filterExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFilterExpression, - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder> - filterExpressionBuilder_; - /** - * - * - *
-     * The condition that your users must meet to be included in this step of
-     * the funnel journey.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - * - * @return Whether the filterExpression field is set. - */ - public boolean hasFilterExpression() { - return filterExpressionBuilder_ != null || filterExpression_ != null; - } - /** - * - * - *
-     * The condition that your users must meet to be included in this step of
-     * the funnel journey.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - * - * @return The filterExpression. - */ - public com.google.analytics.data.v1alpha.FunnelFilterExpression getFilterExpression() { - if (filterExpressionBuilder_ == null) { - return filterExpression_ == null - ? com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance() - : filterExpression_; - } else { - return filterExpressionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The condition that your users must meet to be included in this step of
-     * the funnel journey.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - */ - public Builder setFilterExpression( - com.google.analytics.data.v1alpha.FunnelFilterExpression value) { - if (filterExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filterExpression_ = value; - onChanged(); - } else { - filterExpressionBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The condition that your users must meet to be included in this step of
-     * the funnel journey.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - */ - public Builder setFilterExpression( - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder builderForValue) { - if (filterExpressionBuilder_ == null) { - filterExpression_ = builderForValue.build(); - onChanged(); - } else { - filterExpressionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The condition that your users must meet to be included in this step of
-     * the funnel journey.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - */ - public Builder mergeFilterExpression( - com.google.analytics.data.v1alpha.FunnelFilterExpression value) { - if (filterExpressionBuilder_ == null) { - if (filterExpression_ != null) { - filterExpression_ = - com.google.analytics.data.v1alpha.FunnelFilterExpression.newBuilder(filterExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - filterExpression_ = value; - } - onChanged(); - } else { - filterExpressionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The condition that your users must meet to be included in this step of
-     * the funnel journey.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - */ - public Builder clearFilterExpression() { - if (filterExpressionBuilder_ == null) { - filterExpression_ = null; - onChanged(); - } else { - filterExpression_ = null; - filterExpressionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The condition that your users must meet to be included in this step of
-     * the funnel journey.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - */ - public com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder - getFilterExpressionBuilder() { - - onChanged(); - return getFilterExpressionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The condition that your users must meet to be included in this step of
-     * the funnel journey.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - */ - public com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder - getFilterExpressionOrBuilder() { - if (filterExpressionBuilder_ != null) { - return filterExpressionBuilder_.getMessageOrBuilder(); - } else { - return filterExpression_ == null - ? com.google.analytics.data.v1alpha.FunnelFilterExpression.getDefaultInstance() - : filterExpression_; - } - } - /** - * - * - *
-     * The condition that your users must meet to be included in this step of
-     * the funnel journey.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFilterExpression, - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder> - getFilterExpressionFieldBuilder() { - if (filterExpressionBuilder_ == null) { - filterExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelFilterExpression, - com.google.analytics.data.v1alpha.FunnelFilterExpression.Builder, - com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder>( - getFilterExpression(), getParentForChildren(), isClean()); - filterExpression_ = null; - } - return filterExpressionBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.FunnelStep) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelStep) - private static final com.google.analytics.data.v1alpha.FunnelStep DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelStep(); - } - - public static com.google.analytics.data.v1alpha.FunnelStep getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FunnelStep parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelStep getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStepOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStepOrBuilder.java deleted file mode 100644 index 88c76d17..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelStepOrBuilder.java +++ /dev/null @@ -1,164 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FunnelStepOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelStep) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The distinctive name for this step. If unspecified, steps will be named
-   * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
-   * string value returned by the `funnelStepName` dimension. For example,
-   * specifying `name = Purchase` in the request's third funnel step will
-   * produce `3. Purchase` in the funnel report response.
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The distinctive name for this step. If unspecified, steps will be named
-   * by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines
-   * string value returned by the `funnelStepName` dimension. For example,
-   * specifying `name = Purchase` in the request's third funnel step will
-   * produce `3. Purchase` in the funnel report response.
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * If true, this step must directly follow the previous step. If false,
-   * there can be events between the previous step and this step. If
-   * unspecified, `isDirectlyFollowedBy` is treated as false.
-   * 
- * - * bool is_directly_followed_by = 2; - * - * @return The isDirectlyFollowedBy. - */ - boolean getIsDirectlyFollowedBy(); - - /** - * - * - *
-   * If specified, this step must complete within this duration of the
-   * completion of the prior step. `withinDurationFromPriorStep` is inclusive
-   * of the endpoint at the microsecond granularity. For example a duration of
-   * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
-   * microsecond.
-   * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
-   * be separated by any time duration.
-   * 
- * - * optional .google.protobuf.Duration within_duration_from_prior_step = 3; - * - * @return Whether the withinDurationFromPriorStep field is set. - */ - boolean hasWithinDurationFromPriorStep(); - /** - * - * - *
-   * If specified, this step must complete within this duration of the
-   * completion of the prior step. `withinDurationFromPriorStep` is inclusive
-   * of the endpoint at the microsecond granularity. For example a duration of
-   * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
-   * microsecond.
-   * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
-   * be separated by any time duration.
-   * 
- * - * optional .google.protobuf.Duration within_duration_from_prior_step = 3; - * - * @return The withinDurationFromPriorStep. - */ - com.google.protobuf.Duration getWithinDurationFromPriorStep(); - /** - * - * - *
-   * If specified, this step must complete within this duration of the
-   * completion of the prior step. `withinDurationFromPriorStep` is inclusive
-   * of the endpoint at the microsecond granularity. For example a duration of
-   * 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1
-   * microsecond.
-   * `withinDurationFromPriorStep` is optional, and if unspecified, steps may
-   * be separated by any time duration.
-   * 
- * - * optional .google.protobuf.Duration within_duration_from_prior_step = 3; - */ - com.google.protobuf.DurationOrBuilder getWithinDurationFromPriorStepOrBuilder(); - - /** - * - * - *
-   * The condition that your users must meet to be included in this step of
-   * the funnel journey.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - * - * @return Whether the filterExpression field is set. - */ - boolean hasFilterExpression(); - /** - * - * - *
-   * The condition that your users must meet to be included in this step of
-   * the funnel journey.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - * - * @return The filterExpression. - */ - com.google.analytics.data.v1alpha.FunnelFilterExpression getFilterExpression(); - /** - * - * - *
-   * The condition that your users must meet to be included in this step of
-   * the funnel journey.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelFilterExpression filter_expression = 4; - */ - com.google.analytics.data.v1alpha.FunnelFilterExpressionOrBuilder getFilterExpressionOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReport.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReport.java deleted file mode 100644 index ba9ad5e9..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReport.java +++ /dev/null @@ -1,2287 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Funnel sub reports contain the dimension and metric data values. For example,
- * 12 users reached the second step of the funnel.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelSubReport} - */ -public final class FunnelSubReport extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.FunnelSubReport) - FunnelSubReportOrBuilder { - private static final long serialVersionUID = 0L; - // Use FunnelSubReport.newBuilder() to construct. - private FunnelSubReport(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private FunnelSubReport() { - dimensionHeaders_ = java.util.Collections.emptyList(); - metricHeaders_ = java.util.Collections.emptyList(); - rows_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new FunnelSubReport(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelSubReport_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelSubReport.class, - com.google.analytics.data.v1alpha.FunnelSubReport.Builder.class); - } - - public static final int DIMENSION_HEADERS_FIELD_NUMBER = 1; - private java.util.List dimensionHeaders_; - /** - * - * - *
-   * Describes dimension columns. Funnel reports always include the funnel step
-   * dimension in sub report responses. Additional dimensions like breakdowns,
-   * dates, and next actions may be present in the response if requested.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public java.util.List - getDimensionHeadersList() { - return dimensionHeaders_; - } - /** - * - * - *
-   * Describes dimension columns. Funnel reports always include the funnel step
-   * dimension in sub report responses. Additional dimensions like breakdowns,
-   * dates, and next actions may be present in the response if requested.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public java.util.List - getDimensionHeadersOrBuilderList() { - return dimensionHeaders_; - } - /** - * - * - *
-   * Describes dimension columns. Funnel reports always include the funnel step
-   * dimension in sub report responses. Additional dimensions like breakdowns,
-   * dates, and next actions may be present in the response if requested.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public int getDimensionHeadersCount() { - return dimensionHeaders_.size(); - } - /** - * - * - *
-   * Describes dimension columns. Funnel reports always include the funnel step
-   * dimension in sub report responses. Additional dimensions like breakdowns,
-   * dates, and next actions may be present in the response if requested.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index) { - return dimensionHeaders_.get(index); - } - /** - * - * - *
-   * Describes dimension columns. Funnel reports always include the funnel step
-   * dimension in sub report responses. Additional dimensions like breakdowns,
-   * dates, and next actions may be present in the response if requested.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
-   * report responses. The funnel table includes additional metrics like
-   * completion rate, abandonments, and abandonments rate.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public java.util.List getMetricHeadersList() { - return metricHeaders_; - } - /** - * - * - *
-   * Describes metric columns. Funnel reports always include active users in sub
-   * report responses. The funnel table includes additional metrics like
-   * completion rate, abandonments, and abandonments rate.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public java.util.List - getMetricHeadersOrBuilderList() { - return metricHeaders_; - } - /** - * - * - *
-   * Describes metric columns. Funnel reports always include active users in sub
-   * report responses. The funnel table includes additional metrics like
-   * completion rate, abandonments, and abandonments rate.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public int getMetricHeadersCount() { - return metricHeaders_.size(); - } - /** - * - * - *
-   * Describes metric columns. Funnel reports always include active users in sub
-   * report responses. The funnel table includes additional metrics like
-   * completion rate, abandonments, and abandonments rate.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricHeader getMetricHeaders(int index) { - return metricHeaders_.get(index); - } - /** - * - * - *
-   * Describes metric columns. Funnel reports always include active users in sub
-   * report responses. The funnel table includes additional metrics like
-   * completion rate, abandonments, and abandonments rate.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Row rows = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Row getRows(int index) { - return rows_.get(index); - } - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.RowOrBuilder getRowsOrBuilder(int index) { - return rows_.get(index); - } - - public static final int METADATA_FIELD_NUMBER = 4; - private com.google.analytics.data.v1alpha.FunnelResponseMetadata metadata_; - /** - * - * - *
-   * Metadata for the funnel report.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return metadata_ != null; - } - /** - * - * - *
-   * Metadata for the funnel report.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelResponseMetadata getMetadata() { - return metadata_ == null - ? com.google.analytics.data.v1alpha.FunnelResponseMetadata.getDefaultInstance() - : metadata_; - } - /** - * - * - *
-   * Metadata for the funnel report.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder getMetadataOrBuilder() { - return getMetadata(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - 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)); - } - if (metadata_ != null) { - output.writeMessage(4, getMetadata()); - } - getUnknownFields().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)); - } - if (metadata_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.FunnelSubReport)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.FunnelSubReport other = - (com.google.analytics.data.v1alpha.FunnelSubReport) obj; - - if (!getDimensionHeadersList().equals(other.getDimensionHeadersList())) return false; - if (!getMetricHeadersList().equals(other.getMetricHeadersList())) return false; - if (!getRowsList().equals(other.getRowsList())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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 (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.FunnelSubReport parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelSubReport 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.v1alpha.FunnelSubReport parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelSubReport parseFrom( - 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.v1alpha.FunnelSubReport parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.FunnelSubReport parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.FunnelSubReport parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelSubReport parseFrom( - java.io.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.v1alpha.FunnelSubReport parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelSubReport parseDelimitedFrom( - java.io.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.v1alpha.FunnelSubReport parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.FunnelSubReport parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.FunnelSubReport prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Funnel sub reports contain the dimension and metric data values. For example,
-   * 12 users reached the second step of the funnel.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.FunnelSubReport} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.FunnelSubReport) - com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelSubReport_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.FunnelSubReport.class, - com.google.analytics.data.v1alpha.FunnelSubReport.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.FunnelSubReport.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (dimensionHeadersBuilder_ == null) { - dimensionHeaders_ = java.util.Collections.emptyList(); - } else { - dimensionHeaders_ = null; - dimensionHeadersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricHeadersBuilder_ == null) { - metricHeaders_ = java.util.Collections.emptyList(); - } else { - metricHeaders_ = null; - metricHeadersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - } else { - rows_ = null; - rowsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (metadataBuilder_ == null) { - metadata_ = null; - } else { - metadata_ = null; - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelSubReport getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.FunnelSubReport.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelSubReport build() { - com.google.analytics.data.v1alpha.FunnelSubReport result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelSubReport buildPartial() { - com.google.analytics.data.v1alpha.FunnelSubReport result = - new com.google.analytics.data.v1alpha.FunnelSubReport(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 (metadataBuilder_ == null) { - result.metadata_ = metadata_; - } else { - result.metadata_ = metadataBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.data.v1alpha.FunnelSubReport) { - return mergeFrom((com.google.analytics.data.v1alpha.FunnelSubReport) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.FunnelSubReport other) { - if (other == com.google.analytics.data.v1alpha.FunnelSubReport.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 (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1alpha.DimensionHeader m = - input.readMessage( - com.google.analytics.data.v1alpha.DimensionHeader.parser(), - extensionRegistry); - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(m); - } else { - dimensionHeadersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1alpha.MetricHeader m = - input.readMessage( - com.google.analytics.data.v1alpha.MetricHeader.parser(), extensionRegistry); - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(m); - } else { - metricHeadersBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.analytics.data.v1alpha.Row m = - input.readMessage( - com.google.analytics.data.v1alpha.Row.parser(), extensionRegistry); - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(m); - } else { - rowsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.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.v1alpha.DimensionHeader, - com.google.analytics.data.v1alpha.DimensionHeader.Builder, - com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder> - dimensionHeadersBuilder_; - - /** - * - * - *
-     * Describes dimension columns. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - public int getDimensionHeadersCount() { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.size(); - } else { - return dimensionHeadersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Describes dimension columns. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index) { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.get(index); - } else { - return dimensionHeadersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Describes dimension columns. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - public Builder setDimensionHeaders( - int index, com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.set(index, builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders(com.google.analytics.data.v1alpha.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. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.data.v1alpha.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. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - public Builder addDimensionHeaders( - int index, com.google.analytics.data.v1alpha.DimensionHeader.Builder builderForValue) { - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(index, builderForValue.build()); - onChanged(); - } else { - dimensionHeadersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes dimension columns. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1alpha.DimensionHeader.Builder getDimensionHeadersBuilder( - int index) { - return getDimensionHeadersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Describes dimension columns. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder( - int index) { - if (dimensionHeadersBuilder_ == null) { - return dimensionHeaders_.get(index); - } else { - return dimensionHeadersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Describes dimension columns. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder() { - return getDimensionHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes dimension columns. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - public com.google.analytics.data.v1alpha.DimensionHeader.Builder addDimensionHeadersBuilder( - int index) { - return getDimensionHeadersFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1alpha.DimensionHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes dimension columns. Funnel reports always include the funnel step
-     * dimension in sub report responses. Additional dimensions like breakdowns,
-     * dates, and next actions may be present in the response if requested.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - public java.util.List - getDimensionHeadersBuilderList() { - return getDimensionHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionHeader, - com.google.analytics.data.v1alpha.DimensionHeader.Builder, - com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder> - getDimensionHeadersFieldBuilder() { - if (dimensionHeadersBuilder_ == null) { - dimensionHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionHeader, - com.google.analytics.data.v1alpha.DimensionHeader.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader, - com.google.analytics.data.v1alpha.MetricHeader.Builder, - com.google.analytics.data.v1alpha.MetricHeaderOrBuilder> - metricHeadersBuilder_; - - /** - * - * - *
-     * Describes metric columns. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public int getMetricHeadersCount() { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.size(); - } else { - return metricHeadersBuilder_.getCount(); - } - } - /** - * - * - *
-     * Describes metric columns. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1alpha.MetricHeader getMetricHeaders(int index) { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.get(index); - } else { - return metricHeadersBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * Describes metric columns. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder setMetricHeaders( - int index, com.google.analytics.data.v1alpha.MetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.set(index, builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders(com.google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - com.google.analytics.data.v1alpha.MetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public Builder addMetricHeaders( - int index, com.google.analytics.data.v1alpha.MetricHeader.Builder builderForValue) { - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(index, builderForValue.build()); - onChanged(); - } else { - metricHeadersBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * Describes metric columns. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1alpha.MetricHeader.Builder getMetricHeadersBuilder( - int index) { - return getMetricHeadersFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Describes metric columns. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersOrBuilder( - int index) { - if (metricHeadersBuilder_ == null) { - return metricHeaders_.get(index); - } else { - return metricHeadersBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * Describes metric columns. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBuilder() { - return getMetricHeadersFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes metric columns. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public com.google.analytics.data.v1alpha.MetricHeader.Builder addMetricHeadersBuilder( - int index) { - return getMetricHeadersFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance()); - } - /** - * - * - *
-     * Describes metric columns. Funnel reports always include active users in sub
-     * report responses. The funnel table includes additional metrics like
-     * completion rate, abandonments, and abandonments rate.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - public java.util.List - getMetricHeadersBuilderList() { - return getMetricHeadersFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.MetricHeader, - com.google.analytics.data.v1alpha.MetricHeader.Builder, - com.google.analytics.data.v1alpha.MetricHeaderOrBuilder> - getMetricHeadersFieldBuilder() { - if (metricHeadersBuilder_ == null) { - metricHeadersBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.MetricHeader, - com.google.analytics.data.v1alpha.MetricHeader.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - rowsBuilder_; - - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Row rows = 3; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder setRows(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder setRows( - int index, com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder addRows(com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder addRows(int index, com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder addRows(com.google.analytics.data.v1alpha.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.v1alpha.Row rows = 3; - */ - public Builder addRows( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Row rows = 3; - */ - public com.google.analytics.data.v1alpha.Row.Builder getRowsBuilder(int index) { - return getRowsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.Row rows = 3; - */ - public com.google.analytics.data.v1alpha.Row.Builder addRowsBuilder() { - return getRowsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - public com.google.analytics.data.v1alpha.Row.Builder addRowsBuilder(int index) { - return getRowsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.Row.getDefaultInstance()); - } - /** - * - * - *
-     * Rows of dimension value combinations and metric values in the report.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - public java.util.List getRowsBuilderList() { - return getRowsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder> - getRowsFieldBuilder() { - if (rowsBuilder_ == null) { - rowsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Row, - com.google.analytics.data.v1alpha.Row.Builder, - com.google.analytics.data.v1alpha.RowOrBuilder>( - rows_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - rows_ = null; - } - return rowsBuilder_; - } - - private com.google.analytics.data.v1alpha.FunnelResponseMetadata metadata_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelResponseMetadata, - com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder, - com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder> - metadataBuilder_; - /** - * - * - *
-     * Metadata for the funnel report.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return metadataBuilder_ != null || metadata_ != null; - } - /** - * - * - *
-     * Metadata for the funnel report.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - * - * @return The metadata. - */ - public com.google.analytics.data.v1alpha.FunnelResponseMetadata getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null - ? com.google.analytics.data.v1alpha.FunnelResponseMetadata.getDefaultInstance() - : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Metadata for the funnel report.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - */ - public Builder setMetadata(com.google.analytics.data.v1alpha.FunnelResponseMetadata value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - onChanged(); - } else { - metadataBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Metadata for the funnel report.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - */ - public Builder setMetadata( - com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - onChanged(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Metadata for the funnel report.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - */ - public Builder mergeMetadata(com.google.analytics.data.v1alpha.FunnelResponseMetadata value) { - if (metadataBuilder_ == null) { - if (metadata_ != null) { - metadata_ = - com.google.analytics.data.v1alpha.FunnelResponseMetadata.newBuilder(metadata_) - .mergeFrom(value) - .buildPartial(); - } else { - metadata_ = value; - } - onChanged(); - } else { - metadataBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Metadata for the funnel report.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - */ - public Builder clearMetadata() { - if (metadataBuilder_ == null) { - metadata_ = null; - onChanged(); - } else { - metadata_ = null; - metadataBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Metadata for the funnel report.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - */ - public com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder getMetadataBuilder() { - - onChanged(); - return getMetadataFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Metadata for the funnel report.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - */ - public com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder - getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null - ? com.google.analytics.data.v1alpha.FunnelResponseMetadata.getDefaultInstance() - : metadata_; - } - } - /** - * - * - *
-     * Metadata for the funnel report.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelResponseMetadata, - com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder, - com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder> - getMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelResponseMetadata, - com.google.analytics.data.v1alpha.FunnelResponseMetadata.Builder, - com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.FunnelSubReport) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.FunnelSubReport) - private static final com.google.analytics.data.v1alpha.FunnelSubReport DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.FunnelSubReport(); - } - - public static com.google.analytics.data.v1alpha.FunnelSubReport getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FunnelSubReport parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelSubReport getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReportOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReportOrBuilder.java deleted file mode 100644 index 086a14da..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/FunnelSubReportOrBuilder.java +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface FunnelSubReportOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.FunnelSubReport) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Describes dimension columns. Funnel reports always include the funnel step
-   * dimension in sub report responses. Additional dimensions like breakdowns,
-   * dates, and next actions may be present in the response if requested.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - java.util.List getDimensionHeadersList(); - /** - * - * - *
-   * Describes dimension columns. Funnel reports always include the funnel step
-   * dimension in sub report responses. Additional dimensions like breakdowns,
-   * dates, and next actions may be present in the response if requested.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - com.google.analytics.data.v1alpha.DimensionHeader getDimensionHeaders(int index); - /** - * - * - *
-   * Describes dimension columns. Funnel reports always include the funnel step
-   * dimension in sub report responses. Additional dimensions like breakdowns,
-   * dates, and next actions may be present in the response if requested.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - int getDimensionHeadersCount(); - /** - * - * - *
-   * Describes dimension columns. Funnel reports always include the funnel step
-   * dimension in sub report responses. Additional dimensions like breakdowns,
-   * dates, and next actions may be present in the response if requested.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - java.util.List - getDimensionHeadersOrBuilderList(); - /** - * - * - *
-   * Describes dimension columns. Funnel reports always include the funnel step
-   * dimension in sub report responses. Additional dimensions like breakdowns,
-   * dates, and next actions may be present in the response if requested.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DimensionHeader dimension_headers = 1; - */ - com.google.analytics.data.v1alpha.DimensionHeaderOrBuilder getDimensionHeadersOrBuilder( - int index); - - /** - * - * - *
-   * Describes metric columns. Funnel reports always include active users in sub
-   * report responses. The funnel table includes additional metrics like
-   * completion rate, abandonments, and abandonments rate.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - java.util.List getMetricHeadersList(); - /** - * - * - *
-   * Describes metric columns. Funnel reports always include active users in sub
-   * report responses. The funnel table includes additional metrics like
-   * completion rate, abandonments, and abandonments rate.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - com.google.analytics.data.v1alpha.MetricHeader getMetricHeaders(int index); - /** - * - * - *
-   * Describes metric columns. Funnel reports always include active users in sub
-   * report responses. The funnel table includes additional metrics like
-   * completion rate, abandonments, and abandonments rate.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - int getMetricHeadersCount(); - /** - * - * - *
-   * Describes metric columns. Funnel reports always include active users in sub
-   * report responses. The funnel table includes additional metrics like
-   * completion rate, abandonments, and abandonments rate.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - java.util.List - getMetricHeadersOrBuilderList(); - /** - * - * - *
-   * Describes metric columns. Funnel reports always include active users in sub
-   * report responses. The funnel table includes additional metrics like
-   * completion rate, abandonments, and abandonments rate.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricHeader metric_headers = 2; - */ - com.google.analytics.data.v1alpha.MetricHeaderOrBuilder getMetricHeadersOrBuilder(int index); - - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - java.util.List getRowsList(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - com.google.analytics.data.v1alpha.Row getRows(int index); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - int getRowsCount(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - java.util.List getRowsOrBuilderList(); - /** - * - * - *
-   * Rows of dimension value combinations and metric values in the report.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Row rows = 3; - */ - com.google.analytics.data.v1alpha.RowOrBuilder getRowsOrBuilder(int index); - - /** - * - * - *
-   * Metadata for the funnel report.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - /** - * - * - *
-   * Metadata for the funnel report.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - * - * @return The metadata. - */ - com.google.analytics.data.v1alpha.FunnelResponseMetadata getMetadata(); - /** - * - * - *
-   * Metadata for the funnel report.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelResponseMetadata metadata = 4; - */ - com.google.analytics.data.v1alpha.FunnelResponseMetadataOrBuilder getMetadataOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilter.java deleted file mode 100644 index 6a231ef5..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilter.java +++ /dev/null @@ -1,813 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The result needs to be in a list of string values.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.InListFilter} - */ -public final class InListFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_InListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_InListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.InListFilter.class, - com.google.analytics.data.v1alpha.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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, caseSensitive_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.InListFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.InListFilter other = - (com.google.analytics.data.v1alpha.InListFilter) obj; - - if (!getValuesList().equals(other.getValuesList())) return false; - if (getCaseSensitive() != other.getCaseSensitive()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.InListFilter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.InListFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.InListFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.InListFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.InListFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.InListFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.InListFilter) - com.google.analytics.data.v1alpha.InListFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_InListFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_InListFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.InListFilter.class, - com.google.analytics.data.v1alpha.InListFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.InListFilter.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - caseSensitive_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_InListFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilter build() { - com.google.analytics.data.v1alpha.InListFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilter buildPartial() { - com.google.analytics.data.v1alpha.InListFilter result = - new com.google.analytics.data.v1alpha.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.v1alpha.InListFilter) { - return mergeFrom((com.google.analytics.data.v1alpha.InListFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.InListFilter other) { - if (other == com.google.analytics.data.v1alpha.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 10 - case 16: - { - caseSensitive_ = input.readBool(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.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.v1alpha.InListFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.InListFilter) - private static final com.google.analytics.data.v1alpha.InListFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.InListFilter(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilterOrBuilder.java deleted file mode 100644 index b857975e..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/InListFilterOrBuilder.java +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface InListFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java deleted file mode 100644 index aacf6b5c..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeader.java +++ /dev/null @@ -1,769 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * 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.v1alpha.MetricHeader} - */ -public final class MetricHeader extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.MetricHeader.class, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricType type = 2; - * - * @return The type. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricType getType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.MetricType result = - com.google.analytics.data.v1alpha.MetricType.valueOf(type_); - return result == null ? com.google.analytics.data.v1alpha.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.v1alpha.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, type_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (type_ != com.google.analytics.data.v1alpha.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.MetricHeader)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.MetricHeader other = - (com.google.analytics.data.v1alpha.MetricHeader) obj; - - if (!getName().equals(other.getName())) return false; - if (type_ != other.type_) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.MetricHeader parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricHeader} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.MetricHeader) - com.google.analytics.data.v1alpha.MetricHeaderOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricHeader_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.MetricHeader.class, - com.google.analytics.data.v1alpha.MetricHeader.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.MetricHeader.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricHeader getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricHeader build() { - com.google.analytics.data.v1alpha.MetricHeader result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricHeader buildPartial() { - com.google.analytics.data.v1alpha.MetricHeader result = - new com.google.analytics.data.v1alpha.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.v1alpha.MetricHeader) { - return mergeFrom((com.google.analytics.data.v1alpha.MetricHeader) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.MetricHeader other) { - if (other == com.google.analytics.data.v1alpha.MetricHeader.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.type_ != 0) { - setTypeValue(other.getTypeValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - type_ = input.readEnum(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * 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.v1alpha.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.v1alpha.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.v1alpha.MetricType type = 2; - * - * @return The type. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricType getType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.MetricType result = - com.google.analytics.data.v1alpha.MetricType.valueOf(type_); - return result == null ? com.google.analytics.data.v1alpha.MetricType.UNRECOGNIZED : result; - } - /** - * - * - *
-     * The metric's data type.
-     * 
- * - * .google.analytics.data.v1alpha.MetricType type = 2; - * - * @param value The type to set. - * @return This builder for chaining. - */ - public Builder setType(com.google.analytics.data.v1alpha.MetricType value) { - if (value == null) { - throw new NullPointerException(); - } - - type_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The metric's data type.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.MetricHeader) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.MetricHeader) - private static final com.google.analytics.data.v1alpha.MetricHeader DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.MetricHeader(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricHeader getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeaderOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricHeaderOrBuilder.java deleted file mode 100644 index afb74089..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface MetricHeaderOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.MetricType type = 2; - * - * @return The enum numeric value on the wire for type. - */ - int getTypeValue(); - /** - * - * - *
-   * The metric's data type.
-   * 
- * - * .google.analytics.data.v1alpha.MetricType type = 2; - * - * @return The type. - */ - com.google.analytics.data.v1alpha.MetricType getType(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java deleted file mode 100644 index 96026dd4..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricType.java +++ /dev/null @@ -1,398 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * A metric's value type.
- * 
- * - * Protobuf enum {@code google.analytics.data.v1alpha.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.v1alpha.ReportingApiProto.getDescriptor() - .getEnumTypes() - .get(6); - } - - 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.v1alpha.MetricType) -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java deleted file mode 100644 index 40c0bc74..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValue.java +++ /dev/null @@ -1,745 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The value of a metric.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.MetricValue} - */ -public final class MetricValue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.MetricValue.class, - com.google.analytics.data.v1alpha.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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.MetricValue)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.MetricValue other = - (com.google.analytics.data.v1alpha.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (oneValueCase_) { - case 4: - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.MetricValue parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.MetricValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricValue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.MetricValue) - com.google.analytics.data.v1alpha.MetricValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.MetricValue.class, - com.google.analytics.data.v1alpha.MetricValue.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.MetricValue.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_MetricValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricValue getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.MetricValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricValue build() { - com.google.analytics.data.v1alpha.MetricValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricValue buildPartial() { - com.google.analytics.data.v1alpha.MetricValue result = - new com.google.analytics.data.v1alpha.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.v1alpha.MetricValue) { - return mergeFrom((com.google.analytics.data.v1alpha.MetricValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.MetricValue other) { - if (other == com.google.analytics.data.v1alpha.MetricValue.getDefaultInstance()) return this; - switch (other.getOneValueCase()) { - case VALUE: - { - oneValueCase_ = 4; - oneValue_ = other.oneValue_; - onChanged(); - break; - } - case ONEVALUE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - oneValueCase_ = 4; - oneValue_ = s; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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.v1alpha.MetricValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.MetricValue) - private static final com.google.analytics.data.v1alpha.MetricValue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.MetricValue(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValueOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/MetricValueOrBuilder.java deleted file mode 100644 index b5a984e9..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface MetricValueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.MetricValue.OneValueCase getOneValueCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilter.java deleted file mode 100644 index 1c481699..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilter.java +++ /dev/null @@ -1,1085 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Filters for numeric or date values.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.NumericFilter} - */ -public final class NumericFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_NumericFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_NumericFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.NumericFilter.class, - com.google.analytics.data.v1alpha.NumericFilter.Builder.class); - } - - /** - * - * - *
-   * The operation applied to a numeric filter
-   * 
- * - * Protobuf enum {@code google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.NumericFilter.Operation) - } - - public static final int OPERATION_FIELD_NUMBER = 1; - private int operation_; - /** - * - * - *
-   * The operation type for this filter.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericFilter.Operation operation = 1; - * - * @return The operation. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilter.Operation getOperation() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.NumericFilter.Operation result = - com.google.analytics.data.v1alpha.NumericFilter.Operation.valueOf(operation_); - return result == null - ? com.google.analytics.data.v1alpha.NumericFilter.Operation.UNRECOGNIZED - : result; - } - - public static final int VALUE_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.NumericValue value_; - /** - * - * - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericValue value = 2; - * - * @return The value. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericValue getValue() { - return value_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : value_; - } - /** - * - * - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.data.v1alpha.NumericValue value = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.NumericFilter.Operation.OPERATION_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, operation_); - } - if (value_ != null) { - output.writeMessage(2, getValue()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (operation_ - != com.google.analytics.data.v1alpha.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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.NumericFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.NumericFilter other = - (com.google.analytics.data.v1alpha.NumericFilter) obj; - - if (operation_ != other.operation_) return false; - if (hasValue() != other.hasValue()) return false; - if (hasValue()) { - if (!getValue().equals(other.getValue())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OPERATION_FIELD_NUMBER; - hash = (53 * hash) + operation_; - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.NumericFilter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.NumericFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.NumericFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.NumericFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.NumericFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.NumericFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.NumericFilter) - com.google.analytics.data.v1alpha.NumericFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_NumericFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_NumericFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.NumericFilter.class, - com.google.analytics.data.v1alpha.NumericFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.NumericFilter.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_NumericFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilter build() { - com.google.analytics.data.v1alpha.NumericFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilter buildPartial() { - com.google.analytics.data.v1alpha.NumericFilter result = - new com.google.analytics.data.v1alpha.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.v1alpha.NumericFilter) { - return mergeFrom((com.google.analytics.data.v1alpha.NumericFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.NumericFilter other) { - if (other == com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance()) - return this; - if (other.operation_ != 0) { - setOperationValue(other.getOperationValue()); - } - if (other.hasValue()) { - mergeValue(other.getValue()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - operation_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int operation_ = 0; - /** - * - * - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.NumericFilter.Operation operation = 1; - * - * @return The operation. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilter.Operation getOperation() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.NumericFilter.Operation result = - com.google.analytics.data.v1alpha.NumericFilter.Operation.valueOf(operation_); - return result == null - ? com.google.analytics.data.v1alpha.NumericFilter.Operation.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter.Operation operation = 1; - * - * @param value The operation to set. - * @return This builder for chaining. - */ - public Builder setOperation(com.google.analytics.data.v1alpha.NumericFilter.Operation value) { - if (value == null) { - throw new NullPointerException(); - } - - operation_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The operation type for this filter.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter.Operation operation = 1; - * - * @return This builder for chaining. - */ - public Builder clearOperation() { - - operation_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.data.v1alpha.NumericValue value_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.NumericValueOrBuilder> - valueBuilder_; - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericValue value = 2; - * - * @return The value. - */ - public com.google.analytics.data.v1alpha.NumericValue getValue() { - if (valueBuilder_ == null) { - return value_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : value_; - } else { - return valueBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue value = 2; - */ - public Builder setValue(com.google.analytics.data.v1alpha.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.v1alpha.NumericValue value = 2; - */ - public Builder setValue( - com.google.analytics.data.v1alpha.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.v1alpha.NumericValue value = 2; - */ - public Builder mergeValue(com.google.analytics.data.v1alpha.NumericValue value) { - if (valueBuilder_ == null) { - if (value_ != null) { - value_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.NumericValue value = 2; - */ - public com.google.analytics.data.v1alpha.NumericValue.Builder getValueBuilder() { - - onChanged(); - return getValueFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue value = 2; - */ - public com.google.analytics.data.v1alpha.NumericValueOrBuilder getValueOrBuilder() { - if (valueBuilder_ != null) { - return valueBuilder_.getMessageOrBuilder(); - } else { - return value_ == null - ? com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance() - : value_; - } - } - /** - * - * - *
-     * A numeric value or a date value.
-     * 
- * - * .google.analytics.data.v1alpha.NumericValue value = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.NumericValueOrBuilder> - getValueFieldBuilder() { - if (valueBuilder_ == null) { - valueBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericValue, - com.google.analytics.data.v1alpha.NumericValue.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.NumericFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.NumericFilter) - private static final com.google.analytics.data.v1alpha.NumericFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.NumericFilter(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilterOrBuilder.java deleted file mode 100644 index d7653660..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericFilterOrBuilder.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface NumericFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.NumericFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The operation type for this filter.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.NumericFilter.Operation operation = 1; - * - * @return The operation. - */ - com.google.analytics.data.v1alpha.NumericFilter.Operation getOperation(); - - /** - * - * - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.data.v1alpha.NumericValue value = 2; - * - * @return Whether the value field is set. - */ - boolean hasValue(); - /** - * - * - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.data.v1alpha.NumericValue value = 2; - * - * @return The value. - */ - com.google.analytics.data.v1alpha.NumericValue getValue(); - /** - * - * - *
-   * A numeric value or a date value.
-   * 
- * - * .google.analytics.data.v1alpha.NumericValue value = 2; - */ - com.google.analytics.data.v1alpha.NumericValueOrBuilder getValueOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java deleted file mode 100644 index 5b5fd408..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValue.java +++ /dev/null @@ -1,784 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * To represent a number.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.NumericValue} - */ -public final class NumericValue extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_NumericValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_NumericValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.NumericValue.class, - com.google.analytics.data.v1alpha.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_)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.NumericValue)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.NumericValue other = - (com.google.analytics.data.v1alpha.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.NumericValue parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.NumericValue parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.NumericValue parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.NumericValue parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.NumericValue parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.NumericValue} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.NumericValue) - com.google.analytics.data.v1alpha.NumericValueOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_NumericValue_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_NumericValue_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.NumericValue.class, - com.google.analytics.data.v1alpha.NumericValue.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.NumericValue.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_NumericValue_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericValue getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.NumericValue.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericValue build() { - com.google.analytics.data.v1alpha.NumericValue result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericValue buildPartial() { - com.google.analytics.data.v1alpha.NumericValue result = - new com.google.analytics.data.v1alpha.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.v1alpha.NumericValue) { - return mergeFrom((com.google.analytics.data.v1alpha.NumericValue) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.NumericValue other) { - if (other == com.google.analytics.data.v1alpha.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - oneValue_ = input.readInt64(); - oneValueCase_ = 1; - break; - } // case 8 - case 17: - { - oneValue_ = input.readDouble(); - oneValueCase_ = 2; - break; - } // case 17 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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.v1alpha.NumericValue) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.NumericValue) - private static final com.google.analytics.data.v1alpha.NumericValue DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.NumericValue(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericValue getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValueOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/NumericValueOrBuilder.java deleted file mode 100644 index fa7ace8c..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface NumericValueOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.NumericValue.OneValueCase getOneValueCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java deleted file mode 100644 index 95e5b149..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuota.java +++ /dev/null @@ -1,1971 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * 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.v1alpha.PropertyQuota} - */ -public final class PropertyQuota extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PropertyQuota_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.PropertyQuota.class, - com.google.analytics.data.v1alpha.PropertyQuota.Builder.class); - } - - public static final int TOKENS_PER_DAY_FIELD_NUMBER = 1; - private com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - * - * @return The tokensPerDay. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatus getTokensPerDay() { - return tokensPerDay_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerDayOrBuilder() { - return getTokensPerDay(); - } - - public static final int TOKENS_PER_HOUR_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; - * - * @return The tokensPerHour. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatus getTokensPerHour() { - return tokensPerHour_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerHourOrBuilder() { - return getTokensPerHour(); - } - - public static final int CONCURRENT_REQUESTS_FIELD_NUMBER = 3; - private com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - * - * @return The concurrentRequests. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatus getConcurrentRequests() { - return concurrentRequests_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getConcurrentRequestsOrBuilder() { - return getConcurrentRequests(); - } - - public static final int SERVER_ERRORS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 4; - private com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - * @return The serverErrorsPerProjectPerHour. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatus getServerErrorsPerProjectPerHour() { - return serverErrorsPerProjectPerHour_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder - getServerErrorsPerProjectPerHourOrBuilder() { - return getServerErrorsPerProjectPerHour(); - } - - public static final int POTENTIALLY_THRESHOLDED_REQUESTS_PER_HOUR_FIELD_NUMBER = 5; - private com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - * - * @return The potentiallyThresholdedRequestsPerHour. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatus getPotentiallyThresholdedRequestsPerHour() { - return potentiallyThresholdedRequestsPerHour_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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()); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.PropertyQuota)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.PropertyQuota other = - (com.google.analytics.data.v1alpha.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.PropertyQuota parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.PropertyQuota} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.PropertyQuota) - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PropertyQuota_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.PropertyQuota.class, - com.google.analytics.data.v1alpha.PropertyQuota.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.PropertyQuota.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.PropertyQuota getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.PropertyQuota build() { - com.google.analytics.data.v1alpha.PropertyQuota result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.PropertyQuota buildPartial() { - com.google.analytics.data.v1alpha.PropertyQuota result = - new com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota) { - return mergeFrom((com.google.analytics.data.v1alpha.PropertyQuota) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.PropertyQuota other) { - if (other == com.google.analytics.data.v1alpha.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getTokensPerDayFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getTokensPerHourFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage( - getConcurrentRequestsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage( - getServerErrorsPerProjectPerHourFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage( - getPotentiallyThresholdedRequestsPerHourFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.analytics.data.v1alpha.QuotaStatus tokensPerDay_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - * - * @return The tokensPerDay. - */ - public com.google.analytics.data.v1alpha.QuotaStatus getTokensPerDay() { - if (tokensPerDayBuilder_ == null) { - return tokensPerDay_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - */ - public Builder setTokensPerDay(com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - */ - public Builder setTokensPerDay( - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - */ - public Builder mergeTokensPerDay(com.google.analytics.data.v1alpha.QuotaStatus value) { - if (tokensPerDayBuilder_ == null) { - if (tokensPerDay_ != null) { - tokensPerDay_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - */ - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerDayOrBuilder() { - if (tokensPerDayBuilder_ != null) { - return tokensPerDayBuilder_.getMessageOrBuilder(); - } else { - return tokensPerDay_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder> - getTokensPerDayFieldBuilder() { - if (tokensPerDayBuilder_ == null) { - tokensPerDayBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>( - getTokensPerDay(), getParentForChildren(), isClean()); - tokensPerDay_ = null; - } - return tokensPerDayBuilder_; - } - - private com.google.analytics.data.v1alpha.QuotaStatus tokensPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; - * - * @return The tokensPerHour. - */ - public com.google.analytics.data.v1alpha.QuotaStatus getTokensPerHour() { - if (tokensPerHourBuilder_ == null) { - return tokensPerHour_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - public Builder setTokensPerHour(com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - public Builder setTokensPerHour( - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - public Builder mergeTokensPerHour(com.google.analytics.data.v1alpha.QuotaStatus value) { - if (tokensPerHourBuilder_ == null) { - if (tokensPerHour_ != null) { - tokensPerHour_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getTokensPerHourOrBuilder() { - if (tokensPerHourBuilder_ != null) { - return tokensPerHourBuilder_.getMessageOrBuilder(); - } else { - return tokensPerHour_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder> - getTokensPerHourFieldBuilder() { - if (tokensPerHourBuilder_ == null) { - tokensPerHourBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>( - getTokensPerHour(), getParentForChildren(), isClean()); - tokensPerHour_ = null; - } - return tokensPerHourBuilder_; - } - - private com.google.analytics.data.v1alpha.QuotaStatus concurrentRequests_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - * - * @return The concurrentRequests. - */ - public com.google.analytics.data.v1alpha.QuotaStatus getConcurrentRequests() { - if (concurrentRequestsBuilder_ == null) { - return concurrentRequests_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - */ - public Builder setConcurrentRequests(com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - */ - public Builder setConcurrentRequests( - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - */ - public Builder mergeConcurrentRequests(com.google.analytics.data.v1alpha.QuotaStatus value) { - if (concurrentRequestsBuilder_ == null) { - if (concurrentRequests_ != null) { - concurrentRequests_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - */ - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder getConcurrentRequestsOrBuilder() { - if (concurrentRequestsBuilder_ != null) { - return concurrentRequestsBuilder_.getMessageOrBuilder(); - } else { - return concurrentRequests_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder> - getConcurrentRequestsFieldBuilder() { - if (concurrentRequestsBuilder_ == null) { - concurrentRequestsBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>( - getConcurrentRequests(), getParentForChildren(), isClean()); - concurrentRequests_ = null; - } - return concurrentRequestsBuilder_; - } - - private com.google.analytics.data.v1alpha.QuotaStatus serverErrorsPerProjectPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - * - * @return The serverErrorsPerProjectPerHour. - */ - public com.google.analytics.data.v1alpha.QuotaStatus getServerErrorsPerProjectPerHour() { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - return serverErrorsPerProjectPerHour_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public Builder setServerErrorsPerProjectPerHour( - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public Builder setServerErrorsPerProjectPerHour( - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public Builder mergeServerErrorsPerProjectPerHour( - com.google.analytics.data.v1alpha.QuotaStatus value) { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - if (serverErrorsPerProjectPerHour_ != null) { - serverErrorsPerProjectPerHour_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder - getServerErrorsPerProjectPerHourOrBuilder() { - if (serverErrorsPerProjectPerHourBuilder_ != null) { - return serverErrorsPerProjectPerHourBuilder_.getMessageOrBuilder(); - } else { - return serverErrorsPerProjectPerHour_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder> - getServerErrorsPerProjectPerHourFieldBuilder() { - if (serverErrorsPerProjectPerHourBuilder_ == null) { - serverErrorsPerProjectPerHourBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder>( - getServerErrorsPerProjectPerHour(), getParentForChildren(), isClean()); - serverErrorsPerProjectPerHour_ = null; - } - return serverErrorsPerProjectPerHourBuilder_; - } - - private com.google.analytics.data.v1alpha.QuotaStatus potentiallyThresholdedRequestsPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - * - * @return The potentiallyThresholdedRequestsPerHour. - */ - public com.google.analytics.data.v1alpha.QuotaStatus - getPotentiallyThresholdedRequestsPerHour() { - if (potentiallyThresholdedRequestsPerHourBuilder_ == null) { - return potentiallyThresholdedRequestsPerHour_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - public Builder setPotentiallyThresholdedRequestsPerHour( - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - public Builder setPotentiallyThresholdedRequestsPerHour( - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - public Builder mergePotentiallyThresholdedRequestsPerHour( - com.google.analytics.data.v1alpha.QuotaStatus value) { - if (potentiallyThresholdedRequestsPerHourBuilder_ == null) { - if (potentiallyThresholdedRequestsPerHour_ != null) { - potentiallyThresholdedRequestsPerHour_ = - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - public com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - public com.google.analytics.data.v1alpha.QuotaStatusOrBuilder - getPotentiallyThresholdedRequestsPerHourOrBuilder() { - if (potentiallyThresholdedRequestsPerHourBuilder_ != null) { - return potentiallyThresholdedRequestsPerHourBuilder_.getMessageOrBuilder(); - } else { - return potentiallyThresholdedRequestsPerHour_ == null - ? com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder> - getPotentiallyThresholdedRequestsPerHourFieldBuilder() { - if (potentiallyThresholdedRequestsPerHourBuilder_ == null) { - potentiallyThresholdedRequestsPerHourBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.QuotaStatus, - com.google.analytics.data.v1alpha.QuotaStatus.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.PropertyQuota) - private static final com.google.analytics.data.v1alpha.PropertyQuota DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.PropertyQuota(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.PropertyQuota getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotaOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotaOrBuilder.java deleted file mode 100644 index 3551dd0d..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/PropertyQuotaOrBuilder.java +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface PropertyQuotaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - * - * @return The tokensPerDay. - */ - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_day = 1; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; - * - * @return The tokensPerHour. - */ - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus tokens_per_hour = 2; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - * - * @return The concurrentRequests. - */ - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus concurrent_requests = 3; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - * - * @return The serverErrorsPerProjectPerHour. - */ - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus server_errors_per_project_per_hour = 4; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - * - * @return The potentiallyThresholdedRequestsPerHour. - */ - com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus potentially_thresholded_requests_per_hour = 5; - * - */ - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder - getPotentiallyThresholdedRequestsPerHourOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatus.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatus.java deleted file mode 100644 index ad09707e..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatus.java +++ /dev/null @@ -1,617 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Current state for a particular quota group.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.QuotaStatus} - */ -public final class QuotaStatus extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_QuotaStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.QuotaStatus.class, - com.google.analytics.data.v1alpha.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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.QuotaStatus)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.QuotaStatus other = - (com.google.analytics.data.v1alpha.QuotaStatus) obj; - - if (getConsumed() != other.getConsumed()) return false; - if (getRemaining() != other.getRemaining()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONSUMED_FIELD_NUMBER; - hash = (53 * hash) + getConsumed(); - hash = (37 * hash) + REMAINING_FIELD_NUMBER; - hash = (53 * hash) + getRemaining(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.QuotaStatus parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.QuotaStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.QuotaStatus) - com.google.analytics.data.v1alpha.QuotaStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_QuotaStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.QuotaStatus.class, - com.google.analytics.data.v1alpha.QuotaStatus.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.QuotaStatus.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatus getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatus build() { - com.google.analytics.data.v1alpha.QuotaStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatus buildPartial() { - com.google.analytics.data.v1alpha.QuotaStatus result = - new com.google.analytics.data.v1alpha.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.v1alpha.QuotaStatus) { - return mergeFrom((com.google.analytics.data.v1alpha.QuotaStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.QuotaStatus other) { - if (other == com.google.analytics.data.v1alpha.QuotaStatus.getDefaultInstance()) return this; - if (other.getConsumed() != 0) { - setConsumed(other.getConsumed()); - } - if (other.getRemaining() != 0) { - setRemaining(other.getRemaining()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - consumed_ = input.readInt32(); - - break; - } // case 8 - case 16: - { - remaining_ = input.readInt32(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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.v1alpha.QuotaStatus) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.QuotaStatus) - private static final com.google.analytics.data.v1alpha.QuotaStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.QuotaStatus(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.QuotaStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatusOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/QuotaStatusOrBuilder.java deleted file mode 100644 index e95d0f78..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface QuotaStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java deleted file mode 100644 index a9d41197..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/ReportingApiProto.java +++ /dev/null @@ -1,1117 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -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_v1alpha_DateRange_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_DateRange_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_Dimension_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Dimension_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_DimensionExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FilterExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FilterExpressionList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_Filter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Filter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_StringFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_StringFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_InListFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_InListFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_NumericFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_NumericFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_BetweenFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_NumericValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_NumericValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_MetricHeader_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_Row_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Row_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_DimensionValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_MetricValue_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_MetricValue_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_PropertyQuota_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_QuotaStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FunnelBreakdown_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FunnelNextAction_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_Funnel_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Funnel_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FunnelStep_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FunnelSubReport_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_UserSegment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_UserSegment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_UserSequenceStep_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_SessionSegment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_EventSegment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_EventSegment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_Segment_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_Segment_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_SegmentFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_SegmentEventFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FunnelEventFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_data_v1alpha_SamplingMetadata_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/v1alpha/data.pro" - + "to\022\035google.analytics.data.v1alpha\032\036googl" - + "e/protobuf/duration.proto\"?\n\tDateRange\022\022" - + "\n\nstart_date\030\001 \001(\t\022\020\n\010end_date\030\002 \001(\t\022\014\n\004" - + "name\030\003 \001(\t\"k\n\tDimension\022\014\n\004name\030\001 \001(\t\022P\n" - + "\024dimension_expression\030\002 \001(\01322.google.ana" - + "lytics.data.v1alpha.DimensionExpression\"" - + "\251\003\n\023DimensionExpression\022W\n\nlower_case\030\004 " - + "\001(\0132A.google.analytics.data.v1alpha.Dime" - + "nsionExpression.CaseExpressionH\000\022W\n\nuppe" - + "r_case\030\005 \001(\0132A.google.analytics.data.v1a" - + "lpha.DimensionExpression.CaseExpressionH" - + "\000\022_\n\013concatenate\030\006 \001(\0132H.google.analytic" - + "s.data.v1alpha.DimensionExpression.Conca" - + "tenateExpressionH\000\032(\n\016CaseExpression\022\026\n\016" - + "dimension_name\030\001 \001(\t\032C\n\025ConcatenateExpre" - + "ssion\022\027\n\017dimension_names\030\001 \003(\t\022\021\n\tdelimi" - + "ter\030\002 \001(\tB\020\n\016one_expression\"\261\002\n\020FilterEx" - + "pression\022H\n\tand_group\030\001 \001(\01323.google.ana" - + "lytics.data.v1alpha.FilterExpressionList" - + "H\000\022G\n\010or_group\030\002 \001(\01323.google.analytics." - + "data.v1alpha.FilterExpressionListH\000\022I\n\016n" - + "ot_expression\030\003 \001(\0132/.google.analytics.d" - + "ata.v1alpha.FilterExpressionH\000\0227\n\006filter" - + "\030\004 \001(\0132%.google.analytics.data.v1alpha.F" - + "ilterH\000B\006\n\004expr\"\\\n\024FilterExpressionList\022" - + "D\n\013expressions\030\001 \003(\0132/.google.analytics." - + "data.v1alpha.FilterExpression\"\307\002\n\006Filter" - + "\022\022\n\nfield_name\030\001 \001(\t\022D\n\rstring_filter\030\002 " - + "\001(\0132+.google.analytics.data.v1alpha.Stri" - + "ngFilterH\000\022E\n\016in_list_filter\030\003 \001(\0132+.goo" - + "gle.analytics.data.v1alpha.InListFilterH" - + "\000\022F\n\016numeric_filter\030\004 \001(\0132,.google.analy" - + "tics.data.v1alpha.NumericFilterH\000\022F\n\016bet" - + "ween_filter\030\005 \001(\0132,.google.analytics.dat" - + "a.v1alpha.BetweenFilterH\000B\014\n\none_filter\"" - + "\210\002\n\014StringFilter\022I\n\nmatch_type\030\001 \001(\01625.g" - + "oogle.analytics.data.v1alpha.StringFilte" - + "r.MatchType\022\r\n\005value\030\002 \001(\t\022\026\n\016case_sensi" - + "tive\030\003 \001(\010\"\205\001\n\tMatchType\022\032\n\026MATCH_TYPE_U" - + "NSPECIFIED\020\000\022\t\n\005EXACT\020\001\022\017\n\013BEGINS_WITH\020\002" - + "\022\r\n\tENDS_WITH\020\003\022\014\n\010CONTAINS\020\004\022\017\n\013FULL_RE" - + "GEXP\020\005\022\022\n\016PARTIAL_REGEXP\020\006\"6\n\014InListFilt" - + "er\022\016\n\006values\030\001 \003(\t\022\026\n\016case_sensitive\030\002 \001" - + "(\010\"\236\002\n\rNumericFilter\022I\n\toperation\030\001 \001(\0162" - + "6.google.analytics.data.v1alpha.NumericF" - + "ilter.Operation\022:\n\005value\030\002 \001(\0132+.google." - + "analytics.data.v1alpha.NumericValue\"\205\001\n\t" - + "Operation\022\031\n\025OPERATION_UNSPECIFIED\020\000\022\t\n\005" - + "EQUAL\020\001\022\r\n\tLESS_THAN\020\002\022\026\n\022LESS_THAN_OR_E" - + "QUAL\020\003\022\020\n\014GREATER_THAN\020\004\022\031\n\025GREATER_THAN" - + "_OR_EQUAL\020\005\"\217\001\n\rBetweenFilter\022?\n\nfrom_va" - + "lue\030\001 \001(\0132+.google.analytics.data.v1alph" - + "a.NumericValue\022=\n\010to_value\030\002 \001(\0132+.googl" - + "e.analytics.data.v1alpha.NumericValue\"J\n" - + "\014NumericValue\022\025\n\013int64_value\030\001 \001(\003H\000\022\026\n\014" - + "double_value\030\002 \001(\001H\000B\013\n\tone_value\"\037\n\017Dim" - + "ensionHeader\022\014\n\004name\030\001 \001(\t\"U\n\014MetricHead" - + "er\022\014\n\004name\030\001 \001(\t\0227\n\004type\030\002 \001(\0162).google." - + "analytics.data.v1alpha.MetricType\"\221\001\n\003Ro" - + "w\022G\n\020dimension_values\030\001 \003(\0132-.google.ana" - + "lytics.data.v1alpha.DimensionValue\022A\n\rme" - + "tric_values\030\002 \003(\0132*.google.analytics.dat" - + "a.v1alpha.MetricValue\".\n\016DimensionValue\022" - + "\017\n\005value\030\001 \001(\tH\000B\013\n\tone_value\"+\n\013MetricV" - + "alue\022\017\n\005value\030\004 \001(\tH\000B\013\n\tone_value\"\230\003\n\rP" - + "ropertyQuota\022B\n\016tokens_per_day\030\001 \001(\0132*.g" - + "oogle.analytics.data.v1alpha.QuotaStatus" - + "\022C\n\017tokens_per_hour\030\002 \001(\0132*.google.analy" - + "tics.data.v1alpha.QuotaStatus\022G\n\023concurr" - + "ent_requests\030\003 \001(\0132*.google.analytics.da" - + "ta.v1alpha.QuotaStatus\022V\n\"server_errors_" - + "per_project_per_hour\030\004 \001(\0132*.google.anal" - + "ytics.data.v1alpha.QuotaStatus\022]\n)potent" - + "ially_thresholded_requests_per_hour\030\005 \001(" - + "\0132*.google.analytics.data.v1alpha.QuotaS" - + "tatus\"2\n\013QuotaStatus\022\020\n\010consumed\030\001 \001(\005\022\021" - + "\n\tremaining\030\002 \001(\005\"v\n\017FunnelBreakdown\022E\n\023" - + "breakdown_dimension\030\001 \001(\0132(.google.analy" - + "tics.data.v1alpha.Dimension\022\022\n\005limit\030\002 \001" - + "(\003H\000\210\001\001B\010\n\006_limit\"y\n\020FunnelNextAction\022G\n" - + "\025next_action_dimension\030\001 \001(\0132(.google.an" - + "alytics.data.v1alpha.Dimension\022\022\n\005limit\030" - + "\002 \001(\003H\000\210\001\001B\010\n\006_limit\"Z\n\006Funnel\022\026\n\016is_ope" - + "n_funnel\030\001 \001(\010\0228\n\005steps\030\002 \003(\0132).google.a" - + "nalytics.data.v1alpha.FunnelStep\"\372\001\n\nFun" - + "nelStep\022\014\n\004name\030\001 \001(\t\022\037\n\027is_directly_fol" - + "lowed_by\030\002 \001(\010\022G\n\037within_duration_from_p" - + "rior_step\030\003 \001(\0132\031.google.protobuf.Durati" - + "onH\000\210\001\001\022P\n\021filter_expression\030\004 \001(\01325.goo" - + "gle.analytics.data.v1alpha.FunnelFilterE" - + "xpressionB\"\n _within_duration_from_prior" - + "_step\"\234\002\n\017FunnelSubReport\022I\n\021dimension_h" - + "eaders\030\001 \003(\0132..google.analytics.data.v1a" - + "lpha.DimensionHeader\022C\n\016metric_headers\030\002" - + " \003(\0132+.google.analytics.data.v1alpha.Met" - + "ricHeader\0220\n\004rows\030\003 \003(\0132\".google.analyti" - + "cs.data.v1alpha.Row\022G\n\010metadata\030\004 \001(\01325." - + "google.analytics.data.v1alpha.FunnelResp" - + "onseMetadata\"\252\001\n\013UserSegment\022S\n\027user_inc" - + "lusion_criteria\030\001 \001(\01322.google.analytics" - + ".data.v1alpha.UserSegmentCriteria\022F\n\texc" - + "lusion\030\002 \001(\01323.google.analytics.data.v1a" - + "lpha.UserSegmentExclusion\"\303\001\n\023UserSegmen" - + "tCriteria\022V\n\024and_condition_groups\030\001 \003(\0132" - + "8.google.analytics.data.v1alpha.UserSegm" - + "entConditionGroup\022T\n\023and_sequence_groups" - + "\030\002 \003(\01327.google.analytics.data.v1alpha.U" - + "serSegmentSequenceGroup\"\305\001\n\031UserSegmentC" - + "onditionGroup\022M\n\021condition_scoping\030\001 \001(\016" - + "22.google.analytics.data.v1alpha.UserCri" - + "teriaScoping\022Y\n\031segment_filter_expressio" - + "n\030\002 \001(\01326.google.analytics.data.v1alpha." - + "SegmentFilterExpression\"\364\001\n\030UserSegmentS" - + "equenceGroup\022L\n\020sequence_scoping\030\001 \001(\01622" - + ".google.analytics.data.v1alpha.UserCrite" - + "riaScoping\022<\n\031sequence_maximum_duration\030" - + "\002 \001(\0132\031.google.protobuf.Duration\022L\n\023user" - + "_sequence_steps\030\003 \003(\0132/.google.analytics" - + ".data.v1alpha.UserSequenceStep\"\330\001\n\020UserS" - + "equenceStep\022\037\n\027is_directly_followed_by\030\001" - + " \001(\010\022H\n\014step_scoping\030\002 \001(\01622.google.anal" - + "ytics.data.v1alpha.UserCriteriaScoping\022Y" - + "\n\031segment_filter_expression\030\003 \001(\01326.goog" - + "le.analytics.data.v1alpha.SegmentFilterE" - + "xpression\"\302\001\n\024UserSegmentExclusion\022U\n\027us" - + "er_exclusion_duration\030\001 \001(\01624.google.ana" - + "lytics.data.v1alpha.UserExclusionDuratio" - + "n\022S\n\027user_exclusion_criteria\030\002 \001(\01322.goo" - + "gle.analytics.data.v1alpha.UserSegmentCr" - + "iteria\"\266\001\n\016SessionSegment\022Y\n\032session_inc" - + "lusion_criteria\030\001 \001(\01325.google.analytics" - + ".data.v1alpha.SessionSegmentCriteria\022I\n\t" - + "exclusion\030\002 \001(\01326.google.analytics.data." - + "v1alpha.SessionSegmentExclusion\"s\n\026Sessi" - + "onSegmentCriteria\022Y\n\024and_condition_group" - + "s\030\001 \003(\0132;.google.analytics.data.v1alpha." - + "SessionSegmentConditionGroup\"\313\001\n\034Session" - + "SegmentConditionGroup\022P\n\021condition_scopi" - + "ng\030\001 \001(\01625.google.analytics.data.v1alpha" - + ".SessionCriteriaScoping\022Y\n\031segment_filte" - + "r_expression\030\002 \001(\01326.google.analytics.da" - + "ta.v1alpha.SegmentFilterExpression\"\321\001\n\027S" - + "essionSegmentExclusion\022[\n\032session_exclus" - + "ion_duration\030\001 \001(\01627.google.analytics.da" - + "ta.v1alpha.SessionExclusionDuration\022Y\n\032s" - + "ession_exclusion_criteria\030\002 \001(\01325.google" - + ".analytics.data.v1alpha.SessionSegmentCr" - + "iteria\"\256\001\n\014EventSegment\022U\n\030event_inclusi" - + "on_criteria\030\001 \001(\01323.google.analytics.dat" - + "a.v1alpha.EventSegmentCriteria\022G\n\texclus" - + "ion\030\002 \001(\01324.google.analytics.data.v1alph" - + "a.EventSegmentExclusion\"o\n\024EventSegmentC" - + "riteria\022W\n\024and_condition_groups\030\001 \003(\01329." - + "google.analytics.data.v1alpha.EventSegme" - + "ntConditionGroup\"\307\001\n\032EventSegmentConditi" - + "onGroup\022N\n\021condition_scoping\030\001 \001(\01623.goo" - + "gle.analytics.data.v1alpha.EventCriteria" - + "Scoping\022Y\n\031segment_filter_expression\030\002 \001" - + "(\01326.google.analytics.data.v1alpha.Segme" - + "ntFilterExpression\"\307\001\n\025EventSegmentExclu" - + "sion\022W\n\030event_exclusion_duration\030\001 \001(\01625" - + ".google.analytics.data.v1alpha.EventExcl" - + "usionDuration\022U\n\030event_exclusion_criteri" - + "a\030\002 \001(\01323.google.analytics.data.v1alpha." - + "EventSegmentCriteria\"\200\002\n\007Segment\022\014\n\004name" - + "\030\001 \001(\t\022B\n\014user_segment\030\002 \001(\0132*.google.an" - + "alytics.data.v1alpha.UserSegmentH\000\022H\n\017se" - + "ssion_segment\030\003 \001(\0132-.google.analytics.d" - + "ata.v1alpha.SessionSegmentH\000\022D\n\revent_se" - + "gment\030\004 \001(\0132+.google.analytics.data.v1al" - + "pha.EventSegmentH\000B\023\n\021one_segment_scope\"" - + "\257\003\n\027SegmentFilterExpression\022O\n\tand_group" - + "\030\001 \001(\0132:.google.analytics.data.v1alpha.S" - + "egmentFilterExpressionListH\000\022N\n\010or_group" - + "\030\002 \001(\0132:.google.analytics.data.v1alpha.S" - + "egmentFilterExpressionListH\000\022P\n\016not_expr" - + "ession\030\003 \001(\01326.google.analytics.data.v1a" - + "lpha.SegmentFilterExpressionH\000\022F\n\016segmen" - + "t_filter\030\004 \001(\0132,.google.analytics.data.v" - + "1alpha.SegmentFilterH\000\022Q\n\024segment_event_" - + "filter\030\005 \001(\01321.google.analytics.data.v1a" - + "lpha.SegmentEventFilterH\000B\006\n\004expr\"j\n\033Seg" - + "mentFilterExpressionList\022K\n\013expressions\030" - + "\001 \003(\01326.google.analytics.data.v1alpha.Se" - + "gmentFilterExpression\"\233\003\n\rSegmentFilter\022" - + "\022\n\nfield_name\030\001 \001(\t\022D\n\rstring_filter\030\004 \001" - + "(\0132+.google.analytics.data.v1alpha.Strin" - + "gFilterH\000\022E\n\016in_list_filter\030\005 \001(\0132+.goog" - + "le.analytics.data.v1alpha.InListFilterH\000" - + "\022F\n\016numeric_filter\030\006 \001(\0132,.google.analyt" - + "ics.data.v1alpha.NumericFilterH\000\022F\n\016betw" - + "een_filter\030\007 \001(\0132,.google.analytics.data" - + ".v1alpha.BetweenFilterH\000\022K\n\016filter_scopi" - + "ng\030\010 \001(\01323.google.analytics.data.v1alpha" - + ".SegmentFilterScopingB\014\n\none_filter\"R\n\024S" - + "egmentFilterScoping\022!\n\024at_any_point_in_t" - + "ime\030\001 \001(\010H\000\210\001\001B\027\n\025_at_any_point_in_time\"" - + "\327\001\n\022SegmentEventFilter\022\027\n\nevent_name\030\001 \001" - + "(\tH\000\210\001\001\022q\n#segment_parameter_filter_expr" - + "ession\030\002 \001(\0132?.google.analytics.data.v1a" - + "lpha.SegmentParameterFilterExpressionH\001\210" - + "\001\001B\r\n\013_event_nameB&\n$_segment_parameter_" - + "filter_expression\"\223\003\n SegmentParameterFi" - + "lterExpression\022X\n\tand_group\030\001 \001(\0132C.goog" - + "le.analytics.data.v1alpha.SegmentParamet" - + "erFilterExpressionListH\000\022W\n\010or_group\030\002 \001" - + "(\0132C.google.analytics.data.v1alpha.Segme" - + "ntParameterFilterExpressionListH\000\022Y\n\016not" - + "_expression\030\003 \001(\0132?.google.analytics.dat" - + "a.v1alpha.SegmentParameterFilterExpressi" - + "onH\000\022Y\n\030segment_parameter_filter\030\004 \001(\01325" - + ".google.analytics.data.v1alpha.SegmentPa" - + "rameterFilterH\000B\006\n\004expr\"|\n$SegmentParame" - + "terFilterExpressionList\022T\n\013expressions\030\001" - + " \003(\0132?.google.analytics.data.v1alpha.Seg" - + "mentParameterFilterExpression\"\351\003\n\026Segmen" - + "tParameterFilter\022\036\n\024event_parameter_name" - + "\030\001 \001(\tH\000\022\035\n\023item_parameter_name\030\002 \001(\tH\000\022" - + "D\n\rstring_filter\030\004 \001(\0132+.google.analytic" - + "s.data.v1alpha.StringFilterH\001\022E\n\016in_list" - + "_filter\030\005 \001(\0132+.google.analytics.data.v1" - + "alpha.InListFilterH\001\022F\n\016numeric_filter\030\006" - + " \001(\0132,.google.analytics.data.v1alpha.Num" - + "ericFilterH\001\022F\n\016between_filter\030\007 \001(\0132,.g" - + "oogle.analytics.data.v1alpha.BetweenFilt" - + "erH\001\022T\n\016filter_scoping\030\010 \001(\0132<.google.an" - + "alytics.data.v1alpha.SegmentParameterFil" - + "terScopingB\017\n\rone_parameterB\014\n\none_filte" - + "r\"Y\n\035SegmentParameterFilterScoping\022 \n\023in" - + "_any_n_day_period\030\001 \001(\003H\000\210\001\001B\026\n\024_in_any_" - + "n_day_period\"\262\003\n\026FunnelFilterExpression\022" - + "N\n\tand_group\030\001 \001(\01329.google.analytics.da" - + "ta.v1alpha.FunnelFilterExpressionListH\000\022" - + "M\n\010or_group\030\002 \001(\01329.google.analytics.dat" - + "a.v1alpha.FunnelFilterExpressionListH\000\022O" - + "\n\016not_expression\030\003 \001(\01325.google.analytic" - + "s.data.v1alpha.FunnelFilterExpressionH\000\022" - + "O\n\023funnel_field_filter\030\004 \001(\01320.google.an" - + "alytics.data.v1alpha.FunnelFieldFilterH\000" - + "\022O\n\023funnel_event_filter\030\005 \001(\01320.google.a" - + "nalytics.data.v1alpha.FunnelEventFilterH" - + "\000B\006\n\004expr\"h\n\032FunnelFilterExpressionList\022" - + "J\n\013expressions\030\001 \003(\01325.google.analytics." - + "data.v1alpha.FunnelFilterExpression\"\322\002\n\021" - + "FunnelFieldFilter\022\022\n\nfield_name\030\001 \001(\t\022D\n" - + "\rstring_filter\030\004 \001(\0132+.google.analytics." - + "data.v1alpha.StringFilterH\000\022E\n\016in_list_f" - + "ilter\030\005 \001(\0132+.google.analytics.data.v1al" - + "pha.InListFilterH\000\022F\n\016numeric_filter\030\006 \001" - + "(\0132,.google.analytics.data.v1alpha.Numer" - + "icFilterH\000\022F\n\016between_filter\030\007 \001(\0132,.goo" - + "gle.analytics.data.v1alpha.BetweenFilter" - + "H\000B\014\n\none_filter\"\323\001\n\021FunnelEventFilter\022\027" - + "\n\nevent_name\030\001 \001(\tH\000\210\001\001\022o\n\"funnel_parame" - + "ter_filter_expression\030\002 \001(\0132>.google.ana" - + "lytics.data.v1alpha.FunnelParameterFilte" - + "rExpressionH\001\210\001\001B\r\n\013_event_nameB%\n#_funn" - + "el_parameter_filter_expression\"\215\003\n\037Funne" - + "lParameterFilterExpression\022W\n\tand_group\030" - + "\001 \001(\0132B.google.analytics.data.v1alpha.Fu" - + "nnelParameterFilterExpressionListH\000\022V\n\010o" - + "r_group\030\002 \001(\0132B.google.analytics.data.v1" - + "alpha.FunnelParameterFilterExpressionLis" - + "tH\000\022X\n\016not_expression\030\003 \001(\0132>.google.ana" - + "lytics.data.v1alpha.FunnelParameterFilte" - + "rExpressionH\000\022W\n\027funnel_parameter_filter" - + "\030\004 \001(\01324.google.analytics.data.v1alpha.F" - + "unnelParameterFilterH\000B\006\n\004expr\"z\n#Funnel" - + "ParameterFilterExpressionList\022S\n\013express" - + "ions\030\001 \003(\0132>.google.analytics.data.v1alp" - + "ha.FunnelParameterFilterExpression\"\222\003\n\025F" - + "unnelParameterFilter\022\036\n\024event_parameter_" - + "name\030\001 \001(\tH\000\022\035\n\023item_parameter_name\030\002 \001(" - + "\tH\000\022D\n\rstring_filter\030\004 \001(\0132+.google.anal" - + "ytics.data.v1alpha.StringFilterH\001\022E\n\016in_" - + "list_filter\030\005 \001(\0132+.google.analytics.dat" - + "a.v1alpha.InListFilterH\001\022F\n\016numeric_filt" - + "er\030\006 \001(\0132,.google.analytics.data.v1alpha" - + ".NumericFilterH\001\022F\n\016between_filter\030\007 \001(\013" - + "2,.google.analytics.data.v1alpha.Between" - + "FilterH\001B\017\n\rone_parameterB\014\n\none_filter\"" - + "e\n\026FunnelResponseMetadata\022K\n\022sampling_me" - + "tadatas\030\001 \003(\0132/.google.analytics.data.v1" - + "alpha.SamplingMetadata\"K\n\020SamplingMetada" - + "ta\022\032\n\022samples_read_count\030\001 \001(\003\022\033\n\023sampli" - + "ng_space_size\030\002 \001(\003*\257\001\n\023UserCriteriaScop" - + "ing\022%\n!USER_CRITERIA_SCOPING_UNSPECIFIED" - + "\020\000\022#\n\037USER_CRITERIA_WITHIN_SAME_EVENT\020\001\022" - + "%\n!USER_CRITERIA_WITHIN_SAME_SESSION\020\002\022%" - + "\n!USER_CRITERIA_ACROSS_ALL_SESSIONS\020\003*|\n" - + "\025UserExclusionDuration\022\'\n#USER_EXCLUSION" - + "_DURATION_UNSPECIFIED\020\000\022\034\n\030USER_EXCLUSIO" - + "N_TEMPORARY\020\001\022\034\n\030USER_EXCLUSION_PERMANEN" - + "T\020\002*\224\001\n\026SessionCriteriaScoping\022(\n$SESSIO" - + "N_CRITERIA_SCOPING_UNSPECIFIED\020\000\022&\n\"SESS" - + "ION_CRITERIA_WITHIN_SAME_EVENT\020\001\022(\n$SESS" - + "ION_CRITERIA_WITHIN_SAME_SESSION\020\002*\210\001\n\030S" - + "essionExclusionDuration\022*\n&SESSION_EXCLU" - + "SION_DURATION_UNSPECIFIED\020\000\022\037\n\033SESSION_E" - + "XCLUSION_TEMPORARY\020\001\022\037\n\033SESSION_EXCLUSIO" - + "N_PERMANENT\020\002*d\n\024EventCriteriaScoping\022&\n" - + "\"EVENT_CRITERIA_SCOPING_UNSPECIFIED\020\000\022$\n" - + " EVENT_CRITERIA_WITHIN_SAME_EVENT\020\001*a\n\026E" - + "ventExclusionDuration\022(\n$EVENT_EXCLUSION" - + "_DURATION_UNSPECIFIED\020\000\022\035\n\031EVENT_EXCLUSI" - + "ON_PERMANENT\020\001*\201\002\n\nMetricType\022\033\n\027METRIC_" - + "TYPE_UNSPECIFIED\020\000\022\020\n\014TYPE_INTEGER\020\001\022\016\n\n" - + "TYPE_FLOAT\020\002\022\020\n\014TYPE_SECONDS\020\004\022\025\n\021TYPE_M" - + "ILLISECONDS\020\005\022\020\n\014TYPE_MINUTES\020\006\022\016\n\nTYPE_" - + "HOURS\020\007\022\021\n\rTYPE_STANDARD\020\010\022\021\n\rTYPE_CURRE" - + "NCY\020\t\022\r\n\tTYPE_FEET\020\n\022\016\n\nTYPE_MILES\020\013\022\017\n\013" - + "TYPE_METERS\020\014\022\023\n\017TYPE_KILOMETERS\020\rB{\n!co" - + "m.google.analytics.data.v1alphaB\021Reporti" - + "ngApiProtoP\001ZAgoogle.golang.org/genproto" - + "/googleapis/analytics/data/v1alpha;datab" - + "\006proto3" - }; - descriptor = - com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( - descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.protobuf.DurationProto.getDescriptor(), - }); - internal_static_google_analytics_data_v1alpha_DateRange_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_analytics_data_v1alpha_DateRange_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_DateRange_descriptor, - new java.lang.String[] { - "StartDate", "EndDate", "Name", - }); - internal_static_google_analytics_data_v1alpha_Dimension_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_analytics_data_v1alpha_Dimension_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Dimension_descriptor, - new java.lang.String[] { - "Name", "DimensionExpression", - }); - internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_analytics_data_v1alpha_DimensionExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor, - new java.lang.String[] { - "LowerCase", "UpperCase", "Concatenate", "OneExpression", - }); - internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor = - internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor - .getNestedTypes() - .get(0); - internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_DimensionExpression_CaseExpression_descriptor, - new java.lang.String[] { - "DimensionName", - }); - internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor = - internal_static_google_analytics_data_v1alpha_DimensionExpression_descriptor - .getNestedTypes() - .get(1); - internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_DimensionExpression_ConcatenateExpression_descriptor, - new java.lang.String[] { - "DimensionNames", "Delimiter", - }); - internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_analytics_data_v1alpha_FilterExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FilterExpression_descriptor, - new java.lang.String[] { - "AndGroup", "OrGroup", "NotExpression", "Filter", "Expr", - }); - internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_analytics_data_v1alpha_FilterExpressionList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FilterExpressionList_descriptor, - new java.lang.String[] { - "Expressions", - }); - internal_static_google_analytics_data_v1alpha_Filter_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_analytics_data_v1alpha_Filter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Filter_descriptor, - new java.lang.String[] { - "FieldName", - "StringFilter", - "InListFilter", - "NumericFilter", - "BetweenFilter", - "OneFilter", - }); - internal_static_google_analytics_data_v1alpha_StringFilter_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_analytics_data_v1alpha_StringFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_StringFilter_descriptor, - new java.lang.String[] { - "MatchType", "Value", "CaseSensitive", - }); - internal_static_google_analytics_data_v1alpha_InListFilter_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_analytics_data_v1alpha_InListFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_InListFilter_descriptor, - new java.lang.String[] { - "Values", "CaseSensitive", - }); - internal_static_google_analytics_data_v1alpha_NumericFilter_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_analytics_data_v1alpha_NumericFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_NumericFilter_descriptor, - new java.lang.String[] { - "Operation", "Value", - }); - internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_analytics_data_v1alpha_BetweenFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_BetweenFilter_descriptor, - new java.lang.String[] { - "FromValue", "ToValue", - }); - internal_static_google_analytics_data_v1alpha_NumericValue_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_analytics_data_v1alpha_NumericValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_NumericValue_descriptor, - new java.lang.String[] { - "Int64Value", "DoubleValue", "OneValue", - }); - internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_analytics_data_v1alpha_DimensionHeader_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_DimensionHeader_descriptor, - new java.lang.String[] { - "Name", - }); - internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_analytics_data_v1alpha_MetricHeader_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_MetricHeader_descriptor, - new java.lang.String[] { - "Name", "Type", - }); - internal_static_google_analytics_data_v1alpha_Row_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_analytics_data_v1alpha_Row_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Row_descriptor, - new java.lang.String[] { - "DimensionValues", "MetricValues", - }); - internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_analytics_data_v1alpha_DimensionValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_DimensionValue_descriptor, - new java.lang.String[] { - "Value", "OneValue", - }); - internal_static_google_analytics_data_v1alpha_MetricValue_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_analytics_data_v1alpha_MetricValue_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_MetricValue_descriptor, - new java.lang.String[] { - "Value", "OneValue", - }); - internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_analytics_data_v1alpha_PropertyQuota_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_PropertyQuota_descriptor, - new java.lang.String[] { - "TokensPerDay", - "TokensPerHour", - "ConcurrentRequests", - "ServerErrorsPerProjectPerHour", - "PotentiallyThresholdedRequestsPerHour", - }); - internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_analytics_data_v1alpha_QuotaStatus_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_QuotaStatus_descriptor, - new java.lang.String[] { - "Consumed", "Remaining", - }); - internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_analytics_data_v1alpha_FunnelBreakdown_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FunnelBreakdown_descriptor, - new java.lang.String[] { - "BreakdownDimension", "Limit", "Limit", - }); - internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_analytics_data_v1alpha_FunnelNextAction_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FunnelNextAction_descriptor, - new java.lang.String[] { - "NextActionDimension", "Limit", "Limit", - }); - internal_static_google_analytics_data_v1alpha_Funnel_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_analytics_data_v1alpha_Funnel_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Funnel_descriptor, - new java.lang.String[] { - "IsOpenFunnel", "Steps", - }); - internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_analytics_data_v1alpha_FunnelStep_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FunnelStep_descriptor, - new java.lang.String[] { - "Name", - "IsDirectlyFollowedBy", - "WithinDurationFromPriorStep", - "FilterExpression", - "WithinDurationFromPriorStep", - }); - internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_analytics_data_v1alpha_FunnelSubReport_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FunnelSubReport_descriptor, - new java.lang.String[] { - "DimensionHeaders", "MetricHeaders", "Rows", "Metadata", - }); - internal_static_google_analytics_data_v1alpha_UserSegment_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_analytics_data_v1alpha_UserSegment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_UserSegment_descriptor, - new java.lang.String[] { - "UserInclusionCriteria", "Exclusion", - }); - internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor, - new java.lang.String[] { - "AndConditionGroups", "AndSequenceGroups", - }); - internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor, - new java.lang.String[] { - "ConditionScoping", "SegmentFilterExpression", - }); - internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor, - new java.lang.String[] { - "SequenceScoping", "SequenceMaximumDuration", "UserSequenceSteps", - }); - internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_analytics_data_v1alpha_UserSequenceStep_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor, - new java.lang.String[] { - "IsDirectlyFollowedBy", "StepScoping", "SegmentFilterExpression", - }); - internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor, - new java.lang.String[] { - "UserExclusionDuration", "UserExclusionCriteria", - }); - internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_analytics_data_v1alpha_SessionSegment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor, - new java.lang.String[] { - "SessionInclusionCriteria", "Exclusion", - }); - internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor, - new java.lang.String[] { - "AndConditionGroups", - }); - internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor, - new java.lang.String[] { - "ConditionScoping", "SegmentFilterExpression", - }); - internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor, - new java.lang.String[] { - "SessionExclusionDuration", "SessionExclusionCriteria", - }); - internal_static_google_analytics_data_v1alpha_EventSegment_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_analytics_data_v1alpha_EventSegment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_EventSegment_descriptor, - new java.lang.String[] { - "EventInclusionCriteria", "Exclusion", - }); - internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_EventSegmentCriteria_descriptor, - new java.lang.String[] { - "AndConditionGroups", - }); - internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_EventSegmentConditionGroup_descriptor, - new java.lang.String[] { - "ConditionScoping", "SegmentFilterExpression", - }); - internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_EventSegmentExclusion_descriptor, - new java.lang.String[] { - "EventExclusionDuration", "EventExclusionCriteria", - }); - internal_static_google_analytics_data_v1alpha_Segment_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_analytics_data_v1alpha_Segment_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_Segment_descriptor, - new java.lang.String[] { - "Name", "UserSegment", "SessionSegment", "EventSegment", "OneSegmentScope", - }); - internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor, - new java.lang.String[] { - "AndGroup", "OrGroup", "NotExpression", "SegmentFilter", "SegmentEventFilter", "Expr", - }); - internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor, - new java.lang.String[] { - "Expressions", - }); - internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_analytics_data_v1alpha_SegmentFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor, - new java.lang.String[] { - "FieldName", - "StringFilter", - "InListFilter", - "NumericFilter", - "BetweenFilter", - "FilterScoping", - "OneFilter", - }); - internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor, - new java.lang.String[] { - "AtAnyPointInTime", "AtAnyPointInTime", - }); - internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor = - getDescriptor().getMessageTypes().get(42); - internal_static_google_analytics_data_v1alpha_SegmentEventFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor, - new java.lang.String[] { - "EventName", - "SegmentParameterFilterExpression", - "EventName", - "SegmentParameterFilterExpression", - }); - internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor, - new java.lang.String[] { - "AndGroup", "OrGroup", "NotExpression", "SegmentParameterFilter", "Expr", - }); - internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(44); - internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor, - new java.lang.String[] { - "Expressions", - }); - internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor = - getDescriptor().getMessageTypes().get(45); - internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor, - new java.lang.String[] { - "EventParameterName", - "ItemParameterName", - "StringFilter", - "InListFilter", - "NumericFilter", - "BetweenFilter", - "FilterScoping", - "OneParameter", - "OneFilter", - }); - internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor = - getDescriptor().getMessageTypes().get(46); - internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor, - new java.lang.String[] { - "InAnyNDayPeriod", "InAnyNDayPeriod", - }); - internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FunnelFilterExpression_descriptor, - new java.lang.String[] { - "AndGroup", - "OrGroup", - "NotExpression", - "FunnelFieldFilter", - "FunnelEventFilter", - "Expr", - }); - internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(48); - internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FunnelFilterExpressionList_descriptor, - new java.lang.String[] { - "Expressions", - }); - internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor = - getDescriptor().getMessageTypes().get(49); - internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FunnelFieldFilter_descriptor, - new java.lang.String[] { - "FieldName", - "StringFilter", - "InListFilter", - "NumericFilter", - "BetweenFilter", - "OneFilter", - }); - internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor = - getDescriptor().getMessageTypes().get(50); - internal_static_google_analytics_data_v1alpha_FunnelEventFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FunnelEventFilter_descriptor, - new java.lang.String[] { - "EventName", - "FunnelParameterFilterExpression", - "EventName", - "FunnelParameterFilterExpression", - }); - internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor = - getDescriptor().getMessageTypes().get(51); - internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpression_descriptor, - new java.lang.String[] { - "AndGroup", "OrGroup", "NotExpression", "FunnelParameterFilter", "Expr", - }); - internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor = - getDescriptor().getMessageTypes().get(52); - internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FunnelParameterFilterExpressionList_descriptor, - new java.lang.String[] { - "Expressions", - }); - internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor = - getDescriptor().getMessageTypes().get(53); - internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FunnelParameterFilter_descriptor, - new java.lang.String[] { - "EventParameterName", - "ItemParameterName", - "StringFilter", - "InListFilter", - "NumericFilter", - "BetweenFilter", - "OneParameter", - "OneFilter", - }); - internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor = - getDescriptor().getMessageTypes().get(54); - internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_FunnelResponseMetadata_descriptor, - new java.lang.String[] { - "SamplingMetadatas", - }); - internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor = - getDescriptor().getMessageTypes().get(55); - internal_static_google_analytics_data_v1alpha_SamplingMetadata_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor, - new java.lang.String[] { - "SamplesReadCount", "SamplingSpaceSize", - }); - com.google.protobuf.DurationProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java deleted file mode 100644 index fbef5ac2..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Row.java +++ /dev/null @@ -1,1516 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * 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.v1alpha.Row} - */ -public final class Row extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Row_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Row_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Row.class, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - @java.lang.Override - public java.util.List getMetricValuesList() { - return metricValues_; - } - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - @java.lang.Override - public java.util.List - getMetricValuesOrBuilderList() { - return metricValues_; - } - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - @java.lang.Override - public int getMetricValuesCount() { - return metricValues_.size(); - } - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.MetricValue getMetricValues(int index) { - return metricValues_.get(index); - } - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.Row)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Row other = (com.google.analytics.data.v1alpha.Row) obj; - - if (!getDimensionValuesList().equals(other.getDimensionValuesList())) return false; - if (!getMetricValuesList().equals(other.getMetricValuesList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.Row parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Row parseFrom(com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Row parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Row parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.Row parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.Row} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Row) - com.google.analytics.data.v1alpha.RowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Row_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Row_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Row.class, - com.google.analytics.data.v1alpha.Row.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.Row.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (dimensionValuesBuilder_ == null) { - dimensionValues_ = java.util.Collections.emptyList(); - } else { - dimensionValues_ = null; - dimensionValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricValuesBuilder_ == null) { - metricValues_ = java.util.Collections.emptyList(); - } else { - metricValues_ = null; - metricValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Row_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Row getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Row.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Row build() { - com.google.analytics.data.v1alpha.Row result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Row buildPartial() { - com.google.analytics.data.v1alpha.Row result = - new com.google.analytics.data.v1alpha.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.v1alpha.Row) { - return mergeFrom((com.google.analytics.data.v1alpha.Row) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Row other) { - if (other == com.google.analytics.data.v1alpha.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1alpha.DimensionValue m = - input.readMessage( - com.google.analytics.data.v1alpha.DimensionValue.parser(), - extensionRegistry); - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.add(m); - } else { - dimensionValuesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1alpha.MetricValue m = - input.readMessage( - com.google.analytics.data.v1alpha.MetricValue.parser(), extensionRegistry); - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - metricValues_.add(m); - } else { - metricValuesBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private 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.v1alpha.DimensionValue, - com.google.analytics.data.v1alpha.DimensionValue.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder setDimensionValues( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder setDimensionValues( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues(com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - int index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public Builder addDimensionValues( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1alpha.DimensionValue.Builder addDimensionValuesBuilder() { - return getDimensionValuesFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public com.google.analytics.data.v1alpha.DimensionValue.Builder addDimensionValuesBuilder( - int index) { - return getDimensionValuesFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - public java.util.List - getDimensionValuesBuilderList() { - return getDimensionValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionValue, - com.google.analytics.data.v1alpha.DimensionValue.Builder, - com.google.analytics.data.v1alpha.DimensionValueOrBuilder> - getDimensionValuesFieldBuilder() { - if (dimensionValuesBuilder_ == null) { - dimensionValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DimensionValue, - com.google.analytics.data.v1alpha.DimensionValue.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.MetricValue, - com.google.analytics.data.v1alpha.MetricValue.Builder, - com.google.analytics.data.v1alpha.MetricValueOrBuilder> - metricValuesBuilder_; - - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public Builder setMetricValues(int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public Builder setMetricValues( - int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public Builder addMetricValues(com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public Builder addMetricValues(int index, com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public Builder addMetricValues( - com.google.analytics.data.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public Builder addMetricValues( - int index, com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public com.google.analytics.data.v1alpha.MetricValue.Builder getMetricValuesBuilder(int index) { - return getMetricValuesFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - public com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.MetricValue metric_values = 2; - */ - public com.google.analytics.data.v1alpha.MetricValue.Builder addMetricValuesBuilder() { - return getMetricValuesFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.MetricValue.getDefaultInstance()); - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - public com.google.analytics.data.v1alpha.MetricValue.Builder addMetricValuesBuilder(int index) { - return getMetricValuesFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.MetricValue.getDefaultInstance()); - } - /** - * - * - *
-     * List of requested visible metric values.
-     * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - public java.util.List - getMetricValuesBuilderList() { - return getMetricValuesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.MetricValue, - com.google.analytics.data.v1alpha.MetricValue.Builder, - com.google.analytics.data.v1alpha.MetricValueOrBuilder> - getMetricValuesFieldBuilder() { - if (metricValuesBuilder_ == null) { - metricValuesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.MetricValue, - com.google.analytics.data.v1alpha.MetricValue.Builder, - com.google.analytics.data.v1alpha.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.v1alpha.Row) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Row) - private static final com.google.analytics.data.v1alpha.Row DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Row(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Row getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RowOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RowOrBuilder.java deleted file mode 100644 index 822a7fd3..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface RowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.DimensionValue dimension_values = 1; - */ - com.google.analytics.data.v1alpha.DimensionValueOrBuilder getDimensionValuesOrBuilder(int index); - - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - java.util.List getMetricValuesList(); - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - com.google.analytics.data.v1alpha.MetricValue getMetricValues(int index); - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - int getMetricValuesCount(); - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - java.util.List - getMetricValuesOrBuilderList(); - /** - * - * - *
-   * List of requested visible metric values.
-   * 
- * - * repeated .google.analytics.data.v1alpha.MetricValue metric_values = 2; - */ - com.google.analytics.data.v1alpha.MetricValueOrBuilder getMetricValuesOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java deleted file mode 100644 index 1a8ed6ff..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequest.java +++ /dev/null @@ -1,3627 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The request for a funnel report.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.RunFunnelReportRequest} - */ -public final class RunFunnelReportRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.RunFunnelReportRequest) - RunFunnelReportRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use RunFunnelReportRequest.newBuilder() to construct. - private RunFunnelReportRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RunFunnelReportRequest() { - property_ = ""; - dateRanges_ = java.util.Collections.emptyList(); - funnelVisualizationType_ = 0; - segments_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RunFunnelReportRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.RunFunnelReportRequest.class, - com.google.analytics.data.v1alpha.RunFunnelReportRequest.Builder.class); - } - - /** - * - * - *
-   * Controls the dimensions present in the funnel visualization sub report
-   * response.
-   * 
- * - * Protobuf enum {@code - * google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType} - */ - public enum FunnelVisualizationType implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-     * Unspecified type.
-     * 
- * - * FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED = 0; - */ - FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED(0), - /** - * - * - *
-     * A standard (stepped) funnel. The funnel visualization sub report in the
-     * response will not contain date.
-     * 
- * - * STANDARD_FUNNEL = 1; - */ - STANDARD_FUNNEL(1), - /** - * - * - *
-     * A trended (line chart) funnel. The funnel visualization sub report in the
-     * response will contain the date dimension.
-     * 
- * - * TRENDED_FUNNEL = 2; - */ - TRENDED_FUNNEL(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-     * Unspecified type.
-     * 
- * - * FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED = 0; - */ - public static final int FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-     * A standard (stepped) funnel. The funnel visualization sub report in the
-     * response will not contain date.
-     * 
- * - * STANDARD_FUNNEL = 1; - */ - public static final int STANDARD_FUNNEL_VALUE = 1; - /** - * - * - *
-     * A trended (line chart) funnel. The funnel visualization sub report in the
-     * response will contain the date dimension.
-     * 
- * - * TRENDED_FUNNEL = 2; - */ - public static final int TRENDED_FUNNEL_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 FunnelVisualizationType 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 FunnelVisualizationType forNumber(int value) { - switch (value) { - case 0: - return FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED; - case 1: - return STANDARD_FUNNEL; - case 2: - return TRENDED_FUNNEL; - 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 FunnelVisualizationType findValueByNumber(int number) { - return FunnelVisualizationType.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.v1alpha.RunFunnelReportRequest.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final FunnelVisualizationType[] VALUES = values(); - - public static FunnelVisualizationType 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 FunnelVisualizationType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType) - } - - 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 DATE_RANGES_FIELD_NUMBER = 2; - 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.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - @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.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - @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.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - @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.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.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.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangesOrBuilder(int index) { - return dateRanges_.get(index); - } - - public static final int FUNNEL_FIELD_NUMBER = 3; - private com.google.analytics.data.v1alpha.Funnel funnel_; - /** - * - * - *
-   * The configuration of this request's funnel. This funnel configuration is
-   * required.
-   * 
- * - * .google.analytics.data.v1alpha.Funnel funnel = 3; - * - * @return Whether the funnel field is set. - */ - @java.lang.Override - public boolean hasFunnel() { - return funnel_ != null; - } - /** - * - * - *
-   * The configuration of this request's funnel. This funnel configuration is
-   * required.
-   * 
- * - * .google.analytics.data.v1alpha.Funnel funnel = 3; - * - * @return The funnel. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Funnel getFunnel() { - return funnel_ == null - ? com.google.analytics.data.v1alpha.Funnel.getDefaultInstance() - : funnel_; - } - /** - * - * - *
-   * The configuration of this request's funnel. This funnel configuration is
-   * required.
-   * 
- * - * .google.analytics.data.v1alpha.Funnel funnel = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelOrBuilder getFunnelOrBuilder() { - return getFunnel(); - } - - public static final int FUNNEL_BREAKDOWN_FIELD_NUMBER = 4; - private com.google.analytics.data.v1alpha.FunnelBreakdown funnelBreakdown_; - /** - * - * - *
-   * If specified, this breakdown adds a dimension to the funnel table sub
-   * report response. This breakdown dimension expands each funnel step to the
-   * unique values of the breakdown dimension. For example, a breakdown by the
-   * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
-   * `desktop`, and the total.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; - * - * @return Whether the funnelBreakdown field is set. - */ - @java.lang.Override - public boolean hasFunnelBreakdown() { - return funnelBreakdown_ != null; - } - /** - * - * - *
-   * If specified, this breakdown adds a dimension to the funnel table sub
-   * report response. This breakdown dimension expands each funnel step to the
-   * unique values of the breakdown dimension. For example, a breakdown by the
-   * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
-   * `desktop`, and the total.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; - * - * @return The funnelBreakdown. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelBreakdown getFunnelBreakdown() { - return funnelBreakdown_ == null - ? com.google.analytics.data.v1alpha.FunnelBreakdown.getDefaultInstance() - : funnelBreakdown_; - } - /** - * - * - *
-   * If specified, this breakdown adds a dimension to the funnel table sub
-   * report response. This breakdown dimension expands each funnel step to the
-   * unique values of the breakdown dimension. For example, a breakdown by the
-   * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
-   * `desktop`, and the total.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelBreakdownOrBuilder getFunnelBreakdownOrBuilder() { - return getFunnelBreakdown(); - } - - public static final int FUNNEL_NEXT_ACTION_FIELD_NUMBER = 5; - private com.google.analytics.data.v1alpha.FunnelNextAction funnelNextAction_; - /** - * - * - *
-   * If specified, next action adds a dimension to the funnel visualization sub
-   * report response. This next action dimension expands each funnel step to the
-   * unique values of the next action. For example a next action of the
-   * `eventName` dimension will create rows for several events (i.e.
-   * `session_start` & `click`) and the total.
-   * Next action only supports `eventName` and most Page / Screen dimensions
-   * like `pageTitle` and `pagePath`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; - * - * @return Whether the funnelNextAction field is set. - */ - @java.lang.Override - public boolean hasFunnelNextAction() { - return funnelNextAction_ != null; - } - /** - * - * - *
-   * If specified, next action adds a dimension to the funnel visualization sub
-   * report response. This next action dimension expands each funnel step to the
-   * unique values of the next action. For example a next action of the
-   * `eventName` dimension will create rows for several events (i.e.
-   * `session_start` & `click`) and the total.
-   * Next action only supports `eventName` and most Page / Screen dimensions
-   * like `pageTitle` and `pagePath`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; - * - * @return The funnelNextAction. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelNextAction getFunnelNextAction() { - return funnelNextAction_ == null - ? com.google.analytics.data.v1alpha.FunnelNextAction.getDefaultInstance() - : funnelNextAction_; - } - /** - * - * - *
-   * If specified, next action adds a dimension to the funnel visualization sub
-   * report response. This next action dimension expands each funnel step to the
-   * unique values of the next action. For example a next action of the
-   * `eventName` dimension will create rows for several events (i.e.
-   * `session_start` & `click`) and the total.
-   * Next action only supports `eventName` and most Page / Screen dimensions
-   * like `pageTitle` and `pagePath`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelNextActionOrBuilder - getFunnelNextActionOrBuilder() { - return getFunnelNextAction(); - } - - public static final int FUNNEL_VISUALIZATION_TYPE_FIELD_NUMBER = 6; - private int funnelVisualizationType_; - /** - * - * - *
-   * The funnel visualization type controls the dimensions present in the funnel
-   * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
-   * used.
-   * 
- * - * - * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; - * - * - * @return The enum numeric value on the wire for funnelVisualizationType. - */ - @java.lang.Override - public int getFunnelVisualizationTypeValue() { - return funnelVisualizationType_; - } - /** - * - * - *
-   * The funnel visualization type controls the dimensions present in the funnel
-   * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
-   * used.
-   * 
- * - * - * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; - * - * - * @return The funnelVisualizationType. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType - getFunnelVisualizationType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType result = - com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType.valueOf( - funnelVisualizationType_); - return result == null - ? com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType - .UNRECOGNIZED - : result; - } - - public static final int SEGMENTS_FIELD_NUMBER = 7; - private java.util.List segments_; - /** - * - * - *
-   * The configurations of segments. Segments are subsets of a property's data.
-   * In a funnel report with segments, the funnel is evaluated in each segment.
-   * Each segment specified in this request
-   * produces a separate row in the response; in the response, each segment
-   * identified by its name.
-   * The segments parameter is optional. Requests are limited to 4 segments.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - @java.lang.Override - public java.util.List getSegmentsList() { - return segments_; - } - /** - * - * - *
-   * The configurations of segments. Segments are subsets of a property's data.
-   * In a funnel report with segments, the funnel is evaluated in each segment.
-   * Each segment specified in this request
-   * produces a separate row in the response; in the response, each segment
-   * identified by its name.
-   * The segments parameter is optional. Requests are limited to 4 segments.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - @java.lang.Override - public java.util.List - getSegmentsOrBuilderList() { - return segments_; - } - /** - * - * - *
-   * The configurations of segments. Segments are subsets of a property's data.
-   * In a funnel report with segments, the funnel is evaluated in each segment.
-   * Each segment specified in this request
-   * produces a separate row in the response; in the response, each segment
-   * identified by its name.
-   * The segments parameter is optional. Requests are limited to 4 segments.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - @java.lang.Override - public int getSegmentsCount() { - return segments_.size(); - } - /** - * - * - *
-   * The configurations of segments. Segments are subsets of a property's data.
-   * In a funnel report with segments, the funnel is evaluated in each segment.
-   * Each segment specified in this request
-   * produces a separate row in the response; in the response, each segment
-   * identified by its name.
-   * The segments parameter is optional. Requests are limited to 4 segments.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.Segment getSegments(int index) { - return segments_.get(index); - } - /** - * - * - *
-   * The configurations of segments. Segments are subsets of a property's data.
-   * In a funnel report with segments, the funnel is evaluated in each segment.
-   * Each segment specified in this request
-   * produces a separate row in the response; in the response, each segment
-   * identified by its name.
-   * The segments parameter is optional. Requests are limited to 4 segments.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentOrBuilder getSegmentsOrBuilder(int index) { - return segments_.get(index); - } - - public static final int LIMIT_FIELD_NUMBER = 9; - 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`.
-   * 
- * - * int64 limit = 9; - * - * @return The limit. - */ - @java.lang.Override - public long getLimit() { - return limit_; - } - - public static final int DIMENSION_FILTER_FIELD_NUMBER = 10; - private com.google.analytics.data.v1alpha.FilterExpression dimensionFilter_; - /** - * - * - *
-   * Dimension filters allow you to ask for only specific dimension values in
-   * the report. To learn more, see [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; - * - * @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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; - * - * @return The dimensionFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() { - return dimensionFilter_ == null - ? com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance() - : dimensionFilter_; - } - /** - * - * - *
-   * Dimension filters allow you to ask for only specific dimension values in
-   * the report. To learn more, see [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getDimensionFilterOrBuilder() { - return getDimensionFilter(); - } - - public static final int RETURN_PROPERTY_QUOTA_FIELD_NUMBER = 12; - 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 = 12; - * - * @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 < dateRanges_.size(); i++) { - output.writeMessage(2, dateRanges_.get(i)); - } - if (funnel_ != null) { - output.writeMessage(3, getFunnel()); - } - if (funnelBreakdown_ != null) { - output.writeMessage(4, getFunnelBreakdown()); - } - if (funnelNextAction_ != null) { - output.writeMessage(5, getFunnelNextAction()); - } - if (funnelVisualizationType_ - != com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType - .FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED - .getNumber()) { - output.writeEnum(6, funnelVisualizationType_); - } - for (int i = 0; i < segments_.size(); i++) { - output.writeMessage(7, segments_.get(i)); - } - if (limit_ != 0L) { - output.writeInt64(9, limit_); - } - if (dimensionFilter_ != null) { - output.writeMessage(10, getDimensionFilter()); - } - if (returnPropertyQuota_ != false) { - output.writeBool(12, returnPropertyQuota_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, property_); - } - for (int i = 0; i < dateRanges_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, dateRanges_.get(i)); - } - if (funnel_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getFunnel()); - } - if (funnelBreakdown_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getFunnelBreakdown()); - } - if (funnelNextAction_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getFunnelNextAction()); - } - if (funnelVisualizationType_ - != com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType - .FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, funnelVisualizationType_); - } - for (int i = 0; i < segments_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, segments_.get(i)); - } - if (limit_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(9, limit_); - } - if (dimensionFilter_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getDimensionFilter()); - } - if (returnPropertyQuota_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(12, returnPropertyQuota_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.RunFunnelReportRequest)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.RunFunnelReportRequest other = - (com.google.analytics.data.v1alpha.RunFunnelReportRequest) obj; - - if (!getProperty().equals(other.getProperty())) return false; - if (!getDateRangesList().equals(other.getDateRangesList())) return false; - if (hasFunnel() != other.hasFunnel()) return false; - if (hasFunnel()) { - if (!getFunnel().equals(other.getFunnel())) return false; - } - if (hasFunnelBreakdown() != other.hasFunnelBreakdown()) return false; - if (hasFunnelBreakdown()) { - if (!getFunnelBreakdown().equals(other.getFunnelBreakdown())) return false; - } - if (hasFunnelNextAction() != other.hasFunnelNextAction()) return false; - if (hasFunnelNextAction()) { - if (!getFunnelNextAction().equals(other.getFunnelNextAction())) return false; - } - if (funnelVisualizationType_ != other.funnelVisualizationType_) return false; - if (!getSegmentsList().equals(other.getSegmentsList())) return false; - if (getLimit() != other.getLimit()) return false; - if (hasDimensionFilter() != other.hasDimensionFilter()) return false; - if (hasDimensionFilter()) { - if (!getDimensionFilter().equals(other.getDimensionFilter())) return false; - } - if (getReturnPropertyQuota() != other.getReturnPropertyQuota()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PROPERTY_FIELD_NUMBER; - hash = (53 * hash) + getProperty().hashCode(); - if (getDateRangesCount() > 0) { - hash = (37 * hash) + DATE_RANGES_FIELD_NUMBER; - hash = (53 * hash) + getDateRangesList().hashCode(); - } - if (hasFunnel()) { - hash = (37 * hash) + FUNNEL_FIELD_NUMBER; - hash = (53 * hash) + getFunnel().hashCode(); - } - if (hasFunnelBreakdown()) { - hash = (37 * hash) + FUNNEL_BREAKDOWN_FIELD_NUMBER; - hash = (53 * hash) + getFunnelBreakdown().hashCode(); - } - if (hasFunnelNextAction()) { - hash = (37 * hash) + FUNNEL_NEXT_ACTION_FIELD_NUMBER; - hash = (53 * hash) + getFunnelNextAction().hashCode(); - } - hash = (37 * hash) + FUNNEL_VISUALIZATION_TYPE_FIELD_NUMBER; - hash = (53 * hash) + funnelVisualizationType_; - if (getSegmentsCount() > 0) { - hash = (37 * hash) + SEGMENTS_FIELD_NUMBER; - hash = (53 * hash) + getSegmentsList().hashCode(); - } - hash = (37 * hash) + LIMIT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getLimit()); - if (hasDimensionFilter()) { - hash = (37 * hash) + DIMENSION_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getDimensionFilter().hashCode(); - } - hash = (37 * hash) + RETURN_PROPERTY_QUOTA_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getReturnPropertyQuota()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportRequest 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.v1alpha.RunFunnelReportRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportRequest parseFrom( - 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.v1alpha.RunFunnelReportRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportRequest parseFrom( - java.io.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.v1alpha.RunFunnelReportRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportRequest parseDelimitedFrom( - java.io.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.v1alpha.RunFunnelReportRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.RunFunnelReportRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 a funnel report.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.RunFunnelReportRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.RunFunnelReportRequest) - com.google.analytics.data.v1alpha.RunFunnelReportRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.RunFunnelReportRequest.class, - com.google.analytics.data.v1alpha.RunFunnelReportRequest.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.RunFunnelReportRequest.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - property_ = ""; - - if (dateRangesBuilder_ == null) { - dateRanges_ = java.util.Collections.emptyList(); - } else { - dateRanges_ = null; - dateRangesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (funnelBuilder_ == null) { - funnel_ = null; - } else { - funnel_ = null; - funnelBuilder_ = null; - } - if (funnelBreakdownBuilder_ == null) { - funnelBreakdown_ = null; - } else { - funnelBreakdown_ = null; - funnelBreakdownBuilder_ = null; - } - if (funnelNextActionBuilder_ == null) { - funnelNextAction_ = null; - } else { - funnelNextAction_ = null; - funnelNextActionBuilder_ = null; - } - funnelVisualizationType_ = 0; - - if (segmentsBuilder_ == null) { - segments_ = java.util.Collections.emptyList(); - } else { - segments_ = null; - segmentsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - limit_ = 0L; - - if (dimensionFilterBuilder_ == null) { - dimensionFilter_ = null; - } else { - dimensionFilter_ = null; - dimensionFilterBuilder_ = null; - } - returnPropertyQuota_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunFunnelReportRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunFunnelReportRequest getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.RunFunnelReportRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunFunnelReportRequest build() { - com.google.analytics.data.v1alpha.RunFunnelReportRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunFunnelReportRequest buildPartial() { - com.google.analytics.data.v1alpha.RunFunnelReportRequest result = - new com.google.analytics.data.v1alpha.RunFunnelReportRequest(this); - int from_bitField0_ = bitField0_; - result.property_ = property_; - if (dateRangesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - dateRanges_ = java.util.Collections.unmodifiableList(dateRanges_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.dateRanges_ = dateRanges_; - } else { - result.dateRanges_ = dateRangesBuilder_.build(); - } - if (funnelBuilder_ == null) { - result.funnel_ = funnel_; - } else { - result.funnel_ = funnelBuilder_.build(); - } - if (funnelBreakdownBuilder_ == null) { - result.funnelBreakdown_ = funnelBreakdown_; - } else { - result.funnelBreakdown_ = funnelBreakdownBuilder_.build(); - } - if (funnelNextActionBuilder_ == null) { - result.funnelNextAction_ = funnelNextAction_; - } else { - result.funnelNextAction_ = funnelNextActionBuilder_.build(); - } - result.funnelVisualizationType_ = funnelVisualizationType_; - if (segmentsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - segments_ = java.util.Collections.unmodifiableList(segments_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.segments_ = segments_; - } else { - result.segments_ = segmentsBuilder_.build(); - } - result.limit_ = limit_; - if (dimensionFilterBuilder_ == null) { - result.dimensionFilter_ = dimensionFilter_; - } else { - result.dimensionFilter_ = dimensionFilterBuilder_.build(); - } - 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.v1alpha.RunFunnelReportRequest) { - return mergeFrom((com.google.analytics.data.v1alpha.RunFunnelReportRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.RunFunnelReportRequest other) { - if (other == com.google.analytics.data.v1alpha.RunFunnelReportRequest.getDefaultInstance()) - return this; - if (!other.getProperty().isEmpty()) { - property_ = other.property_; - onChanged(); - } - if (dateRangesBuilder_ == null) { - if (!other.dateRanges_.isEmpty()) { - if (dateRanges_.isEmpty()) { - dateRanges_ = other.dateRanges_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureDateRangesIsMutable(); - dateRanges_.addAll(other.dateRanges_); - } - onChanged(); - } - } else { - if (!other.dateRanges_.isEmpty()) { - if (dateRangesBuilder_.isEmpty()) { - dateRangesBuilder_.dispose(); - dateRangesBuilder_ = null; - dateRanges_ = other.dateRanges_; - bitField0_ = (bitField0_ & ~0x00000001); - dateRangesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getDateRangesFieldBuilder() - : null; - } else { - dateRangesBuilder_.addAllMessages(other.dateRanges_); - } - } - } - if (other.hasFunnel()) { - mergeFunnel(other.getFunnel()); - } - if (other.hasFunnelBreakdown()) { - mergeFunnelBreakdown(other.getFunnelBreakdown()); - } - if (other.hasFunnelNextAction()) { - mergeFunnelNextAction(other.getFunnelNextAction()); - } - if (other.funnelVisualizationType_ != 0) { - setFunnelVisualizationTypeValue(other.getFunnelVisualizationTypeValue()); - } - if (segmentsBuilder_ == null) { - if (!other.segments_.isEmpty()) { - if (segments_.isEmpty()) { - segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureSegmentsIsMutable(); - segments_.addAll(other.segments_); - } - onChanged(); - } - } else { - if (!other.segments_.isEmpty()) { - if (segmentsBuilder_.isEmpty()) { - segmentsBuilder_.dispose(); - segmentsBuilder_ = null; - segments_ = other.segments_; - bitField0_ = (bitField0_ & ~0x00000002); - segmentsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getSegmentsFieldBuilder() - : null; - } else { - segmentsBuilder_.addAllMessages(other.segments_); - } - } - } - if (other.getLimit() != 0L) { - setLimit(other.getLimit()); - } - if (other.hasDimensionFilter()) { - mergeDimensionFilter(other.getDimensionFilter()); - } - if (other.getReturnPropertyQuota() != false) { - setReturnPropertyQuota(other.getReturnPropertyQuota()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - property_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1alpha.DateRange m = - input.readMessage( - com.google.analytics.data.v1alpha.DateRange.parser(), extensionRegistry); - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.add(m); - } else { - dateRangesBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - input.readMessage(getFunnelFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage(getFunnelBreakdownFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage( - getFunnelNextActionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 48: - { - funnelVisualizationType_ = input.readEnum(); - - break; - } // case 48 - case 58: - { - com.google.analytics.data.v1alpha.Segment m = - input.readMessage( - com.google.analytics.data.v1alpha.Segment.parser(), extensionRegistry); - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - segments_.add(m); - } else { - segmentsBuilder_.addMessage(m); - } - break; - } // case 58 - case 72: - { - limit_ = input.readInt64(); - - break; - } // case 72 - case 82: - { - input.readMessage(getDimensionFilterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 82 - case 96: - { - returnPropertyQuota_ = input.readBool(); - - break; - } // case 96 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object 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 dateRanges_ = - java.util.Collections.emptyList(); - - private void ensureDateRangesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - dateRanges_ = - new java.util.ArrayList(dateRanges_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DateRange, - com.google.analytics.data.v1alpha.DateRange.Builder, - com.google.analytics.data.v1alpha.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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - 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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - 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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - public com.google.analytics.data.v1alpha.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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - public Builder setDateRanges(int index, com.google.analytics.data.v1alpha.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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - public Builder setDateRanges( - int index, com.google.analytics.data.v1alpha.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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - public Builder addDateRanges(com.google.analytics.data.v1alpha.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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - public Builder addDateRanges(int index, com.google.analytics.data.v1alpha.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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - public Builder addDateRanges( - com.google.analytics.data.v1alpha.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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - public Builder addDateRanges( - int index, com.google.analytics.data.v1alpha.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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - 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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - public Builder clearDateRanges() { - if (dateRangesBuilder_ == null) { - dateRanges_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - 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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - 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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - public com.google.analytics.data.v1alpha.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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - public com.google.analytics.data.v1alpha.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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - 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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - public com.google.analytics.data.v1alpha.DateRange.Builder addDateRangesBuilder() { - return getDateRangesFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - public com.google.analytics.data.v1alpha.DateRange.Builder addDateRangesBuilder(int index) { - return getDateRangesFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.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.
-     * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - public java.util.List - getDateRangesBuilderList() { - return getDateRangesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DateRange, - com.google.analytics.data.v1alpha.DateRange.Builder, - com.google.analytics.data.v1alpha.DateRangeOrBuilder> - getDateRangesFieldBuilder() { - if (dateRangesBuilder_ == null) { - dateRangesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.DateRange, - com.google.analytics.data.v1alpha.DateRange.Builder, - com.google.analytics.data.v1alpha.DateRangeOrBuilder>( - dateRanges_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); - dateRanges_ = null; - } - return dateRangesBuilder_; - } - - private com.google.analytics.data.v1alpha.Funnel funnel_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Funnel, - com.google.analytics.data.v1alpha.Funnel.Builder, - com.google.analytics.data.v1alpha.FunnelOrBuilder> - funnelBuilder_; - /** - * - * - *
-     * The configuration of this request's funnel. This funnel configuration is
-     * required.
-     * 
- * - * .google.analytics.data.v1alpha.Funnel funnel = 3; - * - * @return Whether the funnel field is set. - */ - public boolean hasFunnel() { - return funnelBuilder_ != null || funnel_ != null; - } - /** - * - * - *
-     * The configuration of this request's funnel. This funnel configuration is
-     * required.
-     * 
- * - * .google.analytics.data.v1alpha.Funnel funnel = 3; - * - * @return The funnel. - */ - public com.google.analytics.data.v1alpha.Funnel getFunnel() { - if (funnelBuilder_ == null) { - return funnel_ == null - ? com.google.analytics.data.v1alpha.Funnel.getDefaultInstance() - : funnel_; - } else { - return funnelBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The configuration of this request's funnel. This funnel configuration is
-     * required.
-     * 
- * - * .google.analytics.data.v1alpha.Funnel funnel = 3; - */ - public Builder setFunnel(com.google.analytics.data.v1alpha.Funnel value) { - if (funnelBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - funnel_ = value; - onChanged(); - } else { - funnelBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The configuration of this request's funnel. This funnel configuration is
-     * required.
-     * 
- * - * .google.analytics.data.v1alpha.Funnel funnel = 3; - */ - public Builder setFunnel(com.google.analytics.data.v1alpha.Funnel.Builder builderForValue) { - if (funnelBuilder_ == null) { - funnel_ = builderForValue.build(); - onChanged(); - } else { - funnelBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The configuration of this request's funnel. This funnel configuration is
-     * required.
-     * 
- * - * .google.analytics.data.v1alpha.Funnel funnel = 3; - */ - public Builder mergeFunnel(com.google.analytics.data.v1alpha.Funnel value) { - if (funnelBuilder_ == null) { - if (funnel_ != null) { - funnel_ = - com.google.analytics.data.v1alpha.Funnel.newBuilder(funnel_) - .mergeFrom(value) - .buildPartial(); - } else { - funnel_ = value; - } - onChanged(); - } else { - funnelBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The configuration of this request's funnel. This funnel configuration is
-     * required.
-     * 
- * - * .google.analytics.data.v1alpha.Funnel funnel = 3; - */ - public Builder clearFunnel() { - if (funnelBuilder_ == null) { - funnel_ = null; - onChanged(); - } else { - funnel_ = null; - funnelBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The configuration of this request's funnel. This funnel configuration is
-     * required.
-     * 
- * - * .google.analytics.data.v1alpha.Funnel funnel = 3; - */ - public com.google.analytics.data.v1alpha.Funnel.Builder getFunnelBuilder() { - - onChanged(); - return getFunnelFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The configuration of this request's funnel. This funnel configuration is
-     * required.
-     * 
- * - * .google.analytics.data.v1alpha.Funnel funnel = 3; - */ - public com.google.analytics.data.v1alpha.FunnelOrBuilder getFunnelOrBuilder() { - if (funnelBuilder_ != null) { - return funnelBuilder_.getMessageOrBuilder(); - } else { - return funnel_ == null - ? com.google.analytics.data.v1alpha.Funnel.getDefaultInstance() - : funnel_; - } - } - /** - * - * - *
-     * The configuration of this request's funnel. This funnel configuration is
-     * required.
-     * 
- * - * .google.analytics.data.v1alpha.Funnel funnel = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Funnel, - com.google.analytics.data.v1alpha.Funnel.Builder, - com.google.analytics.data.v1alpha.FunnelOrBuilder> - getFunnelFieldBuilder() { - if (funnelBuilder_ == null) { - funnelBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.Funnel, - com.google.analytics.data.v1alpha.Funnel.Builder, - com.google.analytics.data.v1alpha.FunnelOrBuilder>( - getFunnel(), getParentForChildren(), isClean()); - funnel_ = null; - } - return funnelBuilder_; - } - - private com.google.analytics.data.v1alpha.FunnelBreakdown funnelBreakdown_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelBreakdown, - com.google.analytics.data.v1alpha.FunnelBreakdown.Builder, - com.google.analytics.data.v1alpha.FunnelBreakdownOrBuilder> - funnelBreakdownBuilder_; - /** - * - * - *
-     * If specified, this breakdown adds a dimension to the funnel table sub
-     * report response. This breakdown dimension expands each funnel step to the
-     * unique values of the breakdown dimension. For example, a breakdown by the
-     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
-     * `desktop`, and the total.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; - * - * @return Whether the funnelBreakdown field is set. - */ - public boolean hasFunnelBreakdown() { - return funnelBreakdownBuilder_ != null || funnelBreakdown_ != null; - } - /** - * - * - *
-     * If specified, this breakdown adds a dimension to the funnel table sub
-     * report response. This breakdown dimension expands each funnel step to the
-     * unique values of the breakdown dimension. For example, a breakdown by the
-     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
-     * `desktop`, and the total.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; - * - * @return The funnelBreakdown. - */ - public com.google.analytics.data.v1alpha.FunnelBreakdown getFunnelBreakdown() { - if (funnelBreakdownBuilder_ == null) { - return funnelBreakdown_ == null - ? com.google.analytics.data.v1alpha.FunnelBreakdown.getDefaultInstance() - : funnelBreakdown_; - } else { - return funnelBreakdownBuilder_.getMessage(); - } - } - /** - * - * - *
-     * If specified, this breakdown adds a dimension to the funnel table sub
-     * report response. This breakdown dimension expands each funnel step to the
-     * unique values of the breakdown dimension. For example, a breakdown by the
-     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
-     * `desktop`, and the total.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; - */ - public Builder setFunnelBreakdown(com.google.analytics.data.v1alpha.FunnelBreakdown value) { - if (funnelBreakdownBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - funnelBreakdown_ = value; - onChanged(); - } else { - funnelBreakdownBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * If specified, this breakdown adds a dimension to the funnel table sub
-     * report response. This breakdown dimension expands each funnel step to the
-     * unique values of the breakdown dimension. For example, a breakdown by the
-     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
-     * `desktop`, and the total.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; - */ - public Builder setFunnelBreakdown( - com.google.analytics.data.v1alpha.FunnelBreakdown.Builder builderForValue) { - if (funnelBreakdownBuilder_ == null) { - funnelBreakdown_ = builderForValue.build(); - onChanged(); - } else { - funnelBreakdownBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * If specified, this breakdown adds a dimension to the funnel table sub
-     * report response. This breakdown dimension expands each funnel step to the
-     * unique values of the breakdown dimension. For example, a breakdown by the
-     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
-     * `desktop`, and the total.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; - */ - public Builder mergeFunnelBreakdown(com.google.analytics.data.v1alpha.FunnelBreakdown value) { - if (funnelBreakdownBuilder_ == null) { - if (funnelBreakdown_ != null) { - funnelBreakdown_ = - com.google.analytics.data.v1alpha.FunnelBreakdown.newBuilder(funnelBreakdown_) - .mergeFrom(value) - .buildPartial(); - } else { - funnelBreakdown_ = value; - } - onChanged(); - } else { - funnelBreakdownBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * If specified, this breakdown adds a dimension to the funnel table sub
-     * report response. This breakdown dimension expands each funnel step to the
-     * unique values of the breakdown dimension. For example, a breakdown by the
-     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
-     * `desktop`, and the total.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; - */ - public Builder clearFunnelBreakdown() { - if (funnelBreakdownBuilder_ == null) { - funnelBreakdown_ = null; - onChanged(); - } else { - funnelBreakdown_ = null; - funnelBreakdownBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * If specified, this breakdown adds a dimension to the funnel table sub
-     * report response. This breakdown dimension expands each funnel step to the
-     * unique values of the breakdown dimension. For example, a breakdown by the
-     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
-     * `desktop`, and the total.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; - */ - public com.google.analytics.data.v1alpha.FunnelBreakdown.Builder getFunnelBreakdownBuilder() { - - onChanged(); - return getFunnelBreakdownFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If specified, this breakdown adds a dimension to the funnel table sub
-     * report response. This breakdown dimension expands each funnel step to the
-     * unique values of the breakdown dimension. For example, a breakdown by the
-     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
-     * `desktop`, and the total.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; - */ - public com.google.analytics.data.v1alpha.FunnelBreakdownOrBuilder - getFunnelBreakdownOrBuilder() { - if (funnelBreakdownBuilder_ != null) { - return funnelBreakdownBuilder_.getMessageOrBuilder(); - } else { - return funnelBreakdown_ == null - ? com.google.analytics.data.v1alpha.FunnelBreakdown.getDefaultInstance() - : funnelBreakdown_; - } - } - /** - * - * - *
-     * If specified, this breakdown adds a dimension to the funnel table sub
-     * report response. This breakdown dimension expands each funnel step to the
-     * unique values of the breakdown dimension. For example, a breakdown by the
-     * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
-     * `desktop`, and the total.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelBreakdown, - com.google.analytics.data.v1alpha.FunnelBreakdown.Builder, - com.google.analytics.data.v1alpha.FunnelBreakdownOrBuilder> - getFunnelBreakdownFieldBuilder() { - if (funnelBreakdownBuilder_ == null) { - funnelBreakdownBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelBreakdown, - com.google.analytics.data.v1alpha.FunnelBreakdown.Builder, - com.google.analytics.data.v1alpha.FunnelBreakdownOrBuilder>( - getFunnelBreakdown(), getParentForChildren(), isClean()); - funnelBreakdown_ = null; - } - return funnelBreakdownBuilder_; - } - - private com.google.analytics.data.v1alpha.FunnelNextAction funnelNextAction_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelNextAction, - com.google.analytics.data.v1alpha.FunnelNextAction.Builder, - com.google.analytics.data.v1alpha.FunnelNextActionOrBuilder> - funnelNextActionBuilder_; - /** - * - * - *
-     * If specified, next action adds a dimension to the funnel visualization sub
-     * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a next action of the
-     * `eventName` dimension will create rows for several events (i.e.
-     * `session_start` & `click`) and the total.
-     * Next action only supports `eventName` and most Page / Screen dimensions
-     * like `pageTitle` and `pagePath`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; - * - * @return Whether the funnelNextAction field is set. - */ - public boolean hasFunnelNextAction() { - return funnelNextActionBuilder_ != null || funnelNextAction_ != null; - } - /** - * - * - *
-     * If specified, next action adds a dimension to the funnel visualization sub
-     * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a next action of the
-     * `eventName` dimension will create rows for several events (i.e.
-     * `session_start` & `click`) and the total.
-     * Next action only supports `eventName` and most Page / Screen dimensions
-     * like `pageTitle` and `pagePath`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; - * - * @return The funnelNextAction. - */ - public com.google.analytics.data.v1alpha.FunnelNextAction getFunnelNextAction() { - if (funnelNextActionBuilder_ == null) { - return funnelNextAction_ == null - ? com.google.analytics.data.v1alpha.FunnelNextAction.getDefaultInstance() - : funnelNextAction_; - } else { - return funnelNextActionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * If specified, next action adds a dimension to the funnel visualization sub
-     * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a next action of the
-     * `eventName` dimension will create rows for several events (i.e.
-     * `session_start` & `click`) and the total.
-     * Next action only supports `eventName` and most Page / Screen dimensions
-     * like `pageTitle` and `pagePath`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; - */ - public Builder setFunnelNextAction(com.google.analytics.data.v1alpha.FunnelNextAction value) { - if (funnelNextActionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - funnelNextAction_ = value; - onChanged(); - } else { - funnelNextActionBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * If specified, next action adds a dimension to the funnel visualization sub
-     * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a next action of the
-     * `eventName` dimension will create rows for several events (i.e.
-     * `session_start` & `click`) and the total.
-     * Next action only supports `eventName` and most Page / Screen dimensions
-     * like `pageTitle` and `pagePath`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; - */ - public Builder setFunnelNextAction( - com.google.analytics.data.v1alpha.FunnelNextAction.Builder builderForValue) { - if (funnelNextActionBuilder_ == null) { - funnelNextAction_ = builderForValue.build(); - onChanged(); - } else { - funnelNextActionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * If specified, next action adds a dimension to the funnel visualization sub
-     * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a next action of the
-     * `eventName` dimension will create rows for several events (i.e.
-     * `session_start` & `click`) and the total.
-     * Next action only supports `eventName` and most Page / Screen dimensions
-     * like `pageTitle` and `pagePath`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; - */ - public Builder mergeFunnelNextAction(com.google.analytics.data.v1alpha.FunnelNextAction value) { - if (funnelNextActionBuilder_ == null) { - if (funnelNextAction_ != null) { - funnelNextAction_ = - com.google.analytics.data.v1alpha.FunnelNextAction.newBuilder(funnelNextAction_) - .mergeFrom(value) - .buildPartial(); - } else { - funnelNextAction_ = value; - } - onChanged(); - } else { - funnelNextActionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * If specified, next action adds a dimension to the funnel visualization sub
-     * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a next action of the
-     * `eventName` dimension will create rows for several events (i.e.
-     * `session_start` & `click`) and the total.
-     * Next action only supports `eventName` and most Page / Screen dimensions
-     * like `pageTitle` and `pagePath`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; - */ - public Builder clearFunnelNextAction() { - if (funnelNextActionBuilder_ == null) { - funnelNextAction_ = null; - onChanged(); - } else { - funnelNextAction_ = null; - funnelNextActionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * If specified, next action adds a dimension to the funnel visualization sub
-     * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a next action of the
-     * `eventName` dimension will create rows for several events (i.e.
-     * `session_start` & `click`) and the total.
-     * Next action only supports `eventName` and most Page / Screen dimensions
-     * like `pageTitle` and `pagePath`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; - */ - public com.google.analytics.data.v1alpha.FunnelNextAction.Builder getFunnelNextActionBuilder() { - - onChanged(); - return getFunnelNextActionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If specified, next action adds a dimension to the funnel visualization sub
-     * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a next action of the
-     * `eventName` dimension will create rows for several events (i.e.
-     * `session_start` & `click`) and the total.
-     * Next action only supports `eventName` and most Page / Screen dimensions
-     * like `pageTitle` and `pagePath`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; - */ - public com.google.analytics.data.v1alpha.FunnelNextActionOrBuilder - getFunnelNextActionOrBuilder() { - if (funnelNextActionBuilder_ != null) { - return funnelNextActionBuilder_.getMessageOrBuilder(); - } else { - return funnelNextAction_ == null - ? com.google.analytics.data.v1alpha.FunnelNextAction.getDefaultInstance() - : funnelNextAction_; - } - } - /** - * - * - *
-     * If specified, next action adds a dimension to the funnel visualization sub
-     * report response. This next action dimension expands each funnel step to the
-     * unique values of the next action. For example a next action of the
-     * `eventName` dimension will create rows for several events (i.e.
-     * `session_start` & `click`) and the total.
-     * Next action only supports `eventName` and most Page / Screen dimensions
-     * like `pageTitle` and `pagePath`.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelNextAction, - com.google.analytics.data.v1alpha.FunnelNextAction.Builder, - com.google.analytics.data.v1alpha.FunnelNextActionOrBuilder> - getFunnelNextActionFieldBuilder() { - if (funnelNextActionBuilder_ == null) { - funnelNextActionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelNextAction, - com.google.analytics.data.v1alpha.FunnelNextAction.Builder, - com.google.analytics.data.v1alpha.FunnelNextActionOrBuilder>( - getFunnelNextAction(), getParentForChildren(), isClean()); - funnelNextAction_ = null; - } - return funnelNextActionBuilder_; - } - - private int funnelVisualizationType_ = 0; - /** - * - * - *
-     * The funnel visualization type controls the dimensions present in the funnel
-     * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
-     * used.
-     * 
- * - * - * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; - * - * - * @return The enum numeric value on the wire for funnelVisualizationType. - */ - @java.lang.Override - public int getFunnelVisualizationTypeValue() { - return funnelVisualizationType_; - } - /** - * - * - *
-     * The funnel visualization type controls the dimensions present in the funnel
-     * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
-     * used.
-     * 
- * - * - * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; - * - * - * @param value The enum numeric value on the wire for funnelVisualizationType to set. - * @return This builder for chaining. - */ - public Builder setFunnelVisualizationTypeValue(int value) { - - funnelVisualizationType_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The funnel visualization type controls the dimensions present in the funnel
-     * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
-     * used.
-     * 
- * - * - * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; - * - * - * @return The funnelVisualizationType. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType - getFunnelVisualizationType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType result = - com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType.valueOf( - funnelVisualizationType_); - return result == null - ? com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType - .UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The funnel visualization type controls the dimensions present in the funnel
-     * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
-     * used.
-     * 
- * - * - * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; - * - * - * @param value The funnelVisualizationType to set. - * @return This builder for chaining. - */ - public Builder setFunnelVisualizationType( - com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType value) { - if (value == null) { - throw new NullPointerException(); - } - - funnelVisualizationType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The funnel visualization type controls the dimensions present in the funnel
-     * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
-     * used.
-     * 
- * - * - * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; - * - * - * @return This builder for chaining. - */ - public Builder clearFunnelVisualizationType() { - - funnelVisualizationType_ = 0; - onChanged(); - return this; - } - - private java.util.List segments_ = - java.util.Collections.emptyList(); - - private void ensureSegmentsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - segments_ = new java.util.ArrayList(segments_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Segment, - com.google.analytics.data.v1alpha.Segment.Builder, - com.google.analytics.data.v1alpha.SegmentOrBuilder> - segmentsBuilder_; - - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public java.util.List getSegmentsList() { - if (segmentsBuilder_ == null) { - return java.util.Collections.unmodifiableList(segments_); - } else { - return segmentsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public int getSegmentsCount() { - if (segmentsBuilder_ == null) { - return segments_.size(); - } else { - return segmentsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public com.google.analytics.data.v1alpha.Segment getSegments(int index) { - if (segmentsBuilder_ == null) { - return segments_.get(index); - } else { - return segmentsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public Builder setSegments(int index, com.google.analytics.data.v1alpha.Segment value) { - if (segmentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSegmentsIsMutable(); - segments_.set(index, value); - onChanged(); - } else { - segmentsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public Builder setSegments( - int index, com.google.analytics.data.v1alpha.Segment.Builder builderForValue) { - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - segments_.set(index, builderForValue.build()); - onChanged(); - } else { - segmentsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public Builder addSegments(com.google.analytics.data.v1alpha.Segment value) { - if (segmentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSegmentsIsMutable(); - segments_.add(value); - onChanged(); - } else { - segmentsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public Builder addSegments(int index, com.google.analytics.data.v1alpha.Segment value) { - if (segmentsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSegmentsIsMutable(); - segments_.add(index, value); - onChanged(); - } else { - segmentsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public Builder addSegments(com.google.analytics.data.v1alpha.Segment.Builder builderForValue) { - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - segments_.add(builderForValue.build()); - onChanged(); - } else { - segmentsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public Builder addSegments( - int index, com.google.analytics.data.v1alpha.Segment.Builder builderForValue) { - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - segments_.add(index, builderForValue.build()); - onChanged(); - } else { - segmentsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public Builder addAllSegments( - java.lang.Iterable values) { - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, segments_); - onChanged(); - } else { - segmentsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public Builder clearSegments() { - if (segmentsBuilder_ == null) { - segments_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - segmentsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public Builder removeSegments(int index) { - if (segmentsBuilder_ == null) { - ensureSegmentsIsMutable(); - segments_.remove(index); - onChanged(); - } else { - segmentsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public com.google.analytics.data.v1alpha.Segment.Builder getSegmentsBuilder(int index) { - return getSegmentsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public com.google.analytics.data.v1alpha.SegmentOrBuilder getSegmentsOrBuilder(int index) { - if (segmentsBuilder_ == null) { - return segments_.get(index); - } else { - return segmentsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public java.util.List - getSegmentsOrBuilderList() { - if (segmentsBuilder_ != null) { - return segmentsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(segments_); - } - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public com.google.analytics.data.v1alpha.Segment.Builder addSegmentsBuilder() { - return getSegmentsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.Segment.getDefaultInstance()); - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public com.google.analytics.data.v1alpha.Segment.Builder addSegmentsBuilder(int index) { - return getSegmentsFieldBuilder() - .addBuilder(index, com.google.analytics.data.v1alpha.Segment.getDefaultInstance()); - } - /** - * - * - *
-     * The configurations of segments. Segments are subsets of a property's data.
-     * In a funnel report with segments, the funnel is evaluated in each segment.
-     * Each segment specified in this request
-     * produces a separate row in the response; in the response, each segment
-     * identified by its name.
-     * The segments parameter is optional. Requests are limited to 4 segments.
-     * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - public java.util.List - getSegmentsBuilderList() { - return getSegmentsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Segment, - com.google.analytics.data.v1alpha.Segment.Builder, - com.google.analytics.data.v1alpha.SegmentOrBuilder> - getSegmentsFieldBuilder() { - if (segmentsBuilder_ == null) { - segmentsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.Segment, - com.google.analytics.data.v1alpha.Segment.Builder, - com.google.analytics.data.v1alpha.SegmentOrBuilder>( - segments_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); - segments_ = null; - } - return segmentsBuilder_; - } - - 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`.
-     * 
- * - * int64 limit = 9; - * - * @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`.
-     * 
- * - * int64 limit = 9; - * - * @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`.
-     * 
- * - * int64 limit = 9; - * - * @return This builder for chaining. - */ - public Builder clearLimit() { - - limit_ = 0L; - onChanged(); - return this; - } - - private com.google.analytics.data.v1alpha.FilterExpression dimensionFilter_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> - dimensionFilterBuilder_; - /** - * - * - *
-     * Dimension filters allow you to ask for only specific dimension values in
-     * the report. To learn more, see [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; - * - * @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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; - * - * @return The dimensionFilter. - */ - public com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter() { - if (dimensionFilterBuilder_ == null) { - return dimensionFilter_ == null - ? com.google.analytics.data.v1alpha.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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; - */ - public Builder setDimensionFilter(com.google.analytics.data.v1alpha.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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; - */ - public Builder setDimensionFilter( - com.google.analytics.data.v1alpha.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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; - */ - public Builder mergeDimensionFilter(com.google.analytics.data.v1alpha.FilterExpression value) { - if (dimensionFilterBuilder_ == null) { - if (dimensionFilter_ != null) { - dimensionFilter_ = - com.google.analytics.data.v1alpha.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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; - */ - 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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; - */ - public com.google.analytics.data.v1alpha.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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; - */ - public com.google.analytics.data.v1alpha.FilterExpressionOrBuilder - getDimensionFilterOrBuilder() { - if (dimensionFilterBuilder_ != null) { - return dimensionFilterBuilder_.getMessageOrBuilder(); - } else { - return dimensionFilter_ == null - ? com.google.analytics.data.v1alpha.FilterExpression.getDefaultInstance() - : dimensionFilter_; - } - } - /** - * - * - *
-     * Dimension filters allow you to ask for only specific dimension values in
-     * the report. To learn more, see [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder> - getDimensionFilterFieldBuilder() { - if (dimensionFilterBuilder_ == null) { - dimensionFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FilterExpression, - com.google.analytics.data.v1alpha.FilterExpression.Builder, - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder>( - getDimensionFilter(), getParentForChildren(), isClean()); - dimensionFilter_ = null; - } - return dimensionFilterBuilder_; - } - - 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 = 12; - * - * @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 = 12; - * - * @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 = 12; - * - * @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.v1alpha.RunFunnelReportRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.RunFunnelReportRequest) - private static final com.google.analytics.data.v1alpha.RunFunnelReportRequest DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.RunFunnelReportRequest(); - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunFunnelReportRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunFunnelReportRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequestOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequestOrBuilder.java deleted file mode 100644 index b95cef5f..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportRequestOrBuilder.java +++ /dev/null @@ -1,453 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -public interface RunFunnelReportRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.RunFunnelReportRequest) - 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(); - - /** - * - * - *
-   * 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.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - 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.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - com.google.analytics.data.v1alpha.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.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - 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.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - 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.
-   * 
- * - * repeated .google.analytics.data.v1alpha.DateRange date_ranges = 2; - */ - com.google.analytics.data.v1alpha.DateRangeOrBuilder getDateRangesOrBuilder(int index); - - /** - * - * - *
-   * The configuration of this request's funnel. This funnel configuration is
-   * required.
-   * 
- * - * .google.analytics.data.v1alpha.Funnel funnel = 3; - * - * @return Whether the funnel field is set. - */ - boolean hasFunnel(); - /** - * - * - *
-   * The configuration of this request's funnel. This funnel configuration is
-   * required.
-   * 
- * - * .google.analytics.data.v1alpha.Funnel funnel = 3; - * - * @return The funnel. - */ - com.google.analytics.data.v1alpha.Funnel getFunnel(); - /** - * - * - *
-   * The configuration of this request's funnel. This funnel configuration is
-   * required.
-   * 
- * - * .google.analytics.data.v1alpha.Funnel funnel = 3; - */ - com.google.analytics.data.v1alpha.FunnelOrBuilder getFunnelOrBuilder(); - - /** - * - * - *
-   * If specified, this breakdown adds a dimension to the funnel table sub
-   * report response. This breakdown dimension expands each funnel step to the
-   * unique values of the breakdown dimension. For example, a breakdown by the
-   * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
-   * `desktop`, and the total.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; - * - * @return Whether the funnelBreakdown field is set. - */ - boolean hasFunnelBreakdown(); - /** - * - * - *
-   * If specified, this breakdown adds a dimension to the funnel table sub
-   * report response. This breakdown dimension expands each funnel step to the
-   * unique values of the breakdown dimension. For example, a breakdown by the
-   * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
-   * `desktop`, and the total.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; - * - * @return The funnelBreakdown. - */ - com.google.analytics.data.v1alpha.FunnelBreakdown getFunnelBreakdown(); - /** - * - * - *
-   * If specified, this breakdown adds a dimension to the funnel table sub
-   * report response. This breakdown dimension expands each funnel step to the
-   * unique values of the breakdown dimension. For example, a breakdown by the
-   * `deviceCategory` dimension will create rows for `mobile`, `tablet`,
-   * `desktop`, and the total.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelBreakdown funnel_breakdown = 4; - */ - com.google.analytics.data.v1alpha.FunnelBreakdownOrBuilder getFunnelBreakdownOrBuilder(); - - /** - * - * - *
-   * If specified, next action adds a dimension to the funnel visualization sub
-   * report response. This next action dimension expands each funnel step to the
-   * unique values of the next action. For example a next action of the
-   * `eventName` dimension will create rows for several events (i.e.
-   * `session_start` & `click`) and the total.
-   * Next action only supports `eventName` and most Page / Screen dimensions
-   * like `pageTitle` and `pagePath`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; - * - * @return Whether the funnelNextAction field is set. - */ - boolean hasFunnelNextAction(); - /** - * - * - *
-   * If specified, next action adds a dimension to the funnel visualization sub
-   * report response. This next action dimension expands each funnel step to the
-   * unique values of the next action. For example a next action of the
-   * `eventName` dimension will create rows for several events (i.e.
-   * `session_start` & `click`) and the total.
-   * Next action only supports `eventName` and most Page / Screen dimensions
-   * like `pageTitle` and `pagePath`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; - * - * @return The funnelNextAction. - */ - com.google.analytics.data.v1alpha.FunnelNextAction getFunnelNextAction(); - /** - * - * - *
-   * If specified, next action adds a dimension to the funnel visualization sub
-   * report response. This next action dimension expands each funnel step to the
-   * unique values of the next action. For example a next action of the
-   * `eventName` dimension will create rows for several events (i.e.
-   * `session_start` & `click`) and the total.
-   * Next action only supports `eventName` and most Page / Screen dimensions
-   * like `pageTitle` and `pagePath`.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelNextAction funnel_next_action = 5; - */ - com.google.analytics.data.v1alpha.FunnelNextActionOrBuilder getFunnelNextActionOrBuilder(); - - /** - * - * - *
-   * The funnel visualization type controls the dimensions present in the funnel
-   * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
-   * used.
-   * 
- * - * - * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; - * - * - * @return The enum numeric value on the wire for funnelVisualizationType. - */ - int getFunnelVisualizationTypeValue(); - /** - * - * - *
-   * The funnel visualization type controls the dimensions present in the funnel
-   * visualization sub report response. If not specified, `STANDARD_FUNNEL` is
-   * used.
-   * 
- * - * - * .google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType funnel_visualization_type = 6; - * - * - * @return The funnelVisualizationType. - */ - com.google.analytics.data.v1alpha.RunFunnelReportRequest.FunnelVisualizationType - getFunnelVisualizationType(); - - /** - * - * - *
-   * The configurations of segments. Segments are subsets of a property's data.
-   * In a funnel report with segments, the funnel is evaluated in each segment.
-   * Each segment specified in this request
-   * produces a separate row in the response; in the response, each segment
-   * identified by its name.
-   * The segments parameter is optional. Requests are limited to 4 segments.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - java.util.List getSegmentsList(); - /** - * - * - *
-   * The configurations of segments. Segments are subsets of a property's data.
-   * In a funnel report with segments, the funnel is evaluated in each segment.
-   * Each segment specified in this request
-   * produces a separate row in the response; in the response, each segment
-   * identified by its name.
-   * The segments parameter is optional. Requests are limited to 4 segments.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - com.google.analytics.data.v1alpha.Segment getSegments(int index); - /** - * - * - *
-   * The configurations of segments. Segments are subsets of a property's data.
-   * In a funnel report with segments, the funnel is evaluated in each segment.
-   * Each segment specified in this request
-   * produces a separate row in the response; in the response, each segment
-   * identified by its name.
-   * The segments parameter is optional. Requests are limited to 4 segments.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - int getSegmentsCount(); - /** - * - * - *
-   * The configurations of segments. Segments are subsets of a property's data.
-   * In a funnel report with segments, the funnel is evaluated in each segment.
-   * Each segment specified in this request
-   * produces a separate row in the response; in the response, each segment
-   * identified by its name.
-   * The segments parameter is optional. Requests are limited to 4 segments.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - java.util.List - getSegmentsOrBuilderList(); - /** - * - * - *
-   * The configurations of segments. Segments are subsets of a property's data.
-   * In a funnel report with segments, the funnel is evaluated in each segment.
-   * Each segment specified in this request
-   * produces a separate row in the response; in the response, each segment
-   * identified by its name.
-   * The segments parameter is optional. Requests are limited to 4 segments.
-   * 
- * - * repeated .google.analytics.data.v1alpha.Segment segments = 7; - */ - com.google.analytics.data.v1alpha.SegmentOrBuilder getSegmentsOrBuilder(int index); - - /** - * - * - *
-   * 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`.
-   * 
- * - * int64 limit = 9; - * - * @return The limit. - */ - long getLimit(); - - /** - * - * - *
-   * Dimension filters allow you to ask for only specific dimension values in
-   * the report. To learn more, see [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; - * - * @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 [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; - * - * @return The dimensionFilter. - */ - com.google.analytics.data.v1alpha.FilterExpression getDimensionFilter(); - /** - * - * - *
-   * Dimension filters allow you to ask for only specific dimension values in
-   * the report. To learn more, see [Creating a Report: 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.v1alpha.FilterExpression dimension_filter = 10; - */ - com.google.analytics.data.v1alpha.FilterExpressionOrBuilder getDimensionFilterOrBuilder(); - - /** - * - * - *
-   * Toggles whether to return the current state of this Analytics Property's
-   * quota. Quota is returned in [PropertyQuota](#PropertyQuota).
-   * 
- * - * bool return_property_quota = 12; - * - * @return The returnPropertyQuota. - */ - boolean getReturnPropertyQuota(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponse.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponse.java deleted file mode 100644 index d2872b7a..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponse.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/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The funnel report response contains two sub reports. The two sub reports are
- * different combinations of dimensions and metrics.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.RunFunnelReportResponse} - */ -public final class RunFunnelReportResponse extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.RunFunnelReportResponse) - RunFunnelReportResponseOrBuilder { - private static final long serialVersionUID = 0L; - // Use RunFunnelReportResponse.newBuilder() to construct. - private RunFunnelReportResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private RunFunnelReportResponse() { - kind_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new RunFunnelReportResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.RunFunnelReportResponse.class, - com.google.analytics.data.v1alpha.RunFunnelReportResponse.Builder.class); - } - - public static final int FUNNEL_TABLE_FIELD_NUMBER = 1; - private com.google.analytics.data.v1alpha.FunnelSubReport funnelTable_; - /** - * - * - *
-   * The funnel table is a report with the funnel step, segment, breakdown
-   * dimension, active users, completion rate, abandonments, and abandonments
-   * rate.
-   * The segment dimension is only present in this response if a segment was
-   * requested. The breakdown dimension is only present in this response if it
-   * was requested.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - * - * @return Whether the funnelTable field is set. - */ - @java.lang.Override - public boolean hasFunnelTable() { - return funnelTable_ != null; - } - /** - * - * - *
-   * The funnel table is a report with the funnel step, segment, breakdown
-   * dimension, active users, completion rate, abandonments, and abandonments
-   * rate.
-   * The segment dimension is only present in this response if a segment was
-   * requested. The breakdown dimension is only present in this response if it
-   * was requested.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - * - * @return The funnelTable. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelSubReport getFunnelTable() { - return funnelTable_ == null - ? com.google.analytics.data.v1alpha.FunnelSubReport.getDefaultInstance() - : funnelTable_; - } - /** - * - * - *
-   * The funnel table is a report with the funnel step, segment, breakdown
-   * dimension, active users, completion rate, abandonments, and abandonments
-   * rate.
-   * The segment dimension is only present in this response if a segment was
-   * requested. The breakdown dimension is only present in this response if it
-   * was requested.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder getFunnelTableOrBuilder() { - return getFunnelTable(); - } - - public static final int FUNNEL_VISUALIZATION_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.FunnelSubReport funnelVisualization_; - /** - * - * - *
-   * The funnel visualization is a report with the funnel step, segment, date,
-   * next action dimension, and active users.
-   * The segment dimension is only present in this response if a segment was
-   * requested. The date dimension is only present in this response if it was
-   * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
-   * is only present in the response if it was requested.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - * - * @return Whether the funnelVisualization field is set. - */ - @java.lang.Override - public boolean hasFunnelVisualization() { - return funnelVisualization_ != null; - } - /** - * - * - *
-   * The funnel visualization is a report with the funnel step, segment, date,
-   * next action dimension, and active users.
-   * The segment dimension is only present in this response if a segment was
-   * requested. The date dimension is only present in this response if it was
-   * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
-   * is only present in the response if it was requested.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - * - * @return The funnelVisualization. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelSubReport getFunnelVisualization() { - return funnelVisualization_ == null - ? com.google.analytics.data.v1alpha.FunnelSubReport.getDefaultInstance() - : funnelVisualization_; - } - /** - * - * - *
-   * The funnel visualization is a report with the funnel step, segment, date,
-   * next action dimension, and active users.
-   * The segment dimension is only present in this response if a segment was
-   * requested. The date dimension is only present in this response if it was
-   * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
-   * is only present in the response if it was requested.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder - getFunnelVisualizationOrBuilder() { - return getFunnelVisualization(); - } - - public static final int PROPERTY_QUOTA_FIELD_NUMBER = 3; - private com.google.analytics.data.v1alpha.PropertyQuota propertyQuota_; - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; - * - * @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.v1alpha.PropertyQuota property_quota = 3; - * - * @return The propertyQuota. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota() { - return propertyQuota_ == null - ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { - return getPropertyQuota(); - } - - public static final int KIND_FIELD_NUMBER = 4; - private volatile java.lang.Object kind_; - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#runFunnelReport". Useful to distinguish between
-   * response types in JSON.
-   * 
- * - * string kind = 4; - * - * @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#runFunnelReport". Useful to distinguish between
-   * response types in JSON.
-   * 
- * - * string kind = 4; - * - * @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 { - if (funnelTable_ != null) { - output.writeMessage(1, getFunnelTable()); - } - if (funnelVisualization_ != null) { - output.writeMessage(2, getFunnelVisualization()); - } - if (propertyQuota_ != null) { - output.writeMessage(3, getPropertyQuota()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, kind_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (funnelTable_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFunnelTable()); - } - if (funnelVisualization_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFunnelVisualization()); - } - if (propertyQuota_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getPropertyQuota()); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(kind_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, kind_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.RunFunnelReportResponse)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.RunFunnelReportResponse other = - (com.google.analytics.data.v1alpha.RunFunnelReportResponse) obj; - - if (hasFunnelTable() != other.hasFunnelTable()) return false; - if (hasFunnelTable()) { - if (!getFunnelTable().equals(other.getFunnelTable())) return false; - } - if (hasFunnelVisualization() != other.hasFunnelVisualization()) return false; - if (hasFunnelVisualization()) { - if (!getFunnelVisualization().equals(other.getFunnelVisualization())) 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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasFunnelTable()) { - hash = (37 * hash) + FUNNEL_TABLE_FIELD_NUMBER; - hash = (53 * hash) + getFunnelTable().hashCode(); - } - if (hasFunnelVisualization()) { - hash = (37 * hash) + FUNNEL_VISUALIZATION_FIELD_NUMBER; - hash = (53 * hash) + getFunnelVisualization().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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportResponse 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.v1alpha.RunFunnelReportResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportResponse parseFrom( - 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.v1alpha.RunFunnelReportResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportResponse parseFrom( - java.io.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.v1alpha.RunFunnelReportResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportResponse parseDelimitedFrom( - java.io.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.v1alpha.RunFunnelReportResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.RunFunnelReportResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 funnel report response contains two sub reports. The two sub reports are
-   * different combinations of dimensions and metrics.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.RunFunnelReportResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.RunFunnelReportResponse) - com.google.analytics.data.v1alpha.RunFunnelReportResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.RunFunnelReportResponse.class, - com.google.analytics.data.v1alpha.RunFunnelReportResponse.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.RunFunnelReportResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (funnelTableBuilder_ == null) { - funnelTable_ = null; - } else { - funnelTable_ = null; - funnelTableBuilder_ = null; - } - if (funnelVisualizationBuilder_ == null) { - funnelVisualization_ = null; - } else { - funnelVisualization_ = null; - funnelVisualizationBuilder_ = 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.v1alpha.AnalyticsDataApiProto - .internal_static_google_analytics_data_v1alpha_RunFunnelReportResponse_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunFunnelReportResponse getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.RunFunnelReportResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunFunnelReportResponse build() { - com.google.analytics.data.v1alpha.RunFunnelReportResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunFunnelReportResponse buildPartial() { - com.google.analytics.data.v1alpha.RunFunnelReportResponse result = - new com.google.analytics.data.v1alpha.RunFunnelReportResponse(this); - if (funnelTableBuilder_ == null) { - result.funnelTable_ = funnelTable_; - } else { - result.funnelTable_ = funnelTableBuilder_.build(); - } - if (funnelVisualizationBuilder_ == null) { - result.funnelVisualization_ = funnelVisualization_; - } else { - result.funnelVisualization_ = funnelVisualizationBuilder_.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.v1alpha.RunFunnelReportResponse) { - return mergeFrom((com.google.analytics.data.v1alpha.RunFunnelReportResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.RunFunnelReportResponse other) { - if (other == com.google.analytics.data.v1alpha.RunFunnelReportResponse.getDefaultInstance()) - return this; - if (other.hasFunnelTable()) { - mergeFunnelTable(other.getFunnelTable()); - } - if (other.hasFunnelVisualization()) { - mergeFunnelVisualization(other.getFunnelVisualization()); - } - if (other.hasPropertyQuota()) { - mergePropertyQuota(other.getPropertyQuota()); - } - if (!other.getKind().isEmpty()) { - kind_ = other.kind_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getFunnelTableFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage( - getFunnelVisualizationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage(getPropertyQuotaFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - kind_ = input.readStringRequireUtf8(); - - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.analytics.data.v1alpha.FunnelSubReport funnelTable_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelSubReport, - com.google.analytics.data.v1alpha.FunnelSubReport.Builder, - com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder> - funnelTableBuilder_; - /** - * - * - *
-     * The funnel table is a report with the funnel step, segment, breakdown
-     * dimension, active users, completion rate, abandonments, and abandonments
-     * rate.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The breakdown dimension is only present in this response if it
-     * was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - * - * @return Whether the funnelTable field is set. - */ - public boolean hasFunnelTable() { - return funnelTableBuilder_ != null || funnelTable_ != null; - } - /** - * - * - *
-     * The funnel table is a report with the funnel step, segment, breakdown
-     * dimension, active users, completion rate, abandonments, and abandonments
-     * rate.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The breakdown dimension is only present in this response if it
-     * was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - * - * @return The funnelTable. - */ - public com.google.analytics.data.v1alpha.FunnelSubReport getFunnelTable() { - if (funnelTableBuilder_ == null) { - return funnelTable_ == null - ? com.google.analytics.data.v1alpha.FunnelSubReport.getDefaultInstance() - : funnelTable_; - } else { - return funnelTableBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The funnel table is a report with the funnel step, segment, breakdown
-     * dimension, active users, completion rate, abandonments, and abandonments
-     * rate.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The breakdown dimension is only present in this response if it
-     * was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - */ - public Builder setFunnelTable(com.google.analytics.data.v1alpha.FunnelSubReport value) { - if (funnelTableBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - funnelTable_ = value; - onChanged(); - } else { - funnelTableBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The funnel table is a report with the funnel step, segment, breakdown
-     * dimension, active users, completion rate, abandonments, and abandonments
-     * rate.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The breakdown dimension is only present in this response if it
-     * was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - */ - public Builder setFunnelTable( - com.google.analytics.data.v1alpha.FunnelSubReport.Builder builderForValue) { - if (funnelTableBuilder_ == null) { - funnelTable_ = builderForValue.build(); - onChanged(); - } else { - funnelTableBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The funnel table is a report with the funnel step, segment, breakdown
-     * dimension, active users, completion rate, abandonments, and abandonments
-     * rate.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The breakdown dimension is only present in this response if it
-     * was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - */ - public Builder mergeFunnelTable(com.google.analytics.data.v1alpha.FunnelSubReport value) { - if (funnelTableBuilder_ == null) { - if (funnelTable_ != null) { - funnelTable_ = - com.google.analytics.data.v1alpha.FunnelSubReport.newBuilder(funnelTable_) - .mergeFrom(value) - .buildPartial(); - } else { - funnelTable_ = value; - } - onChanged(); - } else { - funnelTableBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The funnel table is a report with the funnel step, segment, breakdown
-     * dimension, active users, completion rate, abandonments, and abandonments
-     * rate.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The breakdown dimension is only present in this response if it
-     * was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - */ - public Builder clearFunnelTable() { - if (funnelTableBuilder_ == null) { - funnelTable_ = null; - onChanged(); - } else { - funnelTable_ = null; - funnelTableBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The funnel table is a report with the funnel step, segment, breakdown
-     * dimension, active users, completion rate, abandonments, and abandonments
-     * rate.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The breakdown dimension is only present in this response if it
-     * was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - */ - public com.google.analytics.data.v1alpha.FunnelSubReport.Builder getFunnelTableBuilder() { - - onChanged(); - return getFunnelTableFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The funnel table is a report with the funnel step, segment, breakdown
-     * dimension, active users, completion rate, abandonments, and abandonments
-     * rate.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The breakdown dimension is only present in this response if it
-     * was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - */ - public com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder getFunnelTableOrBuilder() { - if (funnelTableBuilder_ != null) { - return funnelTableBuilder_.getMessageOrBuilder(); - } else { - return funnelTable_ == null - ? com.google.analytics.data.v1alpha.FunnelSubReport.getDefaultInstance() - : funnelTable_; - } - } - /** - * - * - *
-     * The funnel table is a report with the funnel step, segment, breakdown
-     * dimension, active users, completion rate, abandonments, and abandonments
-     * rate.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The breakdown dimension is only present in this response if it
-     * was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelSubReport, - com.google.analytics.data.v1alpha.FunnelSubReport.Builder, - com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder> - getFunnelTableFieldBuilder() { - if (funnelTableBuilder_ == null) { - funnelTableBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelSubReport, - com.google.analytics.data.v1alpha.FunnelSubReport.Builder, - com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder>( - getFunnelTable(), getParentForChildren(), isClean()); - funnelTable_ = null; - } - return funnelTableBuilder_; - } - - private com.google.analytics.data.v1alpha.FunnelSubReport funnelVisualization_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelSubReport, - com.google.analytics.data.v1alpha.FunnelSubReport.Builder, - com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder> - funnelVisualizationBuilder_; - /** - * - * - *
-     * The funnel visualization is a report with the funnel step, segment, date,
-     * next action dimension, and active users.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The date dimension is only present in this response if it was
-     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
-     * is only present in the response if it was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - * - * @return Whether the funnelVisualization field is set. - */ - public boolean hasFunnelVisualization() { - return funnelVisualizationBuilder_ != null || funnelVisualization_ != null; - } - /** - * - * - *
-     * The funnel visualization is a report with the funnel step, segment, date,
-     * next action dimension, and active users.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The date dimension is only present in this response if it was
-     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
-     * is only present in the response if it was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - * - * @return The funnelVisualization. - */ - public com.google.analytics.data.v1alpha.FunnelSubReport getFunnelVisualization() { - if (funnelVisualizationBuilder_ == null) { - return funnelVisualization_ == null - ? com.google.analytics.data.v1alpha.FunnelSubReport.getDefaultInstance() - : funnelVisualization_; - } else { - return funnelVisualizationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * The funnel visualization is a report with the funnel step, segment, date,
-     * next action dimension, and active users.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The date dimension is only present in this response if it was
-     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
-     * is only present in the response if it was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - */ - public Builder setFunnelVisualization(com.google.analytics.data.v1alpha.FunnelSubReport value) { - if (funnelVisualizationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - funnelVisualization_ = value; - onChanged(); - } else { - funnelVisualizationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * The funnel visualization is a report with the funnel step, segment, date,
-     * next action dimension, and active users.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The date dimension is only present in this response if it was
-     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
-     * is only present in the response if it was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - */ - public Builder setFunnelVisualization( - com.google.analytics.data.v1alpha.FunnelSubReport.Builder builderForValue) { - if (funnelVisualizationBuilder_ == null) { - funnelVisualization_ = builderForValue.build(); - onChanged(); - } else { - funnelVisualizationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * The funnel visualization is a report with the funnel step, segment, date,
-     * next action dimension, and active users.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The date dimension is only present in this response if it was
-     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
-     * is only present in the response if it was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - */ - public Builder mergeFunnelVisualization( - com.google.analytics.data.v1alpha.FunnelSubReport value) { - if (funnelVisualizationBuilder_ == null) { - if (funnelVisualization_ != null) { - funnelVisualization_ = - com.google.analytics.data.v1alpha.FunnelSubReport.newBuilder(funnelVisualization_) - .mergeFrom(value) - .buildPartial(); - } else { - funnelVisualization_ = value; - } - onChanged(); - } else { - funnelVisualizationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * The funnel visualization is a report with the funnel step, segment, date,
-     * next action dimension, and active users.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The date dimension is only present in this response if it was
-     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
-     * is only present in the response if it was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - */ - public Builder clearFunnelVisualization() { - if (funnelVisualizationBuilder_ == null) { - funnelVisualization_ = null; - onChanged(); - } else { - funnelVisualization_ = null; - funnelVisualizationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * The funnel visualization is a report with the funnel step, segment, date,
-     * next action dimension, and active users.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The date dimension is only present in this response if it was
-     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
-     * is only present in the response if it was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - */ - public com.google.analytics.data.v1alpha.FunnelSubReport.Builder - getFunnelVisualizationBuilder() { - - onChanged(); - return getFunnelVisualizationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The funnel visualization is a report with the funnel step, segment, date,
-     * next action dimension, and active users.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The date dimension is only present in this response if it was
-     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
-     * is only present in the response if it was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - */ - public com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder - getFunnelVisualizationOrBuilder() { - if (funnelVisualizationBuilder_ != null) { - return funnelVisualizationBuilder_.getMessageOrBuilder(); - } else { - return funnelVisualization_ == null - ? com.google.analytics.data.v1alpha.FunnelSubReport.getDefaultInstance() - : funnelVisualization_; - } - } - /** - * - * - *
-     * The funnel visualization is a report with the funnel step, segment, date,
-     * next action dimension, and active users.
-     * The segment dimension is only present in this response if a segment was
-     * requested. The date dimension is only present in this response if it was
-     * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
-     * is only present in the response if it was requested.
-     * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelSubReport, - com.google.analytics.data.v1alpha.FunnelSubReport.Builder, - com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder> - getFunnelVisualizationFieldBuilder() { - if (funnelVisualizationBuilder_ == null) { - funnelVisualizationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.FunnelSubReport, - com.google.analytics.data.v1alpha.FunnelSubReport.Builder, - com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder>( - getFunnelVisualization(), getParentForChildren(), isClean()); - funnelVisualization_ = null; - } - return funnelVisualizationBuilder_; - } - - private com.google.analytics.data.v1alpha.PropertyQuota propertyQuota_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.PropertyQuota, - com.google.analytics.data.v1alpha.PropertyQuota.Builder, - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> - propertyQuotaBuilder_; - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; - * - * @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.v1alpha.PropertyQuota property_quota = 3; - * - * @return The propertyQuota. - */ - public com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota() { - if (propertyQuotaBuilder_ == null) { - return propertyQuota_ == null - ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } else { - return propertyQuotaBuilder_.getMessage(); - } - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; - */ - public Builder setPropertyQuota(com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 3; - */ - public Builder setPropertyQuota( - com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 3; - */ - public Builder mergePropertyQuota(com.google.analytics.data.v1alpha.PropertyQuota value) { - if (propertyQuotaBuilder_ == null) { - if (propertyQuota_ != null) { - propertyQuota_ = - com.google.analytics.data.v1alpha.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.v1alpha.PropertyQuota property_quota = 3; - */ - 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.v1alpha.PropertyQuota property_quota = 3; - */ - public com.google.analytics.data.v1alpha.PropertyQuota.Builder getPropertyQuotaBuilder() { - - onChanged(); - return getPropertyQuotaFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; - */ - public com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder() { - if (propertyQuotaBuilder_ != null) { - return propertyQuotaBuilder_.getMessageOrBuilder(); - } else { - return propertyQuota_ == null - ? com.google.analytics.data.v1alpha.PropertyQuota.getDefaultInstance() - : propertyQuota_; - } - } - /** - * - * - *
-     * This Analytics Property's quota state including this request.
-     * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.PropertyQuota, - com.google.analytics.data.v1alpha.PropertyQuota.Builder, - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder> - getPropertyQuotaFieldBuilder() { - if (propertyQuotaBuilder_ == null) { - propertyQuotaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.PropertyQuota, - com.google.analytics.data.v1alpha.PropertyQuota.Builder, - com.google.analytics.data.v1alpha.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#runFunnelReport". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 4; - * - * @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#runFunnelReport". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 4; - * - * @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#runFunnelReport". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 4; - * - * @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#runFunnelReport". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 4; - * - * @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#runFunnelReport". Useful to distinguish between
-     * response types in JSON.
-     * 
- * - * string kind = 4; - * - * @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.v1alpha.RunFunnelReportResponse) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.RunFunnelReportResponse) - private static final com.google.analytics.data.v1alpha.RunFunnelReportResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.RunFunnelReportResponse(); - } - - public static com.google.analytics.data.v1alpha.RunFunnelReportResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public RunFunnelReportResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.RunFunnelReportResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponseOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponseOrBuilder.java deleted file mode 100644 index 56815995..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/RunFunnelReportResponseOrBuilder.java +++ /dev/null @@ -1,189 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/analytics_data_api.proto - -package com.google.analytics.data.v1alpha; - -public interface RunFunnelReportResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.RunFunnelReportResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The funnel table is a report with the funnel step, segment, breakdown
-   * dimension, active users, completion rate, abandonments, and abandonments
-   * rate.
-   * The segment dimension is only present in this response if a segment was
-   * requested. The breakdown dimension is only present in this response if it
-   * was requested.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - * - * @return Whether the funnelTable field is set. - */ - boolean hasFunnelTable(); - /** - * - * - *
-   * The funnel table is a report with the funnel step, segment, breakdown
-   * dimension, active users, completion rate, abandonments, and abandonments
-   * rate.
-   * The segment dimension is only present in this response if a segment was
-   * requested. The breakdown dimension is only present in this response if it
-   * was requested.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - * - * @return The funnelTable. - */ - com.google.analytics.data.v1alpha.FunnelSubReport getFunnelTable(); - /** - * - * - *
-   * The funnel table is a report with the funnel step, segment, breakdown
-   * dimension, active users, completion rate, abandonments, and abandonments
-   * rate.
-   * The segment dimension is only present in this response if a segment was
-   * requested. The breakdown dimension is only present in this response if it
-   * was requested.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_table = 1; - */ - com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder getFunnelTableOrBuilder(); - - /** - * - * - *
-   * The funnel visualization is a report with the funnel step, segment, date,
-   * next action dimension, and active users.
-   * The segment dimension is only present in this response if a segment was
-   * requested. The date dimension is only present in this response if it was
-   * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
-   * is only present in the response if it was requested.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - * - * @return Whether the funnelVisualization field is set. - */ - boolean hasFunnelVisualization(); - /** - * - * - *
-   * The funnel visualization is a report with the funnel step, segment, date,
-   * next action dimension, and active users.
-   * The segment dimension is only present in this response if a segment was
-   * requested. The date dimension is only present in this response if it was
-   * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
-   * is only present in the response if it was requested.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - * - * @return The funnelVisualization. - */ - com.google.analytics.data.v1alpha.FunnelSubReport getFunnelVisualization(); - /** - * - * - *
-   * The funnel visualization is a report with the funnel step, segment, date,
-   * next action dimension, and active users.
-   * The segment dimension is only present in this response if a segment was
-   * requested. The date dimension is only present in this response if it was
-   * requested via the `TRENDED_FUNNEL` funnel type. The next action dimension
-   * is only present in the response if it was requested.
-   * 
- * - * .google.analytics.data.v1alpha.FunnelSubReport funnel_visualization = 2; - */ - com.google.analytics.data.v1alpha.FunnelSubReportOrBuilder getFunnelVisualizationOrBuilder(); - - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; - * - * @return Whether the propertyQuota field is set. - */ - boolean hasPropertyQuota(); - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; - * - * @return The propertyQuota. - */ - com.google.analytics.data.v1alpha.PropertyQuota getPropertyQuota(); - /** - * - * - *
-   * This Analytics Property's quota state including this request.
-   * 
- * - * .google.analytics.data.v1alpha.PropertyQuota property_quota = 3; - */ - com.google.analytics.data.v1alpha.PropertyQuotaOrBuilder getPropertyQuotaOrBuilder(); - - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#runFunnelReport". Useful to distinguish between
-   * response types in JSON.
-   * 
- * - * string kind = 4; - * - * @return The kind. - */ - java.lang.String getKind(); - /** - * - * - *
-   * Identifies what kind of resource this message is. This `kind` is always the
-   * fixed string "analyticsData#runFunnelReport". Useful to distinguish between
-   * response types in JSON.
-   * 
- * - * string kind = 4; - * - * @return The bytes for kind. - */ - com.google.protobuf.ByteString getKindBytes(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadata.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadata.java deleted file mode 100644 index b90307ed..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadata.java +++ /dev/null @@ -1,656 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * If funnel report results are
- * [sampled](https://support.google.com/analytics/answer/2637192), this
- * metadata describes what percentage of events were used in this funnel
- * report for a date range. Sampling is the practice of analyzing a subset of
- * all data in order to uncover the meaningful information in the larger data
- * set.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SamplingMetadata} - */ -public final class SamplingMetadata extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SamplingMetadata) - SamplingMetadataOrBuilder { - private static final long serialVersionUID = 0L; - // Use SamplingMetadata.newBuilder() to construct. - private SamplingMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SamplingMetadata() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SamplingMetadata(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SamplingMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SamplingMetadata.class, - com.google.analytics.data.v1alpha.SamplingMetadata.Builder.class); - } - - public static final int SAMPLES_READ_COUNT_FIELD_NUMBER = 1; - private long samplesReadCount_; - /** - * - * - *
-   * The total number of events read in this sampled report for a date range.
-   * This is the size of the subset this property's data that was analyzed in
-   * this funnel report.
-   * 
- * - * int64 samples_read_count = 1; - * - * @return The samplesReadCount. - */ - @java.lang.Override - public long getSamplesReadCount() { - return samplesReadCount_; - } - - public static final int SAMPLING_SPACE_SIZE_FIELD_NUMBER = 2; - private long samplingSpaceSize_; - /** - * - * - *
-   * The total number of events present in this property's data that could
-   * have been analyzed in this funnel report for a date range. Sampling
-   * uncovers the meaningful information about the larger data set, and this
-   * is the size of the larger data set.
-   * To calculate the percentage of available data that was used in this
-   * funnel report, compute `samplesReadCount/samplingSpaceSize`.
-   * 
- * - * int64 sampling_space_size = 2; - * - * @return The samplingSpaceSize. - */ - @java.lang.Override - public long getSamplingSpaceSize() { - return samplingSpaceSize_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (samplesReadCount_ != 0L) { - output.writeInt64(1, samplesReadCount_); - } - if (samplingSpaceSize_ != 0L) { - output.writeInt64(2, samplingSpaceSize_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (samplesReadCount_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, samplesReadCount_); - } - if (samplingSpaceSize_ != 0L) { - size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, samplingSpaceSize_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.SamplingMetadata)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.SamplingMetadata other = - (com.google.analytics.data.v1alpha.SamplingMetadata) obj; - - if (getSamplesReadCount() != other.getSamplesReadCount()) return false; - if (getSamplingSpaceSize() != other.getSamplingSpaceSize()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SAMPLES_READ_COUNT_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSamplesReadCount()); - hash = (37 * hash) + SAMPLING_SPACE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getSamplingSpaceSize()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.SamplingMetadata parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SamplingMetadata 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.v1alpha.SamplingMetadata parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SamplingMetadata parseFrom( - 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.v1alpha.SamplingMetadata parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SamplingMetadata parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SamplingMetadata parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SamplingMetadata parseFrom( - java.io.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.v1alpha.SamplingMetadata parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SamplingMetadata parseDelimitedFrom( - java.io.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.v1alpha.SamplingMetadata parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SamplingMetadata parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.SamplingMetadata prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * If funnel report results are
-   * [sampled](https://support.google.com/analytics/answer/2637192), this
-   * metadata describes what percentage of events were used in this funnel
-   * report for a date range. Sampling is the practice of analyzing a subset of
-   * all data in order to uncover the meaningful information in the larger data
-   * set.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SamplingMetadata} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SamplingMetadata) - com.google.analytics.data.v1alpha.SamplingMetadataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SamplingMetadata_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SamplingMetadata.class, - com.google.analytics.data.v1alpha.SamplingMetadata.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.SamplingMetadata.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - samplesReadCount_ = 0L; - - samplingSpaceSize_ = 0L; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SamplingMetadata_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SamplingMetadata getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.SamplingMetadata.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SamplingMetadata build() { - com.google.analytics.data.v1alpha.SamplingMetadata result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SamplingMetadata buildPartial() { - com.google.analytics.data.v1alpha.SamplingMetadata result = - new com.google.analytics.data.v1alpha.SamplingMetadata(this); - result.samplesReadCount_ = samplesReadCount_; - result.samplingSpaceSize_ = samplingSpaceSize_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.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.v1alpha.SamplingMetadata) { - return mergeFrom((com.google.analytics.data.v1alpha.SamplingMetadata) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.SamplingMetadata other) { - if (other == com.google.analytics.data.v1alpha.SamplingMetadata.getDefaultInstance()) - return this; - if (other.getSamplesReadCount() != 0L) { - setSamplesReadCount(other.getSamplesReadCount()); - } - if (other.getSamplingSpaceSize() != 0L) { - setSamplingSpaceSize(other.getSamplingSpaceSize()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - samplesReadCount_ = input.readInt64(); - - break; - } // case 8 - case 16: - { - samplingSpaceSize_ = input.readInt64(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private long samplesReadCount_; - /** - * - * - *
-     * The total number of events read in this sampled report for a date range.
-     * This is the size of the subset this property's data that was analyzed in
-     * this funnel report.
-     * 
- * - * int64 samples_read_count = 1; - * - * @return The samplesReadCount. - */ - @java.lang.Override - public long getSamplesReadCount() { - return samplesReadCount_; - } - /** - * - * - *
-     * The total number of events read in this sampled report for a date range.
-     * This is the size of the subset this property's data that was analyzed in
-     * this funnel report.
-     * 
- * - * int64 samples_read_count = 1; - * - * @param value The samplesReadCount to set. - * @return This builder for chaining. - */ - public Builder setSamplesReadCount(long value) { - - samplesReadCount_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The total number of events read in this sampled report for a date range.
-     * This is the size of the subset this property's data that was analyzed in
-     * this funnel report.
-     * 
- * - * int64 samples_read_count = 1; - * - * @return This builder for chaining. - */ - public Builder clearSamplesReadCount() { - - samplesReadCount_ = 0L; - onChanged(); - return this; - } - - private long samplingSpaceSize_; - /** - * - * - *
-     * The total number of events present in this property's data that could
-     * have been analyzed in this funnel report for a date range. Sampling
-     * uncovers the meaningful information about the larger data set, and this
-     * is the size of the larger data set.
-     * To calculate the percentage of available data that was used in this
-     * funnel report, compute `samplesReadCount/samplingSpaceSize`.
-     * 
- * - * int64 sampling_space_size = 2; - * - * @return The samplingSpaceSize. - */ - @java.lang.Override - public long getSamplingSpaceSize() { - return samplingSpaceSize_; - } - /** - * - * - *
-     * The total number of events present in this property's data that could
-     * have been analyzed in this funnel report for a date range. Sampling
-     * uncovers the meaningful information about the larger data set, and this
-     * is the size of the larger data set.
-     * To calculate the percentage of available data that was used in this
-     * funnel report, compute `samplesReadCount/samplingSpaceSize`.
-     * 
- * - * int64 sampling_space_size = 2; - * - * @param value The samplingSpaceSize to set. - * @return This builder for chaining. - */ - public Builder setSamplingSpaceSize(long value) { - - samplingSpaceSize_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * The total number of events present in this property's data that could
-     * have been analyzed in this funnel report for a date range. Sampling
-     * uncovers the meaningful information about the larger data set, and this
-     * is the size of the larger data set.
-     * To calculate the percentage of available data that was used in this
-     * funnel report, compute `samplesReadCount/samplingSpaceSize`.
-     * 
- * - * int64 sampling_space_size = 2; - * - * @return This builder for chaining. - */ - public Builder clearSamplingSpaceSize() { - - samplingSpaceSize_ = 0L; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.SamplingMetadata) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SamplingMetadata) - private static final com.google.analytics.data.v1alpha.SamplingMetadata DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SamplingMetadata(); - } - - public static com.google.analytics.data.v1alpha.SamplingMetadata getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SamplingMetadata parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SamplingMetadata getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadataOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadataOrBuilder.java deleted file mode 100644 index 72f910d4..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SamplingMetadataOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface SamplingMetadataOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SamplingMetadata) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The total number of events read in this sampled report for a date range.
-   * This is the size of the subset this property's data that was analyzed in
-   * this funnel report.
-   * 
- * - * int64 samples_read_count = 1; - * - * @return The samplesReadCount. - */ - long getSamplesReadCount(); - - /** - * - * - *
-   * The total number of events present in this property's data that could
-   * have been analyzed in this funnel report for a date range. Sampling
-   * uncovers the meaningful information about the larger data set, and this
-   * is the size of the larger data set.
-   * To calculate the percentage of available data that was used in this
-   * funnel report, compute `samplesReadCount/samplingSpaceSize`.
-   * 
- * - * int64 sampling_space_size = 2; - * - * @return The samplingSpaceSize. - */ - long getSamplingSpaceSize(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Segment.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Segment.java deleted file mode 100644 index 2d153afb..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/Segment.java +++ /dev/null @@ -1,1645 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * A segment is a subset of your Analytics data. For example, of your entire set
- * of users, one segment might be users from a particular country or city.
- * Another segment might be users who purchase a particular line of products or
- * who visit a specific part of your site or trigger certain events in your app.
- * To learn more, see [GA4 Segment
- * Builder](https://support.google.com/analytics/answer/9304353).
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Segment} - */ -public final class Segment extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.Segment) - SegmentOrBuilder { - private static final long serialVersionUID = 0L; - // Use Segment.newBuilder() to construct. - private Segment(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private Segment() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new Segment(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Segment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Segment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Segment.class, - com.google.analytics.data.v1alpha.Segment.Builder.class); - } - - private int oneSegmentScopeCase_ = 0; - private java.lang.Object oneSegmentScope_; - - public enum OneSegmentScopeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - USER_SEGMENT(2), - SESSION_SEGMENT(3), - EVENT_SEGMENT(4), - ONESEGMENTSCOPE_NOT_SET(0); - private final int value; - - private OneSegmentScopeCase(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 OneSegmentScopeCase valueOf(int value) { - return forNumber(value); - } - - public static OneSegmentScopeCase forNumber(int value) { - switch (value) { - case 2: - return USER_SEGMENT; - case 3: - return SESSION_SEGMENT; - case 4: - return EVENT_SEGMENT; - case 0: - return ONESEGMENTSCOPE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OneSegmentScopeCase getOneSegmentScopeCase() { - return OneSegmentScopeCase.forNumber(oneSegmentScopeCase_); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * - * - *
-   * The name for this segment. If unspecified, segments are named "Segment".
-   * This name defines string value returned by the `segment` dimension. The
-   * `segment` dimension prefixes segment names by the 1-based index number of
-   * the segment in the request (i.e. "1. Segment", "2. Segment", 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; - } - } - /** - * - * - *
-   * The name for this segment. If unspecified, segments are named "Segment".
-   * This name defines string value returned by the `segment` dimension. The
-   * `segment` dimension prefixes segment names by the 1-based index number of
-   * the segment in the request (i.e. "1. Segment", "2. Segment", 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 USER_SEGMENT_FIELD_NUMBER = 2; - /** - * - * - *
-   * User segments are subsets of users who engaged with your site or app.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegment user_segment = 2; - * - * @return Whether the userSegment field is set. - */ - @java.lang.Override - public boolean hasUserSegment() { - return oneSegmentScopeCase_ == 2; - } - /** - * - * - *
-   * User segments are subsets of users who engaged with your site or app.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegment user_segment = 2; - * - * @return The userSegment. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegment getUserSegment() { - if (oneSegmentScopeCase_ == 2) { - return (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_; - } - return com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance(); - } - /** - * - * - *
-   * User segments are subsets of users who engaged with your site or app.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegment user_segment = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentOrBuilder getUserSegmentOrBuilder() { - if (oneSegmentScopeCase_ == 2) { - return (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_; - } - return com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance(); - } - - public static final int SESSION_SEGMENT_FIELD_NUMBER = 3; - /** - * - * - *
-   * Session segments are subsets of the sessions that occurred on your site
-   * or app.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - * - * @return Whether the sessionSegment field is set. - */ - @java.lang.Override - public boolean hasSessionSegment() { - return oneSegmentScopeCase_ == 3; - } - /** - * - * - *
-   * Session segments are subsets of the sessions that occurred on your site
-   * or app.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - * - * @return The sessionSegment. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegment getSessionSegment() { - if (oneSegmentScopeCase_ == 3) { - return (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_; - } - return com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance(); - } - /** - * - * - *
-   * Session segments are subsets of the sessions that occurred on your site
-   * or app.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentOrBuilder getSessionSegmentOrBuilder() { - if (oneSegmentScopeCase_ == 3) { - return (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_; - } - return com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance(); - } - - public static final int EVENT_SEGMENT_FIELD_NUMBER = 4; - /** - * - * - *
-   * Event segments are subsets of events that were triggered on your site or
-   * app.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegment event_segment = 4; - * - * @return Whether the eventSegment field is set. - */ - @java.lang.Override - public boolean hasEventSegment() { - return oneSegmentScopeCase_ == 4; - } - /** - * - * - *
-   * Event segments are subsets of events that were triggered on your site or
-   * app.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegment event_segment = 4; - * - * @return The eventSegment. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegment getEventSegment() { - if (oneSegmentScopeCase_ == 4) { - return (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_; - } - return com.google.analytics.data.v1alpha.EventSegment.getDefaultInstance(); - } - /** - * - * - *
-   * Event segments are subsets of events that were triggered on your site or
-   * app.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegment event_segment = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentOrBuilder getEventSegmentOrBuilder() { - if (oneSegmentScopeCase_ == 4) { - return (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_; - } - return com.google.analytics.data.v1alpha.EventSegment.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(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (oneSegmentScopeCase_ == 2) { - output.writeMessage(2, (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_); - } - if (oneSegmentScopeCase_ == 3) { - output.writeMessage(3, (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_); - } - if (oneSegmentScopeCase_ == 4) { - output.writeMessage(4, (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (oneSegmentScopeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_); - } - if (oneSegmentScopeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_); - } - if (oneSegmentScopeCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.Segment)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.Segment other = - (com.google.analytics.data.v1alpha.Segment) obj; - - if (!getName().equals(other.getName())) return false; - if (!getOneSegmentScopeCase().equals(other.getOneSegmentScopeCase())) return false; - switch (oneSegmentScopeCase_) { - case 2: - if (!getUserSegment().equals(other.getUserSegment())) return false; - break; - case 3: - if (!getSessionSegment().equals(other.getSessionSegment())) return false; - break; - case 4: - if (!getEventSegment().equals(other.getEventSegment())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - switch (oneSegmentScopeCase_) { - case 2: - hash = (37 * hash) + USER_SEGMENT_FIELD_NUMBER; - hash = (53 * hash) + getUserSegment().hashCode(); - break; - case 3: - hash = (37 * hash) + SESSION_SEGMENT_FIELD_NUMBER; - hash = (53 * hash) + getSessionSegment().hashCode(); - break; - case 4: - hash = (37 * hash) + EVENT_SEGMENT_FIELD_NUMBER; - hash = (53 * hash) + getEventSegment().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.Segment parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.Segment 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.v1alpha.Segment parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.Segment parseFrom( - 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.v1alpha.Segment parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.Segment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.Segment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.Segment parseFrom( - java.io.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.v1alpha.Segment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.Segment parseDelimitedFrom( - java.io.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.v1alpha.Segment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.Segment parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.Segment prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 segment is a subset of your Analytics data. For example, of your entire set
-   * of users, one segment might be users from a particular country or city.
-   * Another segment might be users who purchase a particular line of products or
-   * who visit a specific part of your site or trigger certain events in your app.
-   * To learn more, see [GA4 Segment
-   * Builder](https://support.google.com/analytics/answer/9304353).
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.Segment} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.Segment) - com.google.analytics.data.v1alpha.SegmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Segment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Segment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.Segment.class, - com.google.analytics.data.v1alpha.Segment.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.Segment.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (userSegmentBuilder_ != null) { - userSegmentBuilder_.clear(); - } - if (sessionSegmentBuilder_ != null) { - sessionSegmentBuilder_.clear(); - } - if (eventSegmentBuilder_ != null) { - eventSegmentBuilder_.clear(); - } - oneSegmentScopeCase_ = 0; - oneSegmentScope_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_Segment_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Segment getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.Segment.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Segment build() { - com.google.analytics.data.v1alpha.Segment result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Segment buildPartial() { - com.google.analytics.data.v1alpha.Segment result = - new com.google.analytics.data.v1alpha.Segment(this); - result.name_ = name_; - if (oneSegmentScopeCase_ == 2) { - if (userSegmentBuilder_ == null) { - result.oneSegmentScope_ = oneSegmentScope_; - } else { - result.oneSegmentScope_ = userSegmentBuilder_.build(); - } - } - if (oneSegmentScopeCase_ == 3) { - if (sessionSegmentBuilder_ == null) { - result.oneSegmentScope_ = oneSegmentScope_; - } else { - result.oneSegmentScope_ = sessionSegmentBuilder_.build(); - } - } - if (oneSegmentScopeCase_ == 4) { - if (eventSegmentBuilder_ == null) { - result.oneSegmentScope_ = oneSegmentScope_; - } else { - result.oneSegmentScope_ = eventSegmentBuilder_.build(); - } - } - result.oneSegmentScopeCase_ = oneSegmentScopeCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.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.v1alpha.Segment) { - return mergeFrom((com.google.analytics.data.v1alpha.Segment) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.Segment other) { - if (other == com.google.analytics.data.v1alpha.Segment.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - switch (other.getOneSegmentScopeCase()) { - case USER_SEGMENT: - { - mergeUserSegment(other.getUserSegment()); - break; - } - case SESSION_SEGMENT: - { - mergeSessionSegment(other.getSessionSegment()); - break; - } - case EVENT_SEGMENT: - { - mergeEventSegment(other.getEventSegment()); - break; - } - case ONESEGMENTSCOPE_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage(getUserSegmentFieldBuilder().getBuilder(), extensionRegistry); - oneSegmentScopeCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getSessionSegmentFieldBuilder().getBuilder(), extensionRegistry); - oneSegmentScopeCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getEventSegmentFieldBuilder().getBuilder(), extensionRegistry); - oneSegmentScopeCase_ = 4; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int oneSegmentScopeCase_ = 0; - private java.lang.Object oneSegmentScope_; - - public OneSegmentScopeCase getOneSegmentScopeCase() { - return OneSegmentScopeCase.forNumber(oneSegmentScopeCase_); - } - - public Builder clearOneSegmentScope() { - oneSegmentScopeCase_ = 0; - oneSegmentScope_ = null; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * The name for this segment. If unspecified, segments are named "Segment".
-     * This name defines string value returned by the `segment` dimension. The
-     * `segment` dimension prefixes segment names by the 1-based index number of
-     * the segment in the request (i.e. "1. Segment", "2. Segment", 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; - } - } - /** - * - * - *
-     * The name for this segment. If unspecified, segments are named "Segment".
-     * This name defines string value returned by the `segment` dimension. The
-     * `segment` dimension prefixes segment names by the 1-based index number of
-     * the segment in the request (i.e. "1. Segment", "2. Segment", 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; - } - } - /** - * - * - *
-     * The name for this segment. If unspecified, segments are named "Segment".
-     * This name defines string value returned by the `segment` dimension. The
-     * `segment` dimension prefixes segment names by the 1-based index number of
-     * the segment in the request (i.e. "1. Segment", "2. Segment", 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; - } - /** - * - * - *
-     * The name for this segment. If unspecified, segments are named "Segment".
-     * This name defines string value returned by the `segment` dimension. The
-     * `segment` dimension prefixes segment names by the 1-based index number of
-     * the segment in the request (i.e. "1. Segment", "2. Segment", etc.).
-     * 
- * - * string name = 1; - * - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The name for this segment. If unspecified, segments are named "Segment".
-     * This name defines string value returned by the `segment` dimension. The
-     * `segment` dimension prefixes segment names by the 1-based index number of
-     * the segment in the request (i.e. "1. Segment", "2. Segment", 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 com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegment, - com.google.analytics.data.v1alpha.UserSegment.Builder, - com.google.analytics.data.v1alpha.UserSegmentOrBuilder> - userSegmentBuilder_; - /** - * - * - *
-     * User segments are subsets of users who engaged with your site or app.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegment user_segment = 2; - * - * @return Whether the userSegment field is set. - */ - @java.lang.Override - public boolean hasUserSegment() { - return oneSegmentScopeCase_ == 2; - } - /** - * - * - *
-     * User segments are subsets of users who engaged with your site or app.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegment user_segment = 2; - * - * @return The userSegment. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegment getUserSegment() { - if (userSegmentBuilder_ == null) { - if (oneSegmentScopeCase_ == 2) { - return (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_; - } - return com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance(); - } else { - if (oneSegmentScopeCase_ == 2) { - return userSegmentBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance(); - } - } - /** - * - * - *
-     * User segments are subsets of users who engaged with your site or app.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegment user_segment = 2; - */ - public Builder setUserSegment(com.google.analytics.data.v1alpha.UserSegment value) { - if (userSegmentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneSegmentScope_ = value; - onChanged(); - } else { - userSegmentBuilder_.setMessage(value); - } - oneSegmentScopeCase_ = 2; - return this; - } - /** - * - * - *
-     * User segments are subsets of users who engaged with your site or app.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegment user_segment = 2; - */ - public Builder setUserSegment( - com.google.analytics.data.v1alpha.UserSegment.Builder builderForValue) { - if (userSegmentBuilder_ == null) { - oneSegmentScope_ = builderForValue.build(); - onChanged(); - } else { - userSegmentBuilder_.setMessage(builderForValue.build()); - } - oneSegmentScopeCase_ = 2; - return this; - } - /** - * - * - *
-     * User segments are subsets of users who engaged with your site or app.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegment user_segment = 2; - */ - public Builder mergeUserSegment(com.google.analytics.data.v1alpha.UserSegment value) { - if (userSegmentBuilder_ == null) { - if (oneSegmentScopeCase_ == 2 - && oneSegmentScope_ - != com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance()) { - oneSegmentScope_ = - com.google.analytics.data.v1alpha.UserSegment.newBuilder( - (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_) - .mergeFrom(value) - .buildPartial(); - } else { - oneSegmentScope_ = value; - } - onChanged(); - } else { - if (oneSegmentScopeCase_ == 2) { - userSegmentBuilder_.mergeFrom(value); - } else { - userSegmentBuilder_.setMessage(value); - } - } - oneSegmentScopeCase_ = 2; - return this; - } - /** - * - * - *
-     * User segments are subsets of users who engaged with your site or app.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegment user_segment = 2; - */ - public Builder clearUserSegment() { - if (userSegmentBuilder_ == null) { - if (oneSegmentScopeCase_ == 2) { - oneSegmentScopeCase_ = 0; - oneSegmentScope_ = null; - onChanged(); - } - } else { - if (oneSegmentScopeCase_ == 2) { - oneSegmentScopeCase_ = 0; - oneSegmentScope_ = null; - } - userSegmentBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * User segments are subsets of users who engaged with your site or app.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegment user_segment = 2; - */ - public com.google.analytics.data.v1alpha.UserSegment.Builder getUserSegmentBuilder() { - return getUserSegmentFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * User segments are subsets of users who engaged with your site or app.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegment user_segment = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentOrBuilder getUserSegmentOrBuilder() { - if ((oneSegmentScopeCase_ == 2) && (userSegmentBuilder_ != null)) { - return userSegmentBuilder_.getMessageOrBuilder(); - } else { - if (oneSegmentScopeCase_ == 2) { - return (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_; - } - return com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance(); - } - } - /** - * - * - *
-     * User segments are subsets of users who engaged with your site or app.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegment user_segment = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegment, - com.google.analytics.data.v1alpha.UserSegment.Builder, - com.google.analytics.data.v1alpha.UserSegmentOrBuilder> - getUserSegmentFieldBuilder() { - if (userSegmentBuilder_ == null) { - if (!(oneSegmentScopeCase_ == 2)) { - oneSegmentScope_ = com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance(); - } - userSegmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegment, - com.google.analytics.data.v1alpha.UserSegment.Builder, - com.google.analytics.data.v1alpha.UserSegmentOrBuilder>( - (com.google.analytics.data.v1alpha.UserSegment) oneSegmentScope_, - getParentForChildren(), - isClean()); - oneSegmentScope_ = null; - } - oneSegmentScopeCase_ = 2; - onChanged(); - ; - return userSegmentBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SessionSegment, - com.google.analytics.data.v1alpha.SessionSegment.Builder, - com.google.analytics.data.v1alpha.SessionSegmentOrBuilder> - sessionSegmentBuilder_; - /** - * - * - *
-     * Session segments are subsets of the sessions that occurred on your site
-     * or app.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - * - * @return Whether the sessionSegment field is set. - */ - @java.lang.Override - public boolean hasSessionSegment() { - return oneSegmentScopeCase_ == 3; - } - /** - * - * - *
-     * Session segments are subsets of the sessions that occurred on your site
-     * or app.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - * - * @return The sessionSegment. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegment getSessionSegment() { - if (sessionSegmentBuilder_ == null) { - if (oneSegmentScopeCase_ == 3) { - return (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_; - } - return com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance(); - } else { - if (oneSegmentScopeCase_ == 3) { - return sessionSegmentBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance(); - } - } - /** - * - * - *
-     * Session segments are subsets of the sessions that occurred on your site
-     * or app.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - */ - public Builder setSessionSegment(com.google.analytics.data.v1alpha.SessionSegment value) { - if (sessionSegmentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneSegmentScope_ = value; - onChanged(); - } else { - sessionSegmentBuilder_.setMessage(value); - } - oneSegmentScopeCase_ = 3; - return this; - } - /** - * - * - *
-     * Session segments are subsets of the sessions that occurred on your site
-     * or app.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - */ - public Builder setSessionSegment( - com.google.analytics.data.v1alpha.SessionSegment.Builder builderForValue) { - if (sessionSegmentBuilder_ == null) { - oneSegmentScope_ = builderForValue.build(); - onChanged(); - } else { - sessionSegmentBuilder_.setMessage(builderForValue.build()); - } - oneSegmentScopeCase_ = 3; - return this; - } - /** - * - * - *
-     * Session segments are subsets of the sessions that occurred on your site
-     * or app.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - */ - public Builder mergeSessionSegment(com.google.analytics.data.v1alpha.SessionSegment value) { - if (sessionSegmentBuilder_ == null) { - if (oneSegmentScopeCase_ == 3 - && oneSegmentScope_ - != com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance()) { - oneSegmentScope_ = - com.google.analytics.data.v1alpha.SessionSegment.newBuilder( - (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_) - .mergeFrom(value) - .buildPartial(); - } else { - oneSegmentScope_ = value; - } - onChanged(); - } else { - if (oneSegmentScopeCase_ == 3) { - sessionSegmentBuilder_.mergeFrom(value); - } else { - sessionSegmentBuilder_.setMessage(value); - } - } - oneSegmentScopeCase_ = 3; - return this; - } - /** - * - * - *
-     * Session segments are subsets of the sessions that occurred on your site
-     * or app.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - */ - public Builder clearSessionSegment() { - if (sessionSegmentBuilder_ == null) { - if (oneSegmentScopeCase_ == 3) { - oneSegmentScopeCase_ = 0; - oneSegmentScope_ = null; - onChanged(); - } - } else { - if (oneSegmentScopeCase_ == 3) { - oneSegmentScopeCase_ = 0; - oneSegmentScope_ = null; - } - sessionSegmentBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Session segments are subsets of the sessions that occurred on your site
-     * or app.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - */ - public com.google.analytics.data.v1alpha.SessionSegment.Builder getSessionSegmentBuilder() { - return getSessionSegmentFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Session segments are subsets of the sessions that occurred on your site
-     * or app.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentOrBuilder getSessionSegmentOrBuilder() { - if ((oneSegmentScopeCase_ == 3) && (sessionSegmentBuilder_ != null)) { - return sessionSegmentBuilder_.getMessageOrBuilder(); - } else { - if (oneSegmentScopeCase_ == 3) { - return (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_; - } - return com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance(); - } - } - /** - * - * - *
-     * Session segments are subsets of the sessions that occurred on your site
-     * or app.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SessionSegment, - com.google.analytics.data.v1alpha.SessionSegment.Builder, - com.google.analytics.data.v1alpha.SessionSegmentOrBuilder> - getSessionSegmentFieldBuilder() { - if (sessionSegmentBuilder_ == null) { - if (!(oneSegmentScopeCase_ == 3)) { - oneSegmentScope_ = com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance(); - } - sessionSegmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SessionSegment, - com.google.analytics.data.v1alpha.SessionSegment.Builder, - com.google.analytics.data.v1alpha.SessionSegmentOrBuilder>( - (com.google.analytics.data.v1alpha.SessionSegment) oneSegmentScope_, - getParentForChildren(), - isClean()); - oneSegmentScope_ = null; - } - oneSegmentScopeCase_ = 3; - onChanged(); - ; - return sessionSegmentBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.EventSegment, - com.google.analytics.data.v1alpha.EventSegment.Builder, - com.google.analytics.data.v1alpha.EventSegmentOrBuilder> - eventSegmentBuilder_; - /** - * - * - *
-     * Event segments are subsets of events that were triggered on your site or
-     * app.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegment event_segment = 4; - * - * @return Whether the eventSegment field is set. - */ - @java.lang.Override - public boolean hasEventSegment() { - return oneSegmentScopeCase_ == 4; - } - /** - * - * - *
-     * Event segments are subsets of events that were triggered on your site or
-     * app.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegment event_segment = 4; - * - * @return The eventSegment. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegment getEventSegment() { - if (eventSegmentBuilder_ == null) { - if (oneSegmentScopeCase_ == 4) { - return (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_; - } - return com.google.analytics.data.v1alpha.EventSegment.getDefaultInstance(); - } else { - if (oneSegmentScopeCase_ == 4) { - return eventSegmentBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.EventSegment.getDefaultInstance(); - } - } - /** - * - * - *
-     * Event segments are subsets of events that were triggered on your site or
-     * app.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegment event_segment = 4; - */ - public Builder setEventSegment(com.google.analytics.data.v1alpha.EventSegment value) { - if (eventSegmentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneSegmentScope_ = value; - onChanged(); - } else { - eventSegmentBuilder_.setMessage(value); - } - oneSegmentScopeCase_ = 4; - return this; - } - /** - * - * - *
-     * Event segments are subsets of events that were triggered on your site or
-     * app.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegment event_segment = 4; - */ - public Builder setEventSegment( - com.google.analytics.data.v1alpha.EventSegment.Builder builderForValue) { - if (eventSegmentBuilder_ == null) { - oneSegmentScope_ = builderForValue.build(); - onChanged(); - } else { - eventSegmentBuilder_.setMessage(builderForValue.build()); - } - oneSegmentScopeCase_ = 4; - return this; - } - /** - * - * - *
-     * Event segments are subsets of events that were triggered on your site or
-     * app.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegment event_segment = 4; - */ - public Builder mergeEventSegment(com.google.analytics.data.v1alpha.EventSegment value) { - if (eventSegmentBuilder_ == null) { - if (oneSegmentScopeCase_ == 4 - && oneSegmentScope_ - != com.google.analytics.data.v1alpha.EventSegment.getDefaultInstance()) { - oneSegmentScope_ = - com.google.analytics.data.v1alpha.EventSegment.newBuilder( - (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_) - .mergeFrom(value) - .buildPartial(); - } else { - oneSegmentScope_ = value; - } - onChanged(); - } else { - if (oneSegmentScopeCase_ == 4) { - eventSegmentBuilder_.mergeFrom(value); - } else { - eventSegmentBuilder_.setMessage(value); - } - } - oneSegmentScopeCase_ = 4; - return this; - } - /** - * - * - *
-     * Event segments are subsets of events that were triggered on your site or
-     * app.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegment event_segment = 4; - */ - public Builder clearEventSegment() { - if (eventSegmentBuilder_ == null) { - if (oneSegmentScopeCase_ == 4) { - oneSegmentScopeCase_ = 0; - oneSegmentScope_ = null; - onChanged(); - } - } else { - if (oneSegmentScopeCase_ == 4) { - oneSegmentScopeCase_ = 0; - oneSegmentScope_ = null; - } - eventSegmentBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Event segments are subsets of events that were triggered on your site or
-     * app.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegment event_segment = 4; - */ - public com.google.analytics.data.v1alpha.EventSegment.Builder getEventSegmentBuilder() { - return getEventSegmentFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Event segments are subsets of events that were triggered on your site or
-     * app.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegment event_segment = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.EventSegmentOrBuilder getEventSegmentOrBuilder() { - if ((oneSegmentScopeCase_ == 4) && (eventSegmentBuilder_ != null)) { - return eventSegmentBuilder_.getMessageOrBuilder(); - } else { - if (oneSegmentScopeCase_ == 4) { - return (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_; - } - return com.google.analytics.data.v1alpha.EventSegment.getDefaultInstance(); - } - } - /** - * - * - *
-     * Event segments are subsets of events that were triggered on your site or
-     * app.
-     * 
- * - * .google.analytics.data.v1alpha.EventSegment event_segment = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.EventSegment, - com.google.analytics.data.v1alpha.EventSegment.Builder, - com.google.analytics.data.v1alpha.EventSegmentOrBuilder> - getEventSegmentFieldBuilder() { - if (eventSegmentBuilder_ == null) { - if (!(oneSegmentScopeCase_ == 4)) { - oneSegmentScope_ = com.google.analytics.data.v1alpha.EventSegment.getDefaultInstance(); - } - eventSegmentBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.EventSegment, - com.google.analytics.data.v1alpha.EventSegment.Builder, - com.google.analytics.data.v1alpha.EventSegmentOrBuilder>( - (com.google.analytics.data.v1alpha.EventSegment) oneSegmentScope_, - getParentForChildren(), - isClean()); - oneSegmentScope_ = null; - } - oneSegmentScopeCase_ = 4; - onChanged(); - ; - return eventSegmentBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.Segment) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.Segment) - private static final com.google.analytics.data.v1alpha.Segment DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.Segment(); - } - - public static com.google.analytics.data.v1alpha.Segment getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Segment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.Segment getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilter.java deleted file mode 100644 index 95101994..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilter.java +++ /dev/null @@ -1,1039 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Creates a filter that matches events of a single event name. If a parameter
- * filter expression is specified, only the subset of events that match both the
- * single event name and the parameter filter expressions match this event
- * filter.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentEventFilter} - */ -public final class SegmentEventFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentEventFilter) - SegmentEventFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use SegmentEventFilter.newBuilder() to construct. - private SegmentEventFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SegmentEventFilter() { - eventName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SegmentEventFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentEventFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentEventFilter.class, - com.google.analytics.data.v1alpha.SegmentEventFilter.Builder.class); - } - - private int bitField0_; - public static final int EVENT_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object eventName_; - /** - * - * - *
-   * This filter matches events of this single event name. Event name is
-   * required.
-   * 
- * - * optional string event_name = 1; - * - * @return Whether the eventName field is set. - */ - @java.lang.Override - public boolean hasEventName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * This filter matches events of this single event name. Event name is
-   * required.
-   * 
- * - * optional string event_name = 1; - * - * @return The eventName. - */ - @java.lang.Override - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - eventName_ = s; - return s; - } - } - /** - * - * - *
-   * This filter matches events of this single event name. Event name is
-   * required.
-   * 
- * - * optional string event_name = 1; - * - * @return The bytes for eventName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SEGMENT_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - segmentParameterFilterExpression_; - /** - * - * - *
-   * If specified, this filter matches events that match both the single event
-   * name and the parameter filter expressions.
-   * Inside the parameter filter expression, only parameter filters are
-   * available.
-   * 
- * - * - * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * - * - * @return Whether the segmentParameterFilterExpression field is set. - */ - @java.lang.Override - public boolean hasSegmentParameterFilterExpression() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-   * If specified, this filter matches events that match both the single event
-   * name and the parameter filter expressions.
-   * Inside the parameter filter expression, only parameter filters are
-   * available.
-   * 
- * - * - * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * - * - * @return The segmentParameterFilterExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - getSegmentParameterFilterExpression() { - return segmentParameterFilterExpression_ == null - ? com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.getDefaultInstance() - : segmentParameterFilterExpression_; - } - /** - * - * - *
-   * If specified, this filter matches events that match both the single event
-   * name and the parameter filter expressions.
-   * Inside the parameter filter expression, only parameter filters are
-   * available.
-   * 
- * - * - * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder - getSegmentParameterFilterExpressionOrBuilder() { - return segmentParameterFilterExpression_ == null - ? com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.getDefaultInstance() - : segmentParameterFilterExpression_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, eventName_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getSegmentParameterFilterExpression()); - } - getUnknownFields().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, eventName_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getSegmentParameterFilterExpression()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.SegmentEventFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.SegmentEventFilter other = - (com.google.analytics.data.v1alpha.SegmentEventFilter) obj; - - if (hasEventName() != other.hasEventName()) return false; - if (hasEventName()) { - if (!getEventName().equals(other.getEventName())) return false; - } - if (hasSegmentParameterFilterExpression() != other.hasSegmentParameterFilterExpression()) - return false; - if (hasSegmentParameterFilterExpression()) { - if (!getSegmentParameterFilterExpression() - .equals(other.getSegmentParameterFilterExpression())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasEventName()) { - hash = (37 * hash) + EVENT_NAME_FIELD_NUMBER; - hash = (53 * hash) + getEventName().hashCode(); - } - if (hasSegmentParameterFilterExpression()) { - hash = (37 * hash) + SEGMENT_PARAMETER_FILTER_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getSegmentParameterFilterExpression().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.SegmentEventFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentEventFilter 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.v1alpha.SegmentEventFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentEventFilter parseFrom( - 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.v1alpha.SegmentEventFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentEventFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SegmentEventFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentEventFilter parseFrom( - java.io.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.v1alpha.SegmentEventFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentEventFilter parseDelimitedFrom( - java.io.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.v1alpha.SegmentEventFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentEventFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.SegmentEventFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Creates a filter that matches events of a single event name. If a parameter
-   * filter expression is specified, only the subset of events that match both the
-   * single event name and the parameter filter expressions match this event
-   * filter.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentEventFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentEventFilter) - com.google.analytics.data.v1alpha.SegmentEventFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentEventFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentEventFilter.class, - com.google.analytics.data.v1alpha.SegmentEventFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.SegmentEventFilter.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { - getSegmentParameterFilterExpressionFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - eventName_ = ""; - bitField0_ = (bitField0_ & ~0x00000001); - if (segmentParameterFilterExpressionBuilder_ == null) { - segmentParameterFilterExpression_ = null; - } else { - segmentParameterFilterExpressionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentEventFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentEventFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.SegmentEventFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentEventFilter build() { - com.google.analytics.data.v1alpha.SegmentEventFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentEventFilter buildPartial() { - com.google.analytics.data.v1alpha.SegmentEventFilter result = - new com.google.analytics.data.v1alpha.SegmentEventFilter(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - to_bitField0_ |= 0x00000001; - } - result.eventName_ = eventName_; - if (((from_bitField0_ & 0x00000002) != 0)) { - if (segmentParameterFilterExpressionBuilder_ == null) { - result.segmentParameterFilterExpression_ = segmentParameterFilterExpression_; - } else { - result.segmentParameterFilterExpression_ = - segmentParameterFilterExpressionBuilder_.build(); - } - to_bitField0_ |= 0x00000002; - } - 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.v1alpha.SegmentEventFilter) { - return mergeFrom((com.google.analytics.data.v1alpha.SegmentEventFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentEventFilter other) { - if (other == com.google.analytics.data.v1alpha.SegmentEventFilter.getDefaultInstance()) - return this; - if (other.hasEventName()) { - bitField0_ |= 0x00000001; - eventName_ = other.eventName_; - onChanged(); - } - if (other.hasSegmentParameterFilterExpression()) { - mergeSegmentParameterFilterExpression(other.getSegmentParameterFilterExpression()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - eventName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - getSegmentParameterFilterExpressionFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object eventName_ = ""; - /** - * - * - *
-     * This filter matches events of this single event name. Event name is
-     * required.
-     * 
- * - * optional string event_name = 1; - * - * @return Whether the eventName field is set. - */ - public boolean hasEventName() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * This filter matches events of this single event name. Event name is
-     * required.
-     * 
- * - * optional string event_name = 1; - * - * @return The eventName. - */ - public java.lang.String getEventName() { - java.lang.Object ref = eventName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - eventName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This filter matches events of this single event name. Event name is
-     * required.
-     * 
- * - * optional string event_name = 1; - * - * @return The bytes for eventName. - */ - public com.google.protobuf.ByteString getEventNameBytes() { - java.lang.Object ref = eventName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - eventName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This filter matches events of this single event name. Event name is
-     * required.
-     * 
- * - * optional string event_name = 1; - * - * @param value The eventName to set. - * @return This builder for chaining. - */ - public Builder setEventName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - eventName_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * This filter matches events of this single event name. Event name is
-     * required.
-     * 
- * - * optional string event_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearEventName() { - bitField0_ = (bitField0_ & ~0x00000001); - eventName_ = getDefaultInstance().getEventName(); - onChanged(); - return this; - } - /** - * - * - *
-     * This filter matches events of this single event name. Event name is
-     * required.
-     * 
- * - * optional string event_name = 1; - * - * @param value The bytes for eventName to set. - * @return This builder for chaining. - */ - public Builder setEventNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - bitField0_ |= 0x00000001; - eventName_ = value; - onChanged(); - return this; - } - - private com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - segmentParameterFilterExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> - segmentParameterFilterExpressionBuilder_; - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * - * - * @return Whether the segmentParameterFilterExpression field is set. - */ - public boolean hasSegmentParameterFilterExpression() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * - * - * @return The segmentParameterFilterExpression. - */ - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - getSegmentParameterFilterExpression() { - if (segmentParameterFilterExpressionBuilder_ == null) { - return segmentParameterFilterExpression_ == null - ? com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - .getDefaultInstance() - : segmentParameterFilterExpression_; - } else { - return segmentParameterFilterExpressionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * - */ - public Builder setSegmentParameterFilterExpression( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression value) { - if (segmentParameterFilterExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - segmentParameterFilterExpression_ = value; - onChanged(); - } else { - segmentParameterFilterExpressionBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * - */ - public Builder setSegmentParameterFilterExpression( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder - builderForValue) { - if (segmentParameterFilterExpressionBuilder_ == null) { - segmentParameterFilterExpression_ = builderForValue.build(); - onChanged(); - } else { - segmentParameterFilterExpressionBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * - */ - public Builder mergeSegmentParameterFilterExpression( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression value) { - if (segmentParameterFilterExpressionBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && segmentParameterFilterExpression_ != null - && segmentParameterFilterExpression_ - != com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - .getDefaultInstance()) { - segmentParameterFilterExpression_ = - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.newBuilder( - segmentParameterFilterExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - segmentParameterFilterExpression_ = value; - } - onChanged(); - } else { - segmentParameterFilterExpressionBuilder_.mergeFrom(value); - } - bitField0_ |= 0x00000002; - return this; - } - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * - */ - public Builder clearSegmentParameterFilterExpression() { - if (segmentParameterFilterExpressionBuilder_ == null) { - segmentParameterFilterExpression_ = null; - onChanged(); - } else { - segmentParameterFilterExpressionBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * - */ - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder - getSegmentParameterFilterExpressionBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getSegmentParameterFilterExpressionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * - */ - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder - getSegmentParameterFilterExpressionOrBuilder() { - if (segmentParameterFilterExpressionBuilder_ != null) { - return segmentParameterFilterExpressionBuilder_.getMessageOrBuilder(); - } else { - return segmentParameterFilterExpression_ == null - ? com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - .getDefaultInstance() - : segmentParameterFilterExpression_; - } - } - /** - * - * - *
-     * If specified, this filter matches events that match both the single event
-     * name and the parameter filter expressions.
-     * Inside the parameter filter expression, only parameter filters are
-     * available.
-     * 
- * - * - * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> - getSegmentParameterFilterExpressionFieldBuilder() { - if (segmentParameterFilterExpressionBuilder_ == null) { - segmentParameterFilterExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder>( - getSegmentParameterFilterExpression(), getParentForChildren(), isClean()); - segmentParameterFilterExpression_ = null; - } - return segmentParameterFilterExpressionBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.SegmentEventFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentEventFilter) - private static final com.google.analytics.data.v1alpha.SegmentEventFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentEventFilter(); - } - - public static com.google.analytics.data.v1alpha.SegmentEventFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SegmentEventFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentEventFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilterOrBuilder.java deleted file mode 100644 index 2b3e0e89..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentEventFilterOrBuilder.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface SegmentEventFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentEventFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * This filter matches events of this single event name. Event name is
-   * required.
-   * 
- * - * optional string event_name = 1; - * - * @return Whether the eventName field is set. - */ - boolean hasEventName(); - /** - * - * - *
-   * This filter matches events of this single event name. Event name is
-   * required.
-   * 
- * - * optional string event_name = 1; - * - * @return The eventName. - */ - java.lang.String getEventName(); - /** - * - * - *
-   * This filter matches events of this single event name. Event name is
-   * required.
-   * 
- * - * optional string event_name = 1; - * - * @return The bytes for eventName. - */ - com.google.protobuf.ByteString getEventNameBytes(); - - /** - * - * - *
-   * If specified, this filter matches events that match both the single event
-   * name and the parameter filter expressions.
-   * Inside the parameter filter expression, only parameter filters are
-   * available.
-   * 
- * - * - * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * - * - * @return Whether the segmentParameterFilterExpression field is set. - */ - boolean hasSegmentParameterFilterExpression(); - /** - * - * - *
-   * If specified, this filter matches events that match both the single event
-   * name and the parameter filter expressions.
-   * Inside the parameter filter expression, only parameter filters are
-   * available.
-   * 
- * - * - * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * - * - * @return The segmentParameterFilterExpression. - */ - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - getSegmentParameterFilterExpression(); - /** - * - * - *
-   * If specified, this filter matches events that match both the single event
-   * name and the parameter filter expressions.
-   * Inside the parameter filter expression, only parameter filters are
-   * available.
-   * 
- * - * - * optional .google.analytics.data.v1alpha.SegmentParameterFilterExpression segment_parameter_filter_expression = 2; - * - */ - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder - getSegmentParameterFilterExpressionOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilter.java deleted file mode 100644 index 88bad8dd..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilter.java +++ /dev/null @@ -1,2160 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * An expression to filter dimension or metric values.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentFilter} - */ -public final class SegmentFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentFilter) - SegmentFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use SegmentFilter.newBuilder() to construct. - private SegmentFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SegmentFilter() { - fieldName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SegmentFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentFilter.class, - com.google.analytics.data.v1alpha.SegmentFilter.Builder.class); - } - - 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(4), - IN_LIST_FILTER(5), - NUMERIC_FILTER(6), - BETWEEN_FILTER(7), - 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 4: - return STRING_FILTER; - case 5: - return IN_LIST_FILTER; - case 6: - return NUMERIC_FILTER; - case 7: - 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.
-   * 
- * - * 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.
-   * 
- * - * 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 = 4; - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 4; - } - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - - public static final int IN_LIST_FILTER_FIELD_NUMBER = 5; - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 5; - } - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - - public static final int NUMERIC_FILTER_FIELD_NUMBER = 6; - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 6; - } - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - - public static final int BETWEEN_FILTER_FIELD_NUMBER = 7; - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 7; - } - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { - if (oneFilterCase_ == 7) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { - if (oneFilterCase_ == 7) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - - public static final int FILTER_SCOPING_FIELD_NUMBER = 8; - private com.google.analytics.data.v1alpha.SegmentFilterScoping filterScoping_; - /** - * - * - *
-   * Specifies the scope for the filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - * - * @return Whether the filterScoping field is set. - */ - @java.lang.Override - public boolean hasFilterScoping() { - return filterScoping_ != null; - } - /** - * - * - *
-   * Specifies the scope for the filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - * - * @return The filterScoping. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterScoping getFilterScoping() { - return filterScoping_ == null - ? com.google.analytics.data.v1alpha.SegmentFilterScoping.getDefaultInstance() - : filterScoping_; - } - /** - * - * - *
-   * Specifies the scope for the filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterScopingOrBuilder - getFilterScopingOrBuilder() { - return getFilterScoping(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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_ == 4) { - output.writeMessage(4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - output.writeMessage(5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); - } - if (oneFilterCase_ == 6) { - output.writeMessage(6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); - } - if (oneFilterCase_ == 7) { - output.writeMessage(7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); - } - if (filterScoping_ != null) { - output.writeMessage(8, getFilterScoping()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fieldName_); - } - if (oneFilterCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); - } - if (oneFilterCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); - } - if (oneFilterCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); - } - if (filterScoping_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFilterScoping()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.SegmentFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.SegmentFilter other = - (com.google.analytics.data.v1alpha.SegmentFilter) obj; - - if (!getFieldName().equals(other.getFieldName())) return false; - if (hasFilterScoping() != other.hasFilterScoping()) return false; - if (hasFilterScoping()) { - if (!getFilterScoping().equals(other.getFilterScoping())) return false; - } - if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; - switch (oneFilterCase_) { - case 4: - if (!getStringFilter().equals(other.getStringFilter())) return false; - break; - case 5: - if (!getInListFilter().equals(other.getInListFilter())) return false; - break; - case 6: - if (!getNumericFilter().equals(other.getNumericFilter())) return false; - break; - case 7: - if (!getBetweenFilter().equals(other.getBetweenFilter())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFieldName().hashCode(); - if (hasFilterScoping()) { - hash = (37 * hash) + FILTER_SCOPING_FIELD_NUMBER; - hash = (53 * hash) + getFilterScoping().hashCode(); - } - switch (oneFilterCase_) { - case 4: - hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getStringFilter().hashCode(); - break; - case 5: - hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getInListFilter().hashCode(); - break; - case 6: - hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getNumericFilter().hashCode(); - break; - case 7: - hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getBetweenFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.SegmentFilter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentFilter 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.v1alpha.SegmentFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentFilter parseFrom( - 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.v1alpha.SegmentFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SegmentFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentFilter parseFrom( - java.io.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.v1alpha.SegmentFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentFilter parseDelimitedFrom( - java.io.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.v1alpha.SegmentFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.SegmentFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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.v1alpha.SegmentFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentFilter) - com.google.analytics.data.v1alpha.SegmentFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentFilter.class, - com.google.analytics.data.v1alpha.SegmentFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.SegmentFilter.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - fieldName_ = ""; - - if (stringFilterBuilder_ != null) { - stringFilterBuilder_.clear(); - } - if (inListFilterBuilder_ != null) { - inListFilterBuilder_.clear(); - } - if (numericFilterBuilder_ != null) { - numericFilterBuilder_.clear(); - } - if (betweenFilterBuilder_ != null) { - betweenFilterBuilder_.clear(); - } - if (filterScopingBuilder_ == null) { - filterScoping_ = null; - } else { - filterScoping_ = null; - filterScopingBuilder_ = null; - } - oneFilterCase_ = 0; - oneFilter_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilter build() { - com.google.analytics.data.v1alpha.SegmentFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilter buildPartial() { - com.google.analytics.data.v1alpha.SegmentFilter result = - new com.google.analytics.data.v1alpha.SegmentFilter(this); - result.fieldName_ = fieldName_; - if (oneFilterCase_ == 4) { - if (stringFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = stringFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 5) { - if (inListFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = inListFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 6) { - if (numericFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = numericFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 7) { - if (betweenFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = betweenFilterBuilder_.build(); - } - } - if (filterScopingBuilder_ == null) { - result.filterScoping_ = filterScoping_; - } else { - result.filterScoping_ = filterScopingBuilder_.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.v1alpha.SegmentFilter) { - return mergeFrom((com.google.analytics.data.v1alpha.SegmentFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentFilter other) { - if (other == com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance()) - return this; - if (!other.getFieldName().isEmpty()) { - fieldName_ = other.fieldName_; - onChanged(); - } - if (other.hasFilterScoping()) { - mergeFilterScoping(other.getFilterScoping()); - } - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - fieldName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 34: - { - input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getNumericFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage(getBetweenFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 7; - break; - } // case 58 - case 66: - { - input.readMessage(getFilterScopingFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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.
-     * 
- * - * 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.
-     * 
- * - * 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.
-     * 
- * - * 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.
-     * 
- * - * string field_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearFieldName() { - - fieldName_ = getDefaultInstance().getFieldName(); - onChanged(); - return this; - } - /** - * - * - *
-     * The dimension name or metric name.
-     * 
- * - * 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.v1alpha.StringFilter, - com.google.analytics.data.v1alpha.StringFilter.Builder, - com.google.analytics.data.v1alpha.StringFilterOrBuilder> - stringFilterBuilder_; - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 4; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 4) { - return stringFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public Builder setStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - stringFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public Builder setStringFilter( - com.google.analytics.data.v1alpha.StringFilter.Builder builderForValue) { - if (stringFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - stringFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public Builder mergeStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 4 - && oneFilter_ != com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.StringFilter.newBuilder( - (com.google.analytics.data.v1alpha.StringFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 4) { - stringFilterBuilder_.mergeFrom(value); - } else { - stringFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public Builder clearStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - stringFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public com.google.analytics.data.v1alpha.StringFilter.Builder getStringFilterBuilder() { - return getStringFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { - if ((oneFilterCase_ == 4) && (stringFilterBuilder_ != null)) { - return stringFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.StringFilter, - com.google.analytics.data.v1alpha.StringFilter.Builder, - com.google.analytics.data.v1alpha.StringFilterOrBuilder> - getStringFilterFieldBuilder() { - if (stringFilterBuilder_ == null) { - if (!(oneFilterCase_ == 4)) { - oneFilter_ = com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - stringFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.StringFilter, - com.google.analytics.data.v1alpha.StringFilter.Builder, - com.google.analytics.data.v1alpha.StringFilterOrBuilder>( - (com.google.analytics.data.v1alpha.StringFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 4; - onChanged(); - ; - return stringFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.InListFilter, - com.google.analytics.data.v1alpha.InListFilter.Builder, - com.google.analytics.data.v1alpha.InListFilterOrBuilder> - inListFilterBuilder_; - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 5; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 5) { - return inListFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public Builder setInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - inListFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public Builder setInListFilter( - com.google.analytics.data.v1alpha.InListFilter.Builder builderForValue) { - if (inListFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - inListFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public Builder mergeInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 5 - && oneFilter_ != com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.InListFilter.newBuilder( - (com.google.analytics.data.v1alpha.InListFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 5) { - inListFilterBuilder_.mergeFrom(value); - } else { - inListFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public Builder clearInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - inListFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public com.google.analytics.data.v1alpha.InListFilter.Builder getInListFilterBuilder() { - return getInListFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { - if ((oneFilterCase_ == 5) && (inListFilterBuilder_ != null)) { - return inListFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.InListFilter, - com.google.analytics.data.v1alpha.InListFilter.Builder, - com.google.analytics.data.v1alpha.InListFilterOrBuilder> - getInListFilterFieldBuilder() { - if (inListFilterBuilder_ == null) { - if (!(oneFilterCase_ == 5)) { - oneFilter_ = com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - inListFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.InListFilter, - com.google.analytics.data.v1alpha.InListFilter.Builder, - com.google.analytics.data.v1alpha.InListFilterOrBuilder>( - (com.google.analytics.data.v1alpha.InListFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 5; - onChanged(); - ; - return inListFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericFilter, - com.google.analytics.data.v1alpha.NumericFilter.Builder, - com.google.analytics.data.v1alpha.NumericFilterOrBuilder> - numericFilterBuilder_; - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 6; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 6) { - return numericFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public Builder setNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { - if (numericFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - numericFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 6; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public Builder setNumericFilter( - com.google.analytics.data.v1alpha.NumericFilter.Builder builderForValue) { - if (numericFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - numericFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 6; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public Builder mergeNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 6 - && oneFilter_ != com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.NumericFilter.newBuilder( - (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 6) { - numericFilterBuilder_.mergeFrom(value); - } else { - numericFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 6; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public Builder clearNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 6) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 6) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - numericFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public com.google.analytics.data.v1alpha.NumericFilter.Builder getNumericFilterBuilder() { - return getNumericFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { - if ((oneFilterCase_ == 6) && (numericFilterBuilder_ != null)) { - return numericFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericFilter, - com.google.analytics.data.v1alpha.NumericFilter.Builder, - com.google.analytics.data.v1alpha.NumericFilterOrBuilder> - getNumericFilterFieldBuilder() { - if (numericFilterBuilder_ == null) { - if (!(oneFilterCase_ == 6)) { - oneFilter_ = com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - numericFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericFilter, - com.google.analytics.data.v1alpha.NumericFilter.Builder, - com.google.analytics.data.v1alpha.NumericFilterOrBuilder>( - (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 6; - onChanged(); - ; - return numericFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.BetweenFilter, - com.google.analytics.data.v1alpha.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> - betweenFilterBuilder_; - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 7; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 7) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 7) { - return betweenFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public Builder setBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - betweenFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 7; - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public Builder setBetweenFilter( - com.google.analytics.data.v1alpha.BetweenFilter.Builder builderForValue) { - if (betweenFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - betweenFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 7; - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public Builder mergeBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 7 - && oneFilter_ != com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.BetweenFilter.newBuilder( - (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 7) { - betweenFilterBuilder_.mergeFrom(value); - } else { - betweenFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 7; - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public Builder clearBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 7) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 7) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - betweenFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public com.google.analytics.data.v1alpha.BetweenFilter.Builder getBetweenFilterBuilder() { - return getBetweenFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { - if ((oneFilterCase_ == 7) && (betweenFilterBuilder_ != null)) { - return betweenFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 7) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.BetweenFilter, - com.google.analytics.data.v1alpha.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> - getBetweenFilterFieldBuilder() { - if (betweenFilterBuilder_ == null) { - if (!(oneFilterCase_ == 7)) { - oneFilter_ = com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - betweenFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.BetweenFilter, - com.google.analytics.data.v1alpha.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>( - (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 7; - onChanged(); - ; - return betweenFilterBuilder_; - } - - private com.google.analytics.data.v1alpha.SegmentFilterScoping filterScoping_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterScoping, - com.google.analytics.data.v1alpha.SegmentFilterScoping.Builder, - com.google.analytics.data.v1alpha.SegmentFilterScopingOrBuilder> - filterScopingBuilder_; - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - * - * @return Whether the filterScoping field is set. - */ - public boolean hasFilterScoping() { - return filterScopingBuilder_ != null || filterScoping_ != null; - } - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - * - * @return The filterScoping. - */ - public com.google.analytics.data.v1alpha.SegmentFilterScoping getFilterScoping() { - if (filterScopingBuilder_ == null) { - return filterScoping_ == null - ? com.google.analytics.data.v1alpha.SegmentFilterScoping.getDefaultInstance() - : filterScoping_; - } else { - return filterScopingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - */ - public Builder setFilterScoping(com.google.analytics.data.v1alpha.SegmentFilterScoping value) { - if (filterScopingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filterScoping_ = value; - onChanged(); - } else { - filterScopingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - */ - public Builder setFilterScoping( - com.google.analytics.data.v1alpha.SegmentFilterScoping.Builder builderForValue) { - if (filterScopingBuilder_ == null) { - filterScoping_ = builderForValue.build(); - onChanged(); - } else { - filterScopingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - */ - public Builder mergeFilterScoping( - com.google.analytics.data.v1alpha.SegmentFilterScoping value) { - if (filterScopingBuilder_ == null) { - if (filterScoping_ != null) { - filterScoping_ = - com.google.analytics.data.v1alpha.SegmentFilterScoping.newBuilder(filterScoping_) - .mergeFrom(value) - .buildPartial(); - } else { - filterScoping_ = value; - } - onChanged(); - } else { - filterScopingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - */ - public Builder clearFilterScoping() { - if (filterScopingBuilder_ == null) { - filterScoping_ = null; - onChanged(); - } else { - filterScoping_ = null; - filterScopingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - */ - public com.google.analytics.data.v1alpha.SegmentFilterScoping.Builder - getFilterScopingBuilder() { - - onChanged(); - return getFilterScopingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - */ - public com.google.analytics.data.v1alpha.SegmentFilterScopingOrBuilder - getFilterScopingOrBuilder() { - if (filterScopingBuilder_ != null) { - return filterScopingBuilder_.getMessageOrBuilder(); - } else { - return filterScoping_ == null - ? com.google.analytics.data.v1alpha.SegmentFilterScoping.getDefaultInstance() - : filterScoping_; - } - } - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterScoping, - com.google.analytics.data.v1alpha.SegmentFilterScoping.Builder, - com.google.analytics.data.v1alpha.SegmentFilterScopingOrBuilder> - getFilterScopingFieldBuilder() { - if (filterScopingBuilder_ == null) { - filterScopingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterScoping, - com.google.analytics.data.v1alpha.SegmentFilterScoping.Builder, - com.google.analytics.data.v1alpha.SegmentFilterScopingOrBuilder>( - getFilterScoping(), getParentForChildren(), isClean()); - filterScoping_ = null; - } - return filterScopingBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.SegmentFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentFilter) - private static final com.google.analytics.data.v1alpha.SegmentFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentFilter(); - } - - public static com.google.analytics.data.v1alpha.SegmentFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SegmentFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpression.java deleted file mode 100644 index dcd0479c..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpression.java +++ /dev/null @@ -1,2073 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Expresses combinations of segment filters.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentFilterExpression} - */ -public final class SegmentFilterExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentFilterExpression) - SegmentFilterExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use SegmentFilterExpression.newBuilder() to construct. - private SegmentFilterExpression(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SegmentFilterExpression() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SegmentFilterExpression(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentFilterExpression.class, - com.google.analytics.data.v1alpha.SegmentFilterExpression.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), - SEGMENT_FILTER(4), - SEGMENT_EVENT_FILTER(5), - 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 SEGMENT_FILTER; - case 5: - return SEGMENT_EVENT_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 SegmentFilterExpression in `andGroup` have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; - * - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return exprCase_ == 1; - } - /** - * - * - *
-   * The SegmentFilterExpression in `andGroup` have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionList getAndGroup() { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); - } - /** - * - * - *
-   * The SegmentFilterExpression in `andGroup` have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder - getAndGroupOrBuilder() { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); - } - - public static final int OR_GROUP_FIELD_NUMBER = 2; - /** - * - * - *
-   * The SegmentFilterExpression in `orGroup` have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; - * - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return exprCase_ == 2; - } - /** - * - * - *
-   * The SegmentFilterExpression in `orGroup` have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionList getOrGroup() { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); - } - /** - * - * - *
-   * The SegmentFilterExpression in `orGroup` have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder - getOrGroupOrBuilder() { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); - } - - public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; - /** - * - * - *
-   * The SegmentFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; - * - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 3; - } - /** - * - * - *
-   * The SegmentFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; - * - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpression getNotExpression() { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance(); - } - /** - * - * - *
-   * The SegmentFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder - getNotExpressionOrBuilder() { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance(); - } - - public static final int SEGMENT_FILTER_FIELD_NUMBER = 4; - /** - * - * - *
-   * A primitive segment filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - * - * @return Whether the segmentFilter field is set. - */ - @java.lang.Override - public boolean hasSegmentFilter() { - return exprCase_ == 4; - } - /** - * - * - *
-   * A primitive segment filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - * - * @return The segmentFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilter getSegmentFilter() { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.SegmentFilter) expr_; - } - return com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A primitive segment filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterOrBuilder getSegmentFilterOrBuilder() { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.SegmentFilter) expr_; - } - return com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance(); - } - - public static final int SEGMENT_EVENT_FILTER_FIELD_NUMBER = 5; - /** - * - * - *
-   * Creates a filter that matches events of a single event name. If a
-   * parameter filter expression is specified, only the subset of events that
-   * match both the single event name and the parameter filter expressions
-   * match this event filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - * - * @return Whether the segmentEventFilter field is set. - */ - @java.lang.Override - public boolean hasSegmentEventFilter() { - return exprCase_ == 5; - } - /** - * - * - *
-   * Creates a filter that matches events of a single event name. If a
-   * parameter filter expression is specified, only the subset of events that
-   * match both the single event name and the parameter filter expressions
-   * match this event filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - * - * @return The segmentEventFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentEventFilter getSegmentEventFilter() { - if (exprCase_ == 5) { - return (com.google.analytics.data.v1alpha.SegmentEventFilter) expr_; - } - return com.google.analytics.data.v1alpha.SegmentEventFilter.getDefaultInstance(); - } - /** - * - * - *
-   * Creates a filter that matches events of a single event name. If a
-   * parameter filter expression is specified, only the subset of events that
-   * match both the single event name and the parameter filter expressions
-   * match this event filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentEventFilterOrBuilder - getSegmentEventFilterOrBuilder() { - if (exprCase_ == 5) { - return (com.google.analytics.data.v1alpha.SegmentEventFilter) expr_; - } - return com.google.analytics.data.v1alpha.SegmentEventFilter.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.v1alpha.SegmentFilterExpressionList) expr_); - } - if (exprCase_ == 2) { - output.writeMessage(2, (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_); - } - if (exprCase_ == 3) { - output.writeMessage(3, (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_); - } - if (exprCase_ == 4) { - output.writeMessage(4, (com.google.analytics.data.v1alpha.SegmentFilter) expr_); - } - if (exprCase_ == 5) { - output.writeMessage(5, (com.google.analytics.data.v1alpha.SegmentEventFilter) expr_); - } - getUnknownFields().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.v1alpha.SegmentFilterExpressionList) expr_); - } - if (exprCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_); - } - if (exprCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_); - } - if (exprCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.data.v1alpha.SegmentFilter) expr_); - } - if (exprCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.analytics.data.v1alpha.SegmentEventFilter) expr_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.SegmentFilterExpression)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.SegmentFilterExpression other = - (com.google.analytics.data.v1alpha.SegmentFilterExpression) 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 (!getSegmentFilter().equals(other.getSegmentFilter())) return false; - break; - case 5: - if (!getSegmentEventFilter().equals(other.getSegmentEventFilter())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (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) + SEGMENT_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getSegmentFilter().hashCode(); - break; - case 5: - hash = (37 * hash) + SEGMENT_EVENT_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getSegmentEventFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpression parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpression 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.v1alpha.SegmentFilterExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpression parseFrom( - 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.v1alpha.SegmentFilterExpression parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpression parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpression parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpression parseFrom( - java.io.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.v1alpha.SegmentFilterExpression parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpression parseDelimitedFrom( - java.io.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.v1alpha.SegmentFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.SegmentFilterExpression prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Expresses combinations of segment filters.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentFilterExpression} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentFilterExpression) - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentFilterExpression.class, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.SegmentFilterExpression.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (andGroupBuilder_ != null) { - andGroupBuilder_.clear(); - } - if (orGroupBuilder_ != null) { - orGroupBuilder_.clear(); - } - if (notExpressionBuilder_ != null) { - notExpressionBuilder_.clear(); - } - if (segmentFilterBuilder_ != null) { - segmentFilterBuilder_.clear(); - } - if (segmentEventFilterBuilder_ != null) { - segmentEventFilterBuilder_.clear(); - } - exprCase_ = 0; - expr_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilterExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpression getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpression build() { - com.google.analytics.data.v1alpha.SegmentFilterExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpression buildPartial() { - com.google.analytics.data.v1alpha.SegmentFilterExpression result = - new com.google.analytics.data.v1alpha.SegmentFilterExpression(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 (segmentFilterBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = segmentFilterBuilder_.build(); - } - } - if (exprCase_ == 5) { - if (segmentEventFilterBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = segmentEventFilterBuilder_.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.v1alpha.SegmentFilterExpression) { - return mergeFrom((com.google.analytics.data.v1alpha.SegmentFilterExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentFilterExpression other) { - if (other == com.google.analytics.data.v1alpha.SegmentFilterExpression.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 SEGMENT_FILTER: - { - mergeSegmentFilter(other.getSegmentFilter()); - break; - } - case SEGMENT_EVENT_FILTER: - { - mergeSegmentEventFilter(other.getSegmentEventFilter()); - break; - } - case EXPR_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getSegmentFilterFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage( - getSegmentEventFilterFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 5; - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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.v1alpha.SegmentFilterExpressionList, - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder> - andGroupBuilder_; - /** - * - * - *
-     * The SegmentFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; - * - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return exprCase_ == 1; - } - /** - * - * - *
-     * The SegmentFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionList getAndGroup() { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); - } else { - if (exprCase_ == 1) { - return andGroupBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The SegmentFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; - */ - public Builder setAndGroup( - com.google.analytics.data.v1alpha.SegmentFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - andGroupBuilder_.setMessage(value); - } - exprCase_ = 1; - return this; - } - /** - * - * - *
-     * The SegmentFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; - */ - public Builder setAndGroup( - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder builderForValue) { - if (andGroupBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - andGroupBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 1; - return this; - } - /** - * - * - *
-     * The SegmentFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; - */ - public Builder mergeAndGroup( - com.google.analytics.data.v1alpha.SegmentFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1 - && expr_ - != com.google.analytics.data.v1alpha.SegmentFilterExpressionList - .getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.newBuilder( - (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 1) { - andGroupBuilder_.mergeFrom(value); - } else { - andGroupBuilder_.setMessage(value); - } - } - exprCase_ = 1; - return this; - } - /** - * - * - *
-     * The SegmentFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList 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 SegmentFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder - getAndGroupBuilder() { - return getAndGroupFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The SegmentFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder - getAndGroupOrBuilder() { - if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { - return andGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The SegmentFilterExpression in `andGroup` have an AND relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpressionList, - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder> - getAndGroupFieldBuilder() { - if (andGroupBuilder_ == null) { - if (!(exprCase_ == 1)) { - expr_ = - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); - } - andGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpressionList, - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder>( - (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 1; - onChanged(); - ; - return andGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpressionList, - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder> - orGroupBuilder_; - /** - * - * - *
-     * The SegmentFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; - * - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return exprCase_ == 2; - } - /** - * - * - *
-     * The SegmentFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionList getOrGroup() { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); - } else { - if (exprCase_ == 2) { - return orGroupBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The SegmentFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; - */ - public Builder setOrGroup(com.google.analytics.data.v1alpha.SegmentFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - orGroupBuilder_.setMessage(value); - } - exprCase_ = 2; - return this; - } - /** - * - * - *
-     * The SegmentFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; - */ - public Builder setOrGroup( - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder builderForValue) { - if (orGroupBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - orGroupBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 2; - return this; - } - /** - * - * - *
-     * The SegmentFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; - */ - public Builder mergeOrGroup( - com.google.analytics.data.v1alpha.SegmentFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2 - && expr_ - != com.google.analytics.data.v1alpha.SegmentFilterExpressionList - .getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.newBuilder( - (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 2) { - orGroupBuilder_.mergeFrom(value); - } else { - orGroupBuilder_.setMessage(value); - } - } - exprCase_ = 2; - return this; - } - /** - * - * - *
-     * The SegmentFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList 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 SegmentFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder - getOrGroupBuilder() { - return getOrGroupFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The SegmentFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder - getOrGroupOrBuilder() { - if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { - return orGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); - } - } - /** - * - * - *
-     * The SegmentFilterExpression in `orGroup` have an OR relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpressionList, - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder> - getOrGroupFieldBuilder() { - if (orGroupBuilder_ == null) { - if (!(exprCase_ == 2)) { - expr_ = - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); - } - orGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpressionList, - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder>( - (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 2; - onChanged(); - ; - return orGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> - notExpressionBuilder_; - /** - * - * - *
-     * The SegmentFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; - * - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 3; - } - /** - * - * - *
-     * The SegmentFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; - * - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpression getNotExpression() { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance(); - } else { - if (exprCase_ == 3) { - return notExpressionBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance(); - } - } - /** - * - * - *
-     * The SegmentFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; - */ - public Builder setNotExpression( - com.google.analytics.data.v1alpha.SegmentFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - notExpressionBuilder_.setMessage(value); - } - exprCase_ = 3; - return this; - } - /** - * - * - *
-     * The SegmentFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; - */ - public Builder setNotExpression( - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) { - if (notExpressionBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - notExpressionBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 3; - return this; - } - /** - * - * - *
-     * The SegmentFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; - */ - public Builder mergeNotExpression( - com.google.analytics.data.v1alpha.SegmentFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3 - && expr_ - != com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.SegmentFilterExpression.newBuilder( - (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 3) { - notExpressionBuilder_.mergeFrom(value); - } else { - notExpressionBuilder_.setMessage(value); - } - } - exprCase_ = 3; - return this; - } - /** - * - * - *
-     * The SegmentFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression 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 SegmentFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder - getNotExpressionBuilder() { - return getNotExpressionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The SegmentFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder - getNotExpressionOrBuilder() { - if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { - return notExpressionBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance(); - } - } - /** - * - * - *
-     * The SegmentFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> - getNotExpressionFieldBuilder() { - if (notExpressionBuilder_ == null) { - if (!(exprCase_ == 3)) { - expr_ = com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance(); - } - notExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder>( - (com.google.analytics.data.v1alpha.SegmentFilterExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 3; - onChanged(); - ; - return notExpressionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilter, - com.google.analytics.data.v1alpha.SegmentFilter.Builder, - com.google.analytics.data.v1alpha.SegmentFilterOrBuilder> - segmentFilterBuilder_; - /** - * - * - *
-     * A primitive segment filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - * - * @return Whether the segmentFilter field is set. - */ - @java.lang.Override - public boolean hasSegmentFilter() { - return exprCase_ == 4; - } - /** - * - * - *
-     * A primitive segment filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - * - * @return The segmentFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilter getSegmentFilter() { - if (segmentFilterBuilder_ == null) { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.SegmentFilter) expr_; - } - return com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance(); - } else { - if (exprCase_ == 4) { - return segmentFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A primitive segment filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - */ - public Builder setSegmentFilter(com.google.analytics.data.v1alpha.SegmentFilter value) { - if (segmentFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - segmentFilterBuilder_.setMessage(value); - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A primitive segment filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - */ - public Builder setSegmentFilter( - com.google.analytics.data.v1alpha.SegmentFilter.Builder builderForValue) { - if (segmentFilterBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - segmentFilterBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A primitive segment filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - */ - public Builder mergeSegmentFilter(com.google.analytics.data.v1alpha.SegmentFilter value) { - if (segmentFilterBuilder_ == null) { - if (exprCase_ == 4 - && expr_ != com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.SegmentFilter.newBuilder( - (com.google.analytics.data.v1alpha.SegmentFilter) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 4) { - segmentFilterBuilder_.mergeFrom(value); - } else { - segmentFilterBuilder_.setMessage(value); - } - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A primitive segment filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - */ - public Builder clearSegmentFilter() { - if (segmentFilterBuilder_ == null) { - if (exprCase_ == 4) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 4) { - exprCase_ = 0; - expr_ = null; - } - segmentFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A primitive segment filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - */ - public com.google.analytics.data.v1alpha.SegmentFilter.Builder getSegmentFilterBuilder() { - return getSegmentFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A primitive segment filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterOrBuilder getSegmentFilterOrBuilder() { - if ((exprCase_ == 4) && (segmentFilterBuilder_ != null)) { - return segmentFilterBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.SegmentFilter) expr_; - } - return com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A primitive segment filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilter, - com.google.analytics.data.v1alpha.SegmentFilter.Builder, - com.google.analytics.data.v1alpha.SegmentFilterOrBuilder> - getSegmentFilterFieldBuilder() { - if (segmentFilterBuilder_ == null) { - if (!(exprCase_ == 4)) { - expr_ = com.google.analytics.data.v1alpha.SegmentFilter.getDefaultInstance(); - } - segmentFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilter, - com.google.analytics.data.v1alpha.SegmentFilter.Builder, - com.google.analytics.data.v1alpha.SegmentFilterOrBuilder>( - (com.google.analytics.data.v1alpha.SegmentFilter) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 4; - onChanged(); - ; - return segmentFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentEventFilter, - com.google.analytics.data.v1alpha.SegmentEventFilter.Builder, - com.google.analytics.data.v1alpha.SegmentEventFilterOrBuilder> - segmentEventFilterBuilder_; - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - * - * @return Whether the segmentEventFilter field is set. - */ - @java.lang.Override - public boolean hasSegmentEventFilter() { - return exprCase_ == 5; - } - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - * - * @return The segmentEventFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentEventFilter getSegmentEventFilter() { - if (segmentEventFilterBuilder_ == null) { - if (exprCase_ == 5) { - return (com.google.analytics.data.v1alpha.SegmentEventFilter) expr_; - } - return com.google.analytics.data.v1alpha.SegmentEventFilter.getDefaultInstance(); - } else { - if (exprCase_ == 5) { - return segmentEventFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.SegmentEventFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - */ - public Builder setSegmentEventFilter( - com.google.analytics.data.v1alpha.SegmentEventFilter value) { - if (segmentEventFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - segmentEventFilterBuilder_.setMessage(value); - } - exprCase_ = 5; - return this; - } - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - */ - public Builder setSegmentEventFilter( - com.google.analytics.data.v1alpha.SegmentEventFilter.Builder builderForValue) { - if (segmentEventFilterBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - segmentEventFilterBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 5; - return this; - } - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - */ - public Builder mergeSegmentEventFilter( - com.google.analytics.data.v1alpha.SegmentEventFilter value) { - if (segmentEventFilterBuilder_ == null) { - if (exprCase_ == 5 - && expr_ != com.google.analytics.data.v1alpha.SegmentEventFilter.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.SegmentEventFilter.newBuilder( - (com.google.analytics.data.v1alpha.SegmentEventFilter) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 5) { - segmentEventFilterBuilder_.mergeFrom(value); - } else { - segmentEventFilterBuilder_.setMessage(value); - } - } - exprCase_ = 5; - return this; - } - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - */ - public Builder clearSegmentEventFilter() { - if (segmentEventFilterBuilder_ == null) { - if (exprCase_ == 5) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 5) { - exprCase_ = 0; - expr_ = null; - } - segmentEventFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - */ - public com.google.analytics.data.v1alpha.SegmentEventFilter.Builder - getSegmentEventFilterBuilder() { - return getSegmentEventFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentEventFilterOrBuilder - getSegmentEventFilterOrBuilder() { - if ((exprCase_ == 5) && (segmentEventFilterBuilder_ != null)) { - return segmentEventFilterBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 5) { - return (com.google.analytics.data.v1alpha.SegmentEventFilter) expr_; - } - return com.google.analytics.data.v1alpha.SegmentEventFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Creates a filter that matches events of a single event name. If a
-     * parameter filter expression is specified, only the subset of events that
-     * match both the single event name and the parameter filter expressions
-     * match this event filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentEventFilter, - com.google.analytics.data.v1alpha.SegmentEventFilter.Builder, - com.google.analytics.data.v1alpha.SegmentEventFilterOrBuilder> - getSegmentEventFilterFieldBuilder() { - if (segmentEventFilterBuilder_ == null) { - if (!(exprCase_ == 5)) { - expr_ = com.google.analytics.data.v1alpha.SegmentEventFilter.getDefaultInstance(); - } - segmentEventFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentEventFilter, - com.google.analytics.data.v1alpha.SegmentEventFilter.Builder, - com.google.analytics.data.v1alpha.SegmentEventFilterOrBuilder>( - (com.google.analytics.data.v1alpha.SegmentEventFilter) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 5; - onChanged(); - ; - return segmentEventFilterBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.SegmentFilterExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentFilterExpression) - private static final com.google.analytics.data.v1alpha.SegmentFilterExpression DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentFilterExpression(); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpression getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SegmentFilterExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpression getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionList.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionList.java deleted file mode 100644 index 29032528..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionList.java +++ /dev/null @@ -1,951 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * A list of segment filter expressions.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentFilterExpressionList} - */ -public final class SegmentFilterExpressionList extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentFilterExpressionList) - SegmentFilterExpressionListOrBuilder { - private static final long serialVersionUID = 0L; - // Use SegmentFilterExpressionList.newBuilder() to construct. - private SegmentFilterExpressionList(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SegmentFilterExpressionList() { - expressions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SegmentFilterExpressionList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.class, - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder.class); - } - - public static final int EXPRESSIONS_FIELD_NUMBER = 1; - private java.util.List expressions_; - /** - * - * - *
-   * The list of segment filter expressions
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - @java.lang.Override - public java.util.List - getExpressionsList() { - return expressions_; - } - /** - * - * - *
-   * The list of segment filter expressions
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - @java.lang.Override - public java.util.List< - ? extends com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> - getExpressionsOrBuilderList() { - return expressions_; - } - /** - * - * - *
-   * The list of segment filter expressions
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - @java.lang.Override - public int getExpressionsCount() { - return expressions_.size(); - } - /** - * - * - *
-   * The list of segment filter expressions
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpression getExpressions(int index) { - return expressions_.get(index); - } - /** - * - * - *
-   * The list of segment filter expressions
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder 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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.SegmentFilterExpressionList)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.SegmentFilterExpressionList other = - (com.google.analytics.data.v1alpha.SegmentFilterExpressionList) obj; - - if (!getExpressionsList().equals(other.getExpressionsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getExpressionsCount() > 0) { - hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; - hash = (53 * hash) + getExpressionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList 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.v1alpha.SegmentFilterExpressionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList parseFrom( - 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.v1alpha.SegmentFilterExpressionList parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList parseFrom( - java.io.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.v1alpha.SegmentFilterExpressionList parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList parseDelimitedFrom( - java.io.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.v1alpha.SegmentFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.SegmentFilterExpressionList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 segment filter expressions.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentFilterExpressionList} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentFilterExpressionList) - com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.class, - com.google.analytics.data.v1alpha.SegmentFilterExpressionList.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.SegmentFilterExpressionList.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (expressionsBuilder_ == null) { - expressions_ = java.util.Collections.emptyList(); - } else { - expressions_ = null; - expressionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilterExpressionList_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionList - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.SegmentFilterExpressionList.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionList build() { - com.google.analytics.data.v1alpha.SegmentFilterExpressionList result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionList buildPartial() { - com.google.analytics.data.v1alpha.SegmentFilterExpressionList result = - new com.google.analytics.data.v1alpha.SegmentFilterExpressionList(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.v1alpha.SegmentFilterExpressionList) { - return mergeFrom((com.google.analytics.data.v1alpha.SegmentFilterExpressionList) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentFilterExpressionList other) { - if (other - == com.google.analytics.data.v1alpha.SegmentFilterExpressionList.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1alpha.SegmentFilterExpression m = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentFilterExpression.parser(), - extensionRegistry); - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(m); - } else { - expressionsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List 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.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> - expressionsBuilder_; - - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public java.util.List - getExpressionsList() { - if (expressionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(expressions_); - } else { - return expressionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public int getExpressionsCount() { - if (expressionsBuilder_ == null) { - return expressions_.size(); - } else { - return expressionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpression getExpressions(int index) { - if (expressionsBuilder_ == null) { - return expressions_.get(index); - } else { - return expressionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public Builder setExpressions( - int index, com.google.analytics.data.v1alpha.SegmentFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.set(index, value); - onChanged(); - } else { - expressionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public Builder setExpressions( - int index, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.set(index, builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public Builder addExpressions(com.google.analytics.data.v1alpha.SegmentFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.add(value); - onChanged(); - } else { - expressionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public Builder addExpressions( - int index, com.google.analytics.data.v1alpha.SegmentFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.add(index, value); - onChanged(); - } else { - expressionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public Builder addExpressions( - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public Builder addExpressions( - int index, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(index, builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression 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; - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public Builder clearExpressions() { - if (expressionsBuilder_ == null) { - expressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - expressionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public Builder removeExpressions(int index) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.remove(index); - onChanged(); - } else { - expressionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder getExpressionsBuilder( - int index) { - return getExpressionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder - getExpressionsOrBuilder(int index) { - if (expressionsBuilder_ == null) { - return expressions_.get(index); - } else { - return expressionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public java.util.List< - ? extends com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> - getExpressionsOrBuilderList() { - if (expressionsBuilder_ != null) { - return expressionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(expressions_); - } - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder - addExpressionsBuilder() { - return getExpressionsFieldBuilder() - .addBuilder( - com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance()); - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder addExpressionsBuilder( - int index) { - return getExpressionsFieldBuilder() - .addBuilder( - index, - com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance()); - } - /** - * - * - *
-     * The list of segment filter expressions
-     * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - public java.util.List - getExpressionsBuilderList() { - return getExpressionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> - getExpressionsFieldBuilder() { - if (expressionsBuilder_ == null) { - expressionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder>( - 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.v1alpha.SegmentFilterExpressionList) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentFilterExpressionList) - private static final com.google.analytics.data.v1alpha.SegmentFilterExpressionList - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentFilterExpressionList(); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterExpressionList getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SegmentFilterExpressionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionList getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionListOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionListOrBuilder.java deleted file mode 100644 index a8d7c53a..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionListOrBuilder.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface SegmentFilterExpressionListOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentFilterExpressionList) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of segment filter expressions
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - java.util.List getExpressionsList(); - /** - * - * - *
-   * The list of segment filter expressions
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - com.google.analytics.data.v1alpha.SegmentFilterExpression getExpressions(int index); - /** - * - * - *
-   * The list of segment filter expressions
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - int getExpressionsCount(); - /** - * - * - *
-   * The list of segment filter expressions
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - java.util.List - getExpressionsOrBuilderList(); - /** - * - * - *
-   * The list of segment filter expressions
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentFilterExpression expressions = 1; - */ - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder getExpressionsOrBuilder( - int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionOrBuilder.java deleted file mode 100644 index 0038ca54..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterExpressionOrBuilder.java +++ /dev/null @@ -1,211 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface SegmentFilterExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentFilterExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The SegmentFilterExpression in `andGroup` have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; - * - * @return Whether the andGroup field is set. - */ - boolean hasAndGroup(); - /** - * - * - *
-   * The SegmentFilterExpression in `andGroup` have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - com.google.analytics.data.v1alpha.SegmentFilterExpressionList getAndGroup(); - /** - * - * - *
-   * The SegmentFilterExpression in `andGroup` have an AND relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList and_group = 1; - */ - com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder getAndGroupOrBuilder(); - - /** - * - * - *
-   * The SegmentFilterExpression in `orGroup` have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; - * - * @return Whether the orGroup field is set. - */ - boolean hasOrGroup(); - /** - * - * - *
-   * The SegmentFilterExpression in `orGroup` have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - com.google.analytics.data.v1alpha.SegmentFilterExpressionList getOrGroup(); - /** - * - * - *
-   * The SegmentFilterExpression in `orGroup` have an OR relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpressionList or_group = 2; - */ - com.google.analytics.data.v1alpha.SegmentFilterExpressionListOrBuilder getOrGroupOrBuilder(); - - /** - * - * - *
-   * The SegmentFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; - * - * @return Whether the notExpression field is set. - */ - boolean hasNotExpression(); - /** - * - * - *
-   * The SegmentFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; - * - * @return The notExpression. - */ - com.google.analytics.data.v1alpha.SegmentFilterExpression getNotExpression(); - /** - * - * - *
-   * The SegmentFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression not_expression = 3; - */ - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder getNotExpressionOrBuilder(); - - /** - * - * - *
-   * A primitive segment filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - * - * @return Whether the segmentFilter field is set. - */ - boolean hasSegmentFilter(); - /** - * - * - *
-   * A primitive segment filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - * - * @return The segmentFilter. - */ - com.google.analytics.data.v1alpha.SegmentFilter getSegmentFilter(); - /** - * - * - *
-   * A primitive segment filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilter segment_filter = 4; - */ - com.google.analytics.data.v1alpha.SegmentFilterOrBuilder getSegmentFilterOrBuilder(); - - /** - * - * - *
-   * Creates a filter that matches events of a single event name. If a
-   * parameter filter expression is specified, only the subset of events that
-   * match both the single event name and the parameter filter expressions
-   * match this event filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - * - * @return Whether the segmentEventFilter field is set. - */ - boolean hasSegmentEventFilter(); - /** - * - * - *
-   * Creates a filter that matches events of a single event name. If a
-   * parameter filter expression is specified, only the subset of events that
-   * match both the single event name and the parameter filter expressions
-   * match this event filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - * - * @return The segmentEventFilter. - */ - com.google.analytics.data.v1alpha.SegmentEventFilter getSegmentEventFilter(); - /** - * - * - *
-   * Creates a filter that matches events of a single event name. If a
-   * parameter filter expression is specified, only the subset of events that
-   * match both the single event name and the parameter filter expressions
-   * match this event filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentEventFilter segment_event_filter = 5; - */ - com.google.analytics.data.v1alpha.SegmentEventFilterOrBuilder getSegmentEventFilterOrBuilder(); - - public com.google.analytics.data.v1alpha.SegmentFilterExpression.ExprCase getExprCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterOrBuilder.java deleted file mode 100644 index 1a1f1f18..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterOrBuilder.java +++ /dev/null @@ -1,227 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface SegmentFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The dimension name or metric name.
-   * 
- * - * string field_name = 1; - * - * @return The fieldName. - */ - java.lang.String getFieldName(); - /** - * - * - *
-   * The dimension name or metric name.
-   * 
- * - * string field_name = 1; - * - * @return The bytes for fieldName. - */ - com.google.protobuf.ByteString getFieldNameBytes(); - - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return Whether the stringFilter field is set. - */ - boolean hasStringFilter(); - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return The stringFilter. - */ - com.google.analytics.data.v1alpha.StringFilter getStringFilter(); - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder(); - - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return Whether the inListFilter field is set. - */ - boolean hasInListFilter(); - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return The inListFilter. - */ - com.google.analytics.data.v1alpha.InListFilter getInListFilter(); - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder(); - - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return Whether the numericFilter field is set. - */ - boolean hasNumericFilter(); - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return The numericFilter. - */ - com.google.analytics.data.v1alpha.NumericFilter getNumericFilter(); - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder(); - - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return Whether the betweenFilter field is set. - */ - boolean hasBetweenFilter(); - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return The betweenFilter. - */ - com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter(); - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder(); - - /** - * - * - *
-   * Specifies the scope for the filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - * - * @return Whether the filterScoping field is set. - */ - boolean hasFilterScoping(); - /** - * - * - *
-   * Specifies the scope for the filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - * - * @return The filterScoping. - */ - com.google.analytics.data.v1alpha.SegmentFilterScoping getFilterScoping(); - /** - * - * - *
-   * Specifies the scope for the filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterScoping filter_scoping = 8; - */ - com.google.analytics.data.v1alpha.SegmentFilterScopingOrBuilder getFilterScopingOrBuilder(); - - public com.google.analytics.data.v1alpha.SegmentFilter.OneFilterCase getOneFilterCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScoping.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScoping.java deleted file mode 100644 index b2ccd188..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScoping.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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Scopings specify how the dimensions & metrics of multiple events
- * should be considered when evaluating a segment filter.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentFilterScoping} - */ -public final class SegmentFilterScoping extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentFilterScoping) - SegmentFilterScopingOrBuilder { - private static final long serialVersionUID = 0L; - // Use SegmentFilterScoping.newBuilder() to construct. - private SegmentFilterScoping(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SegmentFilterScoping() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SegmentFilterScoping(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentFilterScoping.class, - com.google.analytics.data.v1alpha.SegmentFilterScoping.Builder.class); - } - - private int bitField0_; - public static final int AT_ANY_POINT_IN_TIME_FIELD_NUMBER = 1; - private boolean atAnyPointInTime_; - /** - * - * - *
-   * If `atAnyPointInTime` is true, this filter evaluates to true for all
-   * events if it evaluates to true for any event in the date range of the
-   * request.
-   * This `atAnyPointInTime` parameter does not extend the date range of
-   * events in the report. If `atAnyPointInTime` is true, only events within
-   * the report's date range are considered when evaluating this filter.
-   * This `atAnyPointInTime` is only able to be specified if the criteria
-   * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
-   * sequences.
-   * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
-   * false is used if unspecified.
-   * 
- * - * optional bool at_any_point_in_time = 1; - * - * @return Whether the atAnyPointInTime field is set. - */ - @java.lang.Override - public boolean hasAtAnyPointInTime() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * If `atAnyPointInTime` is true, this filter evaluates to true for all
-   * events if it evaluates to true for any event in the date range of the
-   * request.
-   * This `atAnyPointInTime` parameter does not extend the date range of
-   * events in the report. If `atAnyPointInTime` is true, only events within
-   * the report's date range are considered when evaluating this filter.
-   * This `atAnyPointInTime` is only able to be specified if the criteria
-   * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
-   * sequences.
-   * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
-   * false is used if unspecified.
-   * 
- * - * optional bool at_any_point_in_time = 1; - * - * @return The atAnyPointInTime. - */ - @java.lang.Override - public boolean getAtAnyPointInTime() { - return atAnyPointInTime_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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.writeBool(1, atAnyPointInTime_); - } - getUnknownFields().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.computeBoolSize(1, atAnyPointInTime_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.SegmentFilterScoping)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.SegmentFilterScoping other = - (com.google.analytics.data.v1alpha.SegmentFilterScoping) obj; - - if (hasAtAnyPointInTime() != other.hasAtAnyPointInTime()) return false; - if (hasAtAnyPointInTime()) { - if (getAtAnyPointInTime() != other.getAtAnyPointInTime()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAtAnyPointInTime()) { - hash = (37 * hash) + AT_ANY_POINT_IN_TIME_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAtAnyPointInTime()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.SegmentFilterScoping parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterScoping 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.v1alpha.SegmentFilterScoping parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterScoping parseFrom( - 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.v1alpha.SegmentFilterScoping parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterScoping parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterScoping parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterScoping parseFrom( - java.io.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.v1alpha.SegmentFilterScoping parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterScoping parseDelimitedFrom( - java.io.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.v1alpha.SegmentFilterScoping parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterScoping parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.SegmentFilterScoping prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Scopings specify how the dimensions & metrics of multiple events
-   * should be considered when evaluating a segment filter.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentFilterScoping} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentFilterScoping) - com.google.analytics.data.v1alpha.SegmentFilterScopingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentFilterScoping.class, - com.google.analytics.data.v1alpha.SegmentFilterScoping.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.SegmentFilterScoping.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - atAnyPointInTime_ = false; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentFilterScoping_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterScoping getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.SegmentFilterScoping.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterScoping build() { - com.google.analytics.data.v1alpha.SegmentFilterScoping result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterScoping buildPartial() { - com.google.analytics.data.v1alpha.SegmentFilterScoping result = - new com.google.analytics.data.v1alpha.SegmentFilterScoping(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.atAnyPointInTime_ = atAnyPointInTime_; - to_bitField0_ |= 0x00000001; - } - 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.v1alpha.SegmentFilterScoping) { - return mergeFrom((com.google.analytics.data.v1alpha.SegmentFilterScoping) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentFilterScoping other) { - if (other == com.google.analytics.data.v1alpha.SegmentFilterScoping.getDefaultInstance()) - return this; - if (other.hasAtAnyPointInTime()) { - setAtAnyPointInTime(other.getAtAnyPointInTime()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - atAnyPointInTime_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private boolean atAnyPointInTime_; - /** - * - * - *
-     * If `atAnyPointInTime` is true, this filter evaluates to true for all
-     * events if it evaluates to true for any event in the date range of the
-     * request.
-     * This `atAnyPointInTime` parameter does not extend the date range of
-     * events in the report. If `atAnyPointInTime` is true, only events within
-     * the report's date range are considered when evaluating this filter.
-     * This `atAnyPointInTime` is only able to be specified if the criteria
-     * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
-     * sequences.
-     * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
-     * false is used if unspecified.
-     * 
- * - * optional bool at_any_point_in_time = 1; - * - * @return Whether the atAnyPointInTime field is set. - */ - @java.lang.Override - public boolean hasAtAnyPointInTime() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * If `atAnyPointInTime` is true, this filter evaluates to true for all
-     * events if it evaluates to true for any event in the date range of the
-     * request.
-     * This `atAnyPointInTime` parameter does not extend the date range of
-     * events in the report. If `atAnyPointInTime` is true, only events within
-     * the report's date range are considered when evaluating this filter.
-     * This `atAnyPointInTime` is only able to be specified if the criteria
-     * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
-     * sequences.
-     * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
-     * false is used if unspecified.
-     * 
- * - * optional bool at_any_point_in_time = 1; - * - * @return The atAnyPointInTime. - */ - @java.lang.Override - public boolean getAtAnyPointInTime() { - return atAnyPointInTime_; - } - /** - * - * - *
-     * If `atAnyPointInTime` is true, this filter evaluates to true for all
-     * events if it evaluates to true for any event in the date range of the
-     * request.
-     * This `atAnyPointInTime` parameter does not extend the date range of
-     * events in the report. If `atAnyPointInTime` is true, only events within
-     * the report's date range are considered when evaluating this filter.
-     * This `atAnyPointInTime` is only able to be specified if the criteria
-     * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
-     * sequences.
-     * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
-     * false is used if unspecified.
-     * 
- * - * optional bool at_any_point_in_time = 1; - * - * @param value The atAnyPointInTime to set. - * @return This builder for chaining. - */ - public Builder setAtAnyPointInTime(boolean value) { - bitField0_ |= 0x00000001; - atAnyPointInTime_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If `atAnyPointInTime` is true, this filter evaluates to true for all
-     * events if it evaluates to true for any event in the date range of the
-     * request.
-     * This `atAnyPointInTime` parameter does not extend the date range of
-     * events in the report. If `atAnyPointInTime` is true, only events within
-     * the report's date range are considered when evaluating this filter.
-     * This `atAnyPointInTime` is only able to be specified if the criteria
-     * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
-     * sequences.
-     * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
-     * false is used if unspecified.
-     * 
- * - * optional bool at_any_point_in_time = 1; - * - * @return This builder for chaining. - */ - public Builder clearAtAnyPointInTime() { - bitField0_ = (bitField0_ & ~0x00000001); - atAnyPointInTime_ = 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.v1alpha.SegmentFilterScoping) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentFilterScoping) - private static final com.google.analytics.data.v1alpha.SegmentFilterScoping DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentFilterScoping(); - } - - public static com.google.analytics.data.v1alpha.SegmentFilterScoping getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SegmentFilterScoping parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterScoping getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScopingOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScopingOrBuilder.java deleted file mode 100644 index fd4a67f0..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentFilterScopingOrBuilder.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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface SegmentFilterScopingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentFilterScoping) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * If `atAnyPointInTime` is true, this filter evaluates to true for all
-   * events if it evaluates to true for any event in the date range of the
-   * request.
-   * This `atAnyPointInTime` parameter does not extend the date range of
-   * events in the report. If `atAnyPointInTime` is true, only events within
-   * the report's date range are considered when evaluating this filter.
-   * This `atAnyPointInTime` is only able to be specified if the criteria
-   * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
-   * sequences.
-   * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
-   * false is used if unspecified.
-   * 
- * - * optional bool at_any_point_in_time = 1; - * - * @return Whether the atAnyPointInTime field is set. - */ - boolean hasAtAnyPointInTime(); - /** - * - * - *
-   * If `atAnyPointInTime` is true, this filter evaluates to true for all
-   * events if it evaluates to true for any event in the date range of the
-   * request.
-   * This `atAnyPointInTime` parameter does not extend the date range of
-   * events in the report. If `atAnyPointInTime` is true, only events within
-   * the report's date range are considered when evaluating this filter.
-   * This `atAnyPointInTime` is only able to be specified if the criteria
-   * scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in
-   * sequences.
-   * If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` =
-   * false is used if unspecified.
-   * 
- * - * optional bool at_any_point_in_time = 1; - * - * @return The atAnyPointInTime. - */ - boolean getAtAnyPointInTime(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentOrBuilder.java deleted file mode 100644 index bc9e0195..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentOrBuilder.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface SegmentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.Segment) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The name for this segment. If unspecified, segments are named "Segment".
-   * This name defines string value returned by the `segment` dimension. The
-   * `segment` dimension prefixes segment names by the 1-based index number of
-   * the segment in the request (i.e. "1. Segment", "2. Segment", etc.).
-   * 
- * - * string name = 1; - * - * @return The name. - */ - java.lang.String getName(); - /** - * - * - *
-   * The name for this segment. If unspecified, segments are named "Segment".
-   * This name defines string value returned by the `segment` dimension. The
-   * `segment` dimension prefixes segment names by the 1-based index number of
-   * the segment in the request (i.e. "1. Segment", "2. Segment", etc.).
-   * 
- * - * string name = 1; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
-   * User segments are subsets of users who engaged with your site or app.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegment user_segment = 2; - * - * @return Whether the userSegment field is set. - */ - boolean hasUserSegment(); - /** - * - * - *
-   * User segments are subsets of users who engaged with your site or app.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegment user_segment = 2; - * - * @return The userSegment. - */ - com.google.analytics.data.v1alpha.UserSegment getUserSegment(); - /** - * - * - *
-   * User segments are subsets of users who engaged with your site or app.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegment user_segment = 2; - */ - com.google.analytics.data.v1alpha.UserSegmentOrBuilder getUserSegmentOrBuilder(); - - /** - * - * - *
-   * Session segments are subsets of the sessions that occurred on your site
-   * or app.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - * - * @return Whether the sessionSegment field is set. - */ - boolean hasSessionSegment(); - /** - * - * - *
-   * Session segments are subsets of the sessions that occurred on your site
-   * or app.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - * - * @return The sessionSegment. - */ - com.google.analytics.data.v1alpha.SessionSegment getSessionSegment(); - /** - * - * - *
-   * Session segments are subsets of the sessions that occurred on your site
-   * or app.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegment session_segment = 3; - */ - com.google.analytics.data.v1alpha.SessionSegmentOrBuilder getSessionSegmentOrBuilder(); - - /** - * - * - *
-   * Event segments are subsets of events that were triggered on your site or
-   * app.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegment event_segment = 4; - * - * @return Whether the eventSegment field is set. - */ - boolean hasEventSegment(); - /** - * - * - *
-   * Event segments are subsets of events that were triggered on your site or
-   * app.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegment event_segment = 4; - * - * @return The eventSegment. - */ - com.google.analytics.data.v1alpha.EventSegment getEventSegment(); - /** - * - * - *
-   * Event segments are subsets of events that were triggered on your site or
-   * app.
-   * 
- * - * .google.analytics.data.v1alpha.EventSegment event_segment = 4; - */ - com.google.analytics.data.v1alpha.EventSegmentOrBuilder getEventSegmentOrBuilder(); - - public com.google.analytics.data.v1alpha.Segment.OneSegmentScopeCase getOneSegmentScopeCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilter.java deleted file mode 100644 index 96bd55a4..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilter.java +++ /dev/null @@ -1,2657 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * An expression to filter parameter values in a segment.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentParameterFilter} - */ -public final class SegmentParameterFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentParameterFilter) - SegmentParameterFilterOrBuilder { - private static final long serialVersionUID = 0L; - // Use SegmentParameterFilter.newBuilder() to construct. - private SegmentParameterFilter(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SegmentParameterFilter() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SegmentParameterFilter(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentParameterFilter.class, - com.google.analytics.data.v1alpha.SegmentParameterFilter.Builder.class); - } - - private int oneParameterCase_ = 0; - private java.lang.Object oneParameter_; - - public enum OneParameterCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - EVENT_PARAMETER_NAME(1), - ITEM_PARAMETER_NAME(2), - ONEPARAMETER_NOT_SET(0); - private final int value; - - private OneParameterCase(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 OneParameterCase valueOf(int value) { - return forNumber(value); - } - - public static OneParameterCase forNumber(int value) { - switch (value) { - case 1: - return EVENT_PARAMETER_NAME; - case 2: - return ITEM_PARAMETER_NAME; - case 0: - return ONEPARAMETER_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public OneParameterCase getOneParameterCase() { - return OneParameterCase.forNumber(oneParameterCase_); - } - - 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(4), - IN_LIST_FILTER(5), - NUMERIC_FILTER(6), - BETWEEN_FILTER(7), - 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 4: - return STRING_FILTER; - case 5: - return IN_LIST_FILTER; - case 6: - return NUMERIC_FILTER; - case 7: - 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 EVENT_PARAMETER_NAME_FIELD_NUMBER = 1; - /** - * - * - *
-   * This filter will be evaluated on the specified event parameter. Event
-   * parameters are logged as parameters of the event. Event parameters
-   * include fields like "firebase_screen" & "currency".
-   * Event parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * 
- * - * string event_parameter_name = 1; - * - * @return Whether the eventParameterName field is set. - */ - public boolean hasEventParameterName() { - return oneParameterCase_ == 1; - } - /** - * - * - *
-   * This filter will be evaluated on the specified event parameter. Event
-   * parameters are logged as parameters of the event. Event parameters
-   * include fields like "firebase_screen" & "currency".
-   * Event parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * 
- * - * string event_parameter_name = 1; - * - * @return The eventParameterName. - */ - public java.lang.String getEventParameterName() { - java.lang.Object ref = ""; - if (oneParameterCase_ == 1) { - ref = oneParameter_; - } - if (ref instanceof java.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 (oneParameterCase_ == 1) { - oneParameter_ = s; - } - return s; - } - } - /** - * - * - *
-   * This filter will be evaluated on the specified event parameter. Event
-   * parameters are logged as parameters of the event. Event parameters
-   * include fields like "firebase_screen" & "currency".
-   * Event parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * 
- * - * string event_parameter_name = 1; - * - * @return The bytes for eventParameterName. - */ - public com.google.protobuf.ByteString getEventParameterNameBytes() { - java.lang.Object ref = ""; - if (oneParameterCase_ == 1) { - ref = oneParameter_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (oneParameterCase_ == 1) { - oneParameter_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ITEM_PARAMETER_NAME_FIELD_NUMBER = 2; - /** - * - * - *
-   * This filter will be evaluated on the specified item parameter. Item
-   * parameters are logged as parameters in the item array. Item parameters
-   * include fields like "item_name" & "item_category".
-   * Item parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * Item parameters are only available in ecommerce events. To learn more
-   * about ecommerce events, see the [Measure ecommerce]
-   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-   * guide.
-   * 
- * - * string item_parameter_name = 2; - * - * @return Whether the itemParameterName field is set. - */ - public boolean hasItemParameterName() { - return oneParameterCase_ == 2; - } - /** - * - * - *
-   * This filter will be evaluated on the specified item parameter. Item
-   * parameters are logged as parameters in the item array. Item parameters
-   * include fields like "item_name" & "item_category".
-   * Item parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * Item parameters are only available in ecommerce events. To learn more
-   * about ecommerce events, see the [Measure ecommerce]
-   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-   * guide.
-   * 
- * - * string item_parameter_name = 2; - * - * @return The itemParameterName. - */ - public java.lang.String getItemParameterName() { - java.lang.Object ref = ""; - if (oneParameterCase_ == 2) { - ref = oneParameter_; - } - if (ref instanceof java.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 (oneParameterCase_ == 2) { - oneParameter_ = s; - } - return s; - } - } - /** - * - * - *
-   * This filter will be evaluated on the specified item parameter. Item
-   * parameters are logged as parameters in the item array. Item parameters
-   * include fields like "item_name" & "item_category".
-   * Item parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * Item parameters are only available in ecommerce events. To learn more
-   * about ecommerce events, see the [Measure ecommerce]
-   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-   * guide.
-   * 
- * - * string item_parameter_name = 2; - * - * @return The bytes for itemParameterName. - */ - public com.google.protobuf.ByteString getItemParameterNameBytes() { - java.lang.Object ref = ""; - if (oneParameterCase_ == 2) { - ref = oneParameter_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (oneParameterCase_ == 2) { - oneParameter_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STRING_FILTER_FIELD_NUMBER = 4; - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 4; - } - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - - public static final int IN_LIST_FILTER_FIELD_NUMBER = 5; - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 5; - } - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - - public static final int NUMERIC_FILTER_FIELD_NUMBER = 6; - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 6; - } - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - - public static final int BETWEEN_FILTER_FIELD_NUMBER = 7; - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 7; - } - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { - if (oneFilterCase_ == 7) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { - if (oneFilterCase_ == 7) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - - public static final int FILTER_SCOPING_FIELD_NUMBER = 8; - private com.google.analytics.data.v1alpha.SegmentParameterFilterScoping filterScoping_; - /** - * - * - *
-   * Specifies the scope for the filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - * - * @return Whether the filterScoping field is set. - */ - @java.lang.Override - public boolean hasFilterScoping() { - return filterScoping_ != null; - } - /** - * - * - *
-   * Specifies the scope for the filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - * - * @return The filterScoping. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterScoping getFilterScoping() { - return filterScoping_ == null - ? com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.getDefaultInstance() - : filterScoping_; - } - /** - * - * - *
-   * Specifies the scope for the filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterScopingOrBuilder - getFilterScopingOrBuilder() { - return getFilterScoping(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (oneParameterCase_ == 1) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, oneParameter_); - } - if (oneParameterCase_ == 2) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, oneParameter_); - } - if (oneFilterCase_ == 4) { - output.writeMessage(4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - output.writeMessage(5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); - } - if (oneFilterCase_ == 6) { - output.writeMessage(6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); - } - if (oneFilterCase_ == 7) { - output.writeMessage(7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); - } - if (filterScoping_ != null) { - output.writeMessage(8, getFilterScoping()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (oneParameterCase_ == 1) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, oneParameter_); - } - if (oneParameterCase_ == 2) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, oneParameter_); - } - if (oneFilterCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.data.v1alpha.StringFilter) oneFilter_); - } - if (oneFilterCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.analytics.data.v1alpha.InListFilter) oneFilter_); - } - if (oneFilterCase_ == 6) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 6, (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_); - } - if (oneFilterCase_ == 7) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 7, (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_); - } - if (filterScoping_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFilterScoping()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.SegmentParameterFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.SegmentParameterFilter other = - (com.google.analytics.data.v1alpha.SegmentParameterFilter) obj; - - if (hasFilterScoping() != other.hasFilterScoping()) return false; - if (hasFilterScoping()) { - if (!getFilterScoping().equals(other.getFilterScoping())) return false; - } - if (!getOneParameterCase().equals(other.getOneParameterCase())) return false; - switch (oneParameterCase_) { - case 1: - if (!getEventParameterName().equals(other.getEventParameterName())) return false; - break; - case 2: - if (!getItemParameterName().equals(other.getItemParameterName())) return false; - break; - case 0: - default: - } - if (!getOneFilterCase().equals(other.getOneFilterCase())) return false; - switch (oneFilterCase_) { - case 4: - if (!getStringFilter().equals(other.getStringFilter())) return false; - break; - case 5: - if (!getInListFilter().equals(other.getInListFilter())) return false; - break; - case 6: - if (!getNumericFilter().equals(other.getNumericFilter())) return false; - break; - case 7: - if (!getBetweenFilter().equals(other.getBetweenFilter())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasFilterScoping()) { - hash = (37 * hash) + FILTER_SCOPING_FIELD_NUMBER; - hash = (53 * hash) + getFilterScoping().hashCode(); - } - switch (oneParameterCase_) { - case 1: - hash = (37 * hash) + EVENT_PARAMETER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getEventParameterName().hashCode(); - break; - case 2: - hash = (37 * hash) + ITEM_PARAMETER_NAME_FIELD_NUMBER; - hash = (53 * hash) + getItemParameterName().hashCode(); - break; - case 0: - default: - } - switch (oneFilterCase_) { - case 4: - hash = (37 * hash) + STRING_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getStringFilter().hashCode(); - break; - case 5: - hash = (37 * hash) + IN_LIST_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getInListFilter().hashCode(); - break; - case 6: - hash = (37 * hash) + NUMERIC_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getNumericFilter().hashCode(); - break; - case 7: - hash = (37 * hash) + BETWEEN_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getBetweenFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilter parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilter 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.v1alpha.SegmentParameterFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilter parseFrom( - 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.v1alpha.SegmentParameterFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilter parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilter parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilter parseFrom( - java.io.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.v1alpha.SegmentParameterFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilter parseDelimitedFrom( - java.io.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.v1alpha.SegmentParameterFilter parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilter parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.SegmentParameterFilter prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 parameter values in a segment.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentParameterFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentParameterFilter) - com.google.analytics.data.v1alpha.SegmentParameterFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentParameterFilter.class, - com.google.analytics.data.v1alpha.SegmentParameterFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.SegmentParameterFilter.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (stringFilterBuilder_ != null) { - stringFilterBuilder_.clear(); - } - if (inListFilterBuilder_ != null) { - inListFilterBuilder_.clear(); - } - if (numericFilterBuilder_ != null) { - numericFilterBuilder_.clear(); - } - if (betweenFilterBuilder_ != null) { - betweenFilterBuilder_.clear(); - } - if (filterScopingBuilder_ == null) { - filterScoping_ = null; - } else { - filterScoping_ = null; - filterScopingBuilder_ = null; - } - oneParameterCase_ = 0; - oneParameter_ = null; - oneFilterCase_ = 0; - oneFilter_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.SegmentParameterFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilter build() { - com.google.analytics.data.v1alpha.SegmentParameterFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilter buildPartial() { - com.google.analytics.data.v1alpha.SegmentParameterFilter result = - new com.google.analytics.data.v1alpha.SegmentParameterFilter(this); - if (oneParameterCase_ == 1) { - result.oneParameter_ = oneParameter_; - } - if (oneParameterCase_ == 2) { - result.oneParameter_ = oneParameter_; - } - if (oneFilterCase_ == 4) { - if (stringFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = stringFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 5) { - if (inListFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = inListFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 6) { - if (numericFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = numericFilterBuilder_.build(); - } - } - if (oneFilterCase_ == 7) { - if (betweenFilterBuilder_ == null) { - result.oneFilter_ = oneFilter_; - } else { - result.oneFilter_ = betweenFilterBuilder_.build(); - } - } - if (filterScopingBuilder_ == null) { - result.filterScoping_ = filterScoping_; - } else { - result.filterScoping_ = filterScopingBuilder_.build(); - } - result.oneParameterCase_ = oneParameterCase_; - 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.v1alpha.SegmentParameterFilter) { - return mergeFrom((com.google.analytics.data.v1alpha.SegmentParameterFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.SegmentParameterFilter other) { - if (other == com.google.analytics.data.v1alpha.SegmentParameterFilter.getDefaultInstance()) - return this; - if (other.hasFilterScoping()) { - mergeFilterScoping(other.getFilterScoping()); - } - switch (other.getOneParameterCase()) { - case EVENT_PARAMETER_NAME: - { - oneParameterCase_ = 1; - oneParameter_ = other.oneParameter_; - onChanged(); - break; - } - case ITEM_PARAMETER_NAME: - { - oneParameterCase_ = 2; - oneParameter_ = other.oneParameter_; - onChanged(); - break; - } - case ONEPARAMETER_NOT_SET: - { - break; - } - } - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - oneParameterCase_ = 1; - oneParameter_ = s; - break; - } // case 10 - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - oneParameterCase_ = 2; - oneParameter_ = s; - break; - } // case 18 - case 34: - { - input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getNumericFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 6; - break; - } // case 50 - case 58: - { - input.readMessage(getBetweenFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 7; - break; - } // case 58 - case 66: - { - input.readMessage(getFilterScopingFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int oneParameterCase_ = 0; - private java.lang.Object oneParameter_; - - public OneParameterCase getOneParameterCase() { - return OneParameterCase.forNumber(oneParameterCase_); - } - - public Builder clearOneParameter() { - oneParameterCase_ = 0; - oneParameter_ = null; - onChanged(); - 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; - } - - /** - * - * - *
-     * This filter will be evaluated on the specified event parameter. Event
-     * parameters are logged as parameters of the event. Event parameters
-     * include fields like "firebase_screen" & "currency".
-     * Event parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * 
- * - * string event_parameter_name = 1; - * - * @return Whether the eventParameterName field is set. - */ - @java.lang.Override - public boolean hasEventParameterName() { - return oneParameterCase_ == 1; - } - /** - * - * - *
-     * This filter will be evaluated on the specified event parameter. Event
-     * parameters are logged as parameters of the event. Event parameters
-     * include fields like "firebase_screen" & "currency".
-     * Event parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * 
- * - * string event_parameter_name = 1; - * - * @return The eventParameterName. - */ - @java.lang.Override - public java.lang.String getEventParameterName() { - java.lang.Object ref = ""; - if (oneParameterCase_ == 1) { - ref = oneParameter_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oneParameterCase_ == 1) { - oneParameter_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This filter will be evaluated on the specified event parameter. Event
-     * parameters are logged as parameters of the event. Event parameters
-     * include fields like "firebase_screen" & "currency".
-     * Event parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * 
- * - * string event_parameter_name = 1; - * - * @return The bytes for eventParameterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEventParameterNameBytes() { - java.lang.Object ref = ""; - if (oneParameterCase_ == 1) { - ref = oneParameter_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (oneParameterCase_ == 1) { - oneParameter_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This filter will be evaluated on the specified event parameter. Event
-     * parameters are logged as parameters of the event. Event parameters
-     * include fields like "firebase_screen" & "currency".
-     * Event parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * 
- * - * string event_parameter_name = 1; - * - * @param value The eventParameterName to set. - * @return This builder for chaining. - */ - public Builder setEventParameterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - oneParameterCase_ = 1; - oneParameter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * This filter will be evaluated on the specified event parameter. Event
-     * parameters are logged as parameters of the event. Event parameters
-     * include fields like "firebase_screen" & "currency".
-     * Event parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * 
- * - * string event_parameter_name = 1; - * - * @return This builder for chaining. - */ - public Builder clearEventParameterName() { - if (oneParameterCase_ == 1) { - oneParameterCase_ = 0; - oneParameter_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * This filter will be evaluated on the specified event parameter. Event
-     * parameters are logged as parameters of the event. Event parameters
-     * include fields like "firebase_screen" & "currency".
-     * Event parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * 
- * - * string event_parameter_name = 1; - * - * @param value The bytes for eventParameterName to set. - * @return This builder for chaining. - */ - public Builder setEventParameterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - oneParameterCase_ = 1; - oneParameter_ = value; - onChanged(); - return this; - } - - /** - * - * - *
-     * This filter will be evaluated on the specified item parameter. Item
-     * parameters are logged as parameters in the item array. Item parameters
-     * include fields like "item_name" & "item_category".
-     * Item parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * Item parameters are only available in ecommerce events. To learn more
-     * about ecommerce events, see the [Measure ecommerce]
-     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-     * guide.
-     * 
- * - * string item_parameter_name = 2; - * - * @return Whether the itemParameterName field is set. - */ - @java.lang.Override - public boolean hasItemParameterName() { - return oneParameterCase_ == 2; - } - /** - * - * - *
-     * This filter will be evaluated on the specified item parameter. Item
-     * parameters are logged as parameters in the item array. Item parameters
-     * include fields like "item_name" & "item_category".
-     * Item parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * Item parameters are only available in ecommerce events. To learn more
-     * about ecommerce events, see the [Measure ecommerce]
-     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-     * guide.
-     * 
- * - * string item_parameter_name = 2; - * - * @return The itemParameterName. - */ - @java.lang.Override - public java.lang.String getItemParameterName() { - java.lang.Object ref = ""; - if (oneParameterCase_ == 2) { - ref = oneParameter_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (oneParameterCase_ == 2) { - oneParameter_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * This filter will be evaluated on the specified item parameter. Item
-     * parameters are logged as parameters in the item array. Item parameters
-     * include fields like "item_name" & "item_category".
-     * Item parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * Item parameters are only available in ecommerce events. To learn more
-     * about ecommerce events, see the [Measure ecommerce]
-     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-     * guide.
-     * 
- * - * string item_parameter_name = 2; - * - * @return The bytes for itemParameterName. - */ - @java.lang.Override - public com.google.protobuf.ByteString getItemParameterNameBytes() { - java.lang.Object ref = ""; - if (oneParameterCase_ == 2) { - ref = oneParameter_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (oneParameterCase_ == 2) { - oneParameter_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * This filter will be evaluated on the specified item parameter. Item
-     * parameters are logged as parameters in the item array. Item parameters
-     * include fields like "item_name" & "item_category".
-     * Item parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * Item parameters are only available in ecommerce events. To learn more
-     * about ecommerce events, see the [Measure ecommerce]
-     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-     * guide.
-     * 
- * - * string item_parameter_name = 2; - * - * @param value The itemParameterName to set. - * @return This builder for chaining. - */ - public Builder setItemParameterName(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - oneParameterCase_ = 2; - oneParameter_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * This filter will be evaluated on the specified item parameter. Item
-     * parameters are logged as parameters in the item array. Item parameters
-     * include fields like "item_name" & "item_category".
-     * Item parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * Item parameters are only available in ecommerce events. To learn more
-     * about ecommerce events, see the [Measure ecommerce]
-     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-     * guide.
-     * 
- * - * string item_parameter_name = 2; - * - * @return This builder for chaining. - */ - public Builder clearItemParameterName() { - if (oneParameterCase_ == 2) { - oneParameterCase_ = 0; - oneParameter_ = null; - onChanged(); - } - return this; - } - /** - * - * - *
-     * This filter will be evaluated on the specified item parameter. Item
-     * parameters are logged as parameters in the item array. Item parameters
-     * include fields like "item_name" & "item_category".
-     * Item parameters can only be used in segments & funnels and can only be
-     * used in a descendent filter from an EventFilter. In a descendent filter
-     * from an EventFilter either event or item parameters should be used.
-     * Item parameters are only available in ecommerce events. To learn more
-     * about ecommerce events, see the [Measure ecommerce]
-     * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-     * guide.
-     * 
- * - * string item_parameter_name = 2; - * - * @param value The bytes for itemParameterName to set. - * @return This builder for chaining. - */ - public Builder setItemParameterNameBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - oneParameterCase_ = 2; - oneParameter_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.StringFilter, - com.google.analytics.data.v1alpha.StringFilter.Builder, - com.google.analytics.data.v1alpha.StringFilterOrBuilder> - stringFilterBuilder_; - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return Whether the stringFilter field is set. - */ - @java.lang.Override - public boolean hasStringFilter() { - return oneFilterCase_ == 4; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return The stringFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilter getStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 4) { - return stringFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public Builder setStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - stringFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public Builder setStringFilter( - com.google.analytics.data.v1alpha.StringFilter.Builder builderForValue) { - if (stringFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - stringFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public Builder mergeStringFilter(com.google.analytics.data.v1alpha.StringFilter value) { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 4 - && oneFilter_ != com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.StringFilter.newBuilder( - (com.google.analytics.data.v1alpha.StringFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 4) { - stringFilterBuilder_.mergeFrom(value); - } else { - stringFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 4; - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public Builder clearStringFilter() { - if (stringFilterBuilder_ == null) { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 4) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - stringFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - public com.google.analytics.data.v1alpha.StringFilter.Builder getStringFilterBuilder() { - return getStringFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder() { - if ((oneFilterCase_ == 4) && (stringFilterBuilder_ != null)) { - return stringFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 4) { - return (com.google.analytics.data.v1alpha.StringFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * Strings related filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.StringFilter, - com.google.analytics.data.v1alpha.StringFilter.Builder, - com.google.analytics.data.v1alpha.StringFilterOrBuilder> - getStringFilterFieldBuilder() { - if (stringFilterBuilder_ == null) { - if (!(oneFilterCase_ == 4)) { - oneFilter_ = com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - stringFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.StringFilter, - com.google.analytics.data.v1alpha.StringFilter.Builder, - com.google.analytics.data.v1alpha.StringFilterOrBuilder>( - (com.google.analytics.data.v1alpha.StringFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 4; - onChanged(); - ; - return stringFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.InListFilter, - com.google.analytics.data.v1alpha.InListFilter.Builder, - com.google.analytics.data.v1alpha.InListFilterOrBuilder> - inListFilterBuilder_; - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return Whether the inListFilter field is set. - */ - @java.lang.Override - public boolean hasInListFilter() { - return oneFilterCase_ == 5; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return The inListFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilter getInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 5) { - return inListFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public Builder setInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - inListFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public Builder setInListFilter( - com.google.analytics.data.v1alpha.InListFilter.Builder builderForValue) { - if (inListFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - inListFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public Builder mergeInListFilter(com.google.analytics.data.v1alpha.InListFilter value) { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 5 - && oneFilter_ != com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.InListFilter.newBuilder( - (com.google.analytics.data.v1alpha.InListFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 5) { - inListFilterBuilder_.mergeFrom(value); - } else { - inListFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 5; - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public Builder clearInListFilter() { - if (inListFilterBuilder_ == null) { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 5) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - inListFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - public com.google.analytics.data.v1alpha.InListFilter.Builder getInListFilterBuilder() { - return getInListFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder() { - if ((oneFilterCase_ == 5) && (inListFilterBuilder_ != null)) { - return inListFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 5) { - return (com.google.analytics.data.v1alpha.InListFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for in list values.
-     * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.InListFilter, - com.google.analytics.data.v1alpha.InListFilter.Builder, - com.google.analytics.data.v1alpha.InListFilterOrBuilder> - getInListFilterFieldBuilder() { - if (inListFilterBuilder_ == null) { - if (!(oneFilterCase_ == 5)) { - oneFilter_ = com.google.analytics.data.v1alpha.InListFilter.getDefaultInstance(); - } - inListFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.InListFilter, - com.google.analytics.data.v1alpha.InListFilter.Builder, - com.google.analytics.data.v1alpha.InListFilterOrBuilder>( - (com.google.analytics.data.v1alpha.InListFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 5; - onChanged(); - ; - return inListFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericFilter, - com.google.analytics.data.v1alpha.NumericFilter.Builder, - com.google.analytics.data.v1alpha.NumericFilterOrBuilder> - numericFilterBuilder_; - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return Whether the numericFilter field is set. - */ - @java.lang.Override - public boolean hasNumericFilter() { - return oneFilterCase_ == 6; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return The numericFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilter getNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 6) { - return numericFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public Builder setNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { - if (numericFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - numericFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 6; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public Builder setNumericFilter( - com.google.analytics.data.v1alpha.NumericFilter.Builder builderForValue) { - if (numericFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - numericFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 6; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public Builder mergeNumericFilter(com.google.analytics.data.v1alpha.NumericFilter value) { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 6 - && oneFilter_ != com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.NumericFilter.newBuilder( - (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 6) { - numericFilterBuilder_.mergeFrom(value); - } else { - numericFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 6; - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public Builder clearNumericFilter() { - if (numericFilterBuilder_ == null) { - if (oneFilterCase_ == 6) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 6) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - numericFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - public com.google.analytics.data.v1alpha.NumericFilter.Builder getNumericFilterBuilder() { - return getNumericFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder() { - if ((oneFilterCase_ == 6) && (numericFilterBuilder_ != null)) { - return numericFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 6) { - return (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for numeric or date values.
-     * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericFilter, - com.google.analytics.data.v1alpha.NumericFilter.Builder, - com.google.analytics.data.v1alpha.NumericFilterOrBuilder> - getNumericFilterFieldBuilder() { - if (numericFilterBuilder_ == null) { - if (!(oneFilterCase_ == 6)) { - oneFilter_ = com.google.analytics.data.v1alpha.NumericFilter.getDefaultInstance(); - } - numericFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.NumericFilter, - com.google.analytics.data.v1alpha.NumericFilter.Builder, - com.google.analytics.data.v1alpha.NumericFilterOrBuilder>( - (com.google.analytics.data.v1alpha.NumericFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 6; - onChanged(); - ; - return numericFilterBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.BetweenFilter, - com.google.analytics.data.v1alpha.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> - betweenFilterBuilder_; - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return Whether the betweenFilter field is set. - */ - @java.lang.Override - public boolean hasBetweenFilter() { - return oneFilterCase_ == 7; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return The betweenFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 7) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } else { - if (oneFilterCase_ == 7) { - return betweenFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public Builder setBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - oneFilter_ = value; - onChanged(); - } else { - betweenFilterBuilder_.setMessage(value); - } - oneFilterCase_ = 7; - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public Builder setBetweenFilter( - com.google.analytics.data.v1alpha.BetweenFilter.Builder builderForValue) { - if (betweenFilterBuilder_ == null) { - oneFilter_ = builderForValue.build(); - onChanged(); - } else { - betweenFilterBuilder_.setMessage(builderForValue.build()); - } - oneFilterCase_ = 7; - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public Builder mergeBetweenFilter(com.google.analytics.data.v1alpha.BetweenFilter value) { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 7 - && oneFilter_ != com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance()) { - oneFilter_ = - com.google.analytics.data.v1alpha.BetweenFilter.newBuilder( - (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_) - .mergeFrom(value) - .buildPartial(); - } else { - oneFilter_ = value; - } - onChanged(); - } else { - if (oneFilterCase_ == 7) { - betweenFilterBuilder_.mergeFrom(value); - } else { - betweenFilterBuilder_.setMessage(value); - } - } - oneFilterCase_ = 7; - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public Builder clearBetweenFilter() { - if (betweenFilterBuilder_ == null) { - if (oneFilterCase_ == 7) { - oneFilterCase_ = 0; - oneFilter_ = null; - onChanged(); - } - } else { - if (oneFilterCase_ == 7) { - oneFilterCase_ = 0; - oneFilter_ = null; - } - betweenFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - public com.google.analytics.data.v1alpha.BetweenFilter.Builder getBetweenFilterBuilder() { - return getBetweenFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder() { - if ((oneFilterCase_ == 7) && (betweenFilterBuilder_ != null)) { - return betweenFilterBuilder_.getMessageOrBuilder(); - } else { - if (oneFilterCase_ == 7) { - return (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_; - } - return com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A filter for between two values.
-     * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.BetweenFilter, - com.google.analytics.data.v1alpha.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder> - getBetweenFilterFieldBuilder() { - if (betweenFilterBuilder_ == null) { - if (!(oneFilterCase_ == 7)) { - oneFilter_ = com.google.analytics.data.v1alpha.BetweenFilter.getDefaultInstance(); - } - betweenFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.BetweenFilter, - com.google.analytics.data.v1alpha.BetweenFilter.Builder, - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder>( - (com.google.analytics.data.v1alpha.BetweenFilter) oneFilter_, - getParentForChildren(), - isClean()); - oneFilter_ = null; - } - oneFilterCase_ = 7; - onChanged(); - ; - return betweenFilterBuilder_; - } - - private com.google.analytics.data.v1alpha.SegmentParameterFilterScoping filterScoping_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping, - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterScopingOrBuilder> - filterScopingBuilder_; - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - * - * @return Whether the filterScoping field is set. - */ - public boolean hasFilterScoping() { - return filterScopingBuilder_ != null || filterScoping_ != null; - } - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - * - * @return The filterScoping. - */ - public com.google.analytics.data.v1alpha.SegmentParameterFilterScoping getFilterScoping() { - if (filterScopingBuilder_ == null) { - return filterScoping_ == null - ? com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.getDefaultInstance() - : filterScoping_; - } else { - return filterScopingBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - */ - public Builder setFilterScoping( - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping value) { - if (filterScopingBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - filterScoping_ = value; - onChanged(); - } else { - filterScopingBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - */ - public Builder setFilterScoping( - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.Builder builderForValue) { - if (filterScopingBuilder_ == null) { - filterScoping_ = builderForValue.build(); - onChanged(); - } else { - filterScopingBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - */ - public Builder mergeFilterScoping( - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping value) { - if (filterScopingBuilder_ == null) { - if (filterScoping_ != null) { - filterScoping_ = - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.newBuilder( - filterScoping_) - .mergeFrom(value) - .buildPartial(); - } else { - filterScoping_ = value; - } - onChanged(); - } else { - filterScopingBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - */ - public Builder clearFilterScoping() { - if (filterScopingBuilder_ == null) { - filterScoping_ = null; - onChanged(); - } else { - filterScoping_ = null; - filterScopingBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - */ - public com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.Builder - getFilterScopingBuilder() { - - onChanged(); - return getFilterScopingFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - */ - public com.google.analytics.data.v1alpha.SegmentParameterFilterScopingOrBuilder - getFilterScopingOrBuilder() { - if (filterScopingBuilder_ != null) { - return filterScopingBuilder_.getMessageOrBuilder(); - } else { - return filterScoping_ == null - ? com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.getDefaultInstance() - : filterScoping_; - } - } - /** - * - * - *
-     * Specifies the scope for the filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping, - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterScopingOrBuilder> - getFilterScopingFieldBuilder() { - if (filterScopingBuilder_ == null) { - filterScopingBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping, - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterScopingOrBuilder>( - getFilterScoping(), getParentForChildren(), isClean()); - filterScoping_ = null; - } - return filterScopingBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.SegmentParameterFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentParameterFilter) - private static final com.google.analytics.data.v1alpha.SegmentParameterFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentParameterFilter(); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SegmentParameterFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpression.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpression.java deleted file mode 100644 index ce22e1c3..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpression.java +++ /dev/null @@ -1,1842 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Expresses combinations of segment filter on parameters.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentParameterFilterExpression} - */ -public final class SegmentParameterFilterExpression extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentParameterFilterExpression) - SegmentParameterFilterExpressionOrBuilder { - private static final long serialVersionUID = 0L; - // Use SegmentParameterFilterExpression.newBuilder() to construct. - private SegmentParameterFilterExpression( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SegmentParameterFilterExpression() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SegmentParameterFilterExpression(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.class, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.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), - SEGMENT_PARAMETER_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 SEGMENT_PARAMETER_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 SegmentParameterFilterExpression in `andGroup` have an AND
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; - * - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return exprCase_ == 1; - } - /** - * - * - *
-   * The SegmentParameterFilterExpression in `andGroup` have an AND
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList getAndGroup() { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .getDefaultInstance(); - } - /** - * - * - *
-   * The SegmentParameterFilterExpression in `andGroup` have an AND
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder - getAndGroupOrBuilder() { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .getDefaultInstance(); - } - - public static final int OR_GROUP_FIELD_NUMBER = 2; - /** - * - * - *
-   * The SegmentParameterFilterExpression in `orGroup` have an OR
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; - * - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return exprCase_ == 2; - } - /** - * - * - *
-   * The SegmentParameterFilterExpression in `orGroup` have an OR
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList getOrGroup() { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .getDefaultInstance(); - } - /** - * - * - *
-   * The SegmentParameterFilterExpression in `orGroup` have an OR
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder - getOrGroupOrBuilder() { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .getDefaultInstance(); - } - - public static final int NOT_EXPRESSION_FIELD_NUMBER = 3; - /** - * - * - *
-   * The SegmentParameterFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; - * - * - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 3; - } - /** - * - * - *
-   * The SegmentParameterFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; - * - * - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression getNotExpression() { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.getDefaultInstance(); - } - /** - * - * - *
-   * The SegmentParameterFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder - getNotExpressionOrBuilder() { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.getDefaultInstance(); - } - - public static final int SEGMENT_PARAMETER_FILTER_FIELD_NUMBER = 4; - /** - * - * - *
-   * A primitive segment parameter filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * - * - * @return Whether the segmentParameterFilter field is set. - */ - @java.lang.Override - public boolean hasSegmentParameterFilter() { - return exprCase_ == 4; - } - /** - * - * - *
-   * A primitive segment parameter filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * - * - * @return The segmentParameterFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilter getSegmentParameterFilter() { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_; - } - return com.google.analytics.data.v1alpha.SegmentParameterFilter.getDefaultInstance(); - } - /** - * - * - *
-   * A primitive segment parameter filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterOrBuilder - getSegmentParameterFilterOrBuilder() { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_; - } - return com.google.analytics.data.v1alpha.SegmentParameterFilter.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.v1alpha.SegmentParameterFilterExpressionList) expr_); - } - if (exprCase_ == 2) { - output.writeMessage( - 2, (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_); - } - if (exprCase_ == 3) { - output.writeMessage( - 3, (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_); - } - if (exprCase_ == 4) { - output.writeMessage(4, (com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_); - } - getUnknownFields().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.v1alpha.SegmentParameterFilterExpressionList) expr_); - } - if (exprCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_); - } - if (exprCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_); - } - if (exprCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.SegmentParameterFilterExpression)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression other = - (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) 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 (!getSegmentParameterFilter().equals(other.getSegmentParameterFilter())) return false; - break; - case 0: - default: - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (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) + SEGMENT_PARAMETER_FILTER_FIELD_NUMBER; - hash = (53 * hash) + getSegmentParameterFilter().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression 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.v1alpha.SegmentParameterFilterExpression parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression parseFrom( - 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.v1alpha.SegmentParameterFilterExpression parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression parseFrom( - java.io.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.v1alpha.SegmentParameterFilterExpression - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - parseDelimitedFrom( - java.io.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.v1alpha.SegmentParameterFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.SegmentParameterFilterExpression prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Expresses combinations of segment filter on parameters.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentParameterFilterExpression} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentParameterFilterExpression) - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.class, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder.class); - } - - // Construct using - // com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (andGroupBuilder_ != null) { - andGroupBuilder_.clear(); - } - if (orGroupBuilder_ != null) { - orGroupBuilder_.clear(); - } - if (notExpressionBuilder_ != null) { - notExpressionBuilder_.clear(); - } - if (segmentParameterFilterBuilder_ != null) { - segmentParameterFilterBuilder_.clear(); - } - exprCase_ = 0; - expr_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpression_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression build() { - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression buildPartial() { - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression result = - new com.google.analytics.data.v1alpha.SegmentParameterFilterExpression(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 (segmentParameterFilterBuilder_ == null) { - result.expr_ = expr_; - } else { - result.expr_ = segmentParameterFilterBuilder_.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.v1alpha.SegmentParameterFilterExpression) { - return mergeFrom( - (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression other) { - if (other - == com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - .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 SEGMENT_PARAMETER_FILTER: - { - mergeSegmentParameterFilter(other.getSegmentParameterFilter()); - break; - } - case EXPR_NOT_SET: - { - break; - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - getSegmentParameterFilterFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 4; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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.v1alpha.SegmentParameterFilterExpressionList, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder> - andGroupBuilder_; - /** - * - * - *
-     * The SegmentParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; - * - * - * @return Whether the andGroup field is set. - */ - @java.lang.Override - public boolean hasAndGroup() { - return exprCase_ == 1; - } - /** - * - * - *
-     * The SegmentParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; - * - * - * @return The andGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList getAndGroup() { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .getDefaultInstance(); - } else { - if (exprCase_ == 1) { - return andGroupBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The SegmentParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; - * - */ - public Builder setAndGroup( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - andGroupBuilder_.setMessage(value); - } - exprCase_ = 1; - return this; - } - /** - * - * - *
-     * The SegmentParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; - * - */ - public Builder setAndGroup( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder - builderForValue) { - if (andGroupBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - andGroupBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 1; - return this; - } - /** - * - * - *
-     * The SegmentParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; - * - */ - public Builder mergeAndGroup( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList value) { - if (andGroupBuilder_ == null) { - if (exprCase_ == 1 - && expr_ - != com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.newBuilder( - (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) - expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 1) { - andGroupBuilder_.mergeFrom(value); - } else { - andGroupBuilder_.setMessage(value); - } - } - exprCase_ = 1; - return this; - } - /** - * - * - *
-     * The SegmentParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList 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 SegmentParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; - * - */ - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder - getAndGroupBuilder() { - return getAndGroupFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The SegmentParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder - getAndGroupOrBuilder() { - if ((exprCase_ == 1) && (andGroupBuilder_ != null)) { - return andGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 1) { - return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The SegmentParameterFilterExpression in `andGroup` have an AND
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder> - getAndGroupFieldBuilder() { - if (andGroupBuilder_ == null) { - if (!(exprCase_ == 1)) { - expr_ = - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .getDefaultInstance(); - } - andGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder>( - (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 1; - onChanged(); - ; - return andGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder> - orGroupBuilder_; - /** - * - * - *
-     * The SegmentParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; - * - * - * @return Whether the orGroup field is set. - */ - @java.lang.Override - public boolean hasOrGroup() { - return exprCase_ == 2; - } - /** - * - * - *
-     * The SegmentParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; - * - * - * @return The orGroup. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList getOrGroup() { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .getDefaultInstance(); - } else { - if (exprCase_ == 2) { - return orGroupBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The SegmentParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; - * - */ - public Builder setOrGroup( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - orGroupBuilder_.setMessage(value); - } - exprCase_ = 2; - return this; - } - /** - * - * - *
-     * The SegmentParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; - * - */ - public Builder setOrGroup( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder - builderForValue) { - if (orGroupBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - orGroupBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 2; - return this; - } - /** - * - * - *
-     * The SegmentParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; - * - */ - public Builder mergeOrGroup( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList value) { - if (orGroupBuilder_ == null) { - if (exprCase_ == 2 - && expr_ - != com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.newBuilder( - (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) - expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 2) { - orGroupBuilder_.mergeFrom(value); - } else { - orGroupBuilder_.setMessage(value); - } - } - exprCase_ = 2; - return this; - } - /** - * - * - *
-     * The SegmentParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList 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 SegmentParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; - * - */ - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder - getOrGroupBuilder() { - return getOrGroupFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The SegmentParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder - getOrGroupOrBuilder() { - if ((exprCase_ == 2) && (orGroupBuilder_ != null)) { - return orGroupBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 2) { - return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_; - } - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The SegmentParameterFilterExpression in `orGroup` have an OR
-     * relationship.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder> - getOrGroupFieldBuilder() { - if (orGroupBuilder_ == null) { - if (!(exprCase_ == 2)) { - expr_ = - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .getDefaultInstance(); - } - orGroupBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder>( - (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 2; - onChanged(); - ; - return orGroupBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> - notExpressionBuilder_; - /** - * - * - *
-     * The SegmentParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; - * - * - * @return Whether the notExpression field is set. - */ - @java.lang.Override - public boolean hasNotExpression() { - return exprCase_ == 3; - } - /** - * - * - *
-     * The SegmentParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; - * - * - * @return The notExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression getNotExpression() { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - .getDefaultInstance(); - } else { - if (exprCase_ == 3) { - return notExpressionBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The SegmentParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; - * - */ - public Builder setNotExpression( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - notExpressionBuilder_.setMessage(value); - } - exprCase_ = 3; - return this; - } - /** - * - * - *
-     * The SegmentParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; - * - */ - public Builder setNotExpression( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder - builderForValue) { - if (notExpressionBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - notExpressionBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 3; - return this; - } - /** - * - * - *
-     * The SegmentParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; - * - */ - public Builder mergeNotExpression( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression value) { - if (notExpressionBuilder_ == null) { - if (exprCase_ == 3 - && expr_ - != com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - .getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.newBuilder( - (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 3) { - notExpressionBuilder_.mergeFrom(value); - } else { - notExpressionBuilder_.setMessage(value); - } - } - exprCase_ = 3; - return this; - } - /** - * - * - *
-     * The SegmentParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpression 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 SegmentParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; - * - */ - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder - getNotExpressionBuilder() { - return getNotExpressionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * The SegmentParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder - getNotExpressionOrBuilder() { - if ((exprCase_ == 3) && (notExpressionBuilder_ != null)) { - return notExpressionBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 3) { - return (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_; - } - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - .getDefaultInstance(); - } - } - /** - * - * - *
-     * The SegmentParameterFilterExpression is NOT of `notExpression`.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> - getNotExpressionFieldBuilder() { - if (notExpressionBuilder_ == null) { - if (!(exprCase_ == 3)) { - expr_ = - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - .getDefaultInstance(); - } - notExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder>( - (com.google.analytics.data.v1alpha.SegmentParameterFilterExpression) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 3; - onChanged(); - ; - return notExpressionBuilder_; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilter, - com.google.analytics.data.v1alpha.SegmentParameterFilter.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterOrBuilder> - segmentParameterFilterBuilder_; - /** - * - * - *
-     * A primitive segment parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * - * - * @return Whether the segmentParameterFilter field is set. - */ - @java.lang.Override - public boolean hasSegmentParameterFilter() { - return exprCase_ == 4; - } - /** - * - * - *
-     * A primitive segment parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * - * - * @return The segmentParameterFilter. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilter getSegmentParameterFilter() { - if (segmentParameterFilterBuilder_ == null) { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_; - } - return com.google.analytics.data.v1alpha.SegmentParameterFilter.getDefaultInstance(); - } else { - if (exprCase_ == 4) { - return segmentParameterFilterBuilder_.getMessage(); - } - return com.google.analytics.data.v1alpha.SegmentParameterFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A primitive segment parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * - */ - public Builder setSegmentParameterFilter( - com.google.analytics.data.v1alpha.SegmentParameterFilter value) { - if (segmentParameterFilterBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - expr_ = value; - onChanged(); - } else { - segmentParameterFilterBuilder_.setMessage(value); - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A primitive segment parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * - */ - public Builder setSegmentParameterFilter( - com.google.analytics.data.v1alpha.SegmentParameterFilter.Builder builderForValue) { - if (segmentParameterFilterBuilder_ == null) { - expr_ = builderForValue.build(); - onChanged(); - } else { - segmentParameterFilterBuilder_.setMessage(builderForValue.build()); - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A primitive segment parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * - */ - public Builder mergeSegmentParameterFilter( - com.google.analytics.data.v1alpha.SegmentParameterFilter value) { - if (segmentParameterFilterBuilder_ == null) { - if (exprCase_ == 4 - && expr_ - != com.google.analytics.data.v1alpha.SegmentParameterFilter.getDefaultInstance()) { - expr_ = - com.google.analytics.data.v1alpha.SegmentParameterFilter.newBuilder( - (com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_) - .mergeFrom(value) - .buildPartial(); - } else { - expr_ = value; - } - onChanged(); - } else { - if (exprCase_ == 4) { - segmentParameterFilterBuilder_.mergeFrom(value); - } else { - segmentParameterFilterBuilder_.setMessage(value); - } - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A primitive segment parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * - */ - public Builder clearSegmentParameterFilter() { - if (segmentParameterFilterBuilder_ == null) { - if (exprCase_ == 4) { - exprCase_ = 0; - expr_ = null; - onChanged(); - } - } else { - if (exprCase_ == 4) { - exprCase_ = 0; - expr_ = null; - } - segmentParameterFilterBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A primitive segment parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * - */ - public com.google.analytics.data.v1alpha.SegmentParameterFilter.Builder - getSegmentParameterFilterBuilder() { - return getSegmentParameterFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A primitive segment parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterOrBuilder - getSegmentParameterFilterOrBuilder() { - if ((exprCase_ == 4) && (segmentParameterFilterBuilder_ != null)) { - return segmentParameterFilterBuilder_.getMessageOrBuilder(); - } else { - if (exprCase_ == 4) { - return (com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_; - } - return com.google.analytics.data.v1alpha.SegmentParameterFilter.getDefaultInstance(); - } - } - /** - * - * - *
-     * A primitive segment parameter filter.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilter, - com.google.analytics.data.v1alpha.SegmentParameterFilter.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterOrBuilder> - getSegmentParameterFilterFieldBuilder() { - if (segmentParameterFilterBuilder_ == null) { - if (!(exprCase_ == 4)) { - expr_ = com.google.analytics.data.v1alpha.SegmentParameterFilter.getDefaultInstance(); - } - segmentParameterFilterBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilter, - com.google.analytics.data.v1alpha.SegmentParameterFilter.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterOrBuilder>( - (com.google.analytics.data.v1alpha.SegmentParameterFilter) expr_, - getParentForChildren(), - isClean()); - expr_ = null; - } - exprCase_ = 4; - onChanged(); - ; - return segmentParameterFilterBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.SegmentParameterFilterExpression) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentParameterFilterExpression) - private static final com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentParameterFilterExpression(); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SegmentParameterFilterExpression parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionList.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionList.java deleted file mode 100644 index d66536db..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionList.java +++ /dev/null @@ -1,1013 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * A list of segment parameter filter expressions.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentParameterFilterExpressionList} - */ -public final class SegmentParameterFilterExpressionList - extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) - SegmentParameterFilterExpressionListOrBuilder { - private static final long serialVersionUID = 0L; - // Use SegmentParameterFilterExpressionList.newBuilder() to construct. - private SegmentParameterFilterExpressionList( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SegmentParameterFilterExpressionList() { - expressions_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SegmentParameterFilterExpressionList(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.class, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder.class); - } - - public static final int EXPRESSIONS_FIELD_NUMBER = 1; - private java.util.List - expressions_; - /** - * - * - *
-   * The list of segment parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - @java.lang.Override - public java.util.List - getExpressionsList() { - return expressions_; - } - /** - * - * - *
-   * The list of segment parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> - getExpressionsOrBuilderList() { - return expressions_; - } - /** - * - * - *
-   * The list of segment parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - @java.lang.Override - public int getExpressionsCount() { - return expressions_.size(); - } - /** - * - * - *
-   * The list of segment parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression getExpressions( - int index) { - return expressions_.get(index); - } - /** - * - * - *
-   * The list of segment parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder - 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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList other = - (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) obj; - - if (!getExpressionsList().equals(other.getExpressionsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getExpressionsCount() > 0) { - hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; - hash = (53 * hash) + getExpressionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList 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.v1alpha.SegmentParameterFilterExpressionList parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList parseFrom( - 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.v1alpha.SegmentParameterFilterExpressionList parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList parseFrom( - java.io.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.v1alpha.SegmentParameterFilterExpressionList - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - parseDelimitedFrom( - java.io.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.v1alpha.SegmentParameterFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.SegmentParameterFilterExpressionList prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 segment parameter filter expressions.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentParameterFilterExpressionList} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.class, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.Builder.class); - } - - // Construct using - // com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (expressionsBuilder_ == null) { - expressions_ = java.util.Collections.emptyList(); - } else { - expressions_ = null; - expressionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterExpressionList_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList build() { - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList buildPartial() { - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList result = - new com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList(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.v1alpha.SegmentParameterFilterExpressionList) { - return mergeFrom( - (com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList other) { - if (other - == com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - .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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression m = - input.readMessage( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.parser(), - extensionRegistry); - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(m); - } else { - expressionsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List - expressions_ = java.util.Collections.emptyList(); - - private void ensureExpressionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - expressions_ = - new java.util.ArrayList< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression>(expressions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> - expressionsBuilder_; - - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public java.util.List - getExpressionsList() { - if (expressionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(expressions_); - } else { - return expressionsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public int getExpressionsCount() { - if (expressionsBuilder_ == null) { - return expressions_.size(); - } else { - return expressionsBuilder_.getCount(); - } - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression getExpressions( - int index) { - if (expressionsBuilder_ == null) { - return expressions_.get(index); - } else { - return expressionsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public Builder setExpressions( - int index, com.google.analytics.data.v1alpha.SegmentParameterFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.set(index, value); - onChanged(); - } else { - expressionsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public Builder setExpressions( - int index, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder - builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.set(index, builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public Builder addExpressions( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.add(value); - onChanged(); - } else { - expressionsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public Builder addExpressions( - int index, com.google.analytics.data.v1alpha.SegmentParameterFilterExpression value) { - if (expressionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExpressionsIsMutable(); - expressions_.add(index, value); - onChanged(); - } else { - expressionsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public Builder addExpressions( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder - builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public Builder addExpressions( - int index, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder - builderForValue) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(index, builderForValue.build()); - onChanged(); - } else { - expressionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public Builder addAllExpressions( - java.lang.Iterable< - ? extends com.google.analytics.data.v1alpha.SegmentParameterFilterExpression> - values) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, expressions_); - onChanged(); - } else { - expressionsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public Builder clearExpressions() { - if (expressionsBuilder_ == null) { - expressions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - expressionsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public Builder removeExpressions(int index) { - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.remove(index); - onChanged(); - } else { - expressionsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder - getExpressionsBuilder(int index) { - return getExpressionsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder - getExpressionsOrBuilder(int index) { - if (expressionsBuilder_ == null) { - return expressions_.get(index); - } else { - return expressionsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public java.util.List< - ? extends com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> - getExpressionsOrBuilderList() { - if (expressionsBuilder_ != null) { - return expressionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(expressions_); - } - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder - addExpressionsBuilder() { - return getExpressionsFieldBuilder() - .addBuilder( - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - .getDefaultInstance()); - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder - addExpressionsBuilder(int index) { - return getExpressionsFieldBuilder() - .addBuilder( - index, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression - .getDefaultInstance()); - } - /** - * - * - *
-     * The list of segment parameter filter expressions.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - public java.util.List< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder> - getExpressionsBuilderList() { - return getExpressionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> - getExpressionsFieldBuilder() { - if (expressionsBuilder_ == null) { - expressionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder>( - 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.v1alpha.SegmentParameterFilterExpressionList) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) - private static final com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList(); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SegmentParameterFilterExpressionList parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionListOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionListOrBuilder.java deleted file mode 100644 index 2313d641..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionListOrBuilder.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface SegmentParameterFilterExpressionListOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentParameterFilterExpressionList) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The list of segment parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - java.util.List - getExpressionsList(); - /** - * - * - *
-   * The list of segment parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression getExpressions(int index); - /** - * - * - *
-   * The list of segment parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - int getExpressionsCount(); - /** - * - * - *
-   * The list of segment parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - java.util.List< - ? extends com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder> - getExpressionsOrBuilderList(); - /** - * - * - *
-   * The list of segment parameter filter expressions.
-   * 
- * - * repeated .google.analytics.data.v1alpha.SegmentParameterFilterExpression expressions = 1; - * - */ - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder - getExpressionsOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionOrBuilder.java deleted file mode 100644 index 9e180515..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterExpressionOrBuilder.java +++ /dev/null @@ -1,183 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface SegmentParameterFilterExpressionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentParameterFilterExpression) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The SegmentParameterFilterExpression in `andGroup` have an AND
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; - * - * @return Whether the andGroup field is set. - */ - boolean hasAndGroup(); - /** - * - * - *
-   * The SegmentParameterFilterExpression in `andGroup` have an AND
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; - * - * @return The andGroup. - */ - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList getAndGroup(); - /** - * - * - *
-   * The SegmentParameterFilterExpression in `andGroup` have an AND
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList and_group = 1; - */ - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder - getAndGroupOrBuilder(); - - /** - * - * - *
-   * The SegmentParameterFilterExpression in `orGroup` have an OR
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; - * - * @return Whether the orGroup field is set. - */ - boolean hasOrGroup(); - /** - * - * - *
-   * The SegmentParameterFilterExpression in `orGroup` have an OR
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; - * - * @return The orGroup. - */ - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionList getOrGroup(); - /** - * - * - *
-   * The SegmentParameterFilterExpression in `orGroup` have an OR
-   * relationship.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpressionList or_group = 2; - */ - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionListOrBuilder - getOrGroupOrBuilder(); - - /** - * - * - *
-   * The SegmentParameterFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; - * - * - * @return Whether the notExpression field is set. - */ - boolean hasNotExpression(); - /** - * - * - *
-   * The SegmentParameterFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; - * - * - * @return The notExpression. - */ - com.google.analytics.data.v1alpha.SegmentParameterFilterExpression getNotExpression(); - /** - * - * - *
-   * The SegmentParameterFilterExpression is NOT of `notExpression`.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterExpression not_expression = 3; - * - */ - com.google.analytics.data.v1alpha.SegmentParameterFilterExpressionOrBuilder - getNotExpressionOrBuilder(); - - /** - * - * - *
-   * A primitive segment parameter filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * - * - * @return Whether the segmentParameterFilter field is set. - */ - boolean hasSegmentParameterFilter(); - /** - * - * - *
-   * A primitive segment parameter filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * - * - * @return The segmentParameterFilter. - */ - com.google.analytics.data.v1alpha.SegmentParameterFilter getSegmentParameterFilter(); - /** - * - * - *
-   * A primitive segment parameter filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilter segment_parameter_filter = 4; - * - */ - com.google.analytics.data.v1alpha.SegmentParameterFilterOrBuilder - getSegmentParameterFilterOrBuilder(); - - public com.google.analytics.data.v1alpha.SegmentParameterFilterExpression.ExprCase getExprCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterOrBuilder.java deleted file mode 100644 index fb56b041..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterOrBuilder.java +++ /dev/null @@ -1,322 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface SegmentParameterFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentParameterFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * This filter will be evaluated on the specified event parameter. Event
-   * parameters are logged as parameters of the event. Event parameters
-   * include fields like "firebase_screen" & "currency".
-   * Event parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * 
- * - * string event_parameter_name = 1; - * - * @return Whether the eventParameterName field is set. - */ - boolean hasEventParameterName(); - /** - * - * - *
-   * This filter will be evaluated on the specified event parameter. Event
-   * parameters are logged as parameters of the event. Event parameters
-   * include fields like "firebase_screen" & "currency".
-   * Event parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * 
- * - * string event_parameter_name = 1; - * - * @return The eventParameterName. - */ - java.lang.String getEventParameterName(); - /** - * - * - *
-   * This filter will be evaluated on the specified event parameter. Event
-   * parameters are logged as parameters of the event. Event parameters
-   * include fields like "firebase_screen" & "currency".
-   * Event parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * 
- * - * string event_parameter_name = 1; - * - * @return The bytes for eventParameterName. - */ - com.google.protobuf.ByteString getEventParameterNameBytes(); - - /** - * - * - *
-   * This filter will be evaluated on the specified item parameter. Item
-   * parameters are logged as parameters in the item array. Item parameters
-   * include fields like "item_name" & "item_category".
-   * Item parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * Item parameters are only available in ecommerce events. To learn more
-   * about ecommerce events, see the [Measure ecommerce]
-   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-   * guide.
-   * 
- * - * string item_parameter_name = 2; - * - * @return Whether the itemParameterName field is set. - */ - boolean hasItemParameterName(); - /** - * - * - *
-   * This filter will be evaluated on the specified item parameter. Item
-   * parameters are logged as parameters in the item array. Item parameters
-   * include fields like "item_name" & "item_category".
-   * Item parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * Item parameters are only available in ecommerce events. To learn more
-   * about ecommerce events, see the [Measure ecommerce]
-   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-   * guide.
-   * 
- * - * string item_parameter_name = 2; - * - * @return The itemParameterName. - */ - java.lang.String getItemParameterName(); - /** - * - * - *
-   * This filter will be evaluated on the specified item parameter. Item
-   * parameters are logged as parameters in the item array. Item parameters
-   * include fields like "item_name" & "item_category".
-   * Item parameters can only be used in segments & funnels and can only be
-   * used in a descendent filter from an EventFilter. In a descendent filter
-   * from an EventFilter either event or item parameters should be used.
-   * Item parameters are only available in ecommerce events. To learn more
-   * about ecommerce events, see the [Measure ecommerce]
-   * (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce)
-   * guide.
-   * 
- * - * string item_parameter_name = 2; - * - * @return The bytes for itemParameterName. - */ - com.google.protobuf.ByteString getItemParameterNameBytes(); - - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return Whether the stringFilter field is set. - */ - boolean hasStringFilter(); - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - * - * @return The stringFilter. - */ - com.google.analytics.data.v1alpha.StringFilter getStringFilter(); - /** - * - * - *
-   * Strings related filter.
-   * 
- * - * .google.analytics.data.v1alpha.StringFilter string_filter = 4; - */ - com.google.analytics.data.v1alpha.StringFilterOrBuilder getStringFilterOrBuilder(); - - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return Whether the inListFilter field is set. - */ - boolean hasInListFilter(); - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - * - * @return The inListFilter. - */ - com.google.analytics.data.v1alpha.InListFilter getInListFilter(); - /** - * - * - *
-   * A filter for in list values.
-   * 
- * - * .google.analytics.data.v1alpha.InListFilter in_list_filter = 5; - */ - com.google.analytics.data.v1alpha.InListFilterOrBuilder getInListFilterOrBuilder(); - - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return Whether the numericFilter field is set. - */ - boolean hasNumericFilter(); - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - * - * @return The numericFilter. - */ - com.google.analytics.data.v1alpha.NumericFilter getNumericFilter(); - /** - * - * - *
-   * A filter for numeric or date values.
-   * 
- * - * .google.analytics.data.v1alpha.NumericFilter numeric_filter = 6; - */ - com.google.analytics.data.v1alpha.NumericFilterOrBuilder getNumericFilterOrBuilder(); - - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return Whether the betweenFilter field is set. - */ - boolean hasBetweenFilter(); - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - * - * @return The betweenFilter. - */ - com.google.analytics.data.v1alpha.BetweenFilter getBetweenFilter(); - /** - * - * - *
-   * A filter for between two values.
-   * 
- * - * .google.analytics.data.v1alpha.BetweenFilter between_filter = 7; - */ - com.google.analytics.data.v1alpha.BetweenFilterOrBuilder getBetweenFilterOrBuilder(); - - /** - * - * - *
-   * Specifies the scope for the filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - * - * @return Whether the filterScoping field is set. - */ - boolean hasFilterScoping(); - /** - * - * - *
-   * Specifies the scope for the filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - * - * @return The filterScoping. - */ - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping getFilterScoping(); - /** - * - * - *
-   * Specifies the scope for the filter.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentParameterFilterScoping filter_scoping = 8; - */ - com.google.analytics.data.v1alpha.SegmentParameterFilterScopingOrBuilder - getFilterScopingOrBuilder(); - - public com.google.analytics.data.v1alpha.SegmentParameterFilter.OneParameterCase - getOneParameterCase(); - - public com.google.analytics.data.v1alpha.SegmentParameterFilter.OneFilterCase getOneFilterCase(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScoping.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScoping.java deleted file mode 100644 index 57f3da35..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScoping.java +++ /dev/null @@ -1,700 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Scopings specify how multiple events should be considered when evaluating a
- * segment parameter filter.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentParameterFilterScoping} - */ -public final class SegmentParameterFilterScoping extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SegmentParameterFilterScoping) - SegmentParameterFilterScopingOrBuilder { - private static final long serialVersionUID = 0L; - // Use SegmentParameterFilterScoping.newBuilder() to construct. - private SegmentParameterFilterScoping(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SegmentParameterFilterScoping() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SegmentParameterFilterScoping(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.class, - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.Builder.class); - } - - private int bitField0_; - public static final int IN_ANY_N_DAY_PERIOD_FIELD_NUMBER = 1; - private long inAnyNDayPeriod_; - /** - * - * - *
-   * Accumulates the parameter over the specified period of days before
-   * applying the filter. Only supported if criteria scoping is
-   * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
-   * parameter is `event_count`.
-   * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
-   * the event parameter is "event_count", and the Filter's criteria is
-   * greater than 5, this filter will accumulate the event count of purchase
-   * events over every 3 consecutive day period in the report's date range; a
-   * user will pass this Filter's criteria to be included in this segment if
-   * their count of purchase events exceeds 5 in any 3 consecutive day period.
-   * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
-   * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
-   * The date range is not extended for the purpose of having a full N day
-   * window near the start of the date range. For example if a report is for
-   * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
-   * period will be effectively shortened because no event data outside the
-   * report's date range will be read. For example, the first four periods
-   * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
-   * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
-   * `inAnyNDayPeriod` is optional. If not specified, the
-   * `segmentParameterFilter` is applied to each event individually.
-   * 
- * - * optional int64 in_any_n_day_period = 1; - * - * @return Whether the inAnyNDayPeriod field is set. - */ - @java.lang.Override - public boolean hasInAnyNDayPeriod() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-   * Accumulates the parameter over the specified period of days before
-   * applying the filter. Only supported if criteria scoping is
-   * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
-   * parameter is `event_count`.
-   * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
-   * the event parameter is "event_count", and the Filter's criteria is
-   * greater than 5, this filter will accumulate the event count of purchase
-   * events over every 3 consecutive day period in the report's date range; a
-   * user will pass this Filter's criteria to be included in this segment if
-   * their count of purchase events exceeds 5 in any 3 consecutive day period.
-   * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
-   * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
-   * The date range is not extended for the purpose of having a full N day
-   * window near the start of the date range. For example if a report is for
-   * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
-   * period will be effectively shortened because no event data outside the
-   * report's date range will be read. For example, the first four periods
-   * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
-   * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
-   * `inAnyNDayPeriod` is optional. If not specified, the
-   * `segmentParameterFilter` is applied to each event individually.
-   * 
- * - * optional int64 in_any_n_day_period = 1; - * - * @return The inAnyNDayPeriod. - */ - @java.lang.Override - public long getInAnyNDayPeriod() { - return inAnyNDayPeriod_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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.writeInt64(1, inAnyNDayPeriod_); - } - getUnknownFields().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.computeInt64Size(1, inAnyNDayPeriod_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.SegmentParameterFilterScoping)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping other = - (com.google.analytics.data.v1alpha.SegmentParameterFilterScoping) obj; - - if (hasInAnyNDayPeriod() != other.hasInAnyNDayPeriod()) return false; - if (hasInAnyNDayPeriod()) { - if (getInAnyNDayPeriod() != other.getInAnyNDayPeriod()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasInAnyNDayPeriod()) { - hash = (37 * hash) + IN_ANY_N_DAY_PERIOD_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getInAnyNDayPeriod()); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping 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.v1alpha.SegmentParameterFilterScoping parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping parseFrom( - 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.v1alpha.SegmentParameterFilterScoping parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping parseFrom( - java.io.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.v1alpha.SegmentParameterFilterScoping parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping parseDelimitedFrom( - java.io.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.v1alpha.SegmentParameterFilterScoping parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.SegmentParameterFilterScoping prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Scopings specify how multiple events should be considered when evaluating a
-   * segment parameter filter.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SegmentParameterFilterScoping} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SegmentParameterFilterScoping) - com.google.analytics.data.v1alpha.SegmentParameterFilterScopingOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.class, - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - inAnyNDayPeriod_ = 0L; - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SegmentParameterFilterScoping_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterScoping - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterScoping build() { - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterScoping buildPartial() { - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping result = - new com.google.analytics.data.v1alpha.SegmentParameterFilterScoping(this); - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.inAnyNDayPeriod_ = inAnyNDayPeriod_; - to_bitField0_ |= 0x00000001; - } - 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.v1alpha.SegmentParameterFilterScoping) { - return mergeFrom((com.google.analytics.data.v1alpha.SegmentParameterFilterScoping) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.data.v1alpha.SegmentParameterFilterScoping other) { - if (other - == com.google.analytics.data.v1alpha.SegmentParameterFilterScoping.getDefaultInstance()) - return this; - if (other.hasInAnyNDayPeriod()) { - setInAnyNDayPeriod(other.getInAnyNDayPeriod()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - inAnyNDayPeriod_ = input.readInt64(); - bitField0_ |= 0x00000001; - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private long inAnyNDayPeriod_; - /** - * - * - *
-     * Accumulates the parameter over the specified period of days before
-     * applying the filter. Only supported if criteria scoping is
-     * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
-     * parameter is `event_count`.
-     * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
-     * the event parameter is "event_count", and the Filter's criteria is
-     * greater than 5, this filter will accumulate the event count of purchase
-     * events over every 3 consecutive day period in the report's date range; a
-     * user will pass this Filter's criteria to be included in this segment if
-     * their count of purchase events exceeds 5 in any 3 consecutive day period.
-     * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
-     * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
-     * The date range is not extended for the purpose of having a full N day
-     * window near the start of the date range. For example if a report is for
-     * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
-     * period will be effectively shortened because no event data outside the
-     * report's date range will be read. For example, the first four periods
-     * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
-     * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
-     * `inAnyNDayPeriod` is optional. If not specified, the
-     * `segmentParameterFilter` is applied to each event individually.
-     * 
- * - * optional int64 in_any_n_day_period = 1; - * - * @return Whether the inAnyNDayPeriod field is set. - */ - @java.lang.Override - public boolean hasInAnyNDayPeriod() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * - * - *
-     * Accumulates the parameter over the specified period of days before
-     * applying the filter. Only supported if criteria scoping is
-     * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
-     * parameter is `event_count`.
-     * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
-     * the event parameter is "event_count", and the Filter's criteria is
-     * greater than 5, this filter will accumulate the event count of purchase
-     * events over every 3 consecutive day period in the report's date range; a
-     * user will pass this Filter's criteria to be included in this segment if
-     * their count of purchase events exceeds 5 in any 3 consecutive day period.
-     * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
-     * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
-     * The date range is not extended for the purpose of having a full N day
-     * window near the start of the date range. For example if a report is for
-     * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
-     * period will be effectively shortened because no event data outside the
-     * report's date range will be read. For example, the first four periods
-     * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
-     * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
-     * `inAnyNDayPeriod` is optional. If not specified, the
-     * `segmentParameterFilter` is applied to each event individually.
-     * 
- * - * optional int64 in_any_n_day_period = 1; - * - * @return The inAnyNDayPeriod. - */ - @java.lang.Override - public long getInAnyNDayPeriod() { - return inAnyNDayPeriod_; - } - /** - * - * - *
-     * Accumulates the parameter over the specified period of days before
-     * applying the filter. Only supported if criteria scoping is
-     * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
-     * parameter is `event_count`.
-     * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
-     * the event parameter is "event_count", and the Filter's criteria is
-     * greater than 5, this filter will accumulate the event count of purchase
-     * events over every 3 consecutive day period in the report's date range; a
-     * user will pass this Filter's criteria to be included in this segment if
-     * their count of purchase events exceeds 5 in any 3 consecutive day period.
-     * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
-     * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
-     * The date range is not extended for the purpose of having a full N day
-     * window near the start of the date range. For example if a report is for
-     * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
-     * period will be effectively shortened because no event data outside the
-     * report's date range will be read. For example, the first four periods
-     * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
-     * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
-     * `inAnyNDayPeriod` is optional. If not specified, the
-     * `segmentParameterFilter` is applied to each event individually.
-     * 
- * - * optional int64 in_any_n_day_period = 1; - * - * @param value The inAnyNDayPeriod to set. - * @return This builder for chaining. - */ - public Builder setInAnyNDayPeriod(long value) { - bitField0_ |= 0x00000001; - inAnyNDayPeriod_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Accumulates the parameter over the specified period of days before
-     * applying the filter. Only supported if criteria scoping is
-     * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
-     * parameter is `event_count`.
-     * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
-     * the event parameter is "event_count", and the Filter's criteria is
-     * greater than 5, this filter will accumulate the event count of purchase
-     * events over every 3 consecutive day period in the report's date range; a
-     * user will pass this Filter's criteria to be included in this segment if
-     * their count of purchase events exceeds 5 in any 3 consecutive day period.
-     * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
-     * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
-     * The date range is not extended for the purpose of having a full N day
-     * window near the start of the date range. For example if a report is for
-     * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
-     * period will be effectively shortened because no event data outside the
-     * report's date range will be read. For example, the first four periods
-     * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
-     * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
-     * `inAnyNDayPeriod` is optional. If not specified, the
-     * `segmentParameterFilter` is applied to each event individually.
-     * 
- * - * optional int64 in_any_n_day_period = 1; - * - * @return This builder for chaining. - */ - public Builder clearInAnyNDayPeriod() { - bitField0_ = (bitField0_ & ~0x00000001); - inAnyNDayPeriod_ = 0L; - onChanged(); - return this; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - // @@protoc_insertion_point(builder_scope:google.analytics.data.v1alpha.SegmentParameterFilterScoping) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SegmentParameterFilterScoping) - private static final com.google.analytics.data.v1alpha.SegmentParameterFilterScoping - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SegmentParameterFilterScoping(); - } - - public static com.google.analytics.data.v1alpha.SegmentParameterFilterScoping - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SegmentParameterFilterScoping parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentParameterFilterScoping - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScopingOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScopingOrBuilder.java deleted file mode 100644 index 17241195..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SegmentParameterFilterScopingOrBuilder.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface SegmentParameterFilterScopingOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SegmentParameterFilterScoping) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Accumulates the parameter over the specified period of days before
-   * applying the filter. Only supported if criteria scoping is
-   * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
-   * parameter is `event_count`.
-   * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
-   * the event parameter is "event_count", and the Filter's criteria is
-   * greater than 5, this filter will accumulate the event count of purchase
-   * events over every 3 consecutive day period in the report's date range; a
-   * user will pass this Filter's criteria to be included in this segment if
-   * their count of purchase events exceeds 5 in any 3 consecutive day period.
-   * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
-   * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
-   * The date range is not extended for the purpose of having a full N day
-   * window near the start of the date range. For example if a report is for
-   * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
-   * period will be effectively shortened because no event data outside the
-   * report's date range will be read. For example, the first four periods
-   * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
-   * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
-   * `inAnyNDayPeriod` is optional. If not specified, the
-   * `segmentParameterFilter` is applied to each event individually.
-   * 
- * - * optional int64 in_any_n_day_period = 1; - * - * @return Whether the inAnyNDayPeriod field is set. - */ - boolean hasInAnyNDayPeriod(); - /** - * - * - *
-   * Accumulates the parameter over the specified period of days before
-   * applying the filter. Only supported if criteria scoping is
-   * `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the
-   * parameter is `event_count`.
-   * For example if `inAnyNDayPeriod` is 3, the event_name is "purchase",
-   * the event parameter is "event_count", and the Filter's criteria is
-   * greater than 5, this filter will accumulate the event count of purchase
-   * events over every 3 consecutive day period in the report's date range; a
-   * user will pass this Filter's criteria to be included in this segment if
-   * their count of purchase events exceeds 5 in any 3 consecutive day period.
-   * For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to
-   * 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered.
-   * The date range is not extended for the purpose of having a full N day
-   * window near the start of the date range. For example if a report is for
-   * 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day
-   * period will be effectively shortened because no event data outside the
-   * report's date range will be read. For example, the first four periods
-   * will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02,
-   * 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04.
-   * `inAnyNDayPeriod` is optional. If not specified, the
-   * `segmentParameterFilter` is applied to each event individually.
-   * 
- * - * optional int64 in_any_n_day_period = 1; - * - * @return The inAnyNDayPeriod. - */ - long getInAnyNDayPeriod(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionCriteriaScoping.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionCriteriaScoping.java deleted file mode 100644 index 248c60ef..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionCriteriaScoping.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Scoping specifies which events are considered when evaluating if a
- * session meets a criteria.
- * 
- * - * Protobuf enum {@code google.analytics.data.v1alpha.SessionCriteriaScoping} - */ -public enum SessionCriteriaScoping implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Unspecified criteria scoping. Do not specify.
-   * 
- * - * SESSION_CRITERIA_SCOPING_UNSPECIFIED = 0; - */ - SESSION_CRITERIA_SCOPING_UNSPECIFIED(0), - /** - * - * - *
-   * If the criteria is satisfied within one event, the session matches the
-   * criteria.
-   * 
- * - * SESSION_CRITERIA_WITHIN_SAME_EVENT = 1; - */ - SESSION_CRITERIA_WITHIN_SAME_EVENT(1), - /** - * - * - *
-   * If the criteria is satisfied within one session, the session matches
-   * the criteria.
-   * 
- * - * SESSION_CRITERIA_WITHIN_SAME_SESSION = 2; - */ - SESSION_CRITERIA_WITHIN_SAME_SESSION(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Unspecified criteria scoping. Do not specify.
-   * 
- * - * SESSION_CRITERIA_SCOPING_UNSPECIFIED = 0; - */ - public static final int SESSION_CRITERIA_SCOPING_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * If the criteria is satisfied within one event, the session matches the
-   * criteria.
-   * 
- * - * SESSION_CRITERIA_WITHIN_SAME_EVENT = 1; - */ - public static final int SESSION_CRITERIA_WITHIN_SAME_EVENT_VALUE = 1; - /** - * - * - *
-   * If the criteria is satisfied within one session, the session matches
-   * the criteria.
-   * 
- * - * SESSION_CRITERIA_WITHIN_SAME_SESSION = 2; - */ - public static final int SESSION_CRITERIA_WITHIN_SAME_SESSION_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 SessionCriteriaScoping 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 SessionCriteriaScoping forNumber(int value) { - switch (value) { - case 0: - return SESSION_CRITERIA_SCOPING_UNSPECIFIED; - case 1: - return SESSION_CRITERIA_WITHIN_SAME_EVENT; - case 2: - return SESSION_CRITERIA_WITHIN_SAME_SESSION; - 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 SessionCriteriaScoping findValueByNumber(int number) { - return SessionCriteriaScoping.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.v1alpha.ReportingApiProto.getDescriptor() - .getEnumTypes() - .get(2); - } - - private static final SessionCriteriaScoping[] VALUES = values(); - - public static SessionCriteriaScoping 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 SessionCriteriaScoping(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.SessionCriteriaScoping) -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionExclusionDuration.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionExclusionDuration.java deleted file mode 100644 index 7e0ba958..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionExclusionDuration.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Enumerates options for how long an exclusion will last if a session
- * matches the `sessionExclusionCriteria`.
- * 
- * - * Protobuf enum {@code google.analytics.data.v1alpha.SessionExclusionDuration} - */ -public enum SessionExclusionDuration implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Unspecified exclusion duration. Do not specify.
-   * 
- * - * SESSION_EXCLUSION_DURATION_UNSPECIFIED = 0; - */ - SESSION_EXCLUSION_DURATION_UNSPECIFIED(0), - /** - * - * - *
-   * Temporarily exclude sessions from the segment during periods when the
-   * session meets the `sessionExclusionCriteria` condition.
-   * 
- * - * SESSION_EXCLUSION_TEMPORARY = 1; - */ - SESSION_EXCLUSION_TEMPORARY(1), - /** - * - * - *
-   * Permanently exclude sessions from the segment if the session ever meets
-   * the `sessionExclusionCriteria` condition.
-   * 
- * - * SESSION_EXCLUSION_PERMANENT = 2; - */ - SESSION_EXCLUSION_PERMANENT(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Unspecified exclusion duration. Do not specify.
-   * 
- * - * SESSION_EXCLUSION_DURATION_UNSPECIFIED = 0; - */ - public static final int SESSION_EXCLUSION_DURATION_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Temporarily exclude sessions from the segment during periods when the
-   * session meets the `sessionExclusionCriteria` condition.
-   * 
- * - * SESSION_EXCLUSION_TEMPORARY = 1; - */ - public static final int SESSION_EXCLUSION_TEMPORARY_VALUE = 1; - /** - * - * - *
-   * Permanently exclude sessions from the segment if the session ever meets
-   * the `sessionExclusionCriteria` condition.
-   * 
- * - * SESSION_EXCLUSION_PERMANENT = 2; - */ - public static final int SESSION_EXCLUSION_PERMANENT_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 SessionExclusionDuration 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 SessionExclusionDuration forNumber(int value) { - switch (value) { - case 0: - return SESSION_EXCLUSION_DURATION_UNSPECIFIED; - case 1: - return SESSION_EXCLUSION_TEMPORARY; - case 2: - return SESSION_EXCLUSION_PERMANENT; - 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 SessionExclusionDuration findValueByNumber(int number) { - return SessionExclusionDuration.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.v1alpha.ReportingApiProto.getDescriptor() - .getEnumTypes() - .get(3); - } - - private static final SessionExclusionDuration[] VALUES = values(); - - public static SessionExclusionDuration 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 SessionExclusionDuration(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.SessionExclusionDuration) -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegment.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegment.java deleted file mode 100644 index ada286f7..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegment.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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Session segments are subsets of the sessions that occurred on your site or
- * app: for example, all the sessions that originated from a particular
- * advertising campaign.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SessionSegment} - */ -public final class SessionSegment extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SessionSegment) - SessionSegmentOrBuilder { - private static final long serialVersionUID = 0L; - // Use SessionSegment.newBuilder() to construct. - private SessionSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SessionSegment() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SessionSegment(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SessionSegment.class, - com.google.analytics.data.v1alpha.SessionSegment.Builder.class); - } - - public static final int SESSION_INCLUSION_CRITERIA_FIELD_NUMBER = 1; - private com.google.analytics.data.v1alpha.SessionSegmentCriteria sessionInclusionCriteria_; - /** - * - * - *
-   * Defines which sessions are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * - * - * @return Whether the sessionInclusionCriteria field is set. - */ - @java.lang.Override - public boolean hasSessionInclusionCriteria() { - return sessionInclusionCriteria_ != null; - } - /** - * - * - *
-   * Defines which sessions are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * - * - * @return The sessionInclusionCriteria. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentCriteria getSessionInclusionCriteria() { - return sessionInclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.SessionSegmentCriteria.getDefaultInstance() - : sessionInclusionCriteria_; - } - /** - * - * - *
-   * Defines which sessions are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder - getSessionInclusionCriteriaOrBuilder() { - return getSessionInclusionCriteria(); - } - - public static final int EXCLUSION_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.SessionSegmentExclusion exclusion_; - /** - * - * - *
-   * Defines which sessions are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - * - * @return Whether the exclusion field is set. - */ - @java.lang.Override - public boolean hasExclusion() { - return exclusion_ != null; - } - /** - * - * - *
-   * Defines which sessions are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - * - * @return The exclusion. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentExclusion getExclusion() { - return exclusion_ == null - ? com.google.analytics.data.v1alpha.SessionSegmentExclusion.getDefaultInstance() - : exclusion_; - } - /** - * - * - *
-   * Defines which sessions are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentExclusionOrBuilder - getExclusionOrBuilder() { - return getExclusion(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (sessionInclusionCriteria_ != null) { - output.writeMessage(1, getSessionInclusionCriteria()); - } - if (exclusion_ != null) { - output.writeMessage(2, getExclusion()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sessionInclusionCriteria_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, getSessionInclusionCriteria()); - } - if (exclusion_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.SessionSegment)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.SessionSegment other = - (com.google.analytics.data.v1alpha.SessionSegment) obj; - - if (hasSessionInclusionCriteria() != other.hasSessionInclusionCriteria()) return false; - if (hasSessionInclusionCriteria()) { - if (!getSessionInclusionCriteria().equals(other.getSessionInclusionCriteria())) return false; - } - if (hasExclusion() != other.hasExclusion()) return false; - if (hasExclusion()) { - if (!getExclusion().equals(other.getExclusion())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasSessionInclusionCriteria()) { - hash = (37 * hash) + SESSION_INCLUSION_CRITERIA_FIELD_NUMBER; - hash = (53 * hash) + getSessionInclusionCriteria().hashCode(); - } - if (hasExclusion()) { - hash = (37 * hash) + EXCLUSION_FIELD_NUMBER; - hash = (53 * hash) + getExclusion().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.SessionSegment parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SessionSegment 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.v1alpha.SessionSegment parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SessionSegment parseFrom( - 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.v1alpha.SessionSegment parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SessionSegment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SessionSegment parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SessionSegment parseFrom( - java.io.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.v1alpha.SessionSegment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SessionSegment parseDelimitedFrom( - java.io.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.v1alpha.SessionSegment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SessionSegment parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.SessionSegment prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Session segments are subsets of the sessions that occurred on your site or
-   * app: for example, all the sessions that originated from a particular
-   * advertising campaign.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SessionSegment} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SessionSegment) - com.google.analytics.data.v1alpha.SessionSegmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SessionSegment.class, - com.google.analytics.data.v1alpha.SessionSegment.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.SessionSegment.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (sessionInclusionCriteriaBuilder_ == null) { - sessionInclusionCriteria_ = null; - } else { - sessionInclusionCriteria_ = null; - sessionInclusionCriteriaBuilder_ = null; - } - if (exclusionBuilder_ == null) { - exclusion_ = null; - } else { - exclusion_ = null; - exclusionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegment_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegment getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegment build() { - com.google.analytics.data.v1alpha.SessionSegment result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegment buildPartial() { - com.google.analytics.data.v1alpha.SessionSegment result = - new com.google.analytics.data.v1alpha.SessionSegment(this); - if (sessionInclusionCriteriaBuilder_ == null) { - result.sessionInclusionCriteria_ = sessionInclusionCriteria_; - } else { - result.sessionInclusionCriteria_ = sessionInclusionCriteriaBuilder_.build(); - } - if (exclusionBuilder_ == null) { - result.exclusion_ = exclusion_; - } else { - result.exclusion_ = exclusionBuilder_.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.v1alpha.SessionSegment) { - return mergeFrom((com.google.analytics.data.v1alpha.SessionSegment) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.SessionSegment other) { - if (other == com.google.analytics.data.v1alpha.SessionSegment.getDefaultInstance()) - return this; - if (other.hasSessionInclusionCriteria()) { - mergeSessionInclusionCriteria(other.getSessionInclusionCriteria()); - } - if (other.hasExclusion()) { - mergeExclusion(other.getExclusion()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getSessionInclusionCriteriaFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getExclusionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.analytics.data.v1alpha.SessionSegmentCriteria sessionInclusionCriteria_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SessionSegmentCriteria, - com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder> - sessionInclusionCriteriaBuilder_; - /** - * - * - *
-     * Defines which sessions are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * - * - * @return Whether the sessionInclusionCriteria field is set. - */ - public boolean hasSessionInclusionCriteria() { - return sessionInclusionCriteriaBuilder_ != null || sessionInclusionCriteria_ != null; - } - /** - * - * - *
-     * Defines which sessions are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * - * - * @return The sessionInclusionCriteria. - */ - public com.google.analytics.data.v1alpha.SessionSegmentCriteria getSessionInclusionCriteria() { - if (sessionInclusionCriteriaBuilder_ == null) { - return sessionInclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.SessionSegmentCriteria.getDefaultInstance() - : sessionInclusionCriteria_; - } else { - return sessionInclusionCriteriaBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Defines which sessions are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * - */ - public Builder setSessionInclusionCriteria( - com.google.analytics.data.v1alpha.SessionSegmentCriteria value) { - if (sessionInclusionCriteriaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sessionInclusionCriteria_ = value; - onChanged(); - } else { - sessionInclusionCriteriaBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Defines which sessions are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * - */ - public Builder setSessionInclusionCriteria( - com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder builderForValue) { - if (sessionInclusionCriteriaBuilder_ == null) { - sessionInclusionCriteria_ = builderForValue.build(); - onChanged(); - } else { - sessionInclusionCriteriaBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Defines which sessions are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * - */ - public Builder mergeSessionInclusionCriteria( - com.google.analytics.data.v1alpha.SessionSegmentCriteria value) { - if (sessionInclusionCriteriaBuilder_ == null) { - if (sessionInclusionCriteria_ != null) { - sessionInclusionCriteria_ = - com.google.analytics.data.v1alpha.SessionSegmentCriteria.newBuilder( - sessionInclusionCriteria_) - .mergeFrom(value) - .buildPartial(); - } else { - sessionInclusionCriteria_ = value; - } - onChanged(); - } else { - sessionInclusionCriteriaBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Defines which sessions are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * - */ - public Builder clearSessionInclusionCriteria() { - if (sessionInclusionCriteriaBuilder_ == null) { - sessionInclusionCriteria_ = null; - onChanged(); - } else { - sessionInclusionCriteria_ = null; - sessionInclusionCriteriaBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Defines which sessions are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * - */ - public com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder - getSessionInclusionCriteriaBuilder() { - - onChanged(); - return getSessionInclusionCriteriaFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Defines which sessions are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * - */ - public com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder - getSessionInclusionCriteriaOrBuilder() { - if (sessionInclusionCriteriaBuilder_ != null) { - return sessionInclusionCriteriaBuilder_.getMessageOrBuilder(); - } else { - return sessionInclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.SessionSegmentCriteria.getDefaultInstance() - : sessionInclusionCriteria_; - } - } - /** - * - * - *
-     * Defines which sessions are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SessionSegmentCriteria, - com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder> - getSessionInclusionCriteriaFieldBuilder() { - if (sessionInclusionCriteriaBuilder_ == null) { - sessionInclusionCriteriaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SessionSegmentCriteria, - com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder>( - getSessionInclusionCriteria(), getParentForChildren(), isClean()); - sessionInclusionCriteria_ = null; - } - return sessionInclusionCriteriaBuilder_; - } - - private com.google.analytics.data.v1alpha.SessionSegmentExclusion exclusion_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SessionSegmentExclusion, - com.google.analytics.data.v1alpha.SessionSegmentExclusion.Builder, - com.google.analytics.data.v1alpha.SessionSegmentExclusionOrBuilder> - exclusionBuilder_; - /** - * - * - *
-     * Defines which sessions are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - * - * @return Whether the exclusion field is set. - */ - public boolean hasExclusion() { - return exclusionBuilder_ != null || exclusion_ != null; - } - /** - * - * - *
-     * Defines which sessions are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - * - * @return The exclusion. - */ - public com.google.analytics.data.v1alpha.SessionSegmentExclusion getExclusion() { - if (exclusionBuilder_ == null) { - return exclusion_ == null - ? com.google.analytics.data.v1alpha.SessionSegmentExclusion.getDefaultInstance() - : exclusion_; - } else { - return exclusionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Defines which sessions are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - */ - public Builder setExclusion(com.google.analytics.data.v1alpha.SessionSegmentExclusion value) { - if (exclusionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - exclusion_ = value; - onChanged(); - } else { - exclusionBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Defines which sessions are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - */ - public Builder setExclusion( - com.google.analytics.data.v1alpha.SessionSegmentExclusion.Builder builderForValue) { - if (exclusionBuilder_ == null) { - exclusion_ = builderForValue.build(); - onChanged(); - } else { - exclusionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Defines which sessions are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - */ - public Builder mergeExclusion(com.google.analytics.data.v1alpha.SessionSegmentExclusion value) { - if (exclusionBuilder_ == null) { - if (exclusion_ != null) { - exclusion_ = - com.google.analytics.data.v1alpha.SessionSegmentExclusion.newBuilder(exclusion_) - .mergeFrom(value) - .buildPartial(); - } else { - exclusion_ = value; - } - onChanged(); - } else { - exclusionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Defines which sessions are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - */ - public Builder clearExclusion() { - if (exclusionBuilder_ == null) { - exclusion_ = null; - onChanged(); - } else { - exclusion_ = null; - exclusionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Defines which sessions are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - */ - public com.google.analytics.data.v1alpha.SessionSegmentExclusion.Builder getExclusionBuilder() { - - onChanged(); - return getExclusionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Defines which sessions are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - */ - public com.google.analytics.data.v1alpha.SessionSegmentExclusionOrBuilder - getExclusionOrBuilder() { - if (exclusionBuilder_ != null) { - return exclusionBuilder_.getMessageOrBuilder(); - } else { - return exclusion_ == null - ? com.google.analytics.data.v1alpha.SessionSegmentExclusion.getDefaultInstance() - : exclusion_; - } - } - /** - * - * - *
-     * Defines which sessions are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SessionSegmentExclusion, - com.google.analytics.data.v1alpha.SessionSegmentExclusion.Builder, - com.google.analytics.data.v1alpha.SessionSegmentExclusionOrBuilder> - getExclusionFieldBuilder() { - if (exclusionBuilder_ == null) { - exclusionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SessionSegmentExclusion, - com.google.analytics.data.v1alpha.SessionSegmentExclusion.Builder, - com.google.analytics.data.v1alpha.SessionSegmentExclusionOrBuilder>( - getExclusion(), getParentForChildren(), isClean()); - exclusion_ = null; - } - return exclusionBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.SessionSegment) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SessionSegment) - private static final com.google.analytics.data.v1alpha.SessionSegment DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SessionSegment(); - } - - public static com.google.analytics.data.v1alpha.SessionSegment getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SessionSegment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegment getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroup.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroup.java deleted file mode 100644 index f54841fe..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroup.java +++ /dev/null @@ -1,994 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Conditions tell Analytics what data to include in or exclude from the
- * segment.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SessionSegmentConditionGroup} - */ -public final class SessionSegmentConditionGroup extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SessionSegmentConditionGroup) - SessionSegmentConditionGroupOrBuilder { - private static final long serialVersionUID = 0L; - // Use SessionSegmentConditionGroup.newBuilder() to construct. - private SessionSegmentConditionGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SessionSegmentConditionGroup() { - conditionScoping_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SessionSegmentConditionGroup(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.class, - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder.class); - } - - public static final int CONDITION_SCOPING_FIELD_NUMBER = 1; - private int conditionScoping_; - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * the condition group. This scoping defines how many events the
-   * `segmentFilterExpression` is evaluated on before the condition group
-   * is determined to be matched or not. For example if `conditionScoping =
-   * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-   * events in a session, and then, the condition group is determined to be
-   * matched or not for this session. For example if `conditionScoping =
-   * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
-   * single event, and then, the condition group is determined to be matched or
-   * not for this session.
-   * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
-   * is used.
-   * 
- * - * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; - * - * @return The enum numeric value on the wire for conditionScoping. - */ - @java.lang.Override - public int getConditionScopingValue() { - return conditionScoping_; - } - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * the condition group. This scoping defines how many events the
-   * `segmentFilterExpression` is evaluated on before the condition group
-   * is determined to be matched or not. For example if `conditionScoping =
-   * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-   * events in a session, and then, the condition group is determined to be
-   * matched or not for this session. For example if `conditionScoping =
-   * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
-   * single event, and then, the condition group is determined to be matched or
-   * not for this session.
-   * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
-   * is used.
-   * 
- * - * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; - * - * @return The conditionScoping. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionCriteriaScoping getConditionScoping() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.SessionCriteriaScoping result = - com.google.analytics.data.v1alpha.SessionCriteriaScoping.valueOf(conditionScoping_); - return result == null - ? com.google.analytics.data.v1alpha.SessionCriteriaScoping.UNRECOGNIZED - : result; - } - - public static final int SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_; - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return Whether the segmentFilterExpression field is set. - */ - @java.lang.Override - public boolean hasSegmentFilterExpression() { - return segmentFilterExpression_ != null; - } - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return The segmentFilterExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() { - return segmentFilterExpression_ == null - ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() - : segmentFilterExpression_; - } - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder - getSegmentFilterExpressionOrBuilder() { - return getSegmentFilterExpression(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (conditionScoping_ - != com.google.analytics.data.v1alpha.SessionCriteriaScoping - .SESSION_CRITERIA_SCOPING_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, conditionScoping_); - } - if (segmentFilterExpression_ != null) { - output.writeMessage(2, getSegmentFilterExpression()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (conditionScoping_ - != com.google.analytics.data.v1alpha.SessionCriteriaScoping - .SESSION_CRITERIA_SCOPING_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, conditionScoping_); - } - if (segmentFilterExpression_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSegmentFilterExpression()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.SessionSegmentConditionGroup)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup other = - (com.google.analytics.data.v1alpha.SessionSegmentConditionGroup) obj; - - if (conditionScoping_ != other.conditionScoping_) return false; - if (hasSegmentFilterExpression() != other.hasSegmentFilterExpression()) return false; - if (hasSegmentFilterExpression()) { - if (!getSegmentFilterExpression().equals(other.getSegmentFilterExpression())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONDITION_SCOPING_FIELD_NUMBER; - hash = (53 * hash) + conditionScoping_; - if (hasSegmentFilterExpression()) { - hash = (37 * hash) + SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getSegmentFilterExpression().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup 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.v1alpha.SessionSegmentConditionGroup parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup parseFrom( - 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.v1alpha.SessionSegmentConditionGroup parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup parseFrom( - java.io.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.v1alpha.SessionSegmentConditionGroup parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup parseDelimitedFrom( - java.io.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.v1alpha.SessionSegmentConditionGroup parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.SessionSegmentConditionGroup prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Conditions tell Analytics what data to include in or exclude from the
-   * segment.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SessionSegmentConditionGroup} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SessionSegmentConditionGroup) - com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.class, - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - conditionScoping_ = 0; - - if (segmentFilterExpressionBuilder_ == null) { - segmentFilterExpression_ = null; - } else { - segmentFilterExpression_ = null; - segmentFilterExpressionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegmentConditionGroup_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup - getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup build() { - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup buildPartial() { - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup result = - new com.google.analytics.data.v1alpha.SessionSegmentConditionGroup(this); - result.conditionScoping_ = conditionScoping_; - if (segmentFilterExpressionBuilder_ == null) { - result.segmentFilterExpression_ = segmentFilterExpression_; - } else { - result.segmentFilterExpression_ = segmentFilterExpressionBuilder_.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.v1alpha.SessionSegmentConditionGroup) { - return mergeFrom((com.google.analytics.data.v1alpha.SessionSegmentConditionGroup) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.SessionSegmentConditionGroup other) { - if (other - == com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.getDefaultInstance()) - return this; - if (other.conditionScoping_ != 0) { - setConditionScopingValue(other.getConditionScopingValue()); - } - if (other.hasSegmentFilterExpression()) { - mergeSegmentFilterExpression(other.getSegmentFilterExpression()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - conditionScoping_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getSegmentFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int conditionScoping_ = 0; - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * the condition group. This scoping defines how many events the
-     * `segmentFilterExpression` is evaluated on before the condition group
-     * is determined to be matched or not. For example if `conditionScoping =
-     * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-     * events in a session, and then, the condition group is determined to be
-     * matched or not for this session. For example if `conditionScoping =
-     * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
-     * single event, and then, the condition group is determined to be matched or
-     * not for this session.
-     * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
-     * is used.
-     * 
- * - * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; - * - * @return The enum numeric value on the wire for conditionScoping. - */ - @java.lang.Override - public int getConditionScopingValue() { - return conditionScoping_; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * the condition group. This scoping defines how many events the
-     * `segmentFilterExpression` is evaluated on before the condition group
-     * is determined to be matched or not. For example if `conditionScoping =
-     * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-     * events in a session, and then, the condition group is determined to be
-     * matched or not for this session. For example if `conditionScoping =
-     * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
-     * single event, and then, the condition group is determined to be matched or
-     * not for this session.
-     * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
-     * is used.
-     * 
- * - * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; - * - * @param value The enum numeric value on the wire for conditionScoping to set. - * @return This builder for chaining. - */ - public Builder setConditionScopingValue(int value) { - - conditionScoping_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * the condition group. This scoping defines how many events the
-     * `segmentFilterExpression` is evaluated on before the condition group
-     * is determined to be matched or not. For example if `conditionScoping =
-     * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-     * events in a session, and then, the condition group is determined to be
-     * matched or not for this session. For example if `conditionScoping =
-     * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
-     * single event, and then, the condition group is determined to be matched or
-     * not for this session.
-     * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
-     * is used.
-     * 
- * - * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; - * - * @return The conditionScoping. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionCriteriaScoping getConditionScoping() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.SessionCriteriaScoping result = - com.google.analytics.data.v1alpha.SessionCriteriaScoping.valueOf(conditionScoping_); - return result == null - ? com.google.analytics.data.v1alpha.SessionCriteriaScoping.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * the condition group. This scoping defines how many events the
-     * `segmentFilterExpression` is evaluated on before the condition group
-     * is determined to be matched or not. For example if `conditionScoping =
-     * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-     * events in a session, and then, the condition group is determined to be
-     * matched or not for this session. For example if `conditionScoping =
-     * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
-     * single event, and then, the condition group is determined to be matched or
-     * not for this session.
-     * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
-     * is used.
-     * 
- * - * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; - * - * @param value The conditionScoping to set. - * @return This builder for chaining. - */ - public Builder setConditionScoping( - com.google.analytics.data.v1alpha.SessionCriteriaScoping value) { - if (value == null) { - throw new NullPointerException(); - } - - conditionScoping_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * the condition group. This scoping defines how many events the
-     * `segmentFilterExpression` is evaluated on before the condition group
-     * is determined to be matched or not. For example if `conditionScoping =
-     * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-     * events in a session, and then, the condition group is determined to be
-     * matched or not for this session. For example if `conditionScoping =
-     * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
-     * single event, and then, the condition group is determined to be matched or
-     * not for this session.
-     * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
-     * is used.
-     * 
- * - * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; - * - * @return This builder for chaining. - */ - public Builder clearConditionScoping() { - - conditionScoping_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> - segmentFilterExpressionBuilder_; - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return Whether the segmentFilterExpression field is set. - */ - public boolean hasSegmentFilterExpression() { - return segmentFilterExpressionBuilder_ != null || segmentFilterExpression_ != null; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return The segmentFilterExpression. - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() { - if (segmentFilterExpressionBuilder_ == null) { - return segmentFilterExpression_ == null - ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() - : segmentFilterExpression_; - } else { - return segmentFilterExpressionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public Builder setSegmentFilterExpression( - com.google.analytics.data.v1alpha.SegmentFilterExpression value) { - if (segmentFilterExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - segmentFilterExpression_ = value; - onChanged(); - } else { - segmentFilterExpressionBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public Builder setSegmentFilterExpression( - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) { - if (segmentFilterExpressionBuilder_ == null) { - segmentFilterExpression_ = builderForValue.build(); - onChanged(); - } else { - segmentFilterExpressionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public Builder mergeSegmentFilterExpression( - com.google.analytics.data.v1alpha.SegmentFilterExpression value) { - if (segmentFilterExpressionBuilder_ == null) { - if (segmentFilterExpression_ != null) { - segmentFilterExpression_ = - com.google.analytics.data.v1alpha.SegmentFilterExpression.newBuilder( - segmentFilterExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - segmentFilterExpression_ = value; - } - onChanged(); - } else { - segmentFilterExpressionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public Builder clearSegmentFilterExpression() { - if (segmentFilterExpressionBuilder_ == null) { - segmentFilterExpression_ = null; - onChanged(); - } else { - segmentFilterExpression_ = null; - segmentFilterExpressionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder - getSegmentFilterExpressionBuilder() { - - onChanged(); - return getSegmentFilterExpressionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder - getSegmentFilterExpressionOrBuilder() { - if (segmentFilterExpressionBuilder_ != null) { - return segmentFilterExpressionBuilder_.getMessageOrBuilder(); - } else { - return segmentFilterExpression_ == null - ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() - : segmentFilterExpression_; - } - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> - getSegmentFilterExpressionFieldBuilder() { - if (segmentFilterExpressionBuilder_ == null) { - segmentFilterExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder>( - getSegmentFilterExpression(), getParentForChildren(), isClean()); - segmentFilterExpression_ = null; - } - return segmentFilterExpressionBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.SessionSegmentConditionGroup) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SessionSegmentConditionGroup) - private static final com.google.analytics.data.v1alpha.SessionSegmentConditionGroup - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SessionSegmentConditionGroup(); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentConditionGroup - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SessionSegmentConditionGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroupOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroupOrBuilder.java deleted file mode 100644 index 75323664..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentConditionGroupOrBuilder.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface SessionSegmentConditionGroupOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SessionSegmentConditionGroup) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * the condition group. This scoping defines how many events the
-   * `segmentFilterExpression` is evaluated on before the condition group
-   * is determined to be matched or not. For example if `conditionScoping =
-   * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-   * events in a session, and then, the condition group is determined to be
-   * matched or not for this session. For example if `conditionScoping =
-   * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
-   * single event, and then, the condition group is determined to be matched or
-   * not for this session.
-   * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
-   * is used.
-   * 
- * - * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; - * - * @return The enum numeric value on the wire for conditionScoping. - */ - int getConditionScopingValue(); - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * the condition group. This scoping defines how many events the
-   * `segmentFilterExpression` is evaluated on before the condition group
-   * is determined to be matched or not. For example if `conditionScoping =
-   * SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-   * events in a session, and then, the condition group is determined to be
-   * matched or not for this session. For example if `conditionScoping =
-   * SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a
-   * single event, and then, the condition group is determined to be matched or
-   * not for this session.
-   * Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION`
-   * is used.
-   * 
- * - * .google.analytics.data.v1alpha.SessionCriteriaScoping condition_scoping = 1; - * - * @return The conditionScoping. - */ - com.google.analytics.data.v1alpha.SessionCriteriaScoping getConditionScoping(); - - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return Whether the segmentFilterExpression field is set. - */ - boolean hasSegmentFilterExpression(); - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return The segmentFilterExpression. - */ - com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression(); - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder - getSegmentFilterExpressionOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteria.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteria.java deleted file mode 100644 index e42b69d7..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteria.java +++ /dev/null @@ -1,1027 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * A session matches a criteria if the session's events meet the conditions in
- * the criteria.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SessionSegmentCriteria} - */ -public final class SessionSegmentCriteria extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SessionSegmentCriteria) - SessionSegmentCriteriaOrBuilder { - private static final long serialVersionUID = 0L; - // Use SessionSegmentCriteria.newBuilder() to construct. - private SessionSegmentCriteria(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SessionSegmentCriteria() { - andConditionGroups_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SessionSegmentCriteria(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SessionSegmentCriteria.class, - com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder.class); - } - - public static final int AND_CONDITION_GROUPS_FIELD_NUMBER = 1; - private java.util.List - andConditionGroups_; - /** - * - * - *
-   * A session matches this criteria if the session matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - @java.lang.Override - public java.util.List - getAndConditionGroupsList() { - return andConditionGroups_; - } - /** - * - * - *
-   * A session matches this criteria if the session matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder> - getAndConditionGroupsOrBuilderList() { - return andConditionGroups_; - } - /** - * - * - *
-   * A session matches this criteria if the session matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - @java.lang.Override - public int getAndConditionGroupsCount() { - return andConditionGroups_.size(); - } - /** - * - * - *
-   * A session matches this criteria if the session matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup getAndConditionGroups( - int index) { - return andConditionGroups_.get(index); - } - /** - * - * - *
-   * A session matches this criteria if the session matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder - getAndConditionGroupsOrBuilder(int index) { - return andConditionGroups_.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 < andConditionGroups_.size(); i++) { - output.writeMessage(1, andConditionGroups_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < andConditionGroups_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, andConditionGroups_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.SessionSegmentCriteria)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.SessionSegmentCriteria other = - (com.google.analytics.data.v1alpha.SessionSegmentCriteria) obj; - - if (!getAndConditionGroupsList().equals(other.getAndConditionGroupsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAndConditionGroupsCount() > 0) { - hash = (37 * hash) + AND_CONDITION_GROUPS_FIELD_NUMBER; - hash = (53 * hash) + getAndConditionGroupsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.SessionSegmentCriteria parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentCriteria 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.v1alpha.SessionSegmentCriteria parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentCriteria parseFrom( - 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.v1alpha.SessionSegmentCriteria parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentCriteria parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentCriteria parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentCriteria parseFrom( - java.io.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.v1alpha.SessionSegmentCriteria parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentCriteria parseDelimitedFrom( - java.io.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.v1alpha.SessionSegmentCriteria parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentCriteria parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.SessionSegmentCriteria prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 session matches a criteria if the session's events meet the conditions in
-   * the criteria.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SessionSegmentCriteria} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SessionSegmentCriteria) - com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SessionSegmentCriteria.class, - com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.SessionSegmentCriteria.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (andConditionGroupsBuilder_ == null) { - andConditionGroups_ = java.util.Collections.emptyList(); - } else { - andConditionGroups_ = null; - andConditionGroupsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegmentCriteria_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentCriteria getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.SessionSegmentCriteria.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentCriteria build() { - com.google.analytics.data.v1alpha.SessionSegmentCriteria result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentCriteria buildPartial() { - com.google.analytics.data.v1alpha.SessionSegmentCriteria result = - new com.google.analytics.data.v1alpha.SessionSegmentCriteria(this); - int from_bitField0_ = bitField0_; - if (andConditionGroupsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - andConditionGroups_ = java.util.Collections.unmodifiableList(andConditionGroups_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.andConditionGroups_ = andConditionGroups_; - } else { - result.andConditionGroups_ = andConditionGroupsBuilder_.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.v1alpha.SessionSegmentCriteria) { - return mergeFrom((com.google.analytics.data.v1alpha.SessionSegmentCriteria) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.SessionSegmentCriteria other) { - if (other == com.google.analytics.data.v1alpha.SessionSegmentCriteria.getDefaultInstance()) - return this; - if (andConditionGroupsBuilder_ == null) { - if (!other.andConditionGroups_.isEmpty()) { - if (andConditionGroups_.isEmpty()) { - andConditionGroups_ = other.andConditionGroups_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.addAll(other.andConditionGroups_); - } - onChanged(); - } - } else { - if (!other.andConditionGroups_.isEmpty()) { - if (andConditionGroupsBuilder_.isEmpty()) { - andConditionGroupsBuilder_.dispose(); - andConditionGroupsBuilder_ = null; - andConditionGroups_ = other.andConditionGroups_; - bitField0_ = (bitField0_ & ~0x00000001); - andConditionGroupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAndConditionGroupsFieldBuilder() - : null; - } else { - andConditionGroupsBuilder_.addAllMessages(other.andConditionGroups_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup m = - input.readMessage( - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.parser(), - extensionRegistry); - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.add(m); - } else { - andConditionGroupsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List - andConditionGroups_ = java.util.Collections.emptyList(); - - private void ensureAndConditionGroupsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - andConditionGroups_ = - new java.util.ArrayList( - andConditionGroups_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup, - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder, - com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder> - andConditionGroupsBuilder_; - - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public java.util.List - getAndConditionGroupsList() { - if (andConditionGroupsBuilder_ == null) { - return java.util.Collections.unmodifiableList(andConditionGroups_); - } else { - return andConditionGroupsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public int getAndConditionGroupsCount() { - if (andConditionGroupsBuilder_ == null) { - return andConditionGroups_.size(); - } else { - return andConditionGroupsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup getAndConditionGroups( - int index) { - if (andConditionGroupsBuilder_ == null) { - return andConditionGroups_.get(index); - } else { - return andConditionGroupsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder setAndConditionGroups( - int index, com.google.analytics.data.v1alpha.SessionSegmentConditionGroup value) { - if (andConditionGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.set(index, value); - onChanged(); - } else { - andConditionGroupsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder setAndConditionGroups( - int index, - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder builderForValue) { - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.set(index, builderForValue.build()); - onChanged(); - } else { - andConditionGroupsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder addAndConditionGroups( - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup value) { - if (andConditionGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.add(value); - onChanged(); - } else { - andConditionGroupsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder addAndConditionGroups( - int index, com.google.analytics.data.v1alpha.SessionSegmentConditionGroup value) { - if (andConditionGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.add(index, value); - onChanged(); - } else { - andConditionGroupsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder addAndConditionGroups( - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder builderForValue) { - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.add(builderForValue.build()); - onChanged(); - } else { - andConditionGroupsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder addAndConditionGroups( - int index, - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder builderForValue) { - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.add(index, builderForValue.build()); - onChanged(); - } else { - andConditionGroupsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder addAllAndConditionGroups( - java.lang.Iterable - values) { - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, andConditionGroups_); - onChanged(); - } else { - andConditionGroupsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder clearAndConditionGroups() { - if (andConditionGroupsBuilder_ == null) { - andConditionGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - andConditionGroupsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder removeAndConditionGroups(int index) { - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.remove(index); - onChanged(); - } else { - andConditionGroupsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder - getAndConditionGroupsBuilder(int index) { - return getAndConditionGroupsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder - getAndConditionGroupsOrBuilder(int index) { - if (andConditionGroupsBuilder_ == null) { - return andConditionGroups_.get(index); - } else { - return andConditionGroupsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public java.util.List< - ? extends com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder> - getAndConditionGroupsOrBuilderList() { - if (andConditionGroupsBuilder_ != null) { - return andConditionGroupsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(andConditionGroups_); - } - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder - addAndConditionGroupsBuilder() { - return getAndConditionGroupsFieldBuilder() - .addBuilder( - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.getDefaultInstance()); - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder - addAndConditionGroupsBuilder(int index) { - return getAndConditionGroupsFieldBuilder() - .addBuilder( - index, - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.getDefaultInstance()); - } - /** - * - * - *
-     * A session matches this criteria if the session matches each of these
-     * `andConditionGroups`.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - public java.util.List - getAndConditionGroupsBuilderList() { - return getAndConditionGroupsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup, - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder, - com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder> - getAndConditionGroupsFieldBuilder() { - if (andConditionGroupsBuilder_ == null) { - andConditionGroupsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup, - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup.Builder, - com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder>( - andConditionGroups_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - andConditionGroups_ = null; - } - return andConditionGroupsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.SessionSegmentCriteria) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SessionSegmentCriteria) - private static final com.google.analytics.data.v1alpha.SessionSegmentCriteria DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SessionSegmentCriteria(); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentCriteria getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SessionSegmentCriteria parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentCriteria getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteriaOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteriaOrBuilder.java deleted file mode 100644 index c92545fb..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentCriteriaOrBuilder.java +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface SessionSegmentCriteriaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SessionSegmentCriteria) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A session matches this criteria if the session matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - java.util.List - getAndConditionGroupsList(); - /** - * - * - *
-   * A session matches this criteria if the session matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - com.google.analytics.data.v1alpha.SessionSegmentConditionGroup getAndConditionGroups(int index); - /** - * - * - *
-   * A session matches this criteria if the session matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - int getAndConditionGroupsCount(); - /** - * - * - *
-   * A session matches this criteria if the session matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - java.util.List - getAndConditionGroupsOrBuilderList(); - /** - * - * - *
-   * A session matches this criteria if the session matches each of these
-   * `andConditionGroups`.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.SessionSegmentConditionGroup and_condition_groups = 1; - * - */ - com.google.analytics.data.v1alpha.SessionSegmentConditionGroupOrBuilder - getAndConditionGroupsOrBuilder(int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusion.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusion.java deleted file mode 100644 index fdcbe5da..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusion.java +++ /dev/null @@ -1,930 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Specifies which sessions are excluded in this segment.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SessionSegmentExclusion} - */ -public final class SessionSegmentExclusion extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.SessionSegmentExclusion) - SessionSegmentExclusionOrBuilder { - private static final long serialVersionUID = 0L; - // Use SessionSegmentExclusion.newBuilder() to construct. - private SessionSegmentExclusion(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private SessionSegmentExclusion() { - sessionExclusionDuration_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new SessionSegmentExclusion(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SessionSegmentExclusion.class, - com.google.analytics.data.v1alpha.SessionSegmentExclusion.Builder.class); - } - - public static final int SESSION_EXCLUSION_DURATION_FIELD_NUMBER = 1; - private int sessionExclusionDuration_; - /** - * - * - *
-   * Specifies how long an exclusion will last if a session matches the
-   * `sessionExclusionCriteria`.
-   * Optional. If unspecified, a `sessionExclusionDuration` of
-   * `SESSION_EXCLUSION_TEMPORARY` is used.
-   * 
- * - * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; - * - * - * @return The enum numeric value on the wire for sessionExclusionDuration. - */ - @java.lang.Override - public int getSessionExclusionDurationValue() { - return sessionExclusionDuration_; - } - /** - * - * - *
-   * Specifies how long an exclusion will last if a session matches the
-   * `sessionExclusionCriteria`.
-   * Optional. If unspecified, a `sessionExclusionDuration` of
-   * `SESSION_EXCLUSION_TEMPORARY` is used.
-   * 
- * - * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; - * - * - * @return The sessionExclusionDuration. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionExclusionDuration getSessionExclusionDuration() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.SessionExclusionDuration result = - com.google.analytics.data.v1alpha.SessionExclusionDuration.valueOf( - sessionExclusionDuration_); - return result == null - ? com.google.analytics.data.v1alpha.SessionExclusionDuration.UNRECOGNIZED - : result; - } - - public static final int SESSION_EXCLUSION_CRITERIA_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.SessionSegmentCriteria sessionExclusionCriteria_; - /** - * - * - *
-   * If a session meets this condition, the session is excluded from
-   * membership in the segment for the `sessionExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * - * - * @return Whether the sessionExclusionCriteria field is set. - */ - @java.lang.Override - public boolean hasSessionExclusionCriteria() { - return sessionExclusionCriteria_ != null; - } - /** - * - * - *
-   * If a session meets this condition, the session is excluded from
-   * membership in the segment for the `sessionExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * - * - * @return The sessionExclusionCriteria. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentCriteria getSessionExclusionCriteria() { - return sessionExclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.SessionSegmentCriteria.getDefaultInstance() - : sessionExclusionCriteria_; - } - /** - * - * - *
-   * If a session meets this condition, the session is excluded from
-   * membership in the segment for the `sessionExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder - getSessionExclusionCriteriaOrBuilder() { - return getSessionExclusionCriteria(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (sessionExclusionDuration_ - != com.google.analytics.data.v1alpha.SessionExclusionDuration - .SESSION_EXCLUSION_DURATION_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, sessionExclusionDuration_); - } - if (sessionExclusionCriteria_ != null) { - output.writeMessage(2, getSessionExclusionCriteria()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sessionExclusionDuration_ - != com.google.analytics.data.v1alpha.SessionExclusionDuration - .SESSION_EXCLUSION_DURATION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, sessionExclusionDuration_); - } - if (sessionExclusionCriteria_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, getSessionExclusionCriteria()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.SessionSegmentExclusion)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.SessionSegmentExclusion other = - (com.google.analytics.data.v1alpha.SessionSegmentExclusion) obj; - - if (sessionExclusionDuration_ != other.sessionExclusionDuration_) return false; - if (hasSessionExclusionCriteria() != other.hasSessionExclusionCriteria()) return false; - if (hasSessionExclusionCriteria()) { - if (!getSessionExclusionCriteria().equals(other.getSessionExclusionCriteria())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SESSION_EXCLUSION_DURATION_FIELD_NUMBER; - hash = (53 * hash) + sessionExclusionDuration_; - if (hasSessionExclusionCriteria()) { - hash = (37 * hash) + SESSION_EXCLUSION_CRITERIA_FIELD_NUMBER; - hash = (53 * hash) + getSessionExclusionCriteria().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.SessionSegmentExclusion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentExclusion 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.v1alpha.SessionSegmentExclusion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentExclusion parseFrom( - 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.v1alpha.SessionSegmentExclusion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentExclusion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentExclusion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentExclusion parseFrom( - java.io.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.v1alpha.SessionSegmentExclusion parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentExclusion parseDelimitedFrom( - java.io.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.v1alpha.SessionSegmentExclusion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentExclusion parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.SessionSegmentExclusion prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Specifies which sessions are excluded in this segment.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.SessionSegmentExclusion} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.SessionSegmentExclusion) - com.google.analytics.data.v1alpha.SessionSegmentExclusionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.SessionSegmentExclusion.class, - com.google.analytics.data.v1alpha.SessionSegmentExclusion.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.SessionSegmentExclusion.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - sessionExclusionDuration_ = 0; - - if (sessionExclusionCriteriaBuilder_ == null) { - sessionExclusionCriteria_ = null; - } else { - sessionExclusionCriteria_ = null; - sessionExclusionCriteriaBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_SessionSegmentExclusion_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentExclusion getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.SessionSegmentExclusion.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentExclusion build() { - com.google.analytics.data.v1alpha.SessionSegmentExclusion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentExclusion buildPartial() { - com.google.analytics.data.v1alpha.SessionSegmentExclusion result = - new com.google.analytics.data.v1alpha.SessionSegmentExclusion(this); - result.sessionExclusionDuration_ = sessionExclusionDuration_; - if (sessionExclusionCriteriaBuilder_ == null) { - result.sessionExclusionCriteria_ = sessionExclusionCriteria_; - } else { - result.sessionExclusionCriteria_ = sessionExclusionCriteriaBuilder_.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.v1alpha.SessionSegmentExclusion) { - return mergeFrom((com.google.analytics.data.v1alpha.SessionSegmentExclusion) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.SessionSegmentExclusion other) { - if (other == com.google.analytics.data.v1alpha.SessionSegmentExclusion.getDefaultInstance()) - return this; - if (other.sessionExclusionDuration_ != 0) { - setSessionExclusionDurationValue(other.getSessionExclusionDurationValue()); - } - if (other.hasSessionExclusionCriteria()) { - mergeSessionExclusionCriteria(other.getSessionExclusionCriteria()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - sessionExclusionDuration_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getSessionExclusionCriteriaFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int sessionExclusionDuration_ = 0; - /** - * - * - *
-     * Specifies how long an exclusion will last if a session matches the
-     * `sessionExclusionCriteria`.
-     * Optional. If unspecified, a `sessionExclusionDuration` of
-     * `SESSION_EXCLUSION_TEMPORARY` is used.
-     * 
- * - * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; - * - * - * @return The enum numeric value on the wire for sessionExclusionDuration. - */ - @java.lang.Override - public int getSessionExclusionDurationValue() { - return sessionExclusionDuration_; - } - /** - * - * - *
-     * Specifies how long an exclusion will last if a session matches the
-     * `sessionExclusionCriteria`.
-     * Optional. If unspecified, a `sessionExclusionDuration` of
-     * `SESSION_EXCLUSION_TEMPORARY` is used.
-     * 
- * - * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; - * - * - * @param value The enum numeric value on the wire for sessionExclusionDuration to set. - * @return This builder for chaining. - */ - public Builder setSessionExclusionDurationValue(int value) { - - sessionExclusionDuration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies how long an exclusion will last if a session matches the
-     * `sessionExclusionCriteria`.
-     * Optional. If unspecified, a `sessionExclusionDuration` of
-     * `SESSION_EXCLUSION_TEMPORARY` is used.
-     * 
- * - * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; - * - * - * @return The sessionExclusionDuration. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionExclusionDuration - getSessionExclusionDuration() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.SessionExclusionDuration result = - com.google.analytics.data.v1alpha.SessionExclusionDuration.valueOf( - sessionExclusionDuration_); - return result == null - ? com.google.analytics.data.v1alpha.SessionExclusionDuration.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Specifies how long an exclusion will last if a session matches the
-     * `sessionExclusionCriteria`.
-     * Optional. If unspecified, a `sessionExclusionDuration` of
-     * `SESSION_EXCLUSION_TEMPORARY` is used.
-     * 
- * - * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; - * - * - * @param value The sessionExclusionDuration to set. - * @return This builder for chaining. - */ - public Builder setSessionExclusionDuration( - com.google.analytics.data.v1alpha.SessionExclusionDuration value) { - if (value == null) { - throw new NullPointerException(); - } - - sessionExclusionDuration_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies how long an exclusion will last if a session matches the
-     * `sessionExclusionCriteria`.
-     * Optional. If unspecified, a `sessionExclusionDuration` of
-     * `SESSION_EXCLUSION_TEMPORARY` is used.
-     * 
- * - * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearSessionExclusionDuration() { - - sessionExclusionDuration_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.data.v1alpha.SessionSegmentCriteria sessionExclusionCriteria_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SessionSegmentCriteria, - com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder> - sessionExclusionCriteriaBuilder_; - /** - * - * - *
-     * If a session meets this condition, the session is excluded from
-     * membership in the segment for the `sessionExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * - * - * @return Whether the sessionExclusionCriteria field is set. - */ - public boolean hasSessionExclusionCriteria() { - return sessionExclusionCriteriaBuilder_ != null || sessionExclusionCriteria_ != null; - } - /** - * - * - *
-     * If a session meets this condition, the session is excluded from
-     * membership in the segment for the `sessionExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * - * - * @return The sessionExclusionCriteria. - */ - public com.google.analytics.data.v1alpha.SessionSegmentCriteria getSessionExclusionCriteria() { - if (sessionExclusionCriteriaBuilder_ == null) { - return sessionExclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.SessionSegmentCriteria.getDefaultInstance() - : sessionExclusionCriteria_; - } else { - return sessionExclusionCriteriaBuilder_.getMessage(); - } - } - /** - * - * - *
-     * If a session meets this condition, the session is excluded from
-     * membership in the segment for the `sessionExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * - */ - public Builder setSessionExclusionCriteria( - com.google.analytics.data.v1alpha.SessionSegmentCriteria value) { - if (sessionExclusionCriteriaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sessionExclusionCriteria_ = value; - onChanged(); - } else { - sessionExclusionCriteriaBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * If a session meets this condition, the session is excluded from
-     * membership in the segment for the `sessionExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * - */ - public Builder setSessionExclusionCriteria( - com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder builderForValue) { - if (sessionExclusionCriteriaBuilder_ == null) { - sessionExclusionCriteria_ = builderForValue.build(); - onChanged(); - } else { - sessionExclusionCriteriaBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * If a session meets this condition, the session is excluded from
-     * membership in the segment for the `sessionExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * - */ - public Builder mergeSessionExclusionCriteria( - com.google.analytics.data.v1alpha.SessionSegmentCriteria value) { - if (sessionExclusionCriteriaBuilder_ == null) { - if (sessionExclusionCriteria_ != null) { - sessionExclusionCriteria_ = - com.google.analytics.data.v1alpha.SessionSegmentCriteria.newBuilder( - sessionExclusionCriteria_) - .mergeFrom(value) - .buildPartial(); - } else { - sessionExclusionCriteria_ = value; - } - onChanged(); - } else { - sessionExclusionCriteriaBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * If a session meets this condition, the session is excluded from
-     * membership in the segment for the `sessionExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * - */ - public Builder clearSessionExclusionCriteria() { - if (sessionExclusionCriteriaBuilder_ == null) { - sessionExclusionCriteria_ = null; - onChanged(); - } else { - sessionExclusionCriteria_ = null; - sessionExclusionCriteriaBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * If a session meets this condition, the session is excluded from
-     * membership in the segment for the `sessionExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * - */ - public com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder - getSessionExclusionCriteriaBuilder() { - - onChanged(); - return getSessionExclusionCriteriaFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If a session meets this condition, the session is excluded from
-     * membership in the segment for the `sessionExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * - */ - public com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder - getSessionExclusionCriteriaOrBuilder() { - if (sessionExclusionCriteriaBuilder_ != null) { - return sessionExclusionCriteriaBuilder_.getMessageOrBuilder(); - } else { - return sessionExclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.SessionSegmentCriteria.getDefaultInstance() - : sessionExclusionCriteria_; - } - } - /** - * - * - *
-     * If a session meets this condition, the session is excluded from
-     * membership in the segment for the `sessionExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SessionSegmentCriteria, - com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder> - getSessionExclusionCriteriaFieldBuilder() { - if (sessionExclusionCriteriaBuilder_ == null) { - sessionExclusionCriteriaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SessionSegmentCriteria, - com.google.analytics.data.v1alpha.SessionSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder>( - getSessionExclusionCriteria(), getParentForChildren(), isClean()); - sessionExclusionCriteria_ = null; - } - return sessionExclusionCriteriaBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.SessionSegmentExclusion) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.SessionSegmentExclusion) - private static final com.google.analytics.data.v1alpha.SessionSegmentExclusion DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.SessionSegmentExclusion(); - } - - public static com.google.analytics.data.v1alpha.SessionSegmentExclusion getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SessionSegmentExclusion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.SessionSegmentExclusion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusionOrBuilder.java deleted file mode 100644 index 53c8f593..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentExclusionOrBuilder.java +++ /dev/null @@ -1,100 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface SessionSegmentExclusionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SessionSegmentExclusion) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Specifies how long an exclusion will last if a session matches the
-   * `sessionExclusionCriteria`.
-   * Optional. If unspecified, a `sessionExclusionDuration` of
-   * `SESSION_EXCLUSION_TEMPORARY` is used.
-   * 
- * - * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; - * - * - * @return The enum numeric value on the wire for sessionExclusionDuration. - */ - int getSessionExclusionDurationValue(); - /** - * - * - *
-   * Specifies how long an exclusion will last if a session matches the
-   * `sessionExclusionCriteria`.
-   * Optional. If unspecified, a `sessionExclusionDuration` of
-   * `SESSION_EXCLUSION_TEMPORARY` is used.
-   * 
- * - * .google.analytics.data.v1alpha.SessionExclusionDuration session_exclusion_duration = 1; - * - * - * @return The sessionExclusionDuration. - */ - com.google.analytics.data.v1alpha.SessionExclusionDuration getSessionExclusionDuration(); - - /** - * - * - *
-   * If a session meets this condition, the session is excluded from
-   * membership in the segment for the `sessionExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * - * - * @return Whether the sessionExclusionCriteria field is set. - */ - boolean hasSessionExclusionCriteria(); - /** - * - * - *
-   * If a session meets this condition, the session is excluded from
-   * membership in the segment for the `sessionExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * - * - * @return The sessionExclusionCriteria. - */ - com.google.analytics.data.v1alpha.SessionSegmentCriteria getSessionExclusionCriteria(); - /** - * - * - *
-   * If a session meets this condition, the session is excluded from
-   * membership in the segment for the `sessionExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_exclusion_criteria = 2; - * - */ - com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder - getSessionExclusionCriteriaOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentOrBuilder.java deleted file mode 100644 index fa600e30..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/SessionSegmentOrBuilder.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface SessionSegmentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.SessionSegment) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Defines which sessions are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * - * - * @return Whether the sessionInclusionCriteria field is set. - */ - boolean hasSessionInclusionCriteria(); - /** - * - * - *
-   * Defines which sessions are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * - * - * @return The sessionInclusionCriteria. - */ - com.google.analytics.data.v1alpha.SessionSegmentCriteria getSessionInclusionCriteria(); - /** - * - * - *
-   * Defines which sessions are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentCriteria session_inclusion_criteria = 1; - * - */ - com.google.analytics.data.v1alpha.SessionSegmentCriteriaOrBuilder - getSessionInclusionCriteriaOrBuilder(); - - /** - * - * - *
-   * Defines which sessions are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - * - * @return Whether the exclusion field is set. - */ - boolean hasExclusion(); - /** - * - * - *
-   * Defines which sessions are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - * - * @return The exclusion. - */ - com.google.analytics.data.v1alpha.SessionSegmentExclusion getExclusion(); - /** - * - * - *
-   * Defines which sessions are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.SessionSegmentExclusion exclusion = 2; - */ - com.google.analytics.data.v1alpha.SessionSegmentExclusionOrBuilder getExclusionOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilter.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilter.java deleted file mode 100644 index 5a6a7345..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilter.java +++ /dev/null @@ -1,1107 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * The filter for string
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.StringFilter} - */ -public final class StringFilter extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.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; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_StringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_StringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.StringFilter.class, - com.google.analytics.data.v1alpha.StringFilter.Builder.class); - } - - /** - * - * - *
-   * The match type of a string filter
-   * 
- * - * Protobuf enum {@code google.analytics.data.v1alpha.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 match for the regular expression with the string value.
-     * 
- * - * FULL_REGEXP = 5; - */ - FULL_REGEXP(5), - /** - * - * - *
-     * Partial match for the regular expression 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 match for the regular expression with the string value.
-     * 
- * - * FULL_REGEXP = 5; - */ - public static final int FULL_REGEXP_VALUE = 5; - /** - * - * - *
-     * Partial match for the regular expression 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.v1alpha.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.v1alpha.StringFilter.MatchType) - } - - public static final int MATCH_TYPE_FIELD_NUMBER = 1; - private int matchType_; - /** - * - * - *
-   * The match type for this filter.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.StringFilter.MatchType match_type = 1; - * - * @return The matchType. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilter.MatchType getMatchType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.StringFilter.MatchType result = - com.google.analytics.data.v1alpha.StringFilter.MatchType.valueOf(matchType_); - return result == null - ? com.google.analytics.data.v1alpha.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.v1alpha.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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (matchType_ - != com.google.analytics.data.v1alpha.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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.StringFilter)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.StringFilter other = - (com.google.analytics.data.v1alpha.StringFilter) obj; - - if (matchType_ != other.matchType_) return false; - if (!getValue().equals(other.getValue())) return false; - if (getCaseSensitive() != other.getCaseSensitive()) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.StringFilter parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.StringFilter parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.StringFilter parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.StringFilter parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.StringFilter parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.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.v1alpha.StringFilter} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.StringFilter) - com.google.analytics.data.v1alpha.StringFilterOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_StringFilter_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_StringFilter_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.StringFilter.class, - com.google.analytics.data.v1alpha.StringFilter.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.StringFilter.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_StringFilter_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilter getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.StringFilter.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilter build() { - com.google.analytics.data.v1alpha.StringFilter result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilter buildPartial() { - com.google.analytics.data.v1alpha.StringFilter result = - new com.google.analytics.data.v1alpha.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.v1alpha.StringFilter) { - return mergeFrom((com.google.analytics.data.v1alpha.StringFilter) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.StringFilter other) { - if (other == com.google.analytics.data.v1alpha.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - matchType_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - value_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - caseSensitive_ = input.readBool(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int matchType_ = 0; - /** - * - * - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.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.v1alpha.StringFilter.MatchType match_type = 1; - * - * @return The matchType. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilter.MatchType getMatchType() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.StringFilter.MatchType result = - com.google.analytics.data.v1alpha.StringFilter.MatchType.valueOf(matchType_); - return result == null - ? com.google.analytics.data.v1alpha.StringFilter.MatchType.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.data.v1alpha.StringFilter.MatchType match_type = 1; - * - * @param value The matchType to set. - * @return This builder for chaining. - */ - public Builder setMatchType(com.google.analytics.data.v1alpha.StringFilter.MatchType value) { - if (value == null) { - throw new NullPointerException(); - } - - matchType_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * The match type for this filter.
-     * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.StringFilter) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.StringFilter) - private static final com.google.analytics.data.v1alpha.StringFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.StringFilter(); - } - - public static com.google.analytics.data.v1alpha.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.StringFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilterOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilterOrBuilder.java deleted file mode 100644 index ad6ee584..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/StringFilterOrBuilder.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface StringFilterOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.StringFilter) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * The match type for this filter.
-   * 
- * - * .google.analytics.data.v1alpha.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.v1alpha.StringFilter.MatchType match_type = 1; - * - * @return The matchType. - */ - com.google.analytics.data.v1alpha.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(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserCriteriaScoping.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserCriteriaScoping.java deleted file mode 100644 index 78ed5df3..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserCriteriaScoping.java +++ /dev/null @@ -1,210 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Scoping specifies which events are considered when evaluating if a user
- * meets a criteria.
- * 
- * - * Protobuf enum {@code google.analytics.data.v1alpha.UserCriteriaScoping} - */ -public enum UserCriteriaScoping implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Unspecified criteria scoping. Do not specify.
-   * 
- * - * USER_CRITERIA_SCOPING_UNSPECIFIED = 0; - */ - USER_CRITERIA_SCOPING_UNSPECIFIED(0), - /** - * - * - *
-   * If the criteria is satisfied within one event, the user matches the
-   * criteria.
-   * 
- * - * USER_CRITERIA_WITHIN_SAME_EVENT = 1; - */ - USER_CRITERIA_WITHIN_SAME_EVENT(1), - /** - * - * - *
-   * If the criteria is satisfied within one session, the user matches the
-   * criteria.
-   * 
- * - * USER_CRITERIA_WITHIN_SAME_SESSION = 2; - */ - USER_CRITERIA_WITHIN_SAME_SESSION(2), - /** - * - * - *
-   * If the criteria is satisfied by any events for the user, the user
-   * matches the criteria.
-   * 
- * - * USER_CRITERIA_ACROSS_ALL_SESSIONS = 3; - */ - USER_CRITERIA_ACROSS_ALL_SESSIONS(3), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Unspecified criteria scoping. Do not specify.
-   * 
- * - * USER_CRITERIA_SCOPING_UNSPECIFIED = 0; - */ - public static final int USER_CRITERIA_SCOPING_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * If the criteria is satisfied within one event, the user matches the
-   * criteria.
-   * 
- * - * USER_CRITERIA_WITHIN_SAME_EVENT = 1; - */ - public static final int USER_CRITERIA_WITHIN_SAME_EVENT_VALUE = 1; - /** - * - * - *
-   * If the criteria is satisfied within one session, the user matches the
-   * criteria.
-   * 
- * - * USER_CRITERIA_WITHIN_SAME_SESSION = 2; - */ - public static final int USER_CRITERIA_WITHIN_SAME_SESSION_VALUE = 2; - /** - * - * - *
-   * If the criteria is satisfied by any events for the user, the user
-   * matches the criteria.
-   * 
- * - * USER_CRITERIA_ACROSS_ALL_SESSIONS = 3; - */ - public static final int USER_CRITERIA_ACROSS_ALL_SESSIONS_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 UserCriteriaScoping 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 UserCriteriaScoping forNumber(int value) { - switch (value) { - case 0: - return USER_CRITERIA_SCOPING_UNSPECIFIED; - case 1: - return USER_CRITERIA_WITHIN_SAME_EVENT; - case 2: - return USER_CRITERIA_WITHIN_SAME_SESSION; - case 3: - return USER_CRITERIA_ACROSS_ALL_SESSIONS; - 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 UserCriteriaScoping findValueByNumber(int number) { - return UserCriteriaScoping.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.v1alpha.ReportingApiProto.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final UserCriteriaScoping[] VALUES = values(); - - public static UserCriteriaScoping 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 UserCriteriaScoping(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.UserCriteriaScoping) -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserExclusionDuration.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserExclusionDuration.java deleted file mode 100644 index 50c10f56..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserExclusionDuration.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Enumerates options for how long an exclusion will last if a user matches
- * the `userExclusionCriteria`.
- * 
- * - * Protobuf enum {@code google.analytics.data.v1alpha.UserExclusionDuration} - */ -public enum UserExclusionDuration implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
-   * Unspecified exclusion duration. Do not specify.
-   * 
- * - * USER_EXCLUSION_DURATION_UNSPECIFIED = 0; - */ - USER_EXCLUSION_DURATION_UNSPECIFIED(0), - /** - * - * - *
-   * Temporarily exclude users from the segment during periods when the
-   * user meets the `userExclusionCriteria` condition.
-   * 
- * - * USER_EXCLUSION_TEMPORARY = 1; - */ - USER_EXCLUSION_TEMPORARY(1), - /** - * - * - *
-   * Permanently exclude users from the segment if the user ever meets the
-   * `userExclusionCriteria` condition.
-   * 
- * - * USER_EXCLUSION_PERMANENT = 2; - */ - USER_EXCLUSION_PERMANENT(2), - UNRECOGNIZED(-1), - ; - - /** - * - * - *
-   * Unspecified exclusion duration. Do not specify.
-   * 
- * - * USER_EXCLUSION_DURATION_UNSPECIFIED = 0; - */ - public static final int USER_EXCLUSION_DURATION_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Temporarily exclude users from the segment during periods when the
-   * user meets the `userExclusionCriteria` condition.
-   * 
- * - * USER_EXCLUSION_TEMPORARY = 1; - */ - public static final int USER_EXCLUSION_TEMPORARY_VALUE = 1; - /** - * - * - *
-   * Permanently exclude users from the segment if the user ever meets the
-   * `userExclusionCriteria` condition.
-   * 
- * - * USER_EXCLUSION_PERMANENT = 2; - */ - public static final int USER_EXCLUSION_PERMANENT_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 UserExclusionDuration 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 UserExclusionDuration forNumber(int value) { - switch (value) { - case 0: - return USER_EXCLUSION_DURATION_UNSPECIFIED; - case 1: - return USER_EXCLUSION_TEMPORARY; - case 2: - return USER_EXCLUSION_PERMANENT; - 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 UserExclusionDuration findValueByNumber(int number) { - return UserExclusionDuration.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.v1alpha.ReportingApiProto.getDescriptor() - .getEnumTypes() - .get(1); - } - - private static final UserExclusionDuration[] VALUES = values(); - - public static UserExclusionDuration 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 UserExclusionDuration(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.analytics.data.v1alpha.UserExclusionDuration) -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegment.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegment.java deleted file mode 100644 index d4e5f41a..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegment.java +++ /dev/null @@ -1,983 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * User segments are subsets of users who engaged with your site or app. For
- * example, users who have previously purchased; users who added items to their
- * shopping carts, but didn’t complete a purchase.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.UserSegment} - */ -public final class UserSegment extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.UserSegment) - UserSegmentOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserSegment.newBuilder() to construct. - private UserSegment(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UserSegment() {} - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UserSegment(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.UserSegment.class, - com.google.analytics.data.v1alpha.UserSegment.Builder.class); - } - - public static final int USER_INCLUSION_CRITERIA_FIELD_NUMBER = 1; - private com.google.analytics.data.v1alpha.UserSegmentCriteria userInclusionCriteria_; - /** - * - * - *
-   * Defines which users are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - * - * @return Whether the userInclusionCriteria field is set. - */ - @java.lang.Override - public boolean hasUserInclusionCriteria() { - return userInclusionCriteria_ != null; - } - /** - * - * - *
-   * Defines which users are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - * - * @return The userInclusionCriteria. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentCriteria getUserInclusionCriteria() { - return userInclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.UserSegmentCriteria.getDefaultInstance() - : userInclusionCriteria_; - } - /** - * - * - *
-   * Defines which users are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder - getUserInclusionCriteriaOrBuilder() { - return getUserInclusionCriteria(); - } - - public static final int EXCLUSION_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.UserSegmentExclusion exclusion_; - /** - * - * - *
-   * Defines which users are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - * - * @return Whether the exclusion field is set. - */ - @java.lang.Override - public boolean hasExclusion() { - return exclusion_ != null; - } - /** - * - * - *
-   * Defines which users are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - * - * @return The exclusion. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentExclusion getExclusion() { - return exclusion_ == null - ? com.google.analytics.data.v1alpha.UserSegmentExclusion.getDefaultInstance() - : exclusion_; - } - /** - * - * - *
-   * Defines which users are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentExclusionOrBuilder getExclusionOrBuilder() { - return getExclusion(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (userInclusionCriteria_ != null) { - output.writeMessage(1, getUserInclusionCriteria()); - } - if (exclusion_ != null) { - output.writeMessage(2, getExclusion()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (userInclusionCriteria_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUserInclusionCriteria()); - } - if (exclusion_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExclusion()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.UserSegment)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.UserSegment other = - (com.google.analytics.data.v1alpha.UserSegment) obj; - - if (hasUserInclusionCriteria() != other.hasUserInclusionCriteria()) return false; - if (hasUserInclusionCriteria()) { - if (!getUserInclusionCriteria().equals(other.getUserInclusionCriteria())) return false; - } - if (hasExclusion() != other.hasExclusion()) return false; - if (hasExclusion()) { - if (!getExclusion().equals(other.getExclusion())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasUserInclusionCriteria()) { - hash = (37 * hash) + USER_INCLUSION_CRITERIA_FIELD_NUMBER; - hash = (53 * hash) + getUserInclusionCriteria().hashCode(); - } - if (hasExclusion()) { - hash = (37 * hash) + EXCLUSION_FIELD_NUMBER; - hash = (53 * hash) + getExclusion().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.UserSegment parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSegment 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.v1alpha.UserSegment parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSegment parseFrom( - 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.v1alpha.UserSegment parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSegment parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.UserSegment parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSegment parseFrom( - java.io.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.v1alpha.UserSegment parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSegment parseDelimitedFrom( - java.io.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.v1alpha.UserSegment parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSegment parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.UserSegment prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * User segments are subsets of users who engaged with your site or app. For
-   * example, users who have previously purchased; users who added items to their
-   * shopping carts, but didn’t complete a purchase.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.UserSegment} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.UserSegment) - com.google.analytics.data.v1alpha.UserSegmentOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegment_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegment_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.UserSegment.class, - com.google.analytics.data.v1alpha.UserSegment.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.UserSegment.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (userInclusionCriteriaBuilder_ == null) { - userInclusionCriteria_ = null; - } else { - userInclusionCriteria_ = null; - userInclusionCriteriaBuilder_ = null; - } - if (exclusionBuilder_ == null) { - exclusion_ = null; - } else { - exclusion_ = null; - exclusionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegment_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegment getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegment build() { - com.google.analytics.data.v1alpha.UserSegment result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegment buildPartial() { - com.google.analytics.data.v1alpha.UserSegment result = - new com.google.analytics.data.v1alpha.UserSegment(this); - if (userInclusionCriteriaBuilder_ == null) { - result.userInclusionCriteria_ = userInclusionCriteria_; - } else { - result.userInclusionCriteria_ = userInclusionCriteriaBuilder_.build(); - } - if (exclusionBuilder_ == null) { - result.exclusion_ = exclusion_; - } else { - result.exclusion_ = exclusionBuilder_.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.v1alpha.UserSegment) { - return mergeFrom((com.google.analytics.data.v1alpha.UserSegment) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSegment other) { - if (other == com.google.analytics.data.v1alpha.UserSegment.getDefaultInstance()) return this; - if (other.hasUserInclusionCriteria()) { - mergeUserInclusionCriteria(other.getUserInclusionCriteria()); - } - if (other.hasExclusion()) { - mergeExclusion(other.getExclusion()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getUserInclusionCriteriaFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getExclusionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.analytics.data.v1alpha.UserSegmentCriteria userInclusionCriteria_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegmentCriteria, - com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder> - userInclusionCriteriaBuilder_; - /** - * - * - *
-     * Defines which users are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - * - * @return Whether the userInclusionCriteria field is set. - */ - public boolean hasUserInclusionCriteria() { - return userInclusionCriteriaBuilder_ != null || userInclusionCriteria_ != null; - } - /** - * - * - *
-     * Defines which users are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - * - * @return The userInclusionCriteria. - */ - public com.google.analytics.data.v1alpha.UserSegmentCriteria getUserInclusionCriteria() { - if (userInclusionCriteriaBuilder_ == null) { - return userInclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.UserSegmentCriteria.getDefaultInstance() - : userInclusionCriteria_; - } else { - return userInclusionCriteriaBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Defines which users are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - */ - public Builder setUserInclusionCriteria( - com.google.analytics.data.v1alpha.UserSegmentCriteria value) { - if (userInclusionCriteriaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - userInclusionCriteria_ = value; - onChanged(); - } else { - userInclusionCriteriaBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Defines which users are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - */ - public Builder setUserInclusionCriteria( - com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder builderForValue) { - if (userInclusionCriteriaBuilder_ == null) { - userInclusionCriteria_ = builderForValue.build(); - onChanged(); - } else { - userInclusionCriteriaBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Defines which users are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - */ - public Builder mergeUserInclusionCriteria( - com.google.analytics.data.v1alpha.UserSegmentCriteria value) { - if (userInclusionCriteriaBuilder_ == null) { - if (userInclusionCriteria_ != null) { - userInclusionCriteria_ = - com.google.analytics.data.v1alpha.UserSegmentCriteria.newBuilder( - userInclusionCriteria_) - .mergeFrom(value) - .buildPartial(); - } else { - userInclusionCriteria_ = value; - } - onChanged(); - } else { - userInclusionCriteriaBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Defines which users are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - */ - public Builder clearUserInclusionCriteria() { - if (userInclusionCriteriaBuilder_ == null) { - userInclusionCriteria_ = null; - onChanged(); - } else { - userInclusionCriteria_ = null; - userInclusionCriteriaBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Defines which users are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - */ - public com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder - getUserInclusionCriteriaBuilder() { - - onChanged(); - return getUserInclusionCriteriaFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Defines which users are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - */ - public com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder - getUserInclusionCriteriaOrBuilder() { - if (userInclusionCriteriaBuilder_ != null) { - return userInclusionCriteriaBuilder_.getMessageOrBuilder(); - } else { - return userInclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.UserSegmentCriteria.getDefaultInstance() - : userInclusionCriteria_; - } - } - /** - * - * - *
-     * Defines which users are included in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegmentCriteria, - com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder> - getUserInclusionCriteriaFieldBuilder() { - if (userInclusionCriteriaBuilder_ == null) { - userInclusionCriteriaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegmentCriteria, - com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder>( - getUserInclusionCriteria(), getParentForChildren(), isClean()); - userInclusionCriteria_ = null; - } - return userInclusionCriteriaBuilder_; - } - - private com.google.analytics.data.v1alpha.UserSegmentExclusion exclusion_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegmentExclusion, - com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder, - com.google.analytics.data.v1alpha.UserSegmentExclusionOrBuilder> - exclusionBuilder_; - /** - * - * - *
-     * Defines which users are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - * - * @return Whether the exclusion field is set. - */ - public boolean hasExclusion() { - return exclusionBuilder_ != null || exclusion_ != null; - } - /** - * - * - *
-     * Defines which users are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - * - * @return The exclusion. - */ - public com.google.analytics.data.v1alpha.UserSegmentExclusion getExclusion() { - if (exclusionBuilder_ == null) { - return exclusion_ == null - ? com.google.analytics.data.v1alpha.UserSegmentExclusion.getDefaultInstance() - : exclusion_; - } else { - return exclusionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Defines which users are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - */ - public Builder setExclusion(com.google.analytics.data.v1alpha.UserSegmentExclusion value) { - if (exclusionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - exclusion_ = value; - onChanged(); - } else { - exclusionBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Defines which users are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - */ - public Builder setExclusion( - com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder builderForValue) { - if (exclusionBuilder_ == null) { - exclusion_ = builderForValue.build(); - onChanged(); - } else { - exclusionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Defines which users are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - */ - public Builder mergeExclusion(com.google.analytics.data.v1alpha.UserSegmentExclusion value) { - if (exclusionBuilder_ == null) { - if (exclusion_ != null) { - exclusion_ = - com.google.analytics.data.v1alpha.UserSegmentExclusion.newBuilder(exclusion_) - .mergeFrom(value) - .buildPartial(); - } else { - exclusion_ = value; - } - onChanged(); - } else { - exclusionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Defines which users are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - */ - public Builder clearExclusion() { - if (exclusionBuilder_ == null) { - exclusion_ = null; - onChanged(); - } else { - exclusion_ = null; - exclusionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Defines which users are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - */ - public com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder getExclusionBuilder() { - - onChanged(); - return getExclusionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Defines which users are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - */ - public com.google.analytics.data.v1alpha.UserSegmentExclusionOrBuilder getExclusionOrBuilder() { - if (exclusionBuilder_ != null) { - return exclusionBuilder_.getMessageOrBuilder(); - } else { - return exclusion_ == null - ? com.google.analytics.data.v1alpha.UserSegmentExclusion.getDefaultInstance() - : exclusion_; - } - } - /** - * - * - *
-     * Defines which users are excluded in this segment. Optional.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegmentExclusion, - com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder, - com.google.analytics.data.v1alpha.UserSegmentExclusionOrBuilder> - getExclusionFieldBuilder() { - if (exclusionBuilder_ == null) { - exclusionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegmentExclusion, - com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder, - com.google.analytics.data.v1alpha.UserSegmentExclusionOrBuilder>( - getExclusion(), getParentForChildren(), isClean()); - exclusion_ = null; - } - return exclusionBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.UserSegment) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.UserSegment) - private static final com.google.analytics.data.v1alpha.UserSegment DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.UserSegment(); - } - - public static com.google.analytics.data.v1alpha.UserSegment getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserSegment parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegment getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroup.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroup.java deleted file mode 100644 index 5ddf79db..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroup.java +++ /dev/null @@ -1,987 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Conditions tell Analytics what data to include in or exclude from the
- * segment.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.UserSegmentConditionGroup} - */ -public final class UserSegmentConditionGroup extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.UserSegmentConditionGroup) - UserSegmentConditionGroupOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserSegmentConditionGroup.newBuilder() to construct. - private UserSegmentConditionGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UserSegmentConditionGroup() { - conditionScoping_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UserSegmentConditionGroup(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.UserSegmentConditionGroup.class, - com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder.class); - } - - public static final int CONDITION_SCOPING_FIELD_NUMBER = 1; - private int conditionScoping_; - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * the condition group. This scoping defines how many events the
-   * `segmentFilterExpression` is evaluated on before the condition group
-   * is determined to be matched or not. For example if `conditionScoping =
-   * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-   * events in a session, and then, the condition group is determined to be
-   * matched or not for this user. For example if `conditionScoping =
-   * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
-   * event, and then, the condition group is determined to be matched or not for
-   * this user.
-   * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-   * used.
-   * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; - * - * @return The enum numeric value on the wire for conditionScoping. - */ - @java.lang.Override - public int getConditionScopingValue() { - return conditionScoping_; - } - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * the condition group. This scoping defines how many events the
-   * `segmentFilterExpression` is evaluated on before the condition group
-   * is determined to be matched or not. For example if `conditionScoping =
-   * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-   * events in a session, and then, the condition group is determined to be
-   * matched or not for this user. For example if `conditionScoping =
-   * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
-   * event, and then, the condition group is determined to be matched or not for
-   * this user.
-   * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-   * used.
-   * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; - * - * @return The conditionScoping. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserCriteriaScoping getConditionScoping() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.UserCriteriaScoping result = - com.google.analytics.data.v1alpha.UserCriteriaScoping.valueOf(conditionScoping_); - return result == null - ? com.google.analytics.data.v1alpha.UserCriteriaScoping.UNRECOGNIZED - : result; - } - - public static final int SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_; - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return Whether the segmentFilterExpression field is set. - */ - @java.lang.Override - public boolean hasSegmentFilterExpression() { - return segmentFilterExpression_ != null; - } - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return The segmentFilterExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() { - return segmentFilterExpression_ == null - ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() - : segmentFilterExpression_; - } - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder - getSegmentFilterExpressionOrBuilder() { - return getSegmentFilterExpression(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (conditionScoping_ - != com.google.analytics.data.v1alpha.UserCriteriaScoping.USER_CRITERIA_SCOPING_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, conditionScoping_); - } - if (segmentFilterExpression_ != null) { - output.writeMessage(2, getSegmentFilterExpression()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (conditionScoping_ - != com.google.analytics.data.v1alpha.UserCriteriaScoping.USER_CRITERIA_SCOPING_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, conditionScoping_); - } - if (segmentFilterExpression_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSegmentFilterExpression()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.UserSegmentConditionGroup)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.UserSegmentConditionGroup other = - (com.google.analytics.data.v1alpha.UserSegmentConditionGroup) obj; - - if (conditionScoping_ != other.conditionScoping_) return false; - if (hasSegmentFilterExpression() != other.hasSegmentFilterExpression()) return false; - if (hasSegmentFilterExpression()) { - if (!getSegmentFilterExpression().equals(other.getSegmentFilterExpression())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONDITION_SCOPING_FIELD_NUMBER; - hash = (53 * hash) + conditionScoping_; - if (hasSegmentFilterExpression()) { - hash = (37 * hash) + SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getSegmentFilterExpression().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup 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.v1alpha.UserSegmentConditionGroup parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup parseFrom( - 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.v1alpha.UserSegmentConditionGroup parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup parseFrom( - java.io.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.v1alpha.UserSegmentConditionGroup parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup parseDelimitedFrom( - java.io.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.v1alpha.UserSegmentConditionGroup parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.UserSegmentConditionGroup prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Conditions tell Analytics what data to include in or exclude from the
-   * segment.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.UserSegmentConditionGroup} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.UserSegmentConditionGroup) - com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.UserSegmentConditionGroup.class, - com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.UserSegmentConditionGroup.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - conditionScoping_ = 0; - - if (segmentFilterExpressionBuilder_ == null) { - segmentFilterExpression_ = null; - } else { - segmentFilterExpression_ = null; - segmentFilterExpressionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentConditionGroup_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentConditionGroup getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.UserSegmentConditionGroup.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentConditionGroup build() { - com.google.analytics.data.v1alpha.UserSegmentConditionGroup result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentConditionGroup buildPartial() { - com.google.analytics.data.v1alpha.UserSegmentConditionGroup result = - new com.google.analytics.data.v1alpha.UserSegmentConditionGroup(this); - result.conditionScoping_ = conditionScoping_; - if (segmentFilterExpressionBuilder_ == null) { - result.segmentFilterExpression_ = segmentFilterExpression_; - } else { - result.segmentFilterExpression_ = segmentFilterExpressionBuilder_.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.v1alpha.UserSegmentConditionGroup) { - return mergeFrom((com.google.analytics.data.v1alpha.UserSegmentConditionGroup) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSegmentConditionGroup other) { - if (other == com.google.analytics.data.v1alpha.UserSegmentConditionGroup.getDefaultInstance()) - return this; - if (other.conditionScoping_ != 0) { - setConditionScopingValue(other.getConditionScopingValue()); - } - if (other.hasSegmentFilterExpression()) { - mergeSegmentFilterExpression(other.getSegmentFilterExpression()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - conditionScoping_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getSegmentFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int conditionScoping_ = 0; - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * the condition group. This scoping defines how many events the
-     * `segmentFilterExpression` is evaluated on before the condition group
-     * is determined to be matched or not. For example if `conditionScoping =
-     * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-     * events in a session, and then, the condition group is determined to be
-     * matched or not for this user. For example if `conditionScoping =
-     * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
-     * event, and then, the condition group is determined to be matched or not for
-     * this user.
-     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-     * used.
-     * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; - * - * @return The enum numeric value on the wire for conditionScoping. - */ - @java.lang.Override - public int getConditionScopingValue() { - return conditionScoping_; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * the condition group. This scoping defines how many events the
-     * `segmentFilterExpression` is evaluated on before the condition group
-     * is determined to be matched or not. For example if `conditionScoping =
-     * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-     * events in a session, and then, the condition group is determined to be
-     * matched or not for this user. For example if `conditionScoping =
-     * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
-     * event, and then, the condition group is determined to be matched or not for
-     * this user.
-     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-     * used.
-     * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; - * - * @param value The enum numeric value on the wire for conditionScoping to set. - * @return This builder for chaining. - */ - public Builder setConditionScopingValue(int value) { - - conditionScoping_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * the condition group. This scoping defines how many events the
-     * `segmentFilterExpression` is evaluated on before the condition group
-     * is determined to be matched or not. For example if `conditionScoping =
-     * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-     * events in a session, and then, the condition group is determined to be
-     * matched or not for this user. For example if `conditionScoping =
-     * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
-     * event, and then, the condition group is determined to be matched or not for
-     * this user.
-     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-     * used.
-     * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; - * - * @return The conditionScoping. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserCriteriaScoping getConditionScoping() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.UserCriteriaScoping result = - com.google.analytics.data.v1alpha.UserCriteriaScoping.valueOf(conditionScoping_); - return result == null - ? com.google.analytics.data.v1alpha.UserCriteriaScoping.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * the condition group. This scoping defines how many events the
-     * `segmentFilterExpression` is evaluated on before the condition group
-     * is determined to be matched or not. For example if `conditionScoping =
-     * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-     * events in a session, and then, the condition group is determined to be
-     * matched or not for this user. For example if `conditionScoping =
-     * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
-     * event, and then, the condition group is determined to be matched or not for
-     * this user.
-     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-     * used.
-     * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; - * - * @param value The conditionScoping to set. - * @return This builder for chaining. - */ - public Builder setConditionScoping( - com.google.analytics.data.v1alpha.UserCriteriaScoping value) { - if (value == null) { - throw new NullPointerException(); - } - - conditionScoping_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * the condition group. This scoping defines how many events the
-     * `segmentFilterExpression` is evaluated on before the condition group
-     * is determined to be matched or not. For example if `conditionScoping =
-     * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-     * events in a session, and then, the condition group is determined to be
-     * matched or not for this user. For example if `conditionScoping =
-     * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
-     * event, and then, the condition group is determined to be matched or not for
-     * this user.
-     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-     * used.
-     * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; - * - * @return This builder for chaining. - */ - public Builder clearConditionScoping() { - - conditionScoping_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> - segmentFilterExpressionBuilder_; - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return Whether the segmentFilterExpression field is set. - */ - public boolean hasSegmentFilterExpression() { - return segmentFilterExpressionBuilder_ != null || segmentFilterExpression_ != null; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return The segmentFilterExpression. - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() { - if (segmentFilterExpressionBuilder_ == null) { - return segmentFilterExpression_ == null - ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() - : segmentFilterExpression_; - } else { - return segmentFilterExpressionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public Builder setSegmentFilterExpression( - com.google.analytics.data.v1alpha.SegmentFilterExpression value) { - if (segmentFilterExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - segmentFilterExpression_ = value; - onChanged(); - } else { - segmentFilterExpressionBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public Builder setSegmentFilterExpression( - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) { - if (segmentFilterExpressionBuilder_ == null) { - segmentFilterExpression_ = builderForValue.build(); - onChanged(); - } else { - segmentFilterExpressionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public Builder mergeSegmentFilterExpression( - com.google.analytics.data.v1alpha.SegmentFilterExpression value) { - if (segmentFilterExpressionBuilder_ == null) { - if (segmentFilterExpression_ != null) { - segmentFilterExpression_ = - com.google.analytics.data.v1alpha.SegmentFilterExpression.newBuilder( - segmentFilterExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - segmentFilterExpression_ = value; - } - onChanged(); - } else { - segmentFilterExpressionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public Builder clearSegmentFilterExpression() { - if (segmentFilterExpressionBuilder_ == null) { - segmentFilterExpression_ = null; - onChanged(); - } else { - segmentFilterExpression_ = null; - segmentFilterExpressionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder - getSegmentFilterExpressionBuilder() { - - onChanged(); - return getSegmentFilterExpressionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder - getSegmentFilterExpressionOrBuilder() { - if (segmentFilterExpressionBuilder_ != null) { - return segmentFilterExpressionBuilder_.getMessageOrBuilder(); - } else { - return segmentFilterExpression_ == null - ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() - : segmentFilterExpression_; - } - } - /** - * - * - *
-     * Data is included or excluded from the segment based on if it matches
-     * this expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> - getSegmentFilterExpressionFieldBuilder() { - if (segmentFilterExpressionBuilder_ == null) { - segmentFilterExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder>( - getSegmentFilterExpression(), getParentForChildren(), isClean()); - segmentFilterExpression_ = null; - } - return segmentFilterExpressionBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.UserSegmentConditionGroup) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.UserSegmentConditionGroup) - private static final com.google.analytics.data.v1alpha.UserSegmentConditionGroup DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.UserSegmentConditionGroup(); - } - - public static com.google.analytics.data.v1alpha.UserSegmentConditionGroup getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserSegmentConditionGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentConditionGroup getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroupOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroupOrBuilder.java deleted file mode 100644 index 69c56dae..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentConditionGroupOrBuilder.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface UserSegmentConditionGroupOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.UserSegmentConditionGroup) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * the condition group. This scoping defines how many events the
-   * `segmentFilterExpression` is evaluated on before the condition group
-   * is determined to be matched or not. For example if `conditionScoping =
-   * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-   * events in a session, and then, the condition group is determined to be
-   * matched or not for this user. For example if `conditionScoping =
-   * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
-   * event, and then, the condition group is determined to be matched or not for
-   * this user.
-   * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-   * used.
-   * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; - * - * @return The enum numeric value on the wire for conditionScoping. - */ - int getConditionScopingValue(); - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * the condition group. This scoping defines how many events the
-   * `segmentFilterExpression` is evaluated on before the condition group
-   * is determined to be matched or not. For example if `conditionScoping =
-   * USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all
-   * events in a session, and then, the condition group is determined to be
-   * matched or not for this user. For example if `conditionScoping =
-   * USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single
-   * event, and then, the condition group is determined to be matched or not for
-   * this user.
-   * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-   * used.
-   * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping condition_scoping = 1; - * - * @return The conditionScoping. - */ - com.google.analytics.data.v1alpha.UserCriteriaScoping getConditionScoping(); - - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return Whether the segmentFilterExpression field is set. - */ - boolean hasSegmentFilterExpression(); - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - * - * @return The segmentFilterExpression. - */ - com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression(); - /** - * - * - *
-   * Data is included or excluded from the segment based on if it matches
-   * this expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 2; - * - */ - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder - getSegmentFilterExpressionOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteria.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteria.java deleted file mode 100644 index dd51e165..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteria.java +++ /dev/null @@ -1,1652 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * A user matches a criteria if the user's events meet the conditions in the
- * criteria.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.UserSegmentCriteria} - */ -public final class UserSegmentCriteria extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.UserSegmentCriteria) - UserSegmentCriteriaOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserSegmentCriteria.newBuilder() to construct. - private UserSegmentCriteria(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UserSegmentCriteria() { - andConditionGroups_ = java.util.Collections.emptyList(); - andSequenceGroups_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UserSegmentCriteria(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.UserSegmentCriteria.class, - com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder.class); - } - - public static final int AND_CONDITION_GROUPS_FIELD_NUMBER = 1; - private java.util.List - andConditionGroups_; - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andConditionGroups` and each of the `andSequenceGroups`.
-   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - @java.lang.Override - public java.util.List - getAndConditionGroupsList() { - return andConditionGroups_; - } - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andConditionGroups` and each of the `andSequenceGroups`.
-   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder> - getAndConditionGroupsOrBuilderList() { - return andConditionGroups_; - } - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andConditionGroups` and each of the `andSequenceGroups`.
-   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - @java.lang.Override - public int getAndConditionGroupsCount() { - return andConditionGroups_.size(); - } - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andConditionGroups` and each of the `andSequenceGroups`.
-   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentConditionGroup getAndConditionGroups( - int index) { - return andConditionGroups_.get(index); - } - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andConditionGroups` and each of the `andSequenceGroups`.
-   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder - getAndConditionGroupsOrBuilder(int index) { - return andConditionGroups_.get(index); - } - - public static final int AND_SEQUENCE_GROUPS_FIELD_NUMBER = 2; - private java.util.List - andSequenceGroups_; - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andSequenceGroups` and each of the `andConditionGroups`.
-   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - @java.lang.Override - public java.util.List - getAndSequenceGroupsList() { - return andSequenceGroups_; - } - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andSequenceGroups` and each of the `andConditionGroups`.
-   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder> - getAndSequenceGroupsOrBuilderList() { - return andSequenceGroups_; - } - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andSequenceGroups` and each of the `andConditionGroups`.
-   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - @java.lang.Override - public int getAndSequenceGroupsCount() { - return andSequenceGroups_.size(); - } - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andSequenceGroups` and each of the `andConditionGroups`.
-   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup getAndSequenceGroups( - int index) { - return andSequenceGroups_.get(index); - } - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andSequenceGroups` and each of the `andConditionGroups`.
-   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder - getAndSequenceGroupsOrBuilder(int index) { - return andSequenceGroups_.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 < andConditionGroups_.size(); i++) { - output.writeMessage(1, andConditionGroups_.get(i)); - } - for (int i = 0; i < andSequenceGroups_.size(); i++) { - output.writeMessage(2, andSequenceGroups_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < andConditionGroups_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, andConditionGroups_.get(i)); - } - for (int i = 0; i < andSequenceGroups_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, andSequenceGroups_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.UserSegmentCriteria)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.UserSegmentCriteria other = - (com.google.analytics.data.v1alpha.UserSegmentCriteria) obj; - - if (!getAndConditionGroupsList().equals(other.getAndConditionGroupsList())) return false; - if (!getAndSequenceGroupsList().equals(other.getAndSequenceGroupsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAndConditionGroupsCount() > 0) { - hash = (37 * hash) + AND_CONDITION_GROUPS_FIELD_NUMBER; - hash = (53 * hash) + getAndConditionGroupsList().hashCode(); - } - if (getAndSequenceGroupsCount() > 0) { - hash = (37 * hash) + AND_SEQUENCE_GROUPS_FIELD_NUMBER; - hash = (53 * hash) + getAndSequenceGroupsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.UserSegmentCriteria parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSegmentCriteria 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.v1alpha.UserSegmentCriteria parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSegmentCriteria parseFrom( - 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.v1alpha.UserSegmentCriteria parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSegmentCriteria parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.UserSegmentCriteria parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSegmentCriteria parseFrom( - java.io.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.v1alpha.UserSegmentCriteria parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSegmentCriteria parseDelimitedFrom( - java.io.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.v1alpha.UserSegmentCriteria parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSegmentCriteria parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.UserSegmentCriteria prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 user matches a criteria if the user's events meet the conditions in the
-   * criteria.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.UserSegmentCriteria} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.UserSegmentCriteria) - com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.UserSegmentCriteria.class, - com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.UserSegmentCriteria.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (andConditionGroupsBuilder_ == null) { - andConditionGroups_ = java.util.Collections.emptyList(); - } else { - andConditionGroups_ = null; - andConditionGroupsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (andSequenceGroupsBuilder_ == null) { - andSequenceGroups_ = java.util.Collections.emptyList(); - } else { - andSequenceGroups_ = null; - andSequenceGroupsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentCriteria_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentCriteria getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.UserSegmentCriteria.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentCriteria build() { - com.google.analytics.data.v1alpha.UserSegmentCriteria result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentCriteria buildPartial() { - com.google.analytics.data.v1alpha.UserSegmentCriteria result = - new com.google.analytics.data.v1alpha.UserSegmentCriteria(this); - int from_bitField0_ = bitField0_; - if (andConditionGroupsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - andConditionGroups_ = java.util.Collections.unmodifiableList(andConditionGroups_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.andConditionGroups_ = andConditionGroups_; - } else { - result.andConditionGroups_ = andConditionGroupsBuilder_.build(); - } - if (andSequenceGroupsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0)) { - andSequenceGroups_ = java.util.Collections.unmodifiableList(andSequenceGroups_); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.andSequenceGroups_ = andSequenceGroups_; - } else { - result.andSequenceGroups_ = andSequenceGroupsBuilder_.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.v1alpha.UserSegmentCriteria) { - return mergeFrom((com.google.analytics.data.v1alpha.UserSegmentCriteria) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSegmentCriteria other) { - if (other == com.google.analytics.data.v1alpha.UserSegmentCriteria.getDefaultInstance()) - return this; - if (andConditionGroupsBuilder_ == null) { - if (!other.andConditionGroups_.isEmpty()) { - if (andConditionGroups_.isEmpty()) { - andConditionGroups_ = other.andConditionGroups_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.addAll(other.andConditionGroups_); - } - onChanged(); - } - } else { - if (!other.andConditionGroups_.isEmpty()) { - if (andConditionGroupsBuilder_.isEmpty()) { - andConditionGroupsBuilder_.dispose(); - andConditionGroupsBuilder_ = null; - andConditionGroups_ = other.andConditionGroups_; - bitField0_ = (bitField0_ & ~0x00000001); - andConditionGroupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAndConditionGroupsFieldBuilder() - : null; - } else { - andConditionGroupsBuilder_.addAllMessages(other.andConditionGroups_); - } - } - } - if (andSequenceGroupsBuilder_ == null) { - if (!other.andSequenceGroups_.isEmpty()) { - if (andSequenceGroups_.isEmpty()) { - andSequenceGroups_ = other.andSequenceGroups_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureAndSequenceGroupsIsMutable(); - andSequenceGroups_.addAll(other.andSequenceGroups_); - } - onChanged(); - } - } else { - if (!other.andSequenceGroups_.isEmpty()) { - if (andSequenceGroupsBuilder_.isEmpty()) { - andSequenceGroupsBuilder_.dispose(); - andSequenceGroupsBuilder_ = null; - andSequenceGroups_ = other.andSequenceGroups_; - bitField0_ = (bitField0_ & ~0x00000002); - andSequenceGroupsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getAndSequenceGroupsFieldBuilder() - : null; - } else { - andSequenceGroupsBuilder_.addAllMessages(other.andSequenceGroups_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1alpha.UserSegmentConditionGroup m = - input.readMessage( - com.google.analytics.data.v1alpha.UserSegmentConditionGroup.parser(), - extensionRegistry); - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.add(m); - } else { - andConditionGroupsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup m = - input.readMessage( - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.parser(), - extensionRegistry); - if (andSequenceGroupsBuilder_ == null) { - ensureAndSequenceGroupsIsMutable(); - andSequenceGroups_.add(m); - } else { - andSequenceGroupsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List - andConditionGroups_ = java.util.Collections.emptyList(); - - private void ensureAndConditionGroupsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - andConditionGroups_ = - new java.util.ArrayList( - andConditionGroups_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegmentConditionGroup, - com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder, - com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder> - andConditionGroupsBuilder_; - - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public java.util.List - getAndConditionGroupsList() { - if (andConditionGroupsBuilder_ == null) { - return java.util.Collections.unmodifiableList(andConditionGroups_); - } else { - return andConditionGroupsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public int getAndConditionGroupsCount() { - if (andConditionGroupsBuilder_ == null) { - return andConditionGroups_.size(); - } else { - return andConditionGroupsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public com.google.analytics.data.v1alpha.UserSegmentConditionGroup getAndConditionGroups( - int index) { - if (andConditionGroupsBuilder_ == null) { - return andConditionGroups_.get(index); - } else { - return andConditionGroupsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder setAndConditionGroups( - int index, com.google.analytics.data.v1alpha.UserSegmentConditionGroup value) { - if (andConditionGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.set(index, value); - onChanged(); - } else { - andConditionGroupsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder setAndConditionGroups( - int index, - com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder builderForValue) { - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.set(index, builderForValue.build()); - onChanged(); - } else { - andConditionGroupsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder addAndConditionGroups( - com.google.analytics.data.v1alpha.UserSegmentConditionGroup value) { - if (andConditionGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.add(value); - onChanged(); - } else { - andConditionGroupsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder addAndConditionGroups( - int index, com.google.analytics.data.v1alpha.UserSegmentConditionGroup value) { - if (andConditionGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.add(index, value); - onChanged(); - } else { - andConditionGroupsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder addAndConditionGroups( - com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder builderForValue) { - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.add(builderForValue.build()); - onChanged(); - } else { - andConditionGroupsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder addAndConditionGroups( - int index, - com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder builderForValue) { - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.add(index, builderForValue.build()); - onChanged(); - } else { - andConditionGroupsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder addAllAndConditionGroups( - java.lang.Iterable - values) { - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, andConditionGroups_); - onChanged(); - } else { - andConditionGroupsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder clearAndConditionGroups() { - if (andConditionGroupsBuilder_ == null) { - andConditionGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - andConditionGroupsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public Builder removeAndConditionGroups(int index) { - if (andConditionGroupsBuilder_ == null) { - ensureAndConditionGroupsIsMutable(); - andConditionGroups_.remove(index); - onChanged(); - } else { - andConditionGroupsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder - getAndConditionGroupsBuilder(int index) { - return getAndConditionGroupsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder - getAndConditionGroupsOrBuilder(int index) { - if (andConditionGroupsBuilder_ == null) { - return andConditionGroups_.get(index); - } else { - return andConditionGroupsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public java.util.List< - ? extends com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder> - getAndConditionGroupsOrBuilderList() { - if (andConditionGroupsBuilder_ != null) { - return andConditionGroupsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(andConditionGroups_); - } - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder - addAndConditionGroupsBuilder() { - return getAndConditionGroupsFieldBuilder() - .addBuilder( - com.google.analytics.data.v1alpha.UserSegmentConditionGroup.getDefaultInstance()); - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder - addAndConditionGroupsBuilder(int index) { - return getAndConditionGroupsFieldBuilder() - .addBuilder( - index, - com.google.analytics.data.v1alpha.UserSegmentConditionGroup.getDefaultInstance()); - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andConditionGroups` and each of the `andSequenceGroups`.
-     * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - public java.util.List - getAndConditionGroupsBuilderList() { - return getAndConditionGroupsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegmentConditionGroup, - com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder, - com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder> - getAndConditionGroupsFieldBuilder() { - if (andConditionGroupsBuilder_ == null) { - andConditionGroupsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegmentConditionGroup, - com.google.analytics.data.v1alpha.UserSegmentConditionGroup.Builder, - com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder>( - andConditionGroups_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - andConditionGroups_ = null; - } - return andConditionGroupsBuilder_; - } - - private java.util.List - andSequenceGroups_ = java.util.Collections.emptyList(); - - private void ensureAndSequenceGroupsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - andSequenceGroups_ = - new java.util.ArrayList( - andSequenceGroups_); - bitField0_ |= 0x00000002; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup, - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder, - com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder> - andSequenceGroupsBuilder_; - - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public java.util.List - getAndSequenceGroupsList() { - if (andSequenceGroupsBuilder_ == null) { - return java.util.Collections.unmodifiableList(andSequenceGroups_); - } else { - return andSequenceGroupsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public int getAndSequenceGroupsCount() { - if (andSequenceGroupsBuilder_ == null) { - return andSequenceGroups_.size(); - } else { - return andSequenceGroupsBuilder_.getCount(); - } - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup getAndSequenceGroups( - int index) { - if (andSequenceGroupsBuilder_ == null) { - return andSequenceGroups_.get(index); - } else { - return andSequenceGroupsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public Builder setAndSequenceGroups( - int index, com.google.analytics.data.v1alpha.UserSegmentSequenceGroup value) { - if (andSequenceGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAndSequenceGroupsIsMutable(); - andSequenceGroups_.set(index, value); - onChanged(); - } else { - andSequenceGroupsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public Builder setAndSequenceGroups( - int index, - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder builderForValue) { - if (andSequenceGroupsBuilder_ == null) { - ensureAndSequenceGroupsIsMutable(); - andSequenceGroups_.set(index, builderForValue.build()); - onChanged(); - } else { - andSequenceGroupsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public Builder addAndSequenceGroups( - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup value) { - if (andSequenceGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAndSequenceGroupsIsMutable(); - andSequenceGroups_.add(value); - onChanged(); - } else { - andSequenceGroupsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public Builder addAndSequenceGroups( - int index, com.google.analytics.data.v1alpha.UserSegmentSequenceGroup value) { - if (andSequenceGroupsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAndSequenceGroupsIsMutable(); - andSequenceGroups_.add(index, value); - onChanged(); - } else { - andSequenceGroupsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public Builder addAndSequenceGroups( - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder builderForValue) { - if (andSequenceGroupsBuilder_ == null) { - ensureAndSequenceGroupsIsMutable(); - andSequenceGroups_.add(builderForValue.build()); - onChanged(); - } else { - andSequenceGroupsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public Builder addAndSequenceGroups( - int index, - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder builderForValue) { - if (andSequenceGroupsBuilder_ == null) { - ensureAndSequenceGroupsIsMutable(); - andSequenceGroups_.add(index, builderForValue.build()); - onChanged(); - } else { - andSequenceGroupsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public Builder addAllAndSequenceGroups( - java.lang.Iterable - values) { - if (andSequenceGroupsBuilder_ == null) { - ensureAndSequenceGroupsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, andSequenceGroups_); - onChanged(); - } else { - andSequenceGroupsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public Builder clearAndSequenceGroups() { - if (andSequenceGroupsBuilder_ == null) { - andSequenceGroups_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - } else { - andSequenceGroupsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public Builder removeAndSequenceGroups(int index) { - if (andSequenceGroupsBuilder_ == null) { - ensureAndSequenceGroupsIsMutable(); - andSequenceGroups_.remove(index); - onChanged(); - } else { - andSequenceGroupsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder - getAndSequenceGroupsBuilder(int index) { - return getAndSequenceGroupsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder - getAndSequenceGroupsOrBuilder(int index) { - if (andSequenceGroupsBuilder_ == null) { - return andSequenceGroups_.get(index); - } else { - return andSequenceGroupsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public java.util.List< - ? extends com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder> - getAndSequenceGroupsOrBuilderList() { - if (andSequenceGroupsBuilder_ != null) { - return andSequenceGroupsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(andSequenceGroups_); - } - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder - addAndSequenceGroupsBuilder() { - return getAndSequenceGroupsFieldBuilder() - .addBuilder( - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.getDefaultInstance()); - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder - addAndSequenceGroupsBuilder(int index) { - return getAndSequenceGroupsFieldBuilder() - .addBuilder( - index, - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.getDefaultInstance()); - } - /** - * - * - *
-     * A user matches this criteria if the user matches each of these
-     * `andSequenceGroups` and each of the `andConditionGroups`.
-     * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-     * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - public java.util.List - getAndSequenceGroupsBuilderList() { - return getAndSequenceGroupsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup, - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder, - com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder> - getAndSequenceGroupsFieldBuilder() { - if (andSequenceGroupsBuilder_ == null) { - andSequenceGroupsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup, - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder, - com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder>( - andSequenceGroups_, - ((bitField0_ & 0x00000002) != 0), - getParentForChildren(), - isClean()); - andSequenceGroups_ = null; - } - return andSequenceGroupsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.UserSegmentCriteria) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.UserSegmentCriteria) - private static final com.google.analytics.data.v1alpha.UserSegmentCriteria DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.UserSegmentCriteria(); - } - - public static com.google.analytics.data.v1alpha.UserSegmentCriteria getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserSegmentCriteria parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentCriteria getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteriaOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteriaOrBuilder.java deleted file mode 100644 index 607a98ec..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentCriteriaOrBuilder.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface UserSegmentCriteriaOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.UserSegmentCriteria) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andConditionGroups` and each of the `andSequenceGroups`.
-   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - java.util.List - getAndConditionGroupsList(); - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andConditionGroups` and each of the `andSequenceGroups`.
-   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - com.google.analytics.data.v1alpha.UserSegmentConditionGroup getAndConditionGroups(int index); - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andConditionGroups` and each of the `andSequenceGroups`.
-   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - int getAndConditionGroupsCount(); - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andConditionGroups` and each of the `andSequenceGroups`.
-   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - java.util.List - getAndConditionGroupsOrBuilderList(); - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andConditionGroups` and each of the `andSequenceGroups`.
-   * `andConditionGroups` may be empty if `andSequenceGroups` are specified.
-   * 
- * - * - * repeated .google.analytics.data.v1alpha.UserSegmentConditionGroup and_condition_groups = 1; - * - */ - com.google.analytics.data.v1alpha.UserSegmentConditionGroupOrBuilder - getAndConditionGroupsOrBuilder(int index); - - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andSequenceGroups` and each of the `andConditionGroups`.
-   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - java.util.List - getAndSequenceGroupsList(); - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andSequenceGroups` and each of the `andConditionGroups`.
-   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup getAndSequenceGroups(int index); - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andSequenceGroups` and each of the `andConditionGroups`.
-   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - int getAndSequenceGroupsCount(); - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andSequenceGroups` and each of the `andConditionGroups`.
-   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - java.util.List - getAndSequenceGroupsOrBuilderList(); - /** - * - * - *
-   * A user matches this criteria if the user matches each of these
-   * `andSequenceGroups` and each of the `andConditionGroups`.
-   * `andSequenceGroups` may be empty if `andConditionGroups` are specified.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSegmentSequenceGroup and_sequence_groups = 2; - * - */ - com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder getAndSequenceGroupsOrBuilder( - int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusion.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusion.java deleted file mode 100644 index d16ce809..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusion.java +++ /dev/null @@ -1,912 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Specifies which users are excluded in this segment.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.UserSegmentExclusion} - */ -public final class UserSegmentExclusion extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.UserSegmentExclusion) - UserSegmentExclusionOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserSegmentExclusion.newBuilder() to construct. - private UserSegmentExclusion(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UserSegmentExclusion() { - userExclusionDuration_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UserSegmentExclusion(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.UserSegmentExclusion.class, - com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder.class); - } - - public static final int USER_EXCLUSION_DURATION_FIELD_NUMBER = 1; - private int userExclusionDuration_; - /** - * - * - *
-   * Specifies how long an exclusion will last if a user matches the
-   * `userExclusionCriteria`.
-   * Optional. If unspecified, `userExclusionDuration` of
-   * `USER_EXCLUSION_TEMPORARY` is used.
-   * 
- * - * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; - * - * @return The enum numeric value on the wire for userExclusionDuration. - */ - @java.lang.Override - public int getUserExclusionDurationValue() { - return userExclusionDuration_; - } - /** - * - * - *
-   * Specifies how long an exclusion will last if a user matches the
-   * `userExclusionCriteria`.
-   * Optional. If unspecified, `userExclusionDuration` of
-   * `USER_EXCLUSION_TEMPORARY` is used.
-   * 
- * - * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; - * - * @return The userExclusionDuration. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserExclusionDuration getUserExclusionDuration() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.UserExclusionDuration result = - com.google.analytics.data.v1alpha.UserExclusionDuration.valueOf(userExclusionDuration_); - return result == null - ? com.google.analytics.data.v1alpha.UserExclusionDuration.UNRECOGNIZED - : result; - } - - public static final int USER_EXCLUSION_CRITERIA_FIELD_NUMBER = 2; - private com.google.analytics.data.v1alpha.UserSegmentCriteria userExclusionCriteria_; - /** - * - * - *
-   * If a user meets this condition, the user is excluded from membership in
-   * the segment for the `userExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - * - * @return Whether the userExclusionCriteria field is set. - */ - @java.lang.Override - public boolean hasUserExclusionCriteria() { - return userExclusionCriteria_ != null; - } - /** - * - * - *
-   * If a user meets this condition, the user is excluded from membership in
-   * the segment for the `userExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - * - * @return The userExclusionCriteria. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentCriteria getUserExclusionCriteria() { - return userExclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.UserSegmentCriteria.getDefaultInstance() - : userExclusionCriteria_; - } - /** - * - * - *
-   * If a user meets this condition, the user is excluded from membership in
-   * the segment for the `userExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder - getUserExclusionCriteriaOrBuilder() { - return getUserExclusionCriteria(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (userExclusionDuration_ - != com.google.analytics.data.v1alpha.UserExclusionDuration - .USER_EXCLUSION_DURATION_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, userExclusionDuration_); - } - if (userExclusionCriteria_ != null) { - output.writeMessage(2, getUserExclusionCriteria()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (userExclusionDuration_ - != com.google.analytics.data.v1alpha.UserExclusionDuration - .USER_EXCLUSION_DURATION_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, userExclusionDuration_); - } - if (userExclusionCriteria_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserExclusionCriteria()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.UserSegmentExclusion)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.UserSegmentExclusion other = - (com.google.analytics.data.v1alpha.UserSegmentExclusion) obj; - - if (userExclusionDuration_ != other.userExclusionDuration_) return false; - if (hasUserExclusionCriteria() != other.hasUserExclusionCriteria()) return false; - if (hasUserExclusionCriteria()) { - if (!getUserExclusionCriteria().equals(other.getUserExclusionCriteria())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + USER_EXCLUSION_DURATION_FIELD_NUMBER; - hash = (53 * hash) + userExclusionDuration_; - if (hasUserExclusionCriteria()) { - hash = (37 * hash) + USER_EXCLUSION_CRITERIA_FIELD_NUMBER; - hash = (53 * hash) + getUserExclusionCriteria().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.UserSegmentExclusion parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSegmentExclusion 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.v1alpha.UserSegmentExclusion parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSegmentExclusion parseFrom( - 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.v1alpha.UserSegmentExclusion parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSegmentExclusion parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.UserSegmentExclusion parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSegmentExclusion parseFrom( - java.io.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.v1alpha.UserSegmentExclusion parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSegmentExclusion parseDelimitedFrom( - java.io.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.v1alpha.UserSegmentExclusion parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSegmentExclusion parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.UserSegmentExclusion prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Specifies which users are excluded in this segment.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.UserSegmentExclusion} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.UserSegmentExclusion) - com.google.analytics.data.v1alpha.UserSegmentExclusionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.UserSegmentExclusion.class, - com.google.analytics.data.v1alpha.UserSegmentExclusion.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.UserSegmentExclusion.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - userExclusionDuration_ = 0; - - if (userExclusionCriteriaBuilder_ == null) { - userExclusionCriteria_ = null; - } else { - userExclusionCriteria_ = null; - userExclusionCriteriaBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentExclusion_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentExclusion getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.UserSegmentExclusion.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentExclusion build() { - com.google.analytics.data.v1alpha.UserSegmentExclusion result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentExclusion buildPartial() { - com.google.analytics.data.v1alpha.UserSegmentExclusion result = - new com.google.analytics.data.v1alpha.UserSegmentExclusion(this); - result.userExclusionDuration_ = userExclusionDuration_; - if (userExclusionCriteriaBuilder_ == null) { - result.userExclusionCriteria_ = userExclusionCriteria_; - } else { - result.userExclusionCriteria_ = userExclusionCriteriaBuilder_.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.v1alpha.UserSegmentExclusion) { - return mergeFrom((com.google.analytics.data.v1alpha.UserSegmentExclusion) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSegmentExclusion other) { - if (other == com.google.analytics.data.v1alpha.UserSegmentExclusion.getDefaultInstance()) - return this; - if (other.userExclusionDuration_ != 0) { - setUserExclusionDurationValue(other.getUserExclusionDurationValue()); - } - if (other.hasUserExclusionCriteria()) { - mergeUserExclusionCriteria(other.getUserExclusionCriteria()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - userExclusionDuration_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getUserExclusionCriteriaFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int userExclusionDuration_ = 0; - /** - * - * - *
-     * Specifies how long an exclusion will last if a user matches the
-     * `userExclusionCriteria`.
-     * Optional. If unspecified, `userExclusionDuration` of
-     * `USER_EXCLUSION_TEMPORARY` is used.
-     * 
- * - * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; - * - * - * @return The enum numeric value on the wire for userExclusionDuration. - */ - @java.lang.Override - public int getUserExclusionDurationValue() { - return userExclusionDuration_; - } - /** - * - * - *
-     * Specifies how long an exclusion will last if a user matches the
-     * `userExclusionCriteria`.
-     * Optional. If unspecified, `userExclusionDuration` of
-     * `USER_EXCLUSION_TEMPORARY` is used.
-     * 
- * - * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; - * - * - * @param value The enum numeric value on the wire for userExclusionDuration to set. - * @return This builder for chaining. - */ - public Builder setUserExclusionDurationValue(int value) { - - userExclusionDuration_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies how long an exclusion will last if a user matches the
-     * `userExclusionCriteria`.
-     * Optional. If unspecified, `userExclusionDuration` of
-     * `USER_EXCLUSION_TEMPORARY` is used.
-     * 
- * - * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; - * - * - * @return The userExclusionDuration. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserExclusionDuration getUserExclusionDuration() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.UserExclusionDuration result = - com.google.analytics.data.v1alpha.UserExclusionDuration.valueOf(userExclusionDuration_); - return result == null - ? com.google.analytics.data.v1alpha.UserExclusionDuration.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Specifies how long an exclusion will last if a user matches the
-     * `userExclusionCriteria`.
-     * Optional. If unspecified, `userExclusionDuration` of
-     * `USER_EXCLUSION_TEMPORARY` is used.
-     * 
- * - * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; - * - * - * @param value The userExclusionDuration to set. - * @return This builder for chaining. - */ - public Builder setUserExclusionDuration( - com.google.analytics.data.v1alpha.UserExclusionDuration value) { - if (value == null) { - throw new NullPointerException(); - } - - userExclusionDuration_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Specifies how long an exclusion will last if a user matches the
-     * `userExclusionCriteria`.
-     * Optional. If unspecified, `userExclusionDuration` of
-     * `USER_EXCLUSION_TEMPORARY` is used.
-     * 
- * - * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; - * - * - * @return This builder for chaining. - */ - public Builder clearUserExclusionDuration() { - - userExclusionDuration_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.data.v1alpha.UserSegmentCriteria userExclusionCriteria_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegmentCriteria, - com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder> - userExclusionCriteriaBuilder_; - /** - * - * - *
-     * If a user meets this condition, the user is excluded from membership in
-     * the segment for the `userExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - * - * @return Whether the userExclusionCriteria field is set. - */ - public boolean hasUserExclusionCriteria() { - return userExclusionCriteriaBuilder_ != null || userExclusionCriteria_ != null; - } - /** - * - * - *
-     * If a user meets this condition, the user is excluded from membership in
-     * the segment for the `userExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - * - * @return The userExclusionCriteria. - */ - public com.google.analytics.data.v1alpha.UserSegmentCriteria getUserExclusionCriteria() { - if (userExclusionCriteriaBuilder_ == null) { - return userExclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.UserSegmentCriteria.getDefaultInstance() - : userExclusionCriteria_; - } else { - return userExclusionCriteriaBuilder_.getMessage(); - } - } - /** - * - * - *
-     * If a user meets this condition, the user is excluded from membership in
-     * the segment for the `userExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - */ - public Builder setUserExclusionCriteria( - com.google.analytics.data.v1alpha.UserSegmentCriteria value) { - if (userExclusionCriteriaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - userExclusionCriteria_ = value; - onChanged(); - } else { - userExclusionCriteriaBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * If a user meets this condition, the user is excluded from membership in
-     * the segment for the `userExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - */ - public Builder setUserExclusionCriteria( - com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder builderForValue) { - if (userExclusionCriteriaBuilder_ == null) { - userExclusionCriteria_ = builderForValue.build(); - onChanged(); - } else { - userExclusionCriteriaBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * If a user meets this condition, the user is excluded from membership in
-     * the segment for the `userExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - */ - public Builder mergeUserExclusionCriteria( - com.google.analytics.data.v1alpha.UserSegmentCriteria value) { - if (userExclusionCriteriaBuilder_ == null) { - if (userExclusionCriteria_ != null) { - userExclusionCriteria_ = - com.google.analytics.data.v1alpha.UserSegmentCriteria.newBuilder( - userExclusionCriteria_) - .mergeFrom(value) - .buildPartial(); - } else { - userExclusionCriteria_ = value; - } - onChanged(); - } else { - userExclusionCriteriaBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * If a user meets this condition, the user is excluded from membership in
-     * the segment for the `userExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - */ - public Builder clearUserExclusionCriteria() { - if (userExclusionCriteriaBuilder_ == null) { - userExclusionCriteria_ = null; - onChanged(); - } else { - userExclusionCriteria_ = null; - userExclusionCriteriaBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * If a user meets this condition, the user is excluded from membership in
-     * the segment for the `userExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - */ - public com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder - getUserExclusionCriteriaBuilder() { - - onChanged(); - return getUserExclusionCriteriaFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * If a user meets this condition, the user is excluded from membership in
-     * the segment for the `userExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - */ - public com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder - getUserExclusionCriteriaOrBuilder() { - if (userExclusionCriteriaBuilder_ != null) { - return userExclusionCriteriaBuilder_.getMessageOrBuilder(); - } else { - return userExclusionCriteria_ == null - ? com.google.analytics.data.v1alpha.UserSegmentCriteria.getDefaultInstance() - : userExclusionCriteria_; - } - } - /** - * - * - *
-     * If a user meets this condition, the user is excluded from membership in
-     * the segment for the `userExclusionDuration`.
-     * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegmentCriteria, - com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder> - getUserExclusionCriteriaFieldBuilder() { - if (userExclusionCriteriaBuilder_ == null) { - userExclusionCriteriaBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSegmentCriteria, - com.google.analytics.data.v1alpha.UserSegmentCriteria.Builder, - com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder>( - getUserExclusionCriteria(), getParentForChildren(), isClean()); - userExclusionCriteria_ = null; - } - return userExclusionCriteriaBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.UserSegmentExclusion) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.UserSegmentExclusion) - private static final com.google.analytics.data.v1alpha.UserSegmentExclusion DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.UserSegmentExclusion(); - } - - public static com.google.analytics.data.v1alpha.UserSegmentExclusion getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserSegmentExclusion parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentExclusion getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusionOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusionOrBuilder.java deleted file mode 100644 index 03637976..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentExclusionOrBuilder.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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface UserSegmentExclusionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.UserSegmentExclusion) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Specifies how long an exclusion will last if a user matches the
-   * `userExclusionCriteria`.
-   * Optional. If unspecified, `userExclusionDuration` of
-   * `USER_EXCLUSION_TEMPORARY` is used.
-   * 
- * - * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; - * - * @return The enum numeric value on the wire for userExclusionDuration. - */ - int getUserExclusionDurationValue(); - /** - * - * - *
-   * Specifies how long an exclusion will last if a user matches the
-   * `userExclusionCriteria`.
-   * Optional. If unspecified, `userExclusionDuration` of
-   * `USER_EXCLUSION_TEMPORARY` is used.
-   * 
- * - * .google.analytics.data.v1alpha.UserExclusionDuration user_exclusion_duration = 1; - * - * @return The userExclusionDuration. - */ - com.google.analytics.data.v1alpha.UserExclusionDuration getUserExclusionDuration(); - - /** - * - * - *
-   * If a user meets this condition, the user is excluded from membership in
-   * the segment for the `userExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - * - * @return Whether the userExclusionCriteria field is set. - */ - boolean hasUserExclusionCriteria(); - /** - * - * - *
-   * If a user meets this condition, the user is excluded from membership in
-   * the segment for the `userExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - * - * @return The userExclusionCriteria. - */ - com.google.analytics.data.v1alpha.UserSegmentCriteria getUserExclusionCriteria(); - /** - * - * - *
-   * If a user meets this condition, the user is excluded from membership in
-   * the segment for the `userExclusionDuration`.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_exclusion_criteria = 2; - */ - com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder - getUserExclusionCriteriaOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentOrBuilder.java deleted file mode 100644 index fe91559e..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentOrBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface UserSegmentOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.UserSegment) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Defines which users are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - * - * @return Whether the userInclusionCriteria field is set. - */ - boolean hasUserInclusionCriteria(); - /** - * - * - *
-   * Defines which users are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - * - * @return The userInclusionCriteria. - */ - com.google.analytics.data.v1alpha.UserSegmentCriteria getUserInclusionCriteria(); - /** - * - * - *
-   * Defines which users are included in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentCriteria user_inclusion_criteria = 1; - */ - com.google.analytics.data.v1alpha.UserSegmentCriteriaOrBuilder - getUserInclusionCriteriaOrBuilder(); - - /** - * - * - *
-   * Defines which users are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - * - * @return Whether the exclusion field is set. - */ - boolean hasExclusion(); - /** - * - * - *
-   * Defines which users are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - * - * @return The exclusion. - */ - com.google.analytics.data.v1alpha.UserSegmentExclusion getExclusion(); - /** - * - * - *
-   * Defines which users are excluded in this segment. Optional.
-   * 
- * - * .google.analytics.data.v1alpha.UserSegmentExclusion exclusion = 2; - */ - com.google.analytics.data.v1alpha.UserSegmentExclusionOrBuilder getExclusionOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroup.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroup.java deleted file mode 100644 index fdbf2c80..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroup.java +++ /dev/null @@ -1,1552 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * Define conditions that must occur in a specific order for the user to be
- * a member of the segment.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.UserSegmentSequenceGroup} - */ -public final class UserSegmentSequenceGroup extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.UserSegmentSequenceGroup) - UserSegmentSequenceGroupOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserSegmentSequenceGroup.newBuilder() to construct. - private UserSegmentSequenceGroup(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UserSegmentSequenceGroup() { - sequenceScoping_ = 0; - userSequenceSteps_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UserSegmentSequenceGroup(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.class, - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder.class); - } - - public static final int SEQUENCE_SCOPING_FIELD_NUMBER = 1; - private int sequenceScoping_; - /** - * - * - *
-   * All sequence steps must be satisfied in the scoping for the user to
-   * match the sequence. For example if `sequenceScoping =
-   * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
-   * one session for the user to match the sequence. `sequenceScoping =
-   * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
-   * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-   * used.
-   * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; - * - * @return The enum numeric value on the wire for sequenceScoping. - */ - @java.lang.Override - public int getSequenceScopingValue() { - return sequenceScoping_; - } - /** - * - * - *
-   * All sequence steps must be satisfied in the scoping for the user to
-   * match the sequence. For example if `sequenceScoping =
-   * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
-   * one session for the user to match the sequence. `sequenceScoping =
-   * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
-   * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-   * used.
-   * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; - * - * @return The sequenceScoping. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserCriteriaScoping getSequenceScoping() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.UserCriteriaScoping result = - com.google.analytics.data.v1alpha.UserCriteriaScoping.valueOf(sequenceScoping_); - return result == null - ? com.google.analytics.data.v1alpha.UserCriteriaScoping.UNRECOGNIZED - : result; - } - - public static final int SEQUENCE_MAXIMUM_DURATION_FIELD_NUMBER = 2; - private com.google.protobuf.Duration sequenceMaximumDuration_; - /** - * - * - *
-   * Defines the time period in which the whole sequence must occur; for
-   * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
-   * of the endpoint at the microsecond granularity. For example a sequence
-   * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
-   * seconds, but not 5 seconds and 1 microsecond.
-   * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
-   * be completed in any time duration.
-   * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2; - * - * @return Whether the sequenceMaximumDuration field is set. - */ - @java.lang.Override - public boolean hasSequenceMaximumDuration() { - return sequenceMaximumDuration_ != null; - } - /** - * - * - *
-   * Defines the time period in which the whole sequence must occur; for
-   * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
-   * of the endpoint at the microsecond granularity. For example a sequence
-   * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
-   * seconds, but not 5 seconds and 1 microsecond.
-   * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
-   * be completed in any time duration.
-   * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2; - * - * @return The sequenceMaximumDuration. - */ - @java.lang.Override - public com.google.protobuf.Duration getSequenceMaximumDuration() { - return sequenceMaximumDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : sequenceMaximumDuration_; - } - /** - * - * - *
-   * Defines the time period in which the whole sequence must occur; for
-   * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
-   * of the endpoint at the microsecond granularity. For example a sequence
-   * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
-   * seconds, but not 5 seconds and 1 microsecond.
-   * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
-   * be completed in any time duration.
-   * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2; - */ - @java.lang.Override - public com.google.protobuf.DurationOrBuilder getSequenceMaximumDurationOrBuilder() { - return getSequenceMaximumDuration(); - } - - public static final int USER_SEQUENCE_STEPS_FIELD_NUMBER = 3; - private java.util.List userSequenceSteps_; - /** - * - * - *
-   * An ordered sequence of condition steps. A user's events must complete
-   * each step in order for the user to match the
-   * `UserSegmentSequenceGroup`.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - */ - @java.lang.Override - public java.util.List - getUserSequenceStepsList() { - return userSequenceSteps_; - } - /** - * - * - *
-   * An ordered sequence of condition steps. A user's events must complete
-   * each step in order for the user to match the
-   * `UserSegmentSequenceGroup`.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - */ - @java.lang.Override - public java.util.List - getUserSequenceStepsOrBuilderList() { - return userSequenceSteps_; - } - /** - * - * - *
-   * An ordered sequence of condition steps. A user's events must complete
-   * each step in order for the user to match the
-   * `UserSegmentSequenceGroup`.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - */ - @java.lang.Override - public int getUserSequenceStepsCount() { - return userSequenceSteps_.size(); - } - /** - * - * - *
-   * An ordered sequence of condition steps. A user's events must complete
-   * each step in order for the user to match the
-   * `UserSegmentSequenceGroup`.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSequenceStep getUserSequenceSteps(int index) { - return userSequenceSteps_.get(index); - } - /** - * - * - *
-   * An ordered sequence of condition steps. A user's events must complete
-   * each step in order for the user to match the
-   * `UserSegmentSequenceGroup`.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSequenceStepOrBuilder getUserSequenceStepsOrBuilder( - int index) { - return userSequenceSteps_.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 (sequenceScoping_ - != com.google.analytics.data.v1alpha.UserCriteriaScoping.USER_CRITERIA_SCOPING_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, sequenceScoping_); - } - if (sequenceMaximumDuration_ != null) { - output.writeMessage(2, getSequenceMaximumDuration()); - } - for (int i = 0; i < userSequenceSteps_.size(); i++) { - output.writeMessage(3, userSequenceSteps_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (sequenceScoping_ - != com.google.analytics.data.v1alpha.UserCriteriaScoping.USER_CRITERIA_SCOPING_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, sequenceScoping_); - } - if (sequenceMaximumDuration_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSequenceMaximumDuration()); - } - for (int i = 0; i < userSequenceSteps_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, userSequenceSteps_.get(i)); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.UserSegmentSequenceGroup)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup other = - (com.google.analytics.data.v1alpha.UserSegmentSequenceGroup) obj; - - if (sequenceScoping_ != other.sequenceScoping_) return false; - if (hasSequenceMaximumDuration() != other.hasSequenceMaximumDuration()) return false; - if (hasSequenceMaximumDuration()) { - if (!getSequenceMaximumDuration().equals(other.getSequenceMaximumDuration())) return false; - } - if (!getUserSequenceStepsList().equals(other.getUserSequenceStepsList())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + SEQUENCE_SCOPING_FIELD_NUMBER; - hash = (53 * hash) + sequenceScoping_; - if (hasSequenceMaximumDuration()) { - hash = (37 * hash) + SEQUENCE_MAXIMUM_DURATION_FIELD_NUMBER; - hash = (53 * hash) + getSequenceMaximumDuration().hashCode(); - } - if (getUserSequenceStepsCount() > 0) { - hash = (37 * hash) + USER_SEQUENCE_STEPS_FIELD_NUMBER; - hash = (53 * hash) + getUserSequenceStepsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup 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.v1alpha.UserSegmentSequenceGroup parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup parseFrom( - 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.v1alpha.UserSegmentSequenceGroup parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup parseFrom( - java.io.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.v1alpha.UserSegmentSequenceGroup parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup parseDelimitedFrom( - java.io.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.v1alpha.UserSegmentSequenceGroup parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.UserSegmentSequenceGroup prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * - * - *
-   * Define conditions that must occur in a specific order for the user to be
-   * a member of the segment.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.UserSegmentSequenceGroup} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.UserSegmentSequenceGroup) - com.google.analytics.data.v1alpha.UserSegmentSequenceGroupOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.class, - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - sequenceScoping_ = 0; - - if (sequenceMaximumDurationBuilder_ == null) { - sequenceMaximumDuration_ = null; - } else { - sequenceMaximumDuration_ = null; - sequenceMaximumDurationBuilder_ = null; - } - if (userSequenceStepsBuilder_ == null) { - userSequenceSteps_ = java.util.Collections.emptyList(); - } else { - userSequenceSteps_ = null; - userSequenceStepsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSegmentSequenceGroup_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup build() { - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup buildPartial() { - com.google.analytics.data.v1alpha.UserSegmentSequenceGroup result = - new com.google.analytics.data.v1alpha.UserSegmentSequenceGroup(this); - int from_bitField0_ = bitField0_; - result.sequenceScoping_ = sequenceScoping_; - if (sequenceMaximumDurationBuilder_ == null) { - result.sequenceMaximumDuration_ = sequenceMaximumDuration_; - } else { - result.sequenceMaximumDuration_ = sequenceMaximumDurationBuilder_.build(); - } - if (userSequenceStepsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - userSequenceSteps_ = java.util.Collections.unmodifiableList(userSequenceSteps_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.userSequenceSteps_ = userSequenceSteps_; - } else { - result.userSequenceSteps_ = userSequenceStepsBuilder_.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.v1alpha.UserSegmentSequenceGroup) { - return mergeFrom((com.google.analytics.data.v1alpha.UserSegmentSequenceGroup) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSegmentSequenceGroup other) { - if (other == com.google.analytics.data.v1alpha.UserSegmentSequenceGroup.getDefaultInstance()) - return this; - if (other.sequenceScoping_ != 0) { - setSequenceScopingValue(other.getSequenceScopingValue()); - } - if (other.hasSequenceMaximumDuration()) { - mergeSequenceMaximumDuration(other.getSequenceMaximumDuration()); - } - if (userSequenceStepsBuilder_ == null) { - if (!other.userSequenceSteps_.isEmpty()) { - if (userSequenceSteps_.isEmpty()) { - userSequenceSteps_ = other.userSequenceSteps_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureUserSequenceStepsIsMutable(); - userSequenceSteps_.addAll(other.userSequenceSteps_); - } - onChanged(); - } - } else { - if (!other.userSequenceSteps_.isEmpty()) { - if (userSequenceStepsBuilder_.isEmpty()) { - userSequenceStepsBuilder_.dispose(); - userSequenceStepsBuilder_ = null; - userSequenceSteps_ = other.userSequenceSteps_; - bitField0_ = (bitField0_ & ~0x00000001); - userSequenceStepsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders - ? getUserSequenceStepsFieldBuilder() - : null; - } else { - userSequenceStepsBuilder_.addAllMessages(other.userSequenceSteps_); - } - } - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - sequenceScoping_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - input.readMessage( - getSequenceMaximumDurationFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - com.google.analytics.data.v1alpha.UserSequenceStep m = - input.readMessage( - com.google.analytics.data.v1alpha.UserSequenceStep.parser(), - extensionRegistry); - if (userSequenceStepsBuilder_ == null) { - ensureUserSequenceStepsIsMutable(); - userSequenceSteps_.add(m); - } else { - userSequenceStepsBuilder_.addMessage(m); - } - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private int sequenceScoping_ = 0; - /** - * - * - *
-     * All sequence steps must be satisfied in the scoping for the user to
-     * match the sequence. For example if `sequenceScoping =
-     * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
-     * one session for the user to match the sequence. `sequenceScoping =
-     * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
-     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-     * used.
-     * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; - * - * @return The enum numeric value on the wire for sequenceScoping. - */ - @java.lang.Override - public int getSequenceScopingValue() { - return sequenceScoping_; - } - /** - * - * - *
-     * All sequence steps must be satisfied in the scoping for the user to
-     * match the sequence. For example if `sequenceScoping =
-     * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
-     * one session for the user to match the sequence. `sequenceScoping =
-     * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
-     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-     * used.
-     * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; - * - * @param value The enum numeric value on the wire for sequenceScoping to set. - * @return This builder for chaining. - */ - public Builder setSequenceScopingValue(int value) { - - sequenceScoping_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * All sequence steps must be satisfied in the scoping for the user to
-     * match the sequence. For example if `sequenceScoping =
-     * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
-     * one session for the user to match the sequence. `sequenceScoping =
-     * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
-     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-     * used.
-     * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; - * - * @return The sequenceScoping. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserCriteriaScoping getSequenceScoping() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.UserCriteriaScoping result = - com.google.analytics.data.v1alpha.UserCriteriaScoping.valueOf(sequenceScoping_); - return result == null - ? com.google.analytics.data.v1alpha.UserCriteriaScoping.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * All sequence steps must be satisfied in the scoping for the user to
-     * match the sequence. For example if `sequenceScoping =
-     * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
-     * one session for the user to match the sequence. `sequenceScoping =
-     * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
-     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-     * used.
-     * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; - * - * @param value The sequenceScoping to set. - * @return This builder for chaining. - */ - public Builder setSequenceScoping(com.google.analytics.data.v1alpha.UserCriteriaScoping value) { - if (value == null) { - throw new NullPointerException(); - } - - sequenceScoping_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * All sequence steps must be satisfied in the scoping for the user to
-     * match the sequence. For example if `sequenceScoping =
-     * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
-     * one session for the user to match the sequence. `sequenceScoping =
-     * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
-     * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-     * used.
-     * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; - * - * @return This builder for chaining. - */ - public Builder clearSequenceScoping() { - - sequenceScoping_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.Duration sequenceMaximumDuration_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - sequenceMaximumDurationBuilder_; - /** - * - * - *
-     * Defines the time period in which the whole sequence must occur; for
-     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
-     * of the endpoint at the microsecond granularity. For example a sequence
-     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
-     * seconds, but not 5 seconds and 1 microsecond.
-     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
-     * be completed in any time duration.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2; - * - * @return Whether the sequenceMaximumDuration field is set. - */ - public boolean hasSequenceMaximumDuration() { - return sequenceMaximumDurationBuilder_ != null || sequenceMaximumDuration_ != null; - } - /** - * - * - *
-     * Defines the time period in which the whole sequence must occur; for
-     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
-     * of the endpoint at the microsecond granularity. For example a sequence
-     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
-     * seconds, but not 5 seconds and 1 microsecond.
-     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
-     * be completed in any time duration.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2; - * - * @return The sequenceMaximumDuration. - */ - public com.google.protobuf.Duration getSequenceMaximumDuration() { - if (sequenceMaximumDurationBuilder_ == null) { - return sequenceMaximumDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : sequenceMaximumDuration_; - } else { - return sequenceMaximumDurationBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Defines the time period in which the whole sequence must occur; for
-     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
-     * of the endpoint at the microsecond granularity. For example a sequence
-     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
-     * seconds, but not 5 seconds and 1 microsecond.
-     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
-     * be completed in any time duration.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2; - */ - public Builder setSequenceMaximumDuration(com.google.protobuf.Duration value) { - if (sequenceMaximumDurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sequenceMaximumDuration_ = value; - onChanged(); - } else { - sequenceMaximumDurationBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Defines the time period in which the whole sequence must occur; for
-     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
-     * of the endpoint at the microsecond granularity. For example a sequence
-     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
-     * seconds, but not 5 seconds and 1 microsecond.
-     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
-     * be completed in any time duration.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2; - */ - public Builder setSequenceMaximumDuration( - com.google.protobuf.Duration.Builder builderForValue) { - if (sequenceMaximumDurationBuilder_ == null) { - sequenceMaximumDuration_ = builderForValue.build(); - onChanged(); - } else { - sequenceMaximumDurationBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Defines the time period in which the whole sequence must occur; for
-     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
-     * of the endpoint at the microsecond granularity. For example a sequence
-     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
-     * seconds, but not 5 seconds and 1 microsecond.
-     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
-     * be completed in any time duration.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2; - */ - public Builder mergeSequenceMaximumDuration(com.google.protobuf.Duration value) { - if (sequenceMaximumDurationBuilder_ == null) { - if (sequenceMaximumDuration_ != null) { - sequenceMaximumDuration_ = - com.google.protobuf.Duration.newBuilder(sequenceMaximumDuration_) - .mergeFrom(value) - .buildPartial(); - } else { - sequenceMaximumDuration_ = value; - } - onChanged(); - } else { - sequenceMaximumDurationBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Defines the time period in which the whole sequence must occur; for
-     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
-     * of the endpoint at the microsecond granularity. For example a sequence
-     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
-     * seconds, but not 5 seconds and 1 microsecond.
-     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
-     * be completed in any time duration.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2; - */ - public Builder clearSequenceMaximumDuration() { - if (sequenceMaximumDurationBuilder_ == null) { - sequenceMaximumDuration_ = null; - onChanged(); - } else { - sequenceMaximumDuration_ = null; - sequenceMaximumDurationBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Defines the time period in which the whole sequence must occur; for
-     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
-     * of the endpoint at the microsecond granularity. For example a sequence
-     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
-     * seconds, but not 5 seconds and 1 microsecond.
-     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
-     * be completed in any time duration.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2; - */ - public com.google.protobuf.Duration.Builder getSequenceMaximumDurationBuilder() { - - onChanged(); - return getSequenceMaximumDurationFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Defines the time period in which the whole sequence must occur; for
-     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
-     * of the endpoint at the microsecond granularity. For example a sequence
-     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
-     * seconds, but not 5 seconds and 1 microsecond.
-     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
-     * be completed in any time duration.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2; - */ - public com.google.protobuf.DurationOrBuilder getSequenceMaximumDurationOrBuilder() { - if (sequenceMaximumDurationBuilder_ != null) { - return sequenceMaximumDurationBuilder_.getMessageOrBuilder(); - } else { - return sequenceMaximumDuration_ == null - ? com.google.protobuf.Duration.getDefaultInstance() - : sequenceMaximumDuration_; - } - } - /** - * - * - *
-     * Defines the time period in which the whole sequence must occur; for
-     * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
-     * of the endpoint at the microsecond granularity. For example a sequence
-     * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
-     * seconds, but not 5 seconds and 1 microsecond.
-     * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
-     * be completed in any time duration.
-     * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder> - getSequenceMaximumDurationFieldBuilder() { - if (sequenceMaximumDurationBuilder_ == null) { - sequenceMaximumDurationBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Duration, - com.google.protobuf.Duration.Builder, - com.google.protobuf.DurationOrBuilder>( - getSequenceMaximumDuration(), getParentForChildren(), isClean()); - sequenceMaximumDuration_ = null; - } - return sequenceMaximumDurationBuilder_; - } - - private java.util.List userSequenceSteps_ = - java.util.Collections.emptyList(); - - private void ensureUserSequenceStepsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - userSequenceSteps_ = - new java.util.ArrayList( - userSequenceSteps_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSequenceStep, - com.google.analytics.data.v1alpha.UserSequenceStep.Builder, - com.google.analytics.data.v1alpha.UserSequenceStepOrBuilder> - userSequenceStepsBuilder_; - - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public java.util.List - getUserSequenceStepsList() { - if (userSequenceStepsBuilder_ == null) { - return java.util.Collections.unmodifiableList(userSequenceSteps_); - } else { - return userSequenceStepsBuilder_.getMessageList(); - } - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public int getUserSequenceStepsCount() { - if (userSequenceStepsBuilder_ == null) { - return userSequenceSteps_.size(); - } else { - return userSequenceStepsBuilder_.getCount(); - } - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public com.google.analytics.data.v1alpha.UserSequenceStep getUserSequenceSteps(int index) { - if (userSequenceStepsBuilder_ == null) { - return userSequenceSteps_.get(index); - } else { - return userSequenceStepsBuilder_.getMessage(index); - } - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public Builder setUserSequenceSteps( - int index, com.google.analytics.data.v1alpha.UserSequenceStep value) { - if (userSequenceStepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserSequenceStepsIsMutable(); - userSequenceSteps_.set(index, value); - onChanged(); - } else { - userSequenceStepsBuilder_.setMessage(index, value); - } - return this; - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public Builder setUserSequenceSteps( - int index, com.google.analytics.data.v1alpha.UserSequenceStep.Builder builderForValue) { - if (userSequenceStepsBuilder_ == null) { - ensureUserSequenceStepsIsMutable(); - userSequenceSteps_.set(index, builderForValue.build()); - onChanged(); - } else { - userSequenceStepsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public Builder addUserSequenceSteps(com.google.analytics.data.v1alpha.UserSequenceStep value) { - if (userSequenceStepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserSequenceStepsIsMutable(); - userSequenceSteps_.add(value); - onChanged(); - } else { - userSequenceStepsBuilder_.addMessage(value); - } - return this; - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public Builder addUserSequenceSteps( - int index, com.google.analytics.data.v1alpha.UserSequenceStep value) { - if (userSequenceStepsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureUserSequenceStepsIsMutable(); - userSequenceSteps_.add(index, value); - onChanged(); - } else { - userSequenceStepsBuilder_.addMessage(index, value); - } - return this; - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public Builder addUserSequenceSteps( - com.google.analytics.data.v1alpha.UserSequenceStep.Builder builderForValue) { - if (userSequenceStepsBuilder_ == null) { - ensureUserSequenceStepsIsMutable(); - userSequenceSteps_.add(builderForValue.build()); - onChanged(); - } else { - userSequenceStepsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public Builder addUserSequenceSteps( - int index, com.google.analytics.data.v1alpha.UserSequenceStep.Builder builderForValue) { - if (userSequenceStepsBuilder_ == null) { - ensureUserSequenceStepsIsMutable(); - userSequenceSteps_.add(index, builderForValue.build()); - onChanged(); - } else { - userSequenceStepsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public Builder addAllUserSequenceSteps( - java.lang.Iterable values) { - if (userSequenceStepsBuilder_ == null) { - ensureUserSequenceStepsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, userSequenceSteps_); - onChanged(); - } else { - userSequenceStepsBuilder_.addAllMessages(values); - } - return this; - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public Builder clearUserSequenceSteps() { - if (userSequenceStepsBuilder_ == null) { - userSequenceSteps_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - userSequenceStepsBuilder_.clear(); - } - return this; - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public Builder removeUserSequenceSteps(int index) { - if (userSequenceStepsBuilder_ == null) { - ensureUserSequenceStepsIsMutable(); - userSequenceSteps_.remove(index); - onChanged(); - } else { - userSequenceStepsBuilder_.remove(index); - } - return this; - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public com.google.analytics.data.v1alpha.UserSequenceStep.Builder getUserSequenceStepsBuilder( - int index) { - return getUserSequenceStepsFieldBuilder().getBuilder(index); - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public com.google.analytics.data.v1alpha.UserSequenceStepOrBuilder - getUserSequenceStepsOrBuilder(int index) { - if (userSequenceStepsBuilder_ == null) { - return userSequenceSteps_.get(index); - } else { - return userSequenceStepsBuilder_.getMessageOrBuilder(index); - } - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public java.util.List - getUserSequenceStepsOrBuilderList() { - if (userSequenceStepsBuilder_ != null) { - return userSequenceStepsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(userSequenceSteps_); - } - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public com.google.analytics.data.v1alpha.UserSequenceStep.Builder - addUserSequenceStepsBuilder() { - return getUserSequenceStepsFieldBuilder() - .addBuilder(com.google.analytics.data.v1alpha.UserSequenceStep.getDefaultInstance()); - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public com.google.analytics.data.v1alpha.UserSequenceStep.Builder addUserSequenceStepsBuilder( - int index) { - return getUserSequenceStepsFieldBuilder() - .addBuilder( - index, com.google.analytics.data.v1alpha.UserSequenceStep.getDefaultInstance()); - } - /** - * - * - *
-     * An ordered sequence of condition steps. A user's events must complete
-     * each step in order for the user to match the
-     * `UserSegmentSequenceGroup`.
-     * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - * - */ - public java.util.List - getUserSequenceStepsBuilderList() { - return getUserSequenceStepsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSequenceStep, - com.google.analytics.data.v1alpha.UserSequenceStep.Builder, - com.google.analytics.data.v1alpha.UserSequenceStepOrBuilder> - getUserSequenceStepsFieldBuilder() { - if (userSequenceStepsBuilder_ == null) { - userSequenceStepsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.analytics.data.v1alpha.UserSequenceStep, - com.google.analytics.data.v1alpha.UserSequenceStep.Builder, - com.google.analytics.data.v1alpha.UserSequenceStepOrBuilder>( - userSequenceSteps_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - userSequenceSteps_ = null; - } - return userSequenceStepsBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.UserSegmentSequenceGroup) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.UserSegmentSequenceGroup) - private static final com.google.analytics.data.v1alpha.UserSegmentSequenceGroup DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.UserSegmentSequenceGroup(); - } - - public static com.google.analytics.data.v1alpha.UserSegmentSequenceGroup getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserSegmentSequenceGroup parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSegmentSequenceGroup getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroupOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroupOrBuilder.java deleted file mode 100644 index b64578b4..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSegmentSequenceGroupOrBuilder.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface UserSegmentSequenceGroupOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.UserSegmentSequenceGroup) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * All sequence steps must be satisfied in the scoping for the user to
-   * match the sequence. For example if `sequenceScoping =
-   * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
-   * one session for the user to match the sequence. `sequenceScoping =
-   * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
-   * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-   * used.
-   * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; - * - * @return The enum numeric value on the wire for sequenceScoping. - */ - int getSequenceScopingValue(); - /** - * - * - *
-   * All sequence steps must be satisfied in the scoping for the user to
-   * match the sequence. For example if `sequenceScoping =
-   * USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within
-   * one session for the user to match the sequence. `sequenceScoping =
-   * USER_CRITERIA_WITHIN_SAME_EVENT` is not supported.
-   * Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is
-   * used.
-   * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping sequence_scoping = 1; - * - * @return The sequenceScoping. - */ - com.google.analytics.data.v1alpha.UserCriteriaScoping getSequenceScoping(); - - /** - * - * - *
-   * Defines the time period in which the whole sequence must occur; for
-   * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
-   * of the endpoint at the microsecond granularity. For example a sequence
-   * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
-   * seconds, but not 5 seconds and 1 microsecond.
-   * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
-   * be completed in any time duration.
-   * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2; - * - * @return Whether the sequenceMaximumDuration field is set. - */ - boolean hasSequenceMaximumDuration(); - /** - * - * - *
-   * Defines the time period in which the whole sequence must occur; for
-   * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
-   * of the endpoint at the microsecond granularity. For example a sequence
-   * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
-   * seconds, but not 5 seconds and 1 microsecond.
-   * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
-   * be completed in any time duration.
-   * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2; - * - * @return The sequenceMaximumDuration. - */ - com.google.protobuf.Duration getSequenceMaximumDuration(); - /** - * - * - *
-   * Defines the time period in which the whole sequence must occur; for
-   * example, 30 Minutes. `sequenceMaximumDuration` is inclusive
-   * of the endpoint at the microsecond granularity. For example a sequence
-   * with a maximum duration of 5 seconds can be completed at 4.9 or 5.0
-   * seconds, but not 5 seconds and 1 microsecond.
-   * `sequenceMaximumDuration` is optional, and if unspecified, sequences can
-   * be completed in any time duration.
-   * 
- * - * .google.protobuf.Duration sequence_maximum_duration = 2; - */ - com.google.protobuf.DurationOrBuilder getSequenceMaximumDurationOrBuilder(); - - /** - * - * - *
-   * An ordered sequence of condition steps. A user's events must complete
-   * each step in order for the user to match the
-   * `UserSegmentSequenceGroup`.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - */ - java.util.List getUserSequenceStepsList(); - /** - * - * - *
-   * An ordered sequence of condition steps. A user's events must complete
-   * each step in order for the user to match the
-   * `UserSegmentSequenceGroup`.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - */ - com.google.analytics.data.v1alpha.UserSequenceStep getUserSequenceSteps(int index); - /** - * - * - *
-   * An ordered sequence of condition steps. A user's events must complete
-   * each step in order for the user to match the
-   * `UserSegmentSequenceGroup`.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - */ - int getUserSequenceStepsCount(); - /** - * - * - *
-   * An ordered sequence of condition steps. A user's events must complete
-   * each step in order for the user to match the
-   * `UserSegmentSequenceGroup`.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - */ - java.util.List - getUserSequenceStepsOrBuilderList(); - /** - * - * - *
-   * An ordered sequence of condition steps. A user's events must complete
-   * each step in order for the user to match the
-   * `UserSegmentSequenceGroup`.
-   * 
- * - * repeated .google.analytics.data.v1alpha.UserSequenceStep user_sequence_steps = 3; - */ - com.google.analytics.data.v1alpha.UserSequenceStepOrBuilder getUserSequenceStepsOrBuilder( - int index); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStep.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStep.java deleted file mode 100644 index 92e78fa8..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStep.java +++ /dev/null @@ -1,1064 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -/** - * - * - *
- * A condition that must occur in the specified step order for this user
- * to match the sequence.
- * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.UserSequenceStep} - */ -public final class UserSequenceStep extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.data.v1alpha.UserSequenceStep) - UserSequenceStepOrBuilder { - private static final long serialVersionUID = 0L; - // Use UserSequenceStep.newBuilder() to construct. - private UserSequenceStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private UserSequenceStep() { - stepScoping_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UserSequenceStep(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSequenceStep_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.UserSequenceStep.class, - com.google.analytics.data.v1alpha.UserSequenceStep.Builder.class); - } - - public static final int IS_DIRECTLY_FOLLOWED_BY_FIELD_NUMBER = 1; - private boolean isDirectlyFollowedBy_; - /** - * - * - *
-   * If true, the event satisfying this step must be the very next event
-   * after the event satifying the last step. If false, this step indirectly
-   * follows the prior step; for example, there may be events between the
-   * prior step and this step. `isDirectlyFollowedBy` must be false for
-   * the first step.
-   * 
- * - * bool is_directly_followed_by = 1; - * - * @return The isDirectlyFollowedBy. - */ - @java.lang.Override - public boolean getIsDirectlyFollowedBy() { - return isDirectlyFollowedBy_; - } - - public static final int STEP_SCOPING_FIELD_NUMBER = 2; - private int stepScoping_; - /** - * - * - *
-   * This sequence step must be satisfied in the scoping for the user to
-   * match the sequence. For example if `sequenceScoping =
-   * WITHIN_SAME_SESSION`, this sequence steps must complete within one
-   * session for the user to match the sequence. `stepScoping =
-   * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
-   * ACROSS_ALL_SESSIONS`.
-   * Optional. If unspecified, `stepScoping` uses the same
-   * `UserCriteriaScoping` as the `sequenceScoping`.
-   * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; - * - * @return The enum numeric value on the wire for stepScoping. - */ - @java.lang.Override - public int getStepScopingValue() { - return stepScoping_; - } - /** - * - * - *
-   * This sequence step must be satisfied in the scoping for the user to
-   * match the sequence. For example if `sequenceScoping =
-   * WITHIN_SAME_SESSION`, this sequence steps must complete within one
-   * session for the user to match the sequence. `stepScoping =
-   * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
-   * ACROSS_ALL_SESSIONS`.
-   * Optional. If unspecified, `stepScoping` uses the same
-   * `UserCriteriaScoping` as the `sequenceScoping`.
-   * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; - * - * @return The stepScoping. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserCriteriaScoping getStepScoping() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.UserCriteriaScoping result = - com.google.analytics.data.v1alpha.UserCriteriaScoping.valueOf(stepScoping_); - return result == null - ? com.google.analytics.data.v1alpha.UserCriteriaScoping.UNRECOGNIZED - : result; - } - - public static final int SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER = 3; - private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_; - /** - * - * - *
-   * A user matches this sequence step if their events match this
-   * expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * - * - * @return Whether the segmentFilterExpression field is set. - */ - @java.lang.Override - public boolean hasSegmentFilterExpression() { - return segmentFilterExpression_ != null; - } - /** - * - * - *
-   * A user matches this sequence step if their events match this
-   * expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * - * - * @return The segmentFilterExpression. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() { - return segmentFilterExpression_ == null - ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() - : segmentFilterExpression_; - } - /** - * - * - *
-   * A user matches this sequence step if their events match this
-   * expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder - getSegmentFilterExpressionOrBuilder() { - return getSegmentFilterExpression(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (isDirectlyFollowedBy_ != false) { - output.writeBool(1, isDirectlyFollowedBy_); - } - if (stepScoping_ - != com.google.analytics.data.v1alpha.UserCriteriaScoping.USER_CRITERIA_SCOPING_UNSPECIFIED - .getNumber()) { - output.writeEnum(2, stepScoping_); - } - if (segmentFilterExpression_ != null) { - output.writeMessage(3, getSegmentFilterExpression()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (isDirectlyFollowedBy_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, isDirectlyFollowedBy_); - } - if (stepScoping_ - != com.google.analytics.data.v1alpha.UserCriteriaScoping.USER_CRITERIA_SCOPING_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, stepScoping_); - } - if (segmentFilterExpression_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSegmentFilterExpression()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.data.v1alpha.UserSequenceStep)) { - return super.equals(obj); - } - com.google.analytics.data.v1alpha.UserSequenceStep other = - (com.google.analytics.data.v1alpha.UserSequenceStep) obj; - - if (getIsDirectlyFollowedBy() != other.getIsDirectlyFollowedBy()) return false; - if (stepScoping_ != other.stepScoping_) return false; - if (hasSegmentFilterExpression() != other.hasSegmentFilterExpression()) return false; - if (hasSegmentFilterExpression()) { - if (!getSegmentFilterExpression().equals(other.getSegmentFilterExpression())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + IS_DIRECTLY_FOLLOWED_BY_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsDirectlyFollowedBy()); - hash = (37 * hash) + STEP_SCOPING_FIELD_NUMBER; - hash = (53 * hash) + stepScoping_; - if (hasSegmentFilterExpression()) { - hash = (37 * hash) + SEGMENT_FILTER_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getSegmentFilterExpression().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.data.v1alpha.UserSequenceStep parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSequenceStep 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.v1alpha.UserSequenceStep parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSequenceStep parseFrom( - 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.v1alpha.UserSequenceStep parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.data.v1alpha.UserSequenceStep parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.analytics.data.v1alpha.UserSequenceStep parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSequenceStep parseFrom( - java.io.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.v1alpha.UserSequenceStep parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSequenceStep parseDelimitedFrom( - java.io.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.v1alpha.UserSequenceStep parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.data.v1alpha.UserSequenceStep parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, 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.v1alpha.UserSequenceStep prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 condition that must occur in the specified step order for this user
-   * to match the sequence.
-   * 
- * - * Protobuf type {@code google.analytics.data.v1alpha.UserSequenceStep} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.data.v1alpha.UserSequenceStep) - com.google.analytics.data.v1alpha.UserSequenceStepOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSequenceStep_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.data.v1alpha.UserSequenceStep.class, - com.google.analytics.data.v1alpha.UserSequenceStep.Builder.class); - } - - // Construct using com.google.analytics.data.v1alpha.UserSequenceStep.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - isDirectlyFollowedBy_ = false; - - stepScoping_ = 0; - - if (segmentFilterExpressionBuilder_ == null) { - segmentFilterExpression_ = null; - } else { - segmentFilterExpression_ = null; - segmentFilterExpressionBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.analytics.data.v1alpha.ReportingApiProto - .internal_static_google_analytics_data_v1alpha_UserSequenceStep_descriptor; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSequenceStep getDefaultInstanceForType() { - return com.google.analytics.data.v1alpha.UserSequenceStep.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSequenceStep build() { - com.google.analytics.data.v1alpha.UserSequenceStep result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSequenceStep buildPartial() { - com.google.analytics.data.v1alpha.UserSequenceStep result = - new com.google.analytics.data.v1alpha.UserSequenceStep(this); - result.isDirectlyFollowedBy_ = isDirectlyFollowedBy_; - result.stepScoping_ = stepScoping_; - if (segmentFilterExpressionBuilder_ == null) { - result.segmentFilterExpression_ = segmentFilterExpression_; - } else { - result.segmentFilterExpression_ = segmentFilterExpressionBuilder_.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.v1alpha.UserSequenceStep) { - return mergeFrom((com.google.analytics.data.v1alpha.UserSequenceStep) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.analytics.data.v1alpha.UserSequenceStep other) { - if (other == com.google.analytics.data.v1alpha.UserSequenceStep.getDefaultInstance()) - return this; - if (other.getIsDirectlyFollowedBy() != false) { - setIsDirectlyFollowedBy(other.getIsDirectlyFollowedBy()); - } - if (other.stepScoping_ != 0) { - setStepScopingValue(other.getStepScopingValue()); - } - if (other.hasSegmentFilterExpression()) { - mergeSegmentFilterExpression(other.getSegmentFilterExpression()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - isDirectlyFollowedBy_ = input.readBool(); - - break; - } // case 8 - case 16: - { - stepScoping_ = input.readEnum(); - - break; - } // case 16 - case 26: - { - input.readMessage( - getSegmentFilterExpressionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private boolean isDirectlyFollowedBy_; - /** - * - * - *
-     * If true, the event satisfying this step must be the very next event
-     * after the event satifying the last step. If false, this step indirectly
-     * follows the prior step; for example, there may be events between the
-     * prior step and this step. `isDirectlyFollowedBy` must be false for
-     * the first step.
-     * 
- * - * bool is_directly_followed_by = 1; - * - * @return The isDirectlyFollowedBy. - */ - @java.lang.Override - public boolean getIsDirectlyFollowedBy() { - return isDirectlyFollowedBy_; - } - /** - * - * - *
-     * If true, the event satisfying this step must be the very next event
-     * after the event satifying the last step. If false, this step indirectly
-     * follows the prior step; for example, there may be events between the
-     * prior step and this step. `isDirectlyFollowedBy` must be false for
-     * the first step.
-     * 
- * - * bool is_directly_followed_by = 1; - * - * @param value The isDirectlyFollowedBy to set. - * @return This builder for chaining. - */ - public Builder setIsDirectlyFollowedBy(boolean value) { - - isDirectlyFollowedBy_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If true, the event satisfying this step must be the very next event
-     * after the event satifying the last step. If false, this step indirectly
-     * follows the prior step; for example, there may be events between the
-     * prior step and this step. `isDirectlyFollowedBy` must be false for
-     * the first step.
-     * 
- * - * bool is_directly_followed_by = 1; - * - * @return This builder for chaining. - */ - public Builder clearIsDirectlyFollowedBy() { - - isDirectlyFollowedBy_ = false; - onChanged(); - return this; - } - - private int stepScoping_ = 0; - /** - * - * - *
-     * This sequence step must be satisfied in the scoping for the user to
-     * match the sequence. For example if `sequenceScoping =
-     * WITHIN_SAME_SESSION`, this sequence steps must complete within one
-     * session for the user to match the sequence. `stepScoping =
-     * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
-     * ACROSS_ALL_SESSIONS`.
-     * Optional. If unspecified, `stepScoping` uses the same
-     * `UserCriteriaScoping` as the `sequenceScoping`.
-     * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; - * - * @return The enum numeric value on the wire for stepScoping. - */ - @java.lang.Override - public int getStepScopingValue() { - return stepScoping_; - } - /** - * - * - *
-     * This sequence step must be satisfied in the scoping for the user to
-     * match the sequence. For example if `sequenceScoping =
-     * WITHIN_SAME_SESSION`, this sequence steps must complete within one
-     * session for the user to match the sequence. `stepScoping =
-     * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
-     * ACROSS_ALL_SESSIONS`.
-     * Optional. If unspecified, `stepScoping` uses the same
-     * `UserCriteriaScoping` as the `sequenceScoping`.
-     * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; - * - * @param value The enum numeric value on the wire for stepScoping to set. - * @return This builder for chaining. - */ - public Builder setStepScopingValue(int value) { - - stepScoping_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * This sequence step must be satisfied in the scoping for the user to
-     * match the sequence. For example if `sequenceScoping =
-     * WITHIN_SAME_SESSION`, this sequence steps must complete within one
-     * session for the user to match the sequence. `stepScoping =
-     * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
-     * ACROSS_ALL_SESSIONS`.
-     * Optional. If unspecified, `stepScoping` uses the same
-     * `UserCriteriaScoping` as the `sequenceScoping`.
-     * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; - * - * @return The stepScoping. - */ - @java.lang.Override - public com.google.analytics.data.v1alpha.UserCriteriaScoping getStepScoping() { - @SuppressWarnings("deprecation") - com.google.analytics.data.v1alpha.UserCriteriaScoping result = - com.google.analytics.data.v1alpha.UserCriteriaScoping.valueOf(stepScoping_); - return result == null - ? com.google.analytics.data.v1alpha.UserCriteriaScoping.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * This sequence step must be satisfied in the scoping for the user to
-     * match the sequence. For example if `sequenceScoping =
-     * WITHIN_SAME_SESSION`, this sequence steps must complete within one
-     * session for the user to match the sequence. `stepScoping =
-     * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
-     * ACROSS_ALL_SESSIONS`.
-     * Optional. If unspecified, `stepScoping` uses the same
-     * `UserCriteriaScoping` as the `sequenceScoping`.
-     * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; - * - * @param value The stepScoping to set. - * @return This builder for chaining. - */ - public Builder setStepScoping(com.google.analytics.data.v1alpha.UserCriteriaScoping value) { - if (value == null) { - throw new NullPointerException(); - } - - stepScoping_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * This sequence step must be satisfied in the scoping for the user to
-     * match the sequence. For example if `sequenceScoping =
-     * WITHIN_SAME_SESSION`, this sequence steps must complete within one
-     * session for the user to match the sequence. `stepScoping =
-     * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
-     * ACROSS_ALL_SESSIONS`.
-     * Optional. If unspecified, `stepScoping` uses the same
-     * `UserCriteriaScoping` as the `sequenceScoping`.
-     * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; - * - * @return This builder for chaining. - */ - public Builder clearStepScoping() { - - stepScoping_ = 0; - onChanged(); - return this; - } - - private com.google.analytics.data.v1alpha.SegmentFilterExpression segmentFilterExpression_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> - segmentFilterExpressionBuilder_; - /** - * - * - *
-     * A user matches this sequence step if their events match this
-     * expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * - * - * @return Whether the segmentFilterExpression field is set. - */ - public boolean hasSegmentFilterExpression() { - return segmentFilterExpressionBuilder_ != null || segmentFilterExpression_ != null; - } - /** - * - * - *
-     * A user matches this sequence step if their events match this
-     * expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * - * - * @return The segmentFilterExpression. - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression() { - if (segmentFilterExpressionBuilder_ == null) { - return segmentFilterExpression_ == null - ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() - : segmentFilterExpression_; - } else { - return segmentFilterExpressionBuilder_.getMessage(); - } - } - /** - * - * - *
-     * A user matches this sequence step if their events match this
-     * expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * - */ - public Builder setSegmentFilterExpression( - com.google.analytics.data.v1alpha.SegmentFilterExpression value) { - if (segmentFilterExpressionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - segmentFilterExpression_ = value; - onChanged(); - } else { - segmentFilterExpressionBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * A user matches this sequence step if their events match this
-     * expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * - */ - public Builder setSegmentFilterExpression( - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder builderForValue) { - if (segmentFilterExpressionBuilder_ == null) { - segmentFilterExpression_ = builderForValue.build(); - onChanged(); - } else { - segmentFilterExpressionBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * A user matches this sequence step if their events match this
-     * expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * - */ - public Builder mergeSegmentFilterExpression( - com.google.analytics.data.v1alpha.SegmentFilterExpression value) { - if (segmentFilterExpressionBuilder_ == null) { - if (segmentFilterExpression_ != null) { - segmentFilterExpression_ = - com.google.analytics.data.v1alpha.SegmentFilterExpression.newBuilder( - segmentFilterExpression_) - .mergeFrom(value) - .buildPartial(); - } else { - segmentFilterExpression_ = value; - } - onChanged(); - } else { - segmentFilterExpressionBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * A user matches this sequence step if their events match this
-     * expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * - */ - public Builder clearSegmentFilterExpression() { - if (segmentFilterExpressionBuilder_ == null) { - segmentFilterExpression_ = null; - onChanged(); - } else { - segmentFilterExpression_ = null; - segmentFilterExpressionBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * A user matches this sequence step if their events match this
-     * expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder - getSegmentFilterExpressionBuilder() { - - onChanged(); - return getSegmentFilterExpressionFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A user matches this sequence step if their events match this
-     * expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * - */ - public com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder - getSegmentFilterExpressionOrBuilder() { - if (segmentFilterExpressionBuilder_ != null) { - return segmentFilterExpressionBuilder_.getMessageOrBuilder(); - } else { - return segmentFilterExpression_ == null - ? com.google.analytics.data.v1alpha.SegmentFilterExpression.getDefaultInstance() - : segmentFilterExpression_; - } - } - /** - * - * - *
-     * A user matches this sequence step if their events match this
-     * expression. Expressions express criteria on dimension, metrics,
-     * and/or parameters.
-     * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder> - getSegmentFilterExpressionFieldBuilder() { - if (segmentFilterExpressionBuilder_ == null) { - segmentFilterExpressionBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1alpha.SegmentFilterExpression, - com.google.analytics.data.v1alpha.SegmentFilterExpression.Builder, - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder>( - getSegmentFilterExpression(), getParentForChildren(), isClean()); - segmentFilterExpression_ = null; - } - return segmentFilterExpressionBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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.v1alpha.UserSequenceStep) - } - - // @@protoc_insertion_point(class_scope:google.analytics.data.v1alpha.UserSequenceStep) - private static final com.google.analytics.data.v1alpha.UserSequenceStep DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.data.v1alpha.UserSequenceStep(); - } - - public static com.google.analytics.data.v1alpha.UserSequenceStep getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UserSequenceStep parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.analytics.data.v1alpha.UserSequenceStep getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStepOrBuilder.java b/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStepOrBuilder.java deleted file mode 100644 index 10774001..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/java/com/google/analytics/data/v1alpha/UserSequenceStepOrBuilder.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/data/v1alpha/data.proto - -package com.google.analytics.data.v1alpha; - -public interface UserSequenceStepOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.data.v1alpha.UserSequenceStep) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * If true, the event satisfying this step must be the very next event
-   * after the event satifying the last step. If false, this step indirectly
-   * follows the prior step; for example, there may be events between the
-   * prior step and this step. `isDirectlyFollowedBy` must be false for
-   * the first step.
-   * 
- * - * bool is_directly_followed_by = 1; - * - * @return The isDirectlyFollowedBy. - */ - boolean getIsDirectlyFollowedBy(); - - /** - * - * - *
-   * This sequence step must be satisfied in the scoping for the user to
-   * match the sequence. For example if `sequenceScoping =
-   * WITHIN_SAME_SESSION`, this sequence steps must complete within one
-   * session for the user to match the sequence. `stepScoping =
-   * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
-   * ACROSS_ALL_SESSIONS`.
-   * Optional. If unspecified, `stepScoping` uses the same
-   * `UserCriteriaScoping` as the `sequenceScoping`.
-   * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; - * - * @return The enum numeric value on the wire for stepScoping. - */ - int getStepScopingValue(); - /** - * - * - *
-   * This sequence step must be satisfied in the scoping for the user to
-   * match the sequence. For example if `sequenceScoping =
-   * WITHIN_SAME_SESSION`, this sequence steps must complete within one
-   * session for the user to match the sequence. `stepScoping =
-   * ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping =
-   * ACROSS_ALL_SESSIONS`.
-   * Optional. If unspecified, `stepScoping` uses the same
-   * `UserCriteriaScoping` as the `sequenceScoping`.
-   * 
- * - * .google.analytics.data.v1alpha.UserCriteriaScoping step_scoping = 2; - * - * @return The stepScoping. - */ - com.google.analytics.data.v1alpha.UserCriteriaScoping getStepScoping(); - - /** - * - * - *
-   * A user matches this sequence step if their events match this
-   * expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * - * - * @return Whether the segmentFilterExpression field is set. - */ - boolean hasSegmentFilterExpression(); - /** - * - * - *
-   * A user matches this sequence step if their events match this
-   * expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * - * - * @return The segmentFilterExpression. - */ - com.google.analytics.data.v1alpha.SegmentFilterExpression getSegmentFilterExpression(); - /** - * - * - *
-   * A user matches this sequence step if their events match this
-   * expression. Expressions express criteria on dimension, metrics,
-   * and/or parameters.
-   * 
- * - * .google.analytics.data.v1alpha.SegmentFilterExpression segment_filter_expression = 3; - * - */ - com.google.analytics.data.v1alpha.SegmentFilterExpressionOrBuilder - getSegmentFilterExpressionOrBuilder(); -} diff --git a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto b/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto deleted file mode 100644 index f86cf8db..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/analytics_data_api.proto +++ /dev/null @@ -1,169 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.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.v1alpha; - -import "google/analytics/data/v1alpha/data.proto"; -import "google/api/annotations.proto"; -import "google/api/client.proto"; - -option go_package = "google.golang.org/genproto/googleapis/analytics/data/v1alpha;data"; -option java_multiple_files = true; -option java_outer_classname = "AnalyticsDataApiProto"; -option java_package = "com.google.analytics.data.v1alpha"; - -// Google Analytics reporting data service. -service AlphaAnalyticsData { - 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 funnel report of your Google Analytics event data. The - // data returned from the API is as a table with columns for the requested - // dimensions and metrics. - // - // Funnel exploration lets you visualize the steps your users take to complete - // a task and quickly see how well they are succeeding or failing at each - // step. For example, how do prospects become shoppers and then become buyers? - // How do one time buyers become repeat buyers? With this information, you can - // improve inefficient or abandoned customer journeys. To learn more, see [GA4 - // Funnel Explorations](https://support.google.com/analytics/answer/9327974). - rpc RunFunnelReport(RunFunnelReportRequest) returns (RunFunnelReportResponse) { - option (google.api.http) = { - post: "/v1alpha/{property=properties/*}:runFunnelReport" - body: "*" - }; - } -} - -// The request for a funnel report. -message RunFunnelReportRequest { - // Controls the dimensions present in the funnel visualization sub report - // response. - enum FunnelVisualizationType { - // Unspecified type. - FUNNEL_VISUALIZATION_TYPE_UNSPECIFIED = 0; - - // A standard (stepped) funnel. The funnel visualization sub report in the - // response will not contain date. - STANDARD_FUNNEL = 1; - - // A trended (line chart) funnel. The funnel visualization sub report in the - // response will contain the date dimension. - TRENDED_FUNNEL = 2; - } - - // 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; - - // 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. - repeated DateRange date_ranges = 2; - - // The configuration of this request's funnel. This funnel configuration is - // required. - Funnel funnel = 3; - - // If specified, this breakdown adds a dimension to the funnel table sub - // report response. This breakdown dimension expands each funnel step to the - // unique values of the breakdown dimension. For example, a breakdown by the - // `deviceCategory` dimension will create rows for `mobile`, `tablet`, - // `desktop`, and the total. - FunnelBreakdown funnel_breakdown = 4; - - // If specified, next action adds a dimension to the funnel visualization sub - // report response. This next action dimension expands each funnel step to the - // unique values of the next action. For example a next action of the - // `eventName` dimension will create rows for several events (i.e. - // `session_start` & `click`) and the total. - // - // Next action only supports `eventName` and most Page / Screen dimensions - // like `pageTitle` and `pagePath`. - FunnelNextAction funnel_next_action = 5; - - // The funnel visualization type controls the dimensions present in the funnel - // visualization sub report response. If not specified, `STANDARD_FUNNEL` is - // used. - FunnelVisualizationType funnel_visualization_type = 6; - - // The configurations of segments. Segments are subsets of a property's data. - // In a funnel report with segments, the funnel is evaluated in each segment. - // - // Each segment specified in this request - // produces a separate row in the response; in the response, each segment - // identified by its name. - // - // The segments parameter is optional. Requests are limited to 4 segments. - repeated Segment segments = 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`. - int64 limit = 9; - - // Dimension filters allow you to ask for only specific dimension values in - // the report. To learn more, see [Creating a Report: 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 = 10; - - // Toggles whether to return the current state of this Analytics Property's - // quota. Quota is returned in [PropertyQuota](#PropertyQuota). - bool return_property_quota = 12; -} - -// The funnel report response contains two sub reports. The two sub reports are -// different combinations of dimensions and metrics. -message RunFunnelReportResponse { - // The funnel table is a report with the funnel step, segment, breakdown - // dimension, active users, completion rate, abandonments, and abandonments - // rate. - // - // The segment dimension is only present in this response if a segment was - // requested. The breakdown dimension is only present in this response if it - // was requested. - FunnelSubReport funnel_table = 1; - - // The funnel visualization is a report with the funnel step, segment, date, - // next action dimension, and active users. - // - // The segment dimension is only present in this response if a segment was - // requested. The date dimension is only present in this response if it was - // requested via the `TRENDED_FUNNEL` funnel type. The next action dimension - // is only present in the response if it was requested. - FunnelSubReport funnel_visualization = 2; - - // This Analytics Property's quota state including this request. - PropertyQuota property_quota = 3; - - // Identifies what kind of resource this message is. This `kind` is always the - // fixed string "analyticsData#runFunnelReport". Useful to distinguish between - // response types in JSON. - string kind = 4; -} diff --git a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto b/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto deleted file mode 100644 index 9ef9f614..00000000 --- a/proto-google-analytics-data-v1alpha/src/main/proto/google/analytics/data/v1alpha/data.proto +++ /dev/null @@ -1,1233 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.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.v1alpha; - -import "google/protobuf/duration.proto"; - -option go_package = "google.golang.org/genproto/googleapis/analytics/data/v1alpha;data"; -option java_multiple_files = true; -option java_outer_classname = "ReportingApiProto"; -option java_package = "com.google.analytics.data.v1alpha"; - -// 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; -} - -// 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, the city could be "Paris" or "New York". -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; - } -} - -// 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. In the same FilterExpression, all of the filter's - // field names need to be either all dimensions or all 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 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 = 2; - - // A filter for in list values. - InListFilter in_list_filter = 3; - - // A filter for numeric or date values. - NumericFilter numeric_filter = 4; - - // A filter for between two values. - BetweenFilter between_filter = 5; - } -} - -// 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 match for the regular expression with the string value. - FULL_REGEXP = 5; - - // Partial match for the regular expression 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; -} - -// 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; - } -} - -// 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; -} - -// 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; - } -} - -// 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; -} - -// Breakdowns add a dimension to the funnel table sub report response. -message FunnelBreakdown { - // The dimension column added to the funnel table sub report response. The - // breakdown dimension breaks down each funnel step. A valid - // `breakdownDimension` is required if `funnelBreakdown` is specified. - Dimension breakdown_dimension = 1; - - // The maximum number of distinct values of the breakdown dimension to return - // in the response. A `limit` of `5` is used if limit is not specified. Limit - // must exceed zero and cannot exceed 15. - optional int64 limit = 2; -} - -// Next actions state the value for a dimension after the user has achieved -// a step but before the same user has achieved the next step. For example if -// the `nextActionDimension` is `eventName`, then `nextActionDimension` in the -// `i`th funnel step row will return first event after the event that qualified -// the user into the `i`th funnel step but before the user achieved the `i+1`th -// funnel step. -message FunnelNextAction { - // The dimension column added to the funnel visualization sub report response. - // The next action dimension returns the next dimension value of this - // dimension after the user has attained the `i`th funnel step. - // - // `nextActionDimension` currently only supports `eventName` and most Page / - // Screen dimensions like `pageTitle` and `pagePath`. `nextActionDimension` - // cannot be a dimension expression. - Dimension next_action_dimension = 1; - - // The maximum number of distinct values of the breakdown dimension to return - // in the response. A `limit` of `5` is used if limit is not specified. Limit - // must exceed zero and cannot exceed 5. - optional int64 limit = 2; -} - -// Configures the funnel in a funnel report request. A funnel reports on users -// as they pass through a sequence of steps. -// -// Funnel exploration lets you visualize the steps your users take to complete a -// task and quickly see how well they are succeeding or failing at each step. -// For example, how do prospects become shoppers and then become buyers? How do -// one time buyers become repeat buyers? With this information, you can improve -// inefficient or abandoned customer journeys. -message Funnel { - // In an open funnel, users can enter the funnel in any step, and in a closed - // funnel, users must enter the funnel in the first step. Optional. If - // unspecified, a closed funnel is used. - bool is_open_funnel = 1; - - // The sequential steps of this funnel. - repeated FunnelStep steps = 2; -} - -// Steps define the user journey you want to measure. Steps contain one or -// more conditions that your users must meet to be included in that step of -// the funnel journey. -message FunnelStep { - // The distinctive name for this step. If unspecified, steps will be named - // by a 1 based indexed name (i.e. "0. ", "1. ", etc.). This name defines - // string value returned by the `funnelStepName` dimension. For example, - // specifying `name = Purchase` in the request's third funnel step will - // produce `3. Purchase` in the funnel report response. - string name = 1; - - // If true, this step must directly follow the previous step. If false, - // there can be events between the previous step and this step. If - // unspecified, `isDirectlyFollowedBy` is treated as false. - bool is_directly_followed_by = 2; - - // If specified, this step must complete within this duration of the - // completion of the prior step. `withinDurationFromPriorStep` is inclusive - // of the endpoint at the microsecond granularity. For example a duration of - // 5 seconds can be completed at 4.9 or 5.0 seconds, but not 5 seconds and 1 - // microsecond. - // - // `withinDurationFromPriorStep` is optional, and if unspecified, steps may - // be separated by any time duration. - optional google.protobuf.Duration within_duration_from_prior_step = 3; - - // The condition that your users must meet to be included in this step of - // the funnel journey. - FunnelFilterExpression filter_expression = 4; -} - -// Funnel sub reports contain the dimension and metric data values. For example, -// 12 users reached the second step of the funnel. -message FunnelSubReport { - // Describes dimension columns. Funnel reports always include the funnel step - // dimension in sub report responses. Additional dimensions like breakdowns, - // dates, and next actions may be present in the response if requested. - repeated DimensionHeader dimension_headers = 1; - - // Describes metric columns. Funnel reports always include active users in sub - // report responses. The funnel table includes additional metrics like - // completion rate, abandonments, and abandonments rate. - repeated MetricHeader metric_headers = 2; - - // Rows of dimension value combinations and metric values in the report. - repeated Row rows = 3; - - // Metadata for the funnel report. - FunnelResponseMetadata metadata = 4; -} - -// User segments are subsets of users who engaged with your site or app. For -// example, users who have previously purchased; users who added items to their -// shopping carts, but didn’t complete a purchase. -message UserSegment { - // Defines which users are included in this segment. Optional. - UserSegmentCriteria user_inclusion_criteria = 1; - - // Defines which users are excluded in this segment. Optional. - UserSegmentExclusion exclusion = 2; -} - -// A user matches a criteria if the user's events meet the conditions in the -// criteria. -message UserSegmentCriteria { - // A user matches this criteria if the user matches each of these - // `andConditionGroups` and each of the `andSequenceGroups`. - // `andConditionGroups` may be empty if `andSequenceGroups` are specified. - repeated UserSegmentConditionGroup and_condition_groups = 1; - - // A user matches this criteria if the user matches each of these - // `andSequenceGroups` and each of the `andConditionGroups`. - // `andSequenceGroups` may be empty if `andConditionGroups` are specified. - repeated UserSegmentSequenceGroup and_sequence_groups = 2; -} - -// Scoping specifies which events are considered when evaluating if a user -// meets a criteria. -enum UserCriteriaScoping { - // Unspecified criteria scoping. Do not specify. - USER_CRITERIA_SCOPING_UNSPECIFIED = 0; - - // If the criteria is satisfied within one event, the user matches the - // criteria. - USER_CRITERIA_WITHIN_SAME_EVENT = 1; - - // If the criteria is satisfied within one session, the user matches the - // criteria. - USER_CRITERIA_WITHIN_SAME_SESSION = 2; - - // If the criteria is satisfied by any events for the user, the user - // matches the criteria. - USER_CRITERIA_ACROSS_ALL_SESSIONS = 3; -} - -// Conditions tell Analytics what data to include in or exclude from the -// segment. -message UserSegmentConditionGroup { - // Data is included or excluded from the segment based on if it matches - // the condition group. This scoping defines how many events the - // `segmentFilterExpression` is evaluated on before the condition group - // is determined to be matched or not. For example if `conditionScoping = - // USER_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all - // events in a session, and then, the condition group is determined to be - // matched or not for this user. For example if `conditionScoping = - // USER_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a single - // event, and then, the condition group is determined to be matched or not for - // this user. - // - // Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is - // used. - UserCriteriaScoping condition_scoping = 1; - - // Data is included or excluded from the segment based on if it matches - // this expression. Expressions express criteria on dimension, metrics, - // and/or parameters. - SegmentFilterExpression segment_filter_expression = 2; -} - -// Define conditions that must occur in a specific order for the user to be -// a member of the segment. -message UserSegmentSequenceGroup { - // All sequence steps must be satisfied in the scoping for the user to - // match the sequence. For example if `sequenceScoping = - // USER_CRITERIA_WITHIN_SAME_SESSION`, all sequence steps must complete within - // one session for the user to match the sequence. `sequenceScoping = - // USER_CRITERIA_WITHIN_SAME_EVENT` is not supported. - // - // Optional. If unspecified, `conditionScoping = ACROSS_ALL_SESSIONS` is - // used. - UserCriteriaScoping sequence_scoping = 1; - - // Defines the time period in which the whole sequence must occur; for - // example, 30 Minutes. `sequenceMaximumDuration` is inclusive - // of the endpoint at the microsecond granularity. For example a sequence - // with a maximum duration of 5 seconds can be completed at 4.9 or 5.0 - // seconds, but not 5 seconds and 1 microsecond. - // - // `sequenceMaximumDuration` is optional, and if unspecified, sequences can - // be completed in any time duration. - google.protobuf.Duration sequence_maximum_duration = 2; - - // An ordered sequence of condition steps. A user's events must complete - // each step in order for the user to match the - // `UserSegmentSequenceGroup`. - repeated UserSequenceStep user_sequence_steps = 3; -} - -// A condition that must occur in the specified step order for this user -// to match the sequence. -message UserSequenceStep { - // If true, the event satisfying this step must be the very next event - // after the event satifying the last step. If false, this step indirectly - // follows the prior step; for example, there may be events between the - // prior step and this step. `isDirectlyFollowedBy` must be false for - // the first step. - bool is_directly_followed_by = 1; - - // This sequence step must be satisfied in the scoping for the user to - // match the sequence. For example if `sequenceScoping = - // WITHIN_SAME_SESSION`, this sequence steps must complete within one - // session for the user to match the sequence. `stepScoping = - // ACROSS_ALL_SESSIONS` is only allowed if the `sequenceScoping = - // ACROSS_ALL_SESSIONS`. - // - // Optional. If unspecified, `stepScoping` uses the same - // `UserCriteriaScoping` as the `sequenceScoping`. - UserCriteriaScoping step_scoping = 2; - - // A user matches this sequence step if their events match this - // expression. Expressions express criteria on dimension, metrics, - // and/or parameters. - SegmentFilterExpression segment_filter_expression = 3; -} - -// Specifies which users are excluded in this segment. -message UserSegmentExclusion { - // Specifies how long an exclusion will last if a user matches the - // `userExclusionCriteria`. - // - // Optional. If unspecified, `userExclusionDuration` of - // `USER_EXCLUSION_TEMPORARY` is used. - UserExclusionDuration user_exclusion_duration = 1; - - // If a user meets this condition, the user is excluded from membership in - // the segment for the `userExclusionDuration`. - UserSegmentCriteria user_exclusion_criteria = 2; -} - -// Enumerates options for how long an exclusion will last if a user matches -// the `userExclusionCriteria`. -enum UserExclusionDuration { - // Unspecified exclusion duration. Do not specify. - USER_EXCLUSION_DURATION_UNSPECIFIED = 0; - - // Temporarily exclude users from the segment during periods when the - // user meets the `userExclusionCriteria` condition. - USER_EXCLUSION_TEMPORARY = 1; - - // Permanently exclude users from the segment if the user ever meets the - // `userExclusionCriteria` condition. - USER_EXCLUSION_PERMANENT = 2; -} - -// Session segments are subsets of the sessions that occurred on your site or -// app: for example, all the sessions that originated from a particular -// advertising campaign. -message SessionSegment { - // Defines which sessions are included in this segment. Optional. - SessionSegmentCriteria session_inclusion_criteria = 1; - - // Defines which sessions are excluded in this segment. Optional. - SessionSegmentExclusion exclusion = 2; -} - -// A session matches a criteria if the session's events meet the conditions in -// the criteria. -message SessionSegmentCriteria { - // A session matches this criteria if the session matches each of these - // `andConditionGroups`. - repeated SessionSegmentConditionGroup and_condition_groups = 1; -} - -// Scoping specifies which events are considered when evaluating if a -// session meets a criteria. -enum SessionCriteriaScoping { - // Unspecified criteria scoping. Do not specify. - SESSION_CRITERIA_SCOPING_UNSPECIFIED = 0; - - // If the criteria is satisfied within one event, the session matches the - // criteria. - SESSION_CRITERIA_WITHIN_SAME_EVENT = 1; - - // If the criteria is satisfied within one session, the session matches - // the criteria. - SESSION_CRITERIA_WITHIN_SAME_SESSION = 2; -} - -// Conditions tell Analytics what data to include in or exclude from the -// segment. -message SessionSegmentConditionGroup { - // Data is included or excluded from the segment based on if it matches - // the condition group. This scoping defines how many events the - // `segmentFilterExpression` is evaluated on before the condition group - // is determined to be matched or not. For example if `conditionScoping = - // SESSION_CRITERIA_WITHIN_SAME_SESSION`, the expression is evaluated on all - // events in a session, and then, the condition group is determined to be - // matched or not for this session. For example if `conditionScoping = - // SESSION_CRITERIA_WITHIN_SAME_EVENT`, the expression is evaluated on a - // single event, and then, the condition group is determined to be matched or - // not for this session. - // - // Optional. If unspecified, a `conditionScoping` of `WITHIN_SAME_SESSION` - // is used. - SessionCriteriaScoping condition_scoping = 1; - - // Data is included or excluded from the segment based on if it matches - // this expression. Expressions express criteria on dimension, metrics, - // and/or parameters. - SegmentFilterExpression segment_filter_expression = 2; -} - -// Specifies which sessions are excluded in this segment. -message SessionSegmentExclusion { - // Specifies how long an exclusion will last if a session matches the - // `sessionExclusionCriteria`. - // - // Optional. If unspecified, a `sessionExclusionDuration` of - // `SESSION_EXCLUSION_TEMPORARY` is used. - SessionExclusionDuration session_exclusion_duration = 1; - - // If a session meets this condition, the session is excluded from - // membership in the segment for the `sessionExclusionDuration`. - SessionSegmentCriteria session_exclusion_criteria = 2; -} - -// Enumerates options for how long an exclusion will last if a session -// matches the `sessionExclusionCriteria`. -enum SessionExclusionDuration { - // Unspecified exclusion duration. Do not specify. - SESSION_EXCLUSION_DURATION_UNSPECIFIED = 0; - - // Temporarily exclude sessions from the segment during periods when the - // session meets the `sessionExclusionCriteria` condition. - SESSION_EXCLUSION_TEMPORARY = 1; - - // Permanently exclude sessions from the segment if the session ever meets - // the `sessionExclusionCriteria` condition. - SESSION_EXCLUSION_PERMANENT = 2; -} - -// Event segments are subsets of events that were triggered on your site or app. -// for example, all purchase events made in a particular location; app_exception -// events that occurred on a specific operating system. -message EventSegment { - // Defines which events are included in this segment. Optional. - EventSegmentCriteria event_inclusion_criteria = 1; - - // Defines which events are excluded in this segment. Optional. - EventSegmentExclusion exclusion = 2; -} - -// An event matches a criteria if the event meet the conditions in the -// criteria. -message EventSegmentCriteria { - // An event matches this criteria if the event matches each of these - // `andConditionGroups`. - repeated EventSegmentConditionGroup and_condition_groups = 1; -} - -// Scoping specifies which events are considered when evaluating if an event -// meets a criteria. -enum EventCriteriaScoping { - // Unspecified criteria scoping. Do not specify. - EVENT_CRITERIA_SCOPING_UNSPECIFIED = 0; - - // If the criteria is satisfied within one event, the event matches the - // criteria. - EVENT_CRITERIA_WITHIN_SAME_EVENT = 1; -} - -// Conditions tell Analytics what data to include in or exclude from the -// segment. -message EventSegmentConditionGroup { - // `conditionScoping` should always be `EVENT_CRITERIA_WITHIN_SAME_EVENT`. - // - // Optional. If unspecified, a `conditionScoping` of - // `EVENT_CRITERIA_WITHIN_SAME_EVENT` is used. - EventCriteriaScoping condition_scoping = 1; - - // Data is included or excluded from the segment based on if it matches - // this expression. Expressions express criteria on dimension, metrics, - // and/or parameters. - SegmentFilterExpression segment_filter_expression = 2; -} - -// Specifies which events are excluded in this segment. -message EventSegmentExclusion { - // `eventExclusionDuration` should always be `PERMANENTLY_EXCLUDE`. - // - // Optional. If unspecified, an `eventExclusionDuration` of - // `EVENT_EXCLUSION_PERMANENT` is used. - EventExclusionDuration event_exclusion_duration = 1; - - // If an event meets this condition, the event is excluded from membership - // in the segment for the `eventExclusionDuration`. - EventSegmentCriteria event_exclusion_criteria = 2; -} - -// Enumerates options for how long an exclusion will last if an event -// matches the `eventExclusionCriteria`. -enum EventExclusionDuration { - // Unspecified exclusion duration. Do not specify. - EVENT_EXCLUSION_DURATION_UNSPECIFIED = 0; - - // Permanently exclude events from the segment if the event ever meets - // the `eventExclusionCriteria` condition. - EVENT_EXCLUSION_PERMANENT = 1; -} - -// A segment is a subset of your Analytics data. For example, of your entire set -// of users, one segment might be users from a particular country or city. -// Another segment might be users who purchase a particular line of products or -// who visit a specific part of your site or trigger certain events in your app. -// -// To learn more, see [GA4 Segment -// Builder](https://support.google.com/analytics/answer/9304353). -message Segment { - // The name for this segment. If unspecified, segments are named "Segment". - // This name defines string value returned by the `segment` dimension. The - // `segment` dimension prefixes segment names by the 1-based index number of - // the segment in the request (i.e. "1. Segment", "2. Segment", etc.). - string name = 1; - - // A segment is specified in one scope. - oneof one_segment_scope { - // User segments are subsets of users who engaged with your site or app. - UserSegment user_segment = 2; - - // Session segments are subsets of the sessions that occurred on your site - // or app. - SessionSegment session_segment = 3; - - // Event segments are subsets of events that were triggered on your site or - // app. - EventSegment event_segment = 4; - } -} - -// Expresses combinations of segment filters. -message SegmentFilterExpression { - // Specify one type of filter for `SegmentFilterExpression`. - oneof expr { - // The SegmentFilterExpression in `andGroup` have an AND relationship. - SegmentFilterExpressionList and_group = 1; - - // The SegmentFilterExpression in `orGroup` have an OR relationship. - SegmentFilterExpressionList or_group = 2; - - // The SegmentFilterExpression is NOT of `notExpression`. - SegmentFilterExpression not_expression = 3; - - // A primitive segment filter. - SegmentFilter segment_filter = 4; - - // Creates a filter that matches events of a single event name. If a - // parameter filter expression is specified, only the subset of events that - // match both the single event name and the parameter filter expressions - // match this event filter. - SegmentEventFilter segment_event_filter = 5; - } -} - -// A list of segment filter expressions. -message SegmentFilterExpressionList { - // The list of segment filter expressions - repeated SegmentFilterExpression expressions = 1; -} - -// An expression to filter dimension or metric values. -message SegmentFilter { - // The dimension name or metric name. - string field_name = 1; - - // Specify one type of filter for `Filter`. - oneof one_filter { - // Strings related filter. - StringFilter string_filter = 4; - - // A filter for in list values. - InListFilter in_list_filter = 5; - - // A filter for numeric or date values. - NumericFilter numeric_filter = 6; - - // A filter for between two values. - BetweenFilter between_filter = 7; - } - - // Specifies the scope for the filter. - SegmentFilterScoping filter_scoping = 8; -} - -// Scopings specify how the dimensions & metrics of multiple events -// should be considered when evaluating a segment filter. -message SegmentFilterScoping { - // If `atAnyPointInTime` is true, this filter evaluates to true for all - // events if it evaluates to true for any event in the date range of the - // request. - // - // This `atAnyPointInTime` parameter does not extend the date range of - // events in the report. If `atAnyPointInTime` is true, only events within - // the report's date range are considered when evaluating this filter. - // - // This `atAnyPointInTime` is only able to be specified if the criteria - // scoping is `ACROSS_ALL_SESSIONS` and is not able to be specified in - // sequences. - // - // If the criteria scoping is `ACROSS_ALL_SESSIONS`, `atAnyPointInTime` = - // false is used if unspecified. - optional bool at_any_point_in_time = 1; -} - -// Creates a filter that matches events of a single event name. If a parameter -// filter expression is specified, only the subset of events that match both the -// single event name and the parameter filter expressions match this event -// filter. -message SegmentEventFilter { - // This filter matches events of this single event name. Event name is - // required. - optional string event_name = 1; - - // If specified, this filter matches events that match both the single event - // name and the parameter filter expressions. - // - // Inside the parameter filter expression, only parameter filters are - // available. - optional SegmentParameterFilterExpression segment_parameter_filter_expression = 2; -} - -// Expresses combinations of segment filter on parameters. -message SegmentParameterFilterExpression { - // Specify one type of filter for `SegmentParameterFilterExpression`. - oneof expr { - // The SegmentParameterFilterExpression in `andGroup` have an AND - // relationship. - SegmentParameterFilterExpressionList and_group = 1; - - // The SegmentParameterFilterExpression in `orGroup` have an OR - // relationship. - SegmentParameterFilterExpressionList or_group = 2; - - // The SegmentParameterFilterExpression is NOT of `notExpression`. - SegmentParameterFilterExpression not_expression = 3; - - // A primitive segment parameter filter. - SegmentParameterFilter segment_parameter_filter = 4; - } -} - -// A list of segment parameter filter expressions. -message SegmentParameterFilterExpressionList { - // The list of segment parameter filter expressions. - repeated SegmentParameterFilterExpression expressions = 1; -} - -// An expression to filter parameter values in a segment. -message SegmentParameterFilter { - // The field that is being filtered. - oneof one_parameter { - // This filter will be evaluated on the specified event parameter. Event - // parameters are logged as parameters of the event. Event parameters - // include fields like "firebase_screen" & "currency". - // - // Event parameters can only be used in segments & funnels and can only be - // used in a descendent filter from an EventFilter. In a descendent filter - // from an EventFilter either event or item parameters should be used. - string event_parameter_name = 1; - - // This filter will be evaluated on the specified item parameter. Item - // parameters are logged as parameters in the item array. Item parameters - // include fields like "item_name" & "item_category". - // - // Item parameters can only be used in segments & funnels and can only be - // used in a descendent filter from an EventFilter. In a descendent filter - // from an EventFilter either event or item parameters should be used. - // - // Item parameters are only available in ecommerce events. To learn more - // about ecommerce events, see the [Measure ecommerce] - // (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) - // guide. - string item_parameter_name = 2; - } - - // Specify one type of filter. - oneof one_filter { - // Strings related filter. - StringFilter string_filter = 4; - - // A filter for in list values. - InListFilter in_list_filter = 5; - - // A filter for numeric or date values. - NumericFilter numeric_filter = 6; - - // A filter for between two values. - BetweenFilter between_filter = 7; - } - - // Specifies the scope for the filter. - SegmentParameterFilterScoping filter_scoping = 8; -} - -// Scopings specify how multiple events should be considered when evaluating a -// segment parameter filter. -message SegmentParameterFilterScoping { - // Accumulates the parameter over the specified period of days before - // applying the filter. Only supported if criteria scoping is - // `ACROSS_ALL_SESSIONS` or `WITHIN_SAME_SESSION`. Only supported if the - // parameter is `event_count`. - // - // For example if `inAnyNDayPeriod` is 3, the event_name is "purchase", - // the event parameter is "event_count", and the Filter's criteria is - // greater than 5, this filter will accumulate the event count of purchase - // events over every 3 consecutive day period in the report's date range; a - // user will pass this Filter's criteria to be included in this segment if - // their count of purchase events exceeds 5 in any 3 consecutive day period. - // For example, the periods 2021-11-01 to 2021-11-03, 2021-11-02 to - // 2021-11-04, 2021-11-03 to 2021-11-05, and etc. will be considered. - // - // The date range is not extended for the purpose of having a full N day - // window near the start of the date range. For example if a report is for - // 2021-11-01 to 2021-11-10 and `inAnyNDayPeriod` = 3, the first two day - // period will be effectively shortened because no event data outside the - // report's date range will be read. For example, the first four periods - // will effectively be: 2021-11-01 to 2021-11-01, 2021-11-01 to 2021-11-02, - // 2021-11-01 to 2021-11-03, and 2021-11-02 to 2021-11-04. - // - // `inAnyNDayPeriod` is optional. If not specified, the - // `segmentParameterFilter` is applied to each event individually. - optional int64 in_any_n_day_period = 1; -} - -// Expresses combinations of funnel filters. -message FunnelFilterExpression { - // Specify one type of filter for `FunnelFilterExpression`. - oneof expr { - // The FunnelFilterExpression in `andGroup` have an AND relationship. - FunnelFilterExpressionList and_group = 1; - - // The FunnelFilterExpression in `orGroup` have an OR relationship. - FunnelFilterExpressionList or_group = 2; - - // The FunnelFilterExpression is NOT of `notExpression`. - FunnelFilterExpression not_expression = 3; - - // A funnel filter for a dimension or metric. - FunnelFieldFilter funnel_field_filter = 4; - - // Creates a filter that matches events of a single event name. If a - // parameter filter expression is specified, only the subset of events that - // match both the single event name and the parameter filter expressions - // match this event filter. - FunnelEventFilter funnel_event_filter = 5; - } -} - -// A list of funnel filter expressions. -message FunnelFilterExpressionList { - // The list of funnel filter expressions. - repeated FunnelFilterExpression expressions = 1; -} - -// An expression to filter dimension or metric values. -message FunnelFieldFilter { - // The dimension name or metric name. - string field_name = 1; - - // Specify one type of filter. - oneof one_filter { - // Strings related filter. - StringFilter string_filter = 4; - - // A filter for in list values. - InListFilter in_list_filter = 5; - - // A filter for numeric or date values. - NumericFilter numeric_filter = 6; - - // A filter for between two values. - BetweenFilter between_filter = 7; - } -} - -// Creates a filter that matches events of a single event name. If a parameter -// filter expression is specified, only the subset of events that match both the -// single event name and the parameter filter expressions match this event -// filter. -message FunnelEventFilter { - // This filter matches events of this single event name. Event name is - // required. - optional string event_name = 1; - - // If specified, this filter matches events that match both the single event - // name and the parameter filter expressions. - // - // Inside the parameter filter expression, only parameter filters are - // available. - optional FunnelParameterFilterExpression funnel_parameter_filter_expression = 2; -} - -// Expresses combinations of funnel filters on parameters. -message FunnelParameterFilterExpression { - // Specify one type of filter for `FunnelParameterFilterExpression`. - oneof expr { - // The FunnelParameterFilterExpression in `andGroup` have an AND - // relationship. - FunnelParameterFilterExpressionList and_group = 1; - - // The FunnelParameterFilterExpression in `orGroup` have an OR - // relationship. - FunnelParameterFilterExpressionList or_group = 2; - - // The FunnelParameterFilterExpression is NOT of `notExpression`. - FunnelParameterFilterExpression not_expression = 3; - - // A primitive funnel parameter filter. - FunnelParameterFilter funnel_parameter_filter = 4; - } -} - -// A list of funnel parameter filter expressions. -message FunnelParameterFilterExpressionList { - // The list of funnel parameter filter expressions. - repeated FunnelParameterFilterExpression expressions = 1; -} - -// An expression to filter parameter values in a funnel. -message FunnelParameterFilter { - // The field that is being filtered. - oneof one_parameter { - // This filter will be evaluated on the specified event parameter. Event - // parameters are logged as parameters of the event. Event parameters - // include fields like "firebase_screen" & "currency". - // - // Event parameters can only be used in segments & funnels and can only be - // used in a descendent filter from an EventFilter. In a descendent filter - // from an EventFilter either event or item parameters should be used. - string event_parameter_name = 1; - - // This filter will be evaluated on the specified item parameter. Item - // parameters are logged as parameters in the item array. Item parameters - // include fields like "item_name" & "item_category". - // - // Item parameters can only be used in segments & funnels and can only be - // used in a descendent filter from an EventFilter. In a descendent filter - // from an EventFilter either event or item parameters should be used. - // - // Item parameters are only available in ecommerce events. To learn more - // about ecommerce events, see the [Measure ecommerce] - // (https://developers.google.com/analytics/devguides/collection/ga4/ecommerce) - // guide. - string item_parameter_name = 2; - } - - // Specify one type of filter. - oneof one_filter { - // Strings related filter. - StringFilter string_filter = 4; - - // A filter for in list values. - InListFilter in_list_filter = 5; - - // A filter for numeric or date values. - NumericFilter numeric_filter = 6; - - // A filter for between two values. - BetweenFilter between_filter = 7; - } -} - -// The funnel report's response metadata carries additional information about -// the funnel report. -message FunnelResponseMetadata { - // If funnel report results are - // [sampled](https://support.google.com/analytics/answer/2637192), this - // describes what percentage of events were used in this funnel report. One - // `samplingMetadatas` is populated for each date range. Each - // `samplingMetadatas` corresponds to a date range in order that date ranges - // were specified in the request. - // - // However if the results are not sampled, this field will not be defined. - repeated SamplingMetadata sampling_metadatas = 1; -} - -// If funnel report results are -// [sampled](https://support.google.com/analytics/answer/2637192), this -// metadata describes what percentage of events were used in this funnel -// report for a date range. Sampling is the practice of analyzing a subset of -// all data in order to uncover the meaningful information in the larger data -// set. -message SamplingMetadata { - // The total number of events read in this sampled report for a date range. - // This is the size of the subset this property's data that was analyzed in - // this funnel report. - int64 samples_read_count = 1; - - // The total number of events present in this property's data that could - // have been analyzed in this funnel report for a date range. Sampling - // uncovers the meaningful information about the larger data set, and this - // is the size of the larger data set. - // - // To calculate the percentage of available data that was used in this - // funnel report, compute `samplesReadCount/samplingSpaceSize`. - int64 sampling_space_size = 2; -} - -// 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; -} 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 7b115c89..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.14.10-SNAPSHOT - proto-google-analytics-data-v1beta - PROTO library for proto-google-analytics-data-v1beta - - com.google.analytics - google-analytics-data-parent - 0.14.10-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 de898540..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsRequest.java +++ /dev/null @@ -1,1193 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - property_ = ""; - - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - property_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1beta.RunPivotReportRequest m = - input.readMessage( - com.google.analytics.data.v1beta.RunPivotReportRequest.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 69fc9c16..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunPivotReportsResponse.java +++ /dev/null @@ -1,1140 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// 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; - } - - 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (pivotReportsBuilder_ == null) { - pivotReports_ = java.util.Collections.emptyList(); - } else { - pivotReports_ = null; - pivotReportsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.RunPivotReportResponse m = - input.readMessage( - com.google.analytics.data.v1beta.RunPivotReportResponse.parser(), - extensionRegistry); - if (pivotReportsBuilder_ == null) { - ensurePivotReportsIsMutable(); - pivotReports_.add(m); - } else { - pivotReportsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - kind_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 f341323f..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsRequest.java +++ /dev/null @@ -1,1183 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - property_ = ""; - - if (requestsBuilder_ == null) { - requests_ = java.util.Collections.emptyList(); - } else { - requests_ = null; - requestsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - property_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1beta.RunReportRequest m = - input.readMessage( - com.google.analytics.data.v1beta.RunReportRequest.parser(), - extensionRegistry); - if (requestsBuilder_ == null) { - ensureRequestsIsMutable(); - requests_.add(m); - } else { - requestsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 d3190c0e..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/BatchRunReportsResponse.java +++ /dev/null @@ -1,1125 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (reportsBuilder_ == null) { - reports_ = java.util.Collections.emptyList(); - } else { - reports_ = null; - reportsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.RunReportResponse m = - input.readMessage( - com.google.analytics.data.v1beta.RunReportResponse.parser(), - extensionRegistry); - if (reportsBuilder_ == null) { - ensureReportsIsMutable(); - reports_.add(m); - } else { - reportsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - kind_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 d4602992..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityRequest.java +++ /dev/null @@ -1,2419 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - property_ = ""; - - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - } else { - dimensions_ = null; - dimensionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - } else { - metrics_ = null; - metricsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - property_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1beta.Dimension m = - input.readMessage( - com.google.analytics.data.v1beta.Dimension.parser(), extensionRegistry); - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(m); - } else { - dimensionsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.analytics.data.v1beta.Metric m = - input.readMessage( - com.google.analytics.data.v1beta.Metric.parser(), extensionRegistry); - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(m); - } else { - metricsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - input.readMessage(getDimensionFilterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage(getMetricFilterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 48: - { - compatibilityFilter_ = input.readEnum(); - - break; - } // case 48 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 cc01a017..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CheckCompatibilityResponse.java +++ /dev/null @@ -1,1533 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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; - } - - 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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (dimensionCompatibilitiesBuilder_ == null) { - dimensionCompatibilities_ = java.util.Collections.emptyList(); - } else { - dimensionCompatibilities_ = null; - dimensionCompatibilitiesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricCompatibilitiesBuilder_ == null) { - metricCompatibilities_ = java.util.Collections.emptyList(); - } else { - metricCompatibilities_ = null; - metricCompatibilitiesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.DimensionCompatibility m = - input.readMessage( - com.google.analytics.data.v1beta.DimensionCompatibility.parser(), - extensionRegistry); - if (dimensionCompatibilitiesBuilder_ == null) { - ensureDimensionCompatibilitiesIsMutable(); - dimensionCompatibilities_.add(m); - } else { - dimensionCompatibilitiesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1beta.MetricCompatibility m = - input.readMessage( - com.google.analytics.data.v1beta.MetricCompatibility.parser(), - extensionRegistry); - if (metricCompatibilitiesBuilder_ == null) { - ensureMetricCompatibilitiesIsMutable(); - metricCompatibilities_.add(m); - } else { - metricCompatibilitiesBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 1ff8fb34..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Cohort.java +++ /dev/null @@ -1,1247 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimension_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dimension_); - } - if (dateRange_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDateRange()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - dimension_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - input.readMessage(getDateRangeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 abc5491d..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortReportSettings.java +++ /dev/null @@ -1,532 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ACCUMULATE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAccumulate()); - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - accumulate_ = input.readBool(); - - break; - } // case 8 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private boolean 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 a38360ca..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortSpec.java +++ /dev/null @@ -1,1550 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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()); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (cohortsBuilder_ == null) { - cohorts_ = java.util.Collections.emptyList(); - } else { - cohorts_ = null; - cohortsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.Cohort m = - input.readMessage( - com.google.analytics.data.v1beta.Cohort.parser(), extensionRegistry); - if (cohortsBuilder_ == null) { - ensureCohortsIsMutable(); - cohorts_.add(m); - } else { - cohortsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - input.readMessage(getCohortsRangeFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage( - getCohortReportSettingsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 33ec2be8..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/CohortsRange.java +++ /dev/null @@ -1,1040 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - granularity_ = input.readEnum(); - - break; - } // case 8 - case 16: - { - startOffset_ = input.readInt32(); - - break; - } // case 16 - case 24: - { - endOffset_ = input.readInt32(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 f4093172..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DateRange.java +++ /dev/null @@ -1,1035 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - startDate_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - endDate_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 333e2ad7..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Dimension.java +++ /dev/null @@ -1,969 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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, the 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; - } - - 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()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (dimensionExpression_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getDimensionExpression()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasDimensionExpression()) { - hash = (37 * hash) + DIMENSION_EXPRESSION_FIELD_NUMBER; - hash = (53 * hash) + getDimensionExpression().hashCode(); - } - hash = (29 * hash) + getUnknownFields().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, the 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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - input.readMessage( - getDimensionExpressionFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 99439508..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionCompatibility.java +++ /dev/null @@ -1,953 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage( - getDimensionMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - compatibility_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 53ab9b0e..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionExpression.java +++ /dev/null @@ -1,3208 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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; - } - - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(dimensionName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, dimensionName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DIMENSION_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDimensionName().hashCode(); - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - dimensionName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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; - } - - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDimensionNamesIsMutable(); - dimensionNames_.add(s); - break; - } // case 10 - case 18: - { - delimiter_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (lowerCaseBuilder_ != null) { - lowerCaseBuilder_.clear(); - } - if (upperCaseBuilder_ != null) { - upperCaseBuilder_.clear(); - } - if (concatenateBuilder_ != null) { - concatenateBuilder_.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 34: - { - input.readMessage(getLowerCaseFieldBuilder().getBuilder(), extensionRegistry); - oneExpressionCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getUpperCaseFieldBuilder().getBuilder(), extensionRegistry); - oneExpressionCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getConcatenateFieldBuilder().getBuilder(), extensionRegistry); - oneExpressionCase_ = 6; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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); - } 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 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); - } 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 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); - } 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 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 5168ca32..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionHeader.java +++ /dev/null @@ -1,621 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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; - } - - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 40932d8f..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionMetadata.java +++ /dev/null @@ -1,1573 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - apiName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - uiName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDeprecatedApiNamesIsMutable(); - deprecatedApiNames_.add(s); - break; - } // case 34 - case 40: - { - customDefinition_ = input.readBool(); - - break; - } // case 40 - case 58: - { - category_ = input.readStringRequireUtf8(); - - break; - } // case 58 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 853be477..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/DimensionValue.java +++ /dev/null @@ -1,746 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (oneValueCase_) { - case 1: - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - oneValueCase_ = 1; - oneValue_ = s; - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 7bf770ce..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Filter.java +++ /dev/null @@ -1,6142 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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; - } - - 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 match for the regular expression with the string value.
-       * 
- * - * FULL_REGEXP = 5; - */ - FULL_REGEXP(5), - /** - * - * - *
-       * Partial match for the regular expression 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 match for the regular expression with the string value.
-       * 
- * - * FULL_REGEXP = 5; - */ - public static final int FULL_REGEXP_VALUE = 5; - /** - * - * - *
-       * Partial match for the regular expression 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - matchType_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - value_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - caseSensitive_ = input.readBool(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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; - } - - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < values_.size(); i++) { - dataSize += computeStringSizeNoTag(values_.getRaw(i)); - } - size += dataSize; - size += 1 * getValuesList().size(); - } - if (caseSensitive_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, caseSensitive_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getValuesCount() > 0) { - hash = (37 * hash) + VALUES_FIELD_NUMBER; - hash = (53 * hash) + getValuesList().hashCode(); - } - hash = (37 * hash) + CASE_SENSITIVE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCaseSensitive()); - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - values_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureValuesIsMutable(); - values_.add(s); - break; - } // case 10 - case 16: - { - caseSensitive_ = input.readBool(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.protobuf.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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; - } - - 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()); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + OPERATION_FIELD_NUMBER; - hash = (53 * hash) + operation_; - if (hasValue()) { - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - } - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - operation_ = input.readEnum(); - - break; - } // case 8 - case 18: - { - input.readMessage(getValueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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; - } - - 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()); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getFromValueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getToValueFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private com.google.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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.
-   * In most methods, dimensions & metrics can be used for the first time in
-   * this field. However in a RunPivotReportRequest, this field must be
-   * additionally specified by name in the RunPivotReportRequest's 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.
-   * In most methods, dimensions & metrics can be used for the first time in
-   * this field. However in a RunPivotReportRequest, this field must be
-   * additionally specified by name in the RunPivotReportRequest's 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - fieldName_ = ""; - - if (stringFilterBuilder_ != null) { - stringFilterBuilder_.clear(); - } - if (inListFilterBuilder_ != null) { - inListFilterBuilder_.clear(); - } - if (numericFilterBuilder_ != null) { - numericFilterBuilder_.clear(); - } - if (betweenFilterBuilder_ != null) { - betweenFilterBuilder_.clear(); - } - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - fieldName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 26: - { - input.readMessage(getStringFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getInListFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage(getNumericFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 5; - break; - } // case 42 - case 50: - { - input.readMessage(getBetweenFilterFieldBuilder().getBuilder(), extensionRegistry); - oneFilterCase_ = 6; - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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.
-     * In most methods, dimensions & metrics can be used for the first time in
-     * this field. However in a RunPivotReportRequest, this field must be
-     * additionally specified by name in the RunPivotReportRequest's 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.
-     * In most methods, dimensions & metrics can be used for the first time in
-     * this field. However in a RunPivotReportRequest, this field must be
-     * additionally specified by name in the RunPivotReportRequest's 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.
-     * In most methods, dimensions & metrics can be used for the first time in
-     * this field. However in a RunPivotReportRequest, this field must be
-     * additionally specified by name in the RunPivotReportRequest's 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.
-     * In most methods, dimensions & metrics can be used for the first time in
-     * this field. However in a RunPivotReportRequest, this field must be
-     * additionally specified by name in the RunPivotReportRequest's 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.
-     * In most methods, dimensions & metrics can be used for the first time in
-     * this field. However in a RunPivotReportRequest, this field must be
-     * additionally specified by name in the RunPivotReportRequest's 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); - } else { - 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); - } 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 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); - } 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 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); - } else { - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 e2b220be..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpression.java +++ /dev/null @@ -1,1722 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all 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. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all 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. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (andGroupBuilder_ != null) { - andGroupBuilder_.clear(); - } - if (orGroupBuilder_ != null) { - orGroupBuilder_.clear(); - } - if (notExpressionBuilder_ != null) { - notExpressionBuilder_.clear(); - } - if (filterBuilder_ != null) { - filterBuilder_.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getAndGroupFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getOrGroupFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getNotExpressionFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage(getFilterFieldBuilder().getBuilder(), extensionRegistry); - exprCase_ = 4; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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); - } 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 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); - } 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 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); - } 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 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. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all 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. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all 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. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all 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. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all 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. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all 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); - } else { - filterBuilder_.setMessage(value); - } - } - exprCase_ = 4; - return this; - } - /** - * - * - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all 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. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all metrics.
-     * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - */ - public com.google.analytics.data.v1beta.Filter.Builder getFilterBuilder() { - return getFilterFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * A primitive filter. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all 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. In the same FilterExpression, all of the filter's
-     * field names need to be either all dimensions or all 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 369d11a0..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionList.java +++ /dev/null @@ -1,938 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getExpressionsCount() > 0) { - hash = (37 * hash) + EXPRESSIONS_FIELD_NUMBER; - hash = (53 * hash) + getExpressionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (expressionsBuilder_ == null) { - expressions_ = java.util.Collections.emptyList(); - } else { - expressions_ = null; - expressionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.FilterExpression m = - input.readMessage( - com.google.analytics.data.v1beta.FilterExpression.parser(), - extensionRegistry); - if (expressionsBuilder_ == null) { - ensureExpressionsIsMutable(); - expressions_.add(m); - } else { - expressionsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 d678bb97..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterExpressionOrBuilder.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - * - * @return Whether the filter field is set. - */ - boolean hasFilter(); - /** - * - * - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all metrics.
-   * 
- * - * .google.analytics.data.v1beta.Filter filter = 4; - * - * @return The filter. - */ - com.google.analytics.data.v1beta.Filter getFilter(); - /** - * - * - *
-   * A primitive filter. In the same FilterExpression, all of the filter's
-   * field names need to be either all dimensions or all 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 b85cb524..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/FilterOrBuilder.java +++ /dev/null @@ -1,200 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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.
-   * In most methods, dimensions & metrics can be used for the first time in
-   * this field. However in a RunPivotReportRequest, this field must be
-   * additionally specified by name in the RunPivotReportRequest's dimensions or
-   * metrics.
-   * 
- * - * string field_name = 1; - * - * @return The fieldName. - */ - java.lang.String getFieldName(); - /** - * - * - *
-   * The dimension name or metric name.
-   * In most methods, dimensions & metrics can be used for the first time in
-   * this field. However in a RunPivotReportRequest, this field must be
-   * additionally specified by name in the RunPivotReportRequest's 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 31e12f14..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/GetMetadataRequest.java +++ /dev/null @@ -1,685 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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; - } - - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * Required. The resource name of the 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 5f807a18..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Metadata.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/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; - } - - 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - } else { - dimensions_ = null; - dimensionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - } else { - metrics_ = null; - metricsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.DimensionMetadata m = - input.readMessage( - com.google.analytics.data.v1beta.DimensionMetadata.parser(), - extensionRegistry); - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(m); - } else { - dimensionsBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1beta.MetricMetadata m = - input.readMessage( - com.google.analytics.data.v1beta.MetricMetadata.parser(), - extensionRegistry); - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(m); - } else { - metricsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 0fe36b44..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetadataName.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS 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 c9bed466..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Metric.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; - -/** - * - * - *
- * 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; - } - - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(expression_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, expression_); - } - if (invisible_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, invisible_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - expression_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 24: - { - invisible_ = input.readBool(); - - break; - } // case 24 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 a1d6b89e..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricCompatibility.java +++ /dev/null @@ -1,947 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getMetricMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - compatibility_ = input.readEnum(); - bitField0_ |= 0x00000002; - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private com.google.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 e32de147..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricHeader.java +++ /dev/null @@ -1,769 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (type_ != com.google.analytics.data.v1beta.MetricType.METRIC_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, type_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + TYPE_FIELD_NUMBER; - hash = (53 * hash) + type_; - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - type_ = input.readEnum(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * - * - *
-     * 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 f232167c..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricMetadata.java +++ /dev/null @@ -1,2596 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - apiName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - uiName_ = input.readStringRequireUtf8(); - - break; - } // case 18 - case 26: - { - description_ = input.readStringRequireUtf8(); - - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDeprecatedApiNamesIsMutable(); - deprecatedApiNames_.add(s); - break; - } // case 34 - case 40: - { - type_ = input.readEnum(); - - break; - } // case 40 - case 50: - { - expression_ = input.readStringRequireUtf8(); - - break; - } // case 50 - case 56: - { - customDefinition_ = input.readBool(); - - break; - } // case 56 - case 64: - { - int tmpRaw = input.readEnum(); - ensureBlockedReasonsIsMutable(); - blockedReasons_.add(tmpRaw); - break; - } // case 64 - case 66: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureBlockedReasonsIsMutable(); - blockedReasons_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 66 - case 82: - { - category_ = input.readStringRequireUtf8(); - - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object 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 to set the value at. - * @param value The enum numeric value on the wire for blockedReasons to set. - * @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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 1b0784dd..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MetricValue.java +++ /dev/null @@ -1,745 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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; - } - - 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (oneValueCase_) { - case 4: - hash = (37 * hash) + VALUE_FIELD_NUMBER; - hash = (53 * hash) + getValue().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - oneValueCase_ = 4; - oneValue_ = s; - break; - } // case 34 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 4029c85e..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/MinuteRange.java +++ /dev/null @@ -1,979 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - startMinutesAgo_ = input.readInt32(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - endMinutesAgo_ = input.readInt32(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - name_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 3888b3fb..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/NumericValue.java +++ /dev/null @@ -1,784 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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; - } - - 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_)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - switch (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - oneValue_ = input.readInt64(); - oneValueCase_ = 1; - break; - } // case 8 - case 17: - { - oneValue_ = input.readDouble(); - oneValueCase_ = 2; - break; - } // case 17 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 1aed1a55..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/OrderBy.java +++ /dev/null @@ -1,5400 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - -/** - * - * - *
- * Order bys define how rows will be sorted in the response. For example,
- * ordering rows by descending event count is one ordering, and ordering rows by
- * the event name string is a different ordering.
- * 
- * - * 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; - } - - 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; - } - - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(metricName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, metricName_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + METRIC_NAME_FIELD_NUMBER; - hash = (53 * hash) + getMetricName().hashCode(); - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - metricName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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; - } - - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DIMENSION_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDimensionName().hashCode(); - hash = (37 * hash) + ORDER_TYPE_FIELD_NUMBER; - hash = (53 * hash) + orderType_; - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - dimensionName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: - { - orderType_ = input.readEnum(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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; - } - - 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; - } - - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DIMENSION_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDimensionName().hashCode(); - hash = (37 * hash) + DIMENSION_VALUE_FIELD_NUMBER; - hash = (53 * hash) + getDimensionValue().hashCode(); - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - dimensionName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - dimensionValue_ = input.readStringRequireUtf8(); - - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + METRIC_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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - metricName_ = ""; - - if (pivotSelectionsBuilder_ == null) { - pivotSelections_ = java.util.Collections.emptyList(); - } else { - pivotSelections_ = null; - pivotSelectionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - metricName_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection m = - input.readMessage( - com.google.analytics.data.v1beta.OrderBy.PivotOrderBy.PivotSelection - .parser(), - extensionRegistry); - if (pivotSelectionsBuilder_ == null) { - ensurePivotSelectionsIsMutable(); - pivotSelections_.add(m); - } else { - pivotSelectionsBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().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; - } - /** - * - * - *
-   * Order bys define how rows will be sorted in the response. For example,
-   * ordering rows by descending event count is one ordering, and ordering rows by
-   * the event name string is a different ordering.
-   * 
- * - * 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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (metricBuilder_ != null) { - metricBuilder_.clear(); - } - if (dimensionBuilder_ != null) { - dimensionBuilder_.clear(); - } - if (pivotBuilder_ != null) { - pivotBuilder_.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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getMetricFieldBuilder().getBuilder(), extensionRegistry); - oneOrderByCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(getDimensionFieldBuilder().getBuilder(), extensionRegistry); - oneOrderByCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(getPivotFieldBuilder().getBuilder(), extensionRegistry); - oneOrderByCase_ = 3; - break; - } // case 26 - case 32: - { - desc_ = input.readBool(); - - break; - } // case 32 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private 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); - } 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 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); - } 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 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); - } 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 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 b1a85480..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Pivot.java +++ /dev/null @@ -1,1943 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < 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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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(); - } else { - orderBys_ = null; - orderBysBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureFieldNamesIsMutable(); - fieldNames_.add(s); - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1beta.OrderBy m = - input.readMessage( - com.google.analytics.data.v1beta.OrderBy.parser(), extensionRegistry); - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(m); - } else { - orderBysBuilder_.addMessage(m); - } - break; - } // case 18 - case 24: - { - offset_ = input.readInt64(); - - break; - } // case 24 - case 32: - { - limit_ = input.readInt64(); - - break; - } // case 32 - case 40: - { - int tmpRaw = input.readEnum(); - ensureMetricAggregationsIsMutable(); - metricAggregations_.add(tmpRaw); - break; - } // case 40 - case 42: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureMetricAggregationsIsMutable(); - metricAggregations_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 42 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private 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 to set the value at. - * @param value The enum numeric value on the wire for metricAggregations to set. - * @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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 d4ff72a1..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotDimensionHeader.java +++ /dev/null @@ -1,941 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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; - } - - 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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getDimensionValuesCount() > 0) { - hash = (37 * hash) + DIMENSION_VALUES_FIELD_NUMBER; - hash = (53 * hash) + getDimensionValuesList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (dimensionValuesBuilder_ == null) { - dimensionValues_ = java.util.Collections.emptyList(); - } else { - dimensionValues_ = null; - dimensionValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.DimensionValue m = - input.readMessage( - com.google.analytics.data.v1beta.DimensionValue.parser(), - extensionRegistry); - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.add(m); - } else { - dimensionValuesBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 db0945bc..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PivotHeader.java +++ /dev/null @@ -1,1111 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (pivotDimensionHeadersBuilder_ == null) { - pivotDimensionHeaders_ = java.util.Collections.emptyList(); - } else { - pivotDimensionHeaders_ = null; - pivotDimensionHeadersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.PivotDimensionHeader m = - input.readMessage( - com.google.analytics.data.v1beta.PivotDimensionHeader.parser(), - extensionRegistry); - if (pivotDimensionHeadersBuilder_ == null) { - ensurePivotDimensionHeadersIsMutable(); - pivotDimensionHeaders_.add(m); - } else { - pivotDimensionHeadersBuilder_.addMessage(m); - } - break; - } // case 10 - case 16: - { - rowCount_ = input.readInt32(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 fc02c023..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PropertyQuota.java +++ /dev/null @@ -1,2303 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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 all of
-   * the hourly, daily, and per project hourly 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 all of
-   * the hourly, daily, and per project hourly 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 all of
-   * the hourly, daily, and per project hourly 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(); - } - - public static final int TOKENS_PER_PROJECT_PER_HOUR_FIELD_NUMBER = 6; - private com.google.analytics.data.v1beta.QuotaStatus tokensPerProjectPerHour_; - /** - * - * - *
-   * Analytics Properties can use up to 25% of their tokens per project per
-   * hour. This amounts to standard Analytics Properties can use up to 1,250
-   * tokens per project per hour, and Analytics 360 Properties can use 12,500
-   * tokens per project per hour. An API request consumes a single number of
-   * tokens, and that number is deducted from all of the hourly, daily, and per
-   * project hourly quotas.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - * - * @return Whether the tokensPerProjectPerHour field is set. - */ - @java.lang.Override - public boolean hasTokensPerProjectPerHour() { - return tokensPerProjectPerHour_ != null; - } - /** - * - * - *
-   * Analytics Properties can use up to 25% of their tokens per project per
-   * hour. This amounts to standard Analytics Properties can use up to 1,250
-   * tokens per project per hour, and Analytics 360 Properties can use 12,500
-   * tokens per project per hour. An API request consumes a single number of
-   * tokens, and that number is deducted from all of the hourly, daily, and per
-   * project hourly quotas.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - * - * @return The tokensPerProjectPerHour. - */ - @java.lang.Override - public com.google.analytics.data.v1beta.QuotaStatus getTokensPerProjectPerHour() { - return tokensPerProjectPerHour_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : tokensPerProjectPerHour_; - } - /** - * - * - *
-   * Analytics Properties can use up to 25% of their tokens per project per
-   * hour. This amounts to standard Analytics Properties can use up to 1,250
-   * tokens per project per hour, and Analytics 360 Properties can use 12,500
-   * tokens per project per hour. An API request consumes a single number of
-   * tokens, and that number is deducted from all of the hourly, daily, and per
-   * project hourly quotas.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - */ - @java.lang.Override - public com.google.analytics.data.v1beta.QuotaStatusOrBuilder - getTokensPerProjectPerHourOrBuilder() { - return getTokensPerProjectPerHour(); - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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()); - } - if (tokensPerProjectPerHour_ != null) { - output.writeMessage(6, getTokensPerProjectPerHour()); - } - getUnknownFields().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()); - } - if (tokensPerProjectPerHour_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(6, getTokensPerProjectPerHour()); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (hasTokensPerProjectPerHour() != other.hasTokensPerProjectPerHour()) return false; - if (hasTokensPerProjectPerHour()) { - if (!getTokensPerProjectPerHour().equals(other.getTokensPerProjectPerHour())) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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(); - } - if (hasTokensPerProjectPerHour()) { - hash = (37 * hash) + TOKENS_PER_PROJECT_PER_HOUR_FIELD_NUMBER; - hash = (53 * hash) + getTokensPerProjectPerHour().hashCode(); - } - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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; - } - if (tokensPerProjectPerHourBuilder_ == null) { - tokensPerProjectPerHour_ = null; - } else { - tokensPerProjectPerHour_ = null; - tokensPerProjectPerHourBuilder_ = 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(); - } - if (tokensPerProjectPerHourBuilder_ == null) { - result.tokensPerProjectPerHour_ = tokensPerProjectPerHour_; - } else { - result.tokensPerProjectPerHour_ = tokensPerProjectPerHourBuilder_.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()); - } - if (other.hasTokensPerProjectPerHour()) { - mergeTokensPerProjectPerHour(other.getTokensPerProjectPerHour()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - input.readMessage(getTokensPerDayFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 10 - case 18: - { - input.readMessage(getTokensPerHourFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 18 - case 26: - { - input.readMessage( - getConcurrentRequestsFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 26 - case 34: - { - input.readMessage( - getServerErrorsPerProjectPerHourFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage( - getPotentiallyThresholdedRequestsPerHourFieldBuilder().getBuilder(), - extensionRegistry); - - break; - } // case 42 - case 50: - { - input.readMessage( - getTokensPerProjectPerHourFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private 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 all of
-     * the hourly, daily, and per project hourly 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 all of
-     * the hourly, daily, and per project hourly 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 all of
-     * the hourly, daily, and per project hourly 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 all of
-     * the hourly, daily, and per project hourly 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 all of
-     * the hourly, daily, and per project hourly 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 all of
-     * the hourly, daily, and per project hourly 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 all of
-     * the hourly, daily, and per project hourly 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 all of
-     * the hourly, daily, and per project hourly 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 all of
-     * the hourly, daily, and per project hourly 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_; - } - - private com.google.analytics.data.v1beta.QuotaStatus tokensPerProjectPerHour_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder> - tokensPerProjectPerHourBuilder_; - /** - * - * - *
-     * Analytics Properties can use up to 25% of their tokens per project per
-     * hour. This amounts to standard Analytics Properties can use up to 1,250
-     * tokens per project per hour, and Analytics 360 Properties can use 12,500
-     * tokens per project per hour. An API request consumes a single number of
-     * tokens, and that number is deducted from all of the hourly, daily, and per
-     * project hourly quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - * - * @return Whether the tokensPerProjectPerHour field is set. - */ - public boolean hasTokensPerProjectPerHour() { - return tokensPerProjectPerHourBuilder_ != null || tokensPerProjectPerHour_ != null; - } - /** - * - * - *
-     * Analytics Properties can use up to 25% of their tokens per project per
-     * hour. This amounts to standard Analytics Properties can use up to 1,250
-     * tokens per project per hour, and Analytics 360 Properties can use 12,500
-     * tokens per project per hour. An API request consumes a single number of
-     * tokens, and that number is deducted from all of the hourly, daily, and per
-     * project hourly quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - * - * @return The tokensPerProjectPerHour. - */ - public com.google.analytics.data.v1beta.QuotaStatus getTokensPerProjectPerHour() { - if (tokensPerProjectPerHourBuilder_ == null) { - return tokensPerProjectPerHour_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : tokensPerProjectPerHour_; - } else { - return tokensPerProjectPerHourBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Analytics Properties can use up to 25% of their tokens per project per
-     * hour. This amounts to standard Analytics Properties can use up to 1,250
-     * tokens per project per hour, and Analytics 360 Properties can use 12,500
-     * tokens per project per hour. An API request consumes a single number of
-     * tokens, and that number is deducted from all of the hourly, daily, and per
-     * project hourly quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - */ - public Builder setTokensPerProjectPerHour(com.google.analytics.data.v1beta.QuotaStatus value) { - if (tokensPerProjectPerHourBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - tokensPerProjectPerHour_ = value; - onChanged(); - } else { - tokensPerProjectPerHourBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Analytics Properties can use up to 25% of their tokens per project per
-     * hour. This amounts to standard Analytics Properties can use up to 1,250
-     * tokens per project per hour, and Analytics 360 Properties can use 12,500
-     * tokens per project per hour. An API request consumes a single number of
-     * tokens, and that number is deducted from all of the hourly, daily, and per
-     * project hourly quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - */ - public Builder setTokensPerProjectPerHour( - com.google.analytics.data.v1beta.QuotaStatus.Builder builderForValue) { - if (tokensPerProjectPerHourBuilder_ == null) { - tokensPerProjectPerHour_ = builderForValue.build(); - onChanged(); - } else { - tokensPerProjectPerHourBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Analytics Properties can use up to 25% of their tokens per project per
-     * hour. This amounts to standard Analytics Properties can use up to 1,250
-     * tokens per project per hour, and Analytics 360 Properties can use 12,500
-     * tokens per project per hour. An API request consumes a single number of
-     * tokens, and that number is deducted from all of the hourly, daily, and per
-     * project hourly quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - */ - public Builder mergeTokensPerProjectPerHour( - com.google.analytics.data.v1beta.QuotaStatus value) { - if (tokensPerProjectPerHourBuilder_ == null) { - if (tokensPerProjectPerHour_ != null) { - tokensPerProjectPerHour_ = - com.google.analytics.data.v1beta.QuotaStatus.newBuilder(tokensPerProjectPerHour_) - .mergeFrom(value) - .buildPartial(); - } else { - tokensPerProjectPerHour_ = value; - } - onChanged(); - } else { - tokensPerProjectPerHourBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Analytics Properties can use up to 25% of their tokens per project per
-     * hour. This amounts to standard Analytics Properties can use up to 1,250
-     * tokens per project per hour, and Analytics 360 Properties can use 12,500
-     * tokens per project per hour. An API request consumes a single number of
-     * tokens, and that number is deducted from all of the hourly, daily, and per
-     * project hourly quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - */ - public Builder clearTokensPerProjectPerHour() { - if (tokensPerProjectPerHourBuilder_ == null) { - tokensPerProjectPerHour_ = null; - onChanged(); - } else { - tokensPerProjectPerHour_ = null; - tokensPerProjectPerHourBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Analytics Properties can use up to 25% of their tokens per project per
-     * hour. This amounts to standard Analytics Properties can use up to 1,250
-     * tokens per project per hour, and Analytics 360 Properties can use 12,500
-     * tokens per project per hour. An API request consumes a single number of
-     * tokens, and that number is deducted from all of the hourly, daily, and per
-     * project hourly quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - */ - public com.google.analytics.data.v1beta.QuotaStatus.Builder - getTokensPerProjectPerHourBuilder() { - - onChanged(); - return getTokensPerProjectPerHourFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Analytics Properties can use up to 25% of their tokens per project per
-     * hour. This amounts to standard Analytics Properties can use up to 1,250
-     * tokens per project per hour, and Analytics 360 Properties can use 12,500
-     * tokens per project per hour. An API request consumes a single number of
-     * tokens, and that number is deducted from all of the hourly, daily, and per
-     * project hourly quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - */ - public com.google.analytics.data.v1beta.QuotaStatusOrBuilder - getTokensPerProjectPerHourOrBuilder() { - if (tokensPerProjectPerHourBuilder_ != null) { - return tokensPerProjectPerHourBuilder_.getMessageOrBuilder(); - } else { - return tokensPerProjectPerHour_ == null - ? com.google.analytics.data.v1beta.QuotaStatus.getDefaultInstance() - : tokensPerProjectPerHour_; - } - } - /** - * - * - *
-     * Analytics Properties can use up to 25% of their tokens per project per
-     * hour. This amounts to standard Analytics Properties can use up to 1,250
-     * tokens per project per hour, and Analytics 360 Properties can use 12,500
-     * tokens per project per hour. An API request consumes a single number of
-     * tokens, and that number is deducted from all of the hourly, daily, and per
-     * project hourly quotas.
-     * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder> - getTokensPerProjectPerHourFieldBuilder() { - if (tokensPerProjectPerHourBuilder_ == null) { - tokensPerProjectPerHourBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.data.v1beta.QuotaStatus, - com.google.analytics.data.v1beta.QuotaStatus.Builder, - com.google.analytics.data.v1beta.QuotaStatusOrBuilder>( - getTokensPerProjectPerHour(), getParentForChildren(), isClean()); - tokensPerProjectPerHour_ = null; - } - return tokensPerProjectPerHourBuilder_; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 d62a0a43..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/PropertyQuotaOrBuilder.java +++ /dev/null @@ -1,287 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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 all of
-   * the hourly, daily, and per project hourly 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 all of
-   * the hourly, daily, and per project hourly 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 all of
-   * the hourly, daily, and per project hourly 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(); - - /** - * - * - *
-   * Analytics Properties can use up to 25% of their tokens per project per
-   * hour. This amounts to standard Analytics Properties can use up to 1,250
-   * tokens per project per hour, and Analytics 360 Properties can use 12,500
-   * tokens per project per hour. An API request consumes a single number of
-   * tokens, and that number is deducted from all of the hourly, daily, and per
-   * project hourly quotas.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - * - * @return Whether the tokensPerProjectPerHour field is set. - */ - boolean hasTokensPerProjectPerHour(); - /** - * - * - *
-   * Analytics Properties can use up to 25% of their tokens per project per
-   * hour. This amounts to standard Analytics Properties can use up to 1,250
-   * tokens per project per hour, and Analytics 360 Properties can use 12,500
-   * tokens per project per hour. An API request consumes a single number of
-   * tokens, and that number is deducted from all of the hourly, daily, and per
-   * project hourly quotas.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - * - * @return The tokensPerProjectPerHour. - */ - com.google.analytics.data.v1beta.QuotaStatus getTokensPerProjectPerHour(); - /** - * - * - *
-   * Analytics Properties can use up to 25% of their tokens per project per
-   * hour. This amounts to standard Analytics Properties can use up to 1,250
-   * tokens per project per hour, and Analytics 360 Properties can use 12,500
-   * tokens per project per hour. An API request consumes a single number of
-   * tokens, and that number is deducted from all of the hourly, daily, and per
-   * project hourly quotas.
-   * 
- * - * .google.analytics.data.v1beta.QuotaStatus tokens_per_project_per_hour = 6; - */ - com.google.analytics.data.v1beta.QuotaStatusOrBuilder getTokensPerProjectPerHourOrBuilder(); -} 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 e34c6c1c..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/QuotaStatus.java +++ /dev/null @@ -1,617 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + CONSUMED_FIELD_NUMBER; - hash = (53 * hash) + getConsumed(); - hash = (37 * hash) + REMAINING_FIELD_NUMBER; - hash = (53 * hash) + getRemaining(); - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: - { - consumed_ = input.readInt32(); - - break; - } // case 8 - case 16: - { - remaining_ = input.readInt32(); - - break; - } // case 16 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 a9fe7647..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ReportingApiProto.java +++ /dev/null @@ -1,768 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/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\"\312\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\022$\n\027subjec" - + "t_to_thresholding\030\010 \001(\010H\004\210\001\001\032\275\002\n\031SchemaR" - + "estrictionResponse\022\204\001\n\032active_metric_res" - + "trictions\030\001 \003(\0132`.google.analytics.data." - + "v1beta.ResponseMetaData.SchemaRestrictio" - + "nResponse.ActiveMetricRestriction\032\230\001\n\027Ac" - + "tiveMetricRestriction\022\030\n\013metric_name\030\001 \001" - + "(\tH\000\210\001\001\022S\n\027restricted_metric_types\030\002 \003(\016" - + "22.google.analytics.data.v1beta.Restrict" - + "edMetricTypeB\016\n\014_metric_nameB\036\n\034_schema_" - + "restriction_responseB\020\n\016_currency_codeB\014" - + "\n\n_time_zoneB\017\n\r_empty_reasonB\032\n\030_subjec" - + "t_to_thresholding\"\037\n\017DimensionHeader\022\014\n\004" - + "name\030\001 \001(\t\"T\n\014MetricHeader\022\014\n\004name\030\001 \001(\t" - + "\0226\n\004type\030\002 \001(\0162(.google.analytics.data.v" - + "1beta.MetricType\"u\n\013PivotHeader\022S\n\027pivot" - + "_dimension_headers\030\001 \003(\01322.google.analyt" - + "ics.data.v1beta.PivotDimensionHeader\022\021\n\t" - + "row_count\030\002 \001(\005\"^\n\024PivotDimensionHeader\022" - + "F\n\020dimension_values\030\001 \003(\0132,.google.analy" - + "tics.data.v1beta.DimensionValue\"\217\001\n\003Row\022" - + "F\n\020dimension_values\030\001 \003(\0132,.google.analy" - + "tics.data.v1beta.DimensionValue\022@\n\rmetri" - + "c_values\030\002 \003(\0132).google.analytics.data.v" - + "1beta.MetricValue\".\n\016DimensionValue\022\017\n\005v" - + "alue\030\001 \001(\tH\000B\013\n\tone_value\"+\n\013MetricValue" - + "\022\017\n\005value\030\004 \001(\tH\000B\013\n\tone_value\"J\n\014Numeri" - + "cValue\022\025\n\013int64_value\030\001 \001(\003H\000\022\026\n\014double_" - + "value\030\002 \001(\001H\000B\013\n\tone_value\"\343\003\n\rPropertyQ" - + "uota\022A\n\016tokens_per_day\030\001 \001(\0132).google.an" - + "alytics.data.v1beta.QuotaStatus\022B\n\017token" - + "s_per_hour\030\002 \001(\0132).google.analytics.data" - + ".v1beta.QuotaStatus\022F\n\023concurrent_reques" - + "ts\030\003 \001(\0132).google.analytics.data.v1beta." - + "QuotaStatus\022U\n\"server_errors_per_project" - + "_per_hour\030\004 \001(\0132).google.analytics.data." - + "v1beta.QuotaStatus\022\\\n)potentially_thresh" - + "olded_requests_per_hour\030\005 \001(\0132).google.a" - + "nalytics.data.v1beta.QuotaStatus\022N\n\033toke" - + "ns_per_project_per_hour\030\006 \001(\0132).google.a" - + "nalytics.data.v1beta.QuotaStatus\"2\n\013Quot" - + "aStatus\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\013description\030\003 \001" - + "(\t\022\034\n\024deprecated_api_names\030\004 \003(\t\022\031\n\021cust" - + "om_definition\030\005 \001(\010\022\020\n\010category\030\007 \001(\t\"\222\003" - + "\n\016MetricMetadata\022\020\n\010api_name\030\001 \001(\t\022\017\n\007ui" - + "_name\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022\034\n\024depr" - + "ecated_api_names\030\004 \003(\t\0226\n\004type\030\005 \001(\0162(.g" - + "oogle.analytics.data.v1beta.MetricType\022\022" - + "\n\nexpression\030\006 \001(\t\022\031\n\021custom_definition\030" - + "\007 \001(\010\022S\n\017blocked_reasons\030\010 \003(\0162:.google." - + "analytics.data.v1beta.MetricMetadata.Blo" - + "ckedReason\022\020\n\010category\030\n \001(\t\"\\\n\rBlockedR" - + "eason\022\036\n\032BLOCKED_REASON_UNSPECIFIED\020\000\022\026\n" - + "\022NO_REVENUE_METRICS\020\001\022\023\n\017NO_COST_METRICS" - + "\020\002\"\334\001\n\026DimensionCompatibility\022P\n\022dimensi" - + "on_metadata\030\001 \001(\0132/.google.analytics.dat" - + "a.v1beta.DimensionMetadataH\000\210\001\001\022G\n\rcompa" - + "tibility\030\002 \001(\0162+.google.analytics.data.v" - + "1beta.CompatibilityH\001\210\001\001B\025\n\023_dimension_m" - + "etadataB\020\n\016_compatibility\"\320\001\n\023MetricComp" - + "atibility\022J\n\017metric_metadata\030\001 \001(\0132,.goo" - + "gle.analytics.data.v1beta.MetricMetadata" - + "H\000\210\001\001\022G\n\rcompatibility\030\002 \001(\0162+.google.an" - + "alytics.data.v1beta.CompatibilityH\001\210\001\001B\022" - + "\n\020_metric_metadataB\020\n\016_compatibility*g\n\021" - + "MetricAggregation\022\"\n\036METRIC_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\nMetricType\022\033\n\027" - + "METRIC_TYPE_UNSPECIFIED\020\000\022\020\n\014TYPE_INTEGE" - + "R\020\001\022\016\n\nTYPE_FLOAT\020\002\022\020\n\014TYPE_SECONDS\020\004\022\025\n" - + "\021TYPE_MILLISECONDS\020\005\022\020\n\014TYPE_MINUTES\020\006\022\016" - + "\n\nTYPE_HOURS\020\007\022\021\n\rTYPE_STANDARD\020\010\022\021\n\rTYP" - + "E_CURRENCY\020\t\022\r\n\tTYPE_FEET\020\n\022\016\n\nTYPE_MILE" - + "S\020\013\022\017\n\013TYPE_METERS\020\014\022\023\n\017TYPE_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\rCompatibility\022\035\n\031C" - + "OMPATIBILITY_UNSPECIFIED\020\000\022\016\n\nCOMPATIBLE" - + "\020\001\022\020\n\014INCOMPATIBLE\020\002By\n com.google.analy" - + "tics.data.v1betaB\021ReportingApiProtoP\001Z@g" - + "oogle.golang.org/genproto/googleapis/ana" - + "lytics/data/v1beta;datab\006proto3" - }; - 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", - "SubjectToThresholding", - "SchemaRestrictionResponse", - "CurrencyCode", - "TimeZone", - "EmptyReason", - "SubjectToThresholding", - }); - 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", - "TokensPerProjectPerHour", - }); - 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 746afe3f..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ResponseMetaData.java +++ /dev/null @@ -1,4300 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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; - } - - 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; - } - - 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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof - com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - metricName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 16: - { - int tmpRaw = input.readEnum(); - ensureRestrictedMetricTypesIsMutable(); - restrictedMetricTypes_.add(tmpRaw); - break; - } // case 16 - case 18: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureRestrictedMetricTypesIsMutable(); - restrictedMetricTypes_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object 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 to set the value at. - * @param value The enum numeric value on the wire for restrictedMetricTypes to set. - * @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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj - instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getActiveMetricRestrictionsCount() > 0) { - hash = (37 * hash) + ACTIVE_METRIC_RESTRICTIONS_FIELD_NUMBER; - hash = (53 * hash) + getActiveMetricRestrictionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (activeMetricRestrictionsBuilder_ == null) { - activeMetricRestrictions_ = java.util.Collections.emptyList(); - } else { - activeMetricRestrictions_ = null; - activeMetricRestrictionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.ResponseMetaData.SchemaRestrictionResponse - .ActiveMetricRestriction - m = - input.readMessage( - com.google.analytics.data.v1beta.ResponseMetaData - .SchemaRestrictionResponse.ActiveMetricRestriction.parser(), - extensionRegistry); - if (activeMetricRestrictionsBuilder_ == null) { - ensureActiveMetricRestrictionsIsMutable(); - activeMetricRestrictions_.add(m); - } else { - activeMetricRestrictionsBuilder_.addMessage(m); - } - break; - } // case 10 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.util.List< - 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException() - .setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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; - } - } - - public static final int SUBJECT_TO_THRESHOLDING_FIELD_NUMBER = 8; - private boolean subjectToThresholding_; - /** - * - * - *
-   * If `subjectToThresholding` is true, this report is subject to thresholding
-   * and only returns data that meets the minimum aggregation thresholds. It is
-   * possible for a request to be subject to thresholding thresholding and no
-   * data is absent from the report, and this happens when all data is above the
-   * thresholds. To learn more, see [Data
-   * thresholds](https://support.google.com/analytics/answer/9383630) and [About
-   * Demographics and
-   * Interests](https://support.google.com/analytics/answer/2799357).
-   * 
- * - * optional bool subject_to_thresholding = 8; - * - * @return Whether the subjectToThresholding field is set. - */ - @java.lang.Override - public boolean hasSubjectToThresholding() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-   * If `subjectToThresholding` is true, this report is subject to thresholding
-   * and only returns data that meets the minimum aggregation thresholds. It is
-   * possible for a request to be subject to thresholding thresholding and no
-   * data is absent from the report, and this happens when all data is above the
-   * thresholds. To learn more, see [Data
-   * thresholds](https://support.google.com/analytics/answer/9383630) and [About
-   * Demographics and
-   * Interests](https://support.google.com/analytics/answer/2799357).
-   * 
- * - * optional bool subject_to_thresholding = 8; - * - * @return The subjectToThresholding. - */ - @java.lang.Override - public boolean getSubjectToThresholding() { - return subjectToThresholding_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (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_); - } - if (((bitField0_ & 0x00000010) != 0)) { - output.writeBool(8, subjectToThresholding_); - } - getUnknownFields().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_); - } - if (((bitField0_ & 0x00000010) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(8, subjectToThresholding_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (hasSubjectToThresholding() != other.hasSubjectToThresholding()) return false; - if (hasSubjectToThresholding()) { - if (getSubjectToThresholding() != other.getSubjectToThresholding()) return false; - } - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + 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(); - } - if (hasSubjectToThresholding()) { - hash = (37 * hash) + SUBJECT_TO_THRESHOLDING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getSubjectToThresholding()); - } - hash = (29 * hash) + getUnknownFields().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); - subjectToThresholding_ = false; - bitField0_ = (bitField0_ & ~0x00000010); - 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_; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.subjectToThresholding_ = subjectToThresholding_; - to_bitField0_ |= 0x00000010; - } - 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(); - } - if (other.hasSubjectToThresholding()) { - setSubjectToThresholding(other.getSubjectToThresholding()); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 24: - { - dataLossFromOtherRow_ = input.readBool(); - - break; - } // case 24 - case 34: - { - input.readMessage( - getSchemaRestrictionResponseFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 34 - case 42: - { - currencyCode_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 42 - case 50: - { - timeZone_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 50 - case 58: - { - emptyReason_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 58 - case 64: - { - subjectToThresholding_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 64 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private 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; - } - - private boolean subjectToThresholding_; - /** - * - * - *
-     * If `subjectToThresholding` is true, this report is subject to thresholding
-     * and only returns data that meets the minimum aggregation thresholds. It is
-     * possible for a request to be subject to thresholding thresholding and no
-     * data is absent from the report, and this happens when all data is above the
-     * thresholds. To learn more, see [Data
-     * thresholds](https://support.google.com/analytics/answer/9383630) and [About
-     * Demographics and
-     * Interests](https://support.google.com/analytics/answer/2799357).
-     * 
- * - * optional bool subject_to_thresholding = 8; - * - * @return Whether the subjectToThresholding field is set. - */ - @java.lang.Override - public boolean hasSubjectToThresholding() { - return ((bitField0_ & 0x00000010) != 0); - } - /** - * - * - *
-     * If `subjectToThresholding` is true, this report is subject to thresholding
-     * and only returns data that meets the minimum aggregation thresholds. It is
-     * possible for a request to be subject to thresholding thresholding and no
-     * data is absent from the report, and this happens when all data is above the
-     * thresholds. To learn more, see [Data
-     * thresholds](https://support.google.com/analytics/answer/9383630) and [About
-     * Demographics and
-     * Interests](https://support.google.com/analytics/answer/2799357).
-     * 
- * - * optional bool subject_to_thresholding = 8; - * - * @return The subjectToThresholding. - */ - @java.lang.Override - public boolean getSubjectToThresholding() { - return subjectToThresholding_; - } - /** - * - * - *
-     * If `subjectToThresholding` is true, this report is subject to thresholding
-     * and only returns data that meets the minimum aggregation thresholds. It is
-     * possible for a request to be subject to thresholding thresholding and no
-     * data is absent from the report, and this happens when all data is above the
-     * thresholds. To learn more, see [Data
-     * thresholds](https://support.google.com/analytics/answer/9383630) and [About
-     * Demographics and
-     * Interests](https://support.google.com/analytics/answer/2799357).
-     * 
- * - * optional bool subject_to_thresholding = 8; - * - * @param value The subjectToThresholding to set. - * @return This builder for chaining. - */ - public Builder setSubjectToThresholding(boolean value) { - bitField0_ |= 0x00000010; - subjectToThresholding_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * If `subjectToThresholding` is true, this report is subject to thresholding
-     * and only returns data that meets the minimum aggregation thresholds. It is
-     * possible for a request to be subject to thresholding thresholding and no
-     * data is absent from the report, and this happens when all data is above the
-     * thresholds. To learn more, see [Data
-     * thresholds](https://support.google.com/analytics/answer/9383630) and [About
-     * Demographics and
-     * Interests](https://support.google.com/analytics/answer/2799357).
-     * 
- * - * optional bool subject_to_thresholding = 8; - * - * @return This builder for chaining. - */ - public Builder clearSubjectToThresholding() { - bitField0_ = (bitField0_ & ~0x00000010); - subjectToThresholding_ = 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.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 0256eb05..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/ResponseMetaDataOrBuilder.java +++ /dev/null @@ -1,271 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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(); - - /** - * - * - *
-   * If `subjectToThresholding` is true, this report is subject to thresholding
-   * and only returns data that meets the minimum aggregation thresholds. It is
-   * possible for a request to be subject to thresholding thresholding and no
-   * data is absent from the report, and this happens when all data is above the
-   * thresholds. To learn more, see [Data
-   * thresholds](https://support.google.com/analytics/answer/9383630) and [About
-   * Demographics and
-   * Interests](https://support.google.com/analytics/answer/2799357).
-   * 
- * - * optional bool subject_to_thresholding = 8; - * - * @return Whether the subjectToThresholding field is set. - */ - boolean hasSubjectToThresholding(); - /** - * - * - *
-   * If `subjectToThresholding` is true, this report is subject to thresholding
-   * and only returns data that meets the minimum aggregation thresholds. It is
-   * possible for a request to be subject to thresholding thresholding and no
-   * data is absent from the report, and this happens when all data is above the
-   * thresholds. To learn more, see [Data
-   * thresholds](https://support.google.com/analytics/answer/9383630) and [About
-   * Demographics and
-   * Interests](https://support.google.com/analytics/answer/2799357).
-   * 
- * - * optional bool subject_to_thresholding = 8; - * - * @return The subjectToThresholding. - */ - boolean getSubjectToThresholding(); -} 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 326d6631..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/Row.java +++ /dev/null @@ -1,1514 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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)); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (dimensionValuesBuilder_ == null) { - dimensionValues_ = java.util.Collections.emptyList(); - } else { - dimensionValues_ = null; - dimensionValuesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricValuesBuilder_ == null) { - metricValues_ = java.util.Collections.emptyList(); - } else { - metricValues_ = null; - metricValuesBuilder_.clear(); - } - 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_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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.DimensionValue m = - input.readMessage( - com.google.analytics.data.v1beta.DimensionValue.parser(), - extensionRegistry); - if (dimensionValuesBuilder_ == null) { - ensureDimensionValuesIsMutable(); - dimensionValues_.add(m); - } else { - dimensionValuesBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1beta.MetricValue m = - input.readMessage( - com.google.analytics.data.v1beta.MetricValue.parser(), extensionRegistry); - if (metricValuesBuilder_ == null) { - ensureMetricValuesIsMutable(); - metricValues_.add(m); - } else { - metricValuesBuilder_.addMessage(m); - } - break; - } // case 18 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 67b5d684..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportRequest.java +++ /dev/null @@ -1,4069 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - property_ = ""; - - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - } else { - dimensions_ = null; - dimensionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - } else { - metrics_ = null; - metricsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (dateRangesBuilder_ == null) { - dateRanges_ = java.util.Collections.emptyList(); - } else { - dateRanges_ = null; - dateRangesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (pivotsBuilder_ == null) { - pivots_ = java.util.Collections.emptyList(); - } else { - pivots_ = null; - pivotsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - property_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1beta.Dimension m = - input.readMessage( - com.google.analytics.data.v1beta.Dimension.parser(), extensionRegistry); - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(m); - } else { - dimensionsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.analytics.data.v1beta.Metric m = - input.readMessage( - com.google.analytics.data.v1beta.Metric.parser(), extensionRegistry); - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(m); - } else { - metricsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - com.google.analytics.data.v1beta.DateRange m = - input.readMessage( - com.google.analytics.data.v1beta.DateRange.parser(), extensionRegistry); - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.add(m); - } else { - dateRangesBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - com.google.analytics.data.v1beta.Pivot m = - input.readMessage( - com.google.analytics.data.v1beta.Pivot.parser(), extensionRegistry); - if (pivotsBuilder_ == null) { - ensurePivotsIsMutable(); - pivots_.add(m); - } else { - pivotsBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - input.readMessage(getDimensionFilterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 58: - { - input.readMessage(getMetricFilterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 66: - { - currencyCode_ = input.readStringRequireUtf8(); - - break; - } // case 66 - case 74: - { - input.readMessage(getCohortSpecFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 80: - { - keepEmptyRows_ = input.readBool(); - - break; - } // case 80 - case 88: - { - returnPropertyQuota_ = input.readBool(); - - break; - } // case 88 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object 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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 e27a33e2..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunPivotReportResponse.java +++ /dev/null @@ -1,4477 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (pivotHeadersBuilder_ == null) { - pivotHeaders_ = java.util.Collections.emptyList(); - } else { - pivotHeaders_ = null; - pivotHeadersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (dimensionHeadersBuilder_ == null) { - dimensionHeaders_ = java.util.Collections.emptyList(); - } else { - dimensionHeaders_ = null; - dimensionHeadersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (metricHeadersBuilder_ == null) { - metricHeaders_ = java.util.Collections.emptyList(); - } else { - metricHeaders_ = null; - metricHeadersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - } else { - rows_ = null; - rowsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (aggregatesBuilder_ == null) { - aggregates_ = java.util.Collections.emptyList(); - } else { - aggregates_ = null; - aggregatesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.PivotHeader m = - input.readMessage( - com.google.analytics.data.v1beta.PivotHeader.parser(), extensionRegistry); - if (pivotHeadersBuilder_ == null) { - ensurePivotHeadersIsMutable(); - pivotHeaders_.add(m); - } else { - pivotHeadersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1beta.DimensionHeader m = - input.readMessage( - com.google.analytics.data.v1beta.DimensionHeader.parser(), - extensionRegistry); - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(m); - } else { - dimensionHeadersBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.analytics.data.v1beta.MetricHeader m = - input.readMessage( - com.google.analytics.data.v1beta.MetricHeader.parser(), extensionRegistry); - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(m); - } else { - metricHeadersBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - com.google.analytics.data.v1beta.Row m = - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(m); - } else { - rowsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - com.google.analytics.data.v1beta.Row m = - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); - if (aggregatesBuilder_ == null) { - ensureAggregatesIsMutable(); - aggregates_.add(m); - } else { - aggregatesBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 58: - { - input.readMessage(getPropertyQuotaFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 58 - case 66: - { - kind_ = input.readStringRequireUtf8(); - - break; - } // case 66 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 92c54c59..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequest.java +++ /dev/null @@ -1,3866 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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. 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. 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. 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. 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. 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. 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)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - property_ = ""; - - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - } else { - dimensions_ = null; - dimensionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - } else { - metrics_ = null; - metricsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - 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(); - } else { - orderBys_ = null; - orderBysBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - returnPropertyQuota_ = false; - - if (minuteRangesBuilder_ == null) { - minuteRanges_ = java.util.Collections.emptyList(); - } else { - minuteRanges_ = null; - minuteRangesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - property_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1beta.Dimension m = - input.readMessage( - com.google.analytics.data.v1beta.Dimension.parser(), extensionRegistry); - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(m); - } else { - dimensionsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.analytics.data.v1beta.Metric m = - input.readMessage( - com.google.analytics.data.v1beta.Metric.parser(), extensionRegistry); - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(m); - } else { - metricsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - input.readMessage(getDimensionFilterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 34 - case 42: - { - input.readMessage(getMetricFilterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 48: - { - limit_ = input.readInt64(); - - break; - } // case 48 - case 56: - { - int tmpRaw = input.readEnum(); - ensureMetricAggregationsIsMutable(); - metricAggregations_.add(tmpRaw); - break; - } // case 56 - case 58: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureMetricAggregationsIsMutable(); - metricAggregations_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 58 - case 66: - { - com.google.analytics.data.v1beta.OrderBy m = - input.readMessage( - com.google.analytics.data.v1beta.OrderBy.parser(), extensionRegistry); - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(m); - } else { - orderBysBuilder_.addMessage(m); - } - break; - } // case 66 - case 72: - { - returnPropertyQuota_ = input.readBool(); - - break; - } // case 72 - case 82: - { - com.google.analytics.data.v1beta.MinuteRange m = - input.readMessage( - com.google.analytics.data.v1beta.MinuteRange.parser(), extensionRegistry); - if (minuteRangesBuilder_ == null) { - ensureMinuteRangesIsMutable(); - minuteRanges_.add(m); - } else { - minuteRangesBuilder_.addMessage(m); - } - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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. 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 to set the value at. - * @param value The enum numeric value on the wire for metricAggregations to set. - * @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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 28123569..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportRequestOrBuilder.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 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. 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. 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. 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. 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. 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. 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 24cb18f3..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunRealtimeReportResponse.java +++ /dev/null @@ -1,3992 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (dimensionHeadersBuilder_ == null) { - dimensionHeaders_ = java.util.Collections.emptyList(); - } else { - dimensionHeaders_ = null; - dimensionHeadersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricHeadersBuilder_ == null) { - metricHeaders_ = java.util.Collections.emptyList(); - } else { - metricHeaders_ = null; - metricHeadersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - } else { - rows_ = null; - rowsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (totalsBuilder_ == null) { - totals_ = java.util.Collections.emptyList(); - } else { - totals_ = null; - totalsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (maximumsBuilder_ == null) { - maximums_ = java.util.Collections.emptyList(); - } else { - maximums_ = null; - maximumsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - if (minimumsBuilder_ == null) { - minimums_ = java.util.Collections.emptyList(); - } else { - minimums_ = null; - minimumsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.DimensionHeader m = - input.readMessage( - com.google.analytics.data.v1beta.DimensionHeader.parser(), - extensionRegistry); - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(m); - } else { - dimensionHeadersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1beta.MetricHeader m = - input.readMessage( - com.google.analytics.data.v1beta.MetricHeader.parser(), extensionRegistry); - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(m); - } else { - metricHeadersBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.analytics.data.v1beta.Row m = - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(m); - } else { - rowsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - com.google.analytics.data.v1beta.Row m = - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); - if (totalsBuilder_ == null) { - ensureTotalsIsMutable(); - totals_.add(m); - } else { - totalsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - com.google.analytics.data.v1beta.Row m = - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); - if (maximumsBuilder_ == null) { - ensureMaximumsIsMutable(); - maximums_.add(m); - } else { - maximumsBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - com.google.analytics.data.v1beta.Row m = - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); - if (minimumsBuilder_ == null) { - ensureMinimumsIsMutable(); - minimums_.add(m); - } else { - minimumsBuilder_.addMessage(m); - } - break; - } // case 50 - case 56: - { - rowCount_ = input.readInt32(); - - break; - } // case 56 - case 66: - { - input.readMessage(getPropertyQuotaFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - case 74: - { - kind_ = input.readStringRequireUtf8(); - - break; - } // case 74 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 51a3d28b..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportRequest.java +++ /dev/null @@ -1,4601 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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 after aggregating the report's rows,
-   * 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 after aggregating the report's rows,
-   * 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 after aggregating the report's rows,
-   * 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_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + 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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - property_ = ""; - - if (dimensionsBuilder_ == null) { - dimensions_ = java.util.Collections.emptyList(); - } else { - dimensions_ = null; - dimensionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricsBuilder_ == null) { - metrics_ = java.util.Collections.emptyList(); - } else { - metrics_ = null; - metricsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (dateRangesBuilder_ == null) { - dateRanges_ = java.util.Collections.emptyList(); - } else { - dateRanges_ = null; - dateRangesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - 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(); - } else { - orderBys_ = null; - orderBysBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - property_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1beta.Dimension m = - input.readMessage( - com.google.analytics.data.v1beta.Dimension.parser(), extensionRegistry); - if (dimensionsBuilder_ == null) { - ensureDimensionsIsMutable(); - dimensions_.add(m); - } else { - dimensionsBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.analytics.data.v1beta.Metric m = - input.readMessage( - com.google.analytics.data.v1beta.Metric.parser(), extensionRegistry); - if (metricsBuilder_ == null) { - ensureMetricsIsMutable(); - metrics_.add(m); - } else { - metricsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - com.google.analytics.data.v1beta.DateRange m = - input.readMessage( - com.google.analytics.data.v1beta.DateRange.parser(), extensionRegistry); - if (dateRangesBuilder_ == null) { - ensureDateRangesIsMutable(); - dateRanges_.add(m); - } else { - dateRangesBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - input.readMessage(getDimensionFilterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 42 - case 50: - { - input.readMessage(getMetricFilterFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 50 - case 56: - { - offset_ = input.readInt64(); - - break; - } // case 56 - case 64: - { - limit_ = input.readInt64(); - - break; - } // case 64 - case 72: - { - int tmpRaw = input.readEnum(); - ensureMetricAggregationsIsMutable(); - metricAggregations_.add(tmpRaw); - break; - } // case 72 - case 74: - { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while (input.getBytesUntilLimit() > 0) { - int tmpRaw = input.readEnum(); - ensureMetricAggregationsIsMutable(); - metricAggregations_.add(tmpRaw); - } - input.popLimit(oldLimit); - break; - } // case 74 - case 82: - { - com.google.analytics.data.v1beta.OrderBy m = - input.readMessage( - com.google.analytics.data.v1beta.OrderBy.parser(), extensionRegistry); - if (orderBysBuilder_ == null) { - ensureOrderBysIsMutable(); - orderBys_.add(m); - } else { - orderBysBuilder_.addMessage(m); - } - break; - } // case 82 - case 90: - { - currencyCode_ = input.readStringRequireUtf8(); - - break; - } // case 90 - case 98: - { - input.readMessage(getCohortSpecFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 98 - case 104: - { - keepEmptyRows_ = input.readBool(); - - break; - } // case 104 - case 112: - { - returnPropertyQuota_ = input.readBool(); - - break; - } // case 112 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.lang.Object 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 after aggregating the report's rows,
-     * 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 after aggregating the report's rows,
-     * 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 after aggregating the report's rows,
-     * 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 after aggregating the report's rows,
-     * 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 after aggregating the report's rows,
-     * 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 after aggregating the report's rows,
-     * 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 after aggregating the report's rows,
-     * 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 after aggregating the report's rows,
-     * 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 after aggregating the report's rows,
-     * 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 to set the value at. - * @param value The enum numeric value on the wire for metricAggregations to set. - * @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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 e5706cc6..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 after aggregating the report's rows,
-   * 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 after aggregating the report's rows,
-   * 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 after aggregating the report's rows,
-   * 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 0dee52f8..00000000 --- a/proto-google-analytics-data-v1beta/src/main/java/com/google/analytics/data/v1beta/RunReportResponse.java +++ /dev/null @@ -1,4267 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See 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; - } - - 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_); - } - getUnknownFields().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 += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.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 (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (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) + getUnknownFields().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() {} - - private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - if (dimensionHeadersBuilder_ == null) { - dimensionHeaders_ = java.util.Collections.emptyList(); - } else { - dimensionHeaders_ = null; - dimensionHeadersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000001); - if (metricHeadersBuilder_ == null) { - metricHeaders_ = java.util.Collections.emptyList(); - } else { - metricHeaders_ = null; - metricHeadersBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000002); - if (rowsBuilder_ == null) { - rows_ = java.util.Collections.emptyList(); - } else { - rows_ = null; - rowsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - if (totalsBuilder_ == null) { - totals_ = java.util.Collections.emptyList(); - } else { - totals_ = null; - totalsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (maximumsBuilder_ == null) { - maximums_ = java.util.Collections.emptyList(); - } else { - maximums_ = null; - maximumsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - if (minimumsBuilder_ == null) { - minimums_ = java.util.Collections.emptyList(); - } else { - minimums_ = null; - minimumsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - 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.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: - { - com.google.analytics.data.v1beta.DimensionHeader m = - input.readMessage( - com.google.analytics.data.v1beta.DimensionHeader.parser(), - extensionRegistry); - if (dimensionHeadersBuilder_ == null) { - ensureDimensionHeadersIsMutable(); - dimensionHeaders_.add(m); - } else { - dimensionHeadersBuilder_.addMessage(m); - } - break; - } // case 10 - case 18: - { - com.google.analytics.data.v1beta.MetricHeader m = - input.readMessage( - com.google.analytics.data.v1beta.MetricHeader.parser(), extensionRegistry); - if (metricHeadersBuilder_ == null) { - ensureMetricHeadersIsMutable(); - metricHeaders_.add(m); - } else { - metricHeadersBuilder_.addMessage(m); - } - break; - } // case 18 - case 26: - { - com.google.analytics.data.v1beta.Row m = - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); - if (rowsBuilder_ == null) { - ensureRowsIsMutable(); - rows_.add(m); - } else { - rowsBuilder_.addMessage(m); - } - break; - } // case 26 - case 34: - { - com.google.analytics.data.v1beta.Row m = - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); - if (totalsBuilder_ == null) { - ensureTotalsIsMutable(); - totals_.add(m); - } else { - totalsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - com.google.analytics.data.v1beta.Row m = - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); - if (maximumsBuilder_ == null) { - ensureMaximumsIsMutable(); - maximums_.add(m); - } else { - maximumsBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - com.google.analytics.data.v1beta.Row m = - input.readMessage( - com.google.analytics.data.v1beta.Row.parser(), extensionRegistry); - if (minimumsBuilder_ == null) { - ensureMinimumsIsMutable(); - minimums_.add(m); - } else { - minimumsBuilder_.addMessage(m); - } - break; - } // case 50 - case 56: - { - rowCount_ = input.readInt32(); - - break; - } // case 56 - case 66: - { - input.readMessage(getMetadataFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 66 - case 74: - { - input.readMessage(getPropertyQuotaFieldBuilder().getBuilder(), extensionRegistry); - - break; - } // case 74 - case 82: - { - kind_ = input.readStringRequireUtf8(); - - break; - } // case 82 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag - } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private int bitField0_; - - private java.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 { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.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 e5ee72cc..00000000 --- a/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/analytics_data_api.proto +++ /dev/null @@ -1,628 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.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. - // - // For a guide to constructing requests & understanding responses, see - // [Creating a - // Report](https://developers.google.com/analytics/devguides/reporting/data/v1/basics). - 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"; - } - - // Returns a customized report of realtime event data for your property. - // Events appear in realtime reports seconds after they have been sent to - // the Google Analytics. Realtime reports show events and usage data for the - // periods of time ranging from the present moment to 30 minutes ago (up to - // 60 minutes for Google Analytics 360 properties). - // - // For a guide to constructing realtime requests & understanding responses, - // see [Creating a Realtime - // Report](https://developers.google.com/analytics/devguides/reporting/data/v1/realtime-basics). - 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 after aggregating the report's rows, - // 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. 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. 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 6c6431b9..00000000 --- a/proto-google-analytics-data-v1beta/src/main/proto/google/analytics/data/v1beta/data.proto +++ /dev/null @@ -1,981 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.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, the 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. In the same FilterExpression, all of the filter's - // field names need to be either all dimensions or all 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 match for the regular expression with the string value. - FULL_REGEXP = 5; - - // Partial match for the regular expression 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. - // - // In most methods, dimensions & metrics can be used for the first time in - // this field. However in a RunPivotReportRequest, this field must be - // additionally specified by name in the RunPivotReportRequest's 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; - } -} - -// Order bys define how rows will be sorted in the response. For example, -// ordering rows by descending event count is one ordering, and ordering rows by -// the event name string is a different ordering. -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; - - // If `subjectToThresholding` is true, this report is subject to thresholding - // and only returns data that meets the minimum aggregation thresholds. It is - // possible for a request to be subject to thresholding thresholding and no - // data is absent from the report, and this happens when all data is above the - // thresholds. To learn more, see [Data - // thresholds](https://support.google.com/analytics/answer/9383630) and [About - // Demographics and - // Interests](https://support.google.com/analytics/answer/2799357). - optional bool subject_to_thresholding = 8; -} - -// 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 all of - // the hourly, daily, and per project hourly 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; - - // Analytics Properties can use up to 25% of their tokens per project per - // hour. This amounts to standard Analytics Properties can use up to 1,250 - // tokens per project per hour, and Analytics 360 Properties can use 12,500 - // tokens per project per hour. An API request consumes a single number of - // tokens, and that number is deducted from all of the hourly, daily, and per - // project hourly quotas. - QuotaStatus tokens_per_project_per_hour = 6; -} - -// 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 088271b4..00000000 --- a/renovate.json +++ /dev/null @@ -1,76 +0,0 @@ -{ - "enabled": false, - "extends": [ - ":separateMajorReleases", - ":combinePatchMinorReleases", - ":ignoreUnstable", - ":prImmediately", - ":updateNotScheduled", - ":automergeDisabled", - ":ignoreModulesAndTests", - ":maintainLockFilesDisabled", - ":autodetectPinVersions" - ], - "ignorePaths": [".kokoro/requirements.txt"], - "packageRules": [ - { - "packagePatterns": [ - "^com.google.guava:" - ], - "versionScheme": "docker" - }, - { - "packagePatterns": [ - "*" - ], - "semanticCommitType": "deps", - "semanticCommitScope": null - }, - { - "packagePatterns": [ - "^org.apache.maven", - "^org.jacoco:", - "^org.codehaus.mojo:", - "^org.sonatype.plugins:", - "^com.coveo:", - "^com.google.cloud:google-cloud-shared-config" - ], - "semanticCommitType": "build", - "semanticCommitScope": "deps" - }, - { - "packagePatterns": [ - "^com.google.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 ad17a058..00000000 --- a/samples/install-without-bom/pom.xml +++ /dev/null @@ -1,89 +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.14.9 - - - - com.google.auth - google-auth-library-oauth2-http - 1.11.0 - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - add-snippets-source - - add-source - - - - ../snippets/src/main/java - - - - - add-snippets-tests - - add-test-source - - - - ../snippets/src/test/java - - - - - - - - diff --git a/samples/pom.xml b/samples/pom.xml deleted file mode 100644 index 379bc10c..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 - 3.0.0 - - true - - - - org.sonatype.plugins - nexus-staging-maven-plugin - 1.6.13 - - true - - - - - diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml deleted file mode 100644 index c851feb4..00000000 --- a/samples/snapshot/pom.xml +++ /dev/null @@ -1,99 +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.cloud - libraries-bom - 26.1.4 - pom - import - - - - - - - - com.google.analytics - google-analytics-data - 0.14.10-SNAPSHOT - - - - com.google.auth - google-auth-library-oauth2-http - - - - junit - junit - 4.13.2 - test - - - com.google.truth - truth - 1.1.3 - test - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - 3.3.0 - - - add-snippets-source - - add-source - - - - ../snippets/src/main/java - - - - - add-snippets-tests - - add-test-source - - - - ../snippets/src/test/java - - - - - - - - diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml deleted file mode 100644 index 6d21270a..00000000 --- a/samples/snippets/pom.xml +++ /dev/null @@ -1,63 +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.cloud - libraries-bom - 26.1.4 - pom - import - - - - - - - - com.google.analytics - google-analytics-data - 0.14.9 - - - com.google.auth - google-auth-library-oauth2-http - - - - 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/GetCommonMetadataSample.java b/samples/snippets/src/main/java/com/example/analytics/GetCommonMetadataSample.java deleted file mode 100644 index 5f57cc2d..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/GetCommonMetadataSample.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application retrieving dimension and metrics -metadata. - -See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/getMetadata -for more information. - -To run this sample using Maven: - cd java-analytics-data/samples/snippets - mvn compile - mvn exec:java -Dexec.mainClass="com.example.analytics.GetCommonMetadataSample" - */ - -// [START analyticsdata_get_common_metadata] - -import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; -import com.google.analytics.data.v1beta.DimensionMetadata; -import com.google.analytics.data.v1beta.GetMetadataRequest; -import com.google.analytics.data.v1beta.Metadata; -import com.google.analytics.data.v1beta.MetricMetadata; - -public class GetCommonMetadataSample { - - public static void main(String... args) throws Exception { - // Runs the sample. - sampleGetCommonMetadata(); - } - - // Retrieves dimensions and metrics available for all Google Analytics 4 properties. - static void sampleGetCommonMetadata() throws Exception { - // 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 propertyId = "0"; - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - GetMetadataRequest request = - GetMetadataRequest.newBuilder().setName("properties/" + propertyId + "/metadata").build(); - - // Make the request. - Metadata response = analyticsData.getMetadata(request); - - System.out.println("Dimensions and metrics available for all Google Analytics 4 properties:"); - printGetMetadataResponse(response); - } - } - - // Prints results of the getMetadata call. - static void printGetMetadataResponse(Metadata response) { - // [START analyticsdata_print_get_metadata_response] - for (DimensionMetadata dimension : response.getDimensionsList()) { - System.out.println("DIMENSION"); - System.out.printf( - "%s (%s): %s%n", - dimension.getApiName(), dimension.getUiName(), dimension.getDescription()); - System.out.printf("custom definition: %s%n", dimension.getCustomDefinition()); - if (dimension.getDeprecatedApiNamesList() != null - && !dimension.getDeprecatedApiNamesList().isEmpty()) { - System.out.printf("Deprecated API names: %s%n", dimension.getDeprecatedApiNamesList()); - } - System.out.println(); - } - for (MetricMetadata metric : response.getMetricsList()) { - System.out.println("METRIC"); - System.out.printf( - "%s (%s): %s%n", metric.getApiName(), metric.getUiName(), metric.getDescription()); - System.out.printf("custom definition: %s%n", metric.getCustomDefinition()); - System.out.printf("Type: %s%n", metric.getType()); - if (metric.getDeprecatedApiNamesList() != null - && !metric.getDeprecatedApiNamesList().isEmpty()) { - System.out.printf("Deprecated API names: %s%n", metric.getDeprecatedApiNamesList()); - } - System.out.println(); - } - // [END analyticsdata_print_get_metadata_response] - } -} -// [END analyticsdata_get_common_metadata] diff --git a/samples/snippets/src/main/java/com/example/analytics/GetMetadataByPropertyIdSample.java b/samples/snippets/src/main/java/com/example/analytics/GetMetadataByPropertyIdSample.java deleted file mode 100644 index f9be5f8d..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/GetMetadataByPropertyIdSample.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application retrieving dimension and metrics -metadata. - -See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/getMetadata -for more information. - -To run this sample using Maven: - cd java-analytics-data/samples/snippets - mvn compile - mvn exec:java -Dexec.mainClass="com.example.analytics.GetMetadataByPropertyIdSample" - */ - -// [START analyticsdata_get_metadata_by_property_id] - -import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; -import com.google.analytics.data.v1beta.GetMetadataRequest; -import com.google.analytics.data.v1beta.Metadata; - -public class GetMetadataByPropertyIdSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleGetMetadataByPropertyId(propertyId); - } - - // Retrieves dimensions and metrics available for a Google Analytics 4 property, including custom - // fields. - static void sampleGetMetadataByPropertyId(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - GetMetadataRequest request = - GetMetadataRequest.newBuilder().setName("properties/" + propertyId + "/metadata").build(); - - // Make the request. - Metadata response = analyticsData.getMetadata(request); - - System.out.printf( - "Dimensions and metrics available for Google Analytics 4 property %s " - + "(including custom fields):", - propertyId); - // Prints the response using a method in GetCommonMetadataSample.java - GetCommonMetadataSample.printGetMetadataResponse(response); - } - } -} -// [END analyticsdata_get_metadata_by_property_id] 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 7186562a..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/QuickstartSample.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 { - // [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/main/java/com/example/analytics/RunBatchReportSample.java b/samples/snippets/src/main/java/com/example/analytics/RunBatchReportSample.java deleted file mode 100644 index 273ebf0a..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunBatchReportSample.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 application demonstrating the batch creation -of multiple reports. - -See -https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/batchRunReports -for more information. - -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.RunBatchReportSample" - */ - -// [START analyticsdata_run_batch_report] - -import com.google.analytics.data.v1beta.BatchRunReportsRequest; -import com.google.analytics.data.v1beta.BatchRunReportsResponse; -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.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; - -public class RunBatchReportSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunBatchReport(propertyId); - } - - // Runs a batch report on a Google Analytics 4 property. - static void sampleRunBatchReport(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - - BatchRunReportsRequest request = - BatchRunReportsRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addRequests( - RunReportRequest.newBuilder() - .addDimensions(Dimension.newBuilder().setName("country")) - .addDimensions(Dimension.newBuilder().setName("region")) - .addDimensions(Dimension.newBuilder().setName("city")) - .addMetrics(Metric.newBuilder().setName("activeUsers")) - .addDateRanges( - DateRange.newBuilder() - .setStartDate("2021-01-03") - .setEndDate("2021-01-09"))) - .addRequests( - RunReportRequest.newBuilder() - .addDimensions(Dimension.newBuilder().setName("browser")) - .addMetrics(Metric.newBuilder().setName("activeUsers")) - .addDateRanges( - DateRange.newBuilder() - .setStartDate("2021-01-01") - .setEndDate("2021-01-31"))) - .build(); - - // Make the request. - BatchRunReportsResponse response = analyticsData.batchRunReports(request); - - // Prints the response using a method in RunReportSample.java - System.out.println("Batch report results:"); - for (RunReportResponse report : response.getReportsList()) { - RunReportSample.printRunResponseResponse(report); - } - } - } -} -// [END analyticsdata_run_batch_report] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunPivotReportSample.java b/samples/snippets/src/main/java/com/example/analytics/RunPivotReportSample.java deleted file mode 100644 index 9170d18e..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunPivotReportSample.java +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application demonstrating the creation of -a pivot report. - -See -https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runPivotReport -for more information. - -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.RunPivotReportSample" - */ - -// [START analyticsdata_run_pivot_report] - -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.DimensionValue; -import com.google.analytics.data.v1beta.Metric; -import com.google.analytics.data.v1beta.MetricValue; -import com.google.analytics.data.v1beta.OrderBy; -import com.google.analytics.data.v1beta.Pivot; -import com.google.analytics.data.v1beta.Row; -import com.google.analytics.data.v1beta.RunPivotReportRequest; -import com.google.analytics.data.v1beta.RunPivotReportResponse; - -public class RunPivotReportSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunPivotReport(propertyId); - } - - // Runs a pivot query to build a report of session counts by country, pivoted by the browser - // dimension - static void sampleRunPivotReport(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - RunPivotReportRequest request = - RunPivotReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDateRanges( - DateRange.newBuilder().setStartDate("2021-01-01").setEndDate("2021-01-30")) - .addPivots( - Pivot.newBuilder() - .addFieldNames("country") - .setLimit(250) - .addOrderBys( - OrderBy.newBuilder() - .setDimension( - OrderBy.DimensionOrderBy.newBuilder() - .setDimensionName("country")))) - .addPivots( - Pivot.newBuilder() - .addFieldNames("browser") - .setOffset(3) - .setLimit(3) - .addOrderBys( - OrderBy.newBuilder() - .setMetric( - OrderBy.MetricOrderBy.newBuilder().setMetricName("sessions")) - .setDesc(true))) - .addMetrics(Metric.newBuilder().setName("sessions")) - .addDimensions(Dimension.newBuilder().setName("country")) - .addDimensions(Dimension.newBuilder().setName("browser")) - .build(); - - // Make the request. - RunPivotReportResponse response = analyticsData.runPivotReport(request); - printRunPivotReportResponse(response); - } - } - - // Prints results of a runPivotReport call. - static void printRunPivotReportResponse(RunPivotReportResponse response) { - // [START analyticsdata_print_run_pivot_report_response] - System.out.println("Report result:"); - for (Row row : response.getRowsList()) { - for (DimensionValue dimensionValue : row.getDimensionValuesList()) { - System.out.println(dimensionValue.getValue()); - } - for (MetricValue metricValue : row.getMetricValuesList()) { - System.out.println(metricValue.getValue()); - } - } - // [END analyticsdata_print_run_pivot_report_response] - } -} -// [END analyticsdata_run_pivot_report] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportSample.java b/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportSample.java deleted file mode 100644 index c39a7f78..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportSample.java +++ /dev/null @@ -1,95 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 application demonstrating the creation of -a realtime report. - -See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runRealtimeReport -for more information. - -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.RunRealtimeReportSample" - */ - -// [START analyticsdata_run_realtime_report] - -import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; -import com.google.analytics.data.v1beta.Dimension; -import com.google.analytics.data.v1beta.DimensionHeader; -import com.google.analytics.data.v1beta.Metric; -import com.google.analytics.data.v1beta.MetricHeader; -import com.google.analytics.data.v1beta.Row; -import com.google.analytics.data.v1beta.RunRealtimeReportRequest; -import com.google.analytics.data.v1beta.RunRealtimeReportResponse; - -public class RunRealtimeReportSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunRealtimeReport(propertyId); - } - - // Runs a realtime report on a Google Analytics 4 property. - static void sampleRunRealtimeReport(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - RunRealtimeReportRequest request = - RunRealtimeReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDimensions(Dimension.newBuilder().setName("country")) - .addMetrics(Metric.newBuilder().setName("activeUsers")) - .build(); - - // Make the request. - RunRealtimeReportResponse response = analyticsData.runRealtimeReport(request); - printRunRealtimeReportResponse(response); - } - } - - // Prints results of a runRealReport call. - static void printRunRealtimeReportResponse(RunRealtimeReportResponse response) { - // [START analyticsdata_print_run_realtime_report_response_header] - System.out.printf("%s rows received%n", response.getRowsList().size()); - - for (DimensionHeader header : response.getDimensionHeadersList()) { - System.out.printf("Dimension header name: %s%n", header.getName()); - } - - for (MetricHeader header : response.getMetricHeadersList()) { - System.out.printf("Metric header name: %s (%s)%n", header.getName(), header.getType()); - } - // [END analyticsdata_print_run_realtime_report_response_header] - - // [START analyticsdata_print_run_realtime_report_response_rows] - System.out.println("Report result:"); - for (Row row : response.getRowsList()) { - System.out.printf( - "%s, %s%n", row.getDimensionValues(0).getValue(), row.getMetricValues(0).getValue()); - } - // [END analyticsdata_print_run_realtime_report_response_rows] - } -} -// [END analyticsdata_run_realtime_report] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSample.java b/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSample.java deleted file mode 100644 index ee6da60b..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSample.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application demonstrating the creation of -a realtime report. - -See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runRealtimeReport -for more information. - -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.RunRealtimeReportWithMultipleDimensionsSample" - */ - -// [START analyticsdata_run_realtime_report_with_multiple_dimensions] - -import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; -import com.google.analytics.data.v1beta.Dimension; -import com.google.analytics.data.v1beta.Metric; -import com.google.analytics.data.v1beta.RunRealtimeReportRequest; -import com.google.analytics.data.v1beta.RunRealtimeReportResponse; - -public class RunRealtimeReportWithMultipleDimensionsSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunRealtimeReportWithMultipleDimensions(propertyId); - } - - // Runs a realtime report on a Google Analytics 4 property. - static void sampleRunRealtimeReportWithMultipleDimensions(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - RunRealtimeReportRequest request = - RunRealtimeReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDimensions(Dimension.newBuilder().setName("country")) - .addDimensions(Dimension.newBuilder().setName(("city"))) - .addMetrics(Metric.newBuilder().setName("activeUsers")) - .build(); - - // Make the request. - RunRealtimeReportResponse response = analyticsData.runRealtimeReport(request); - // Prints the response using a method in RunRealtimeReportSample.java - RunRealtimeReportSample.printRunRealtimeReportResponse(response); - } - } -} -// [END analyticsdata_run_realtime_report_with_multiple_dimensions] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSample.java b/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSample.java deleted file mode 100644 index 1141c1f2..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSample.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application demonstrating the creation of -a realtime report. - -See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runRealtimeReport -for more information. - -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.RunRealtimeReportWithMultipleMetricsSample" - */ - -// [START analyticsdata_run_realtime_report_with_multiple_metrics] - -import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; -import com.google.analytics.data.v1beta.Dimension; -import com.google.analytics.data.v1beta.Metric; -import com.google.analytics.data.v1beta.RunRealtimeReportRequest; -import com.google.analytics.data.v1beta.RunRealtimeReportResponse; - -public class RunRealtimeReportWithMultipleMetricsSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunRealtimeReportWithMultipleMetrics(propertyId); - } - - // Runs a realtime report on a Google Analytics 4 property. - static void sampleRunRealtimeReportWithMultipleMetrics(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - RunRealtimeReportRequest request = - RunRealtimeReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDimensions(Dimension.newBuilder().setName("unifiedScreenName")) - .addMetrics(Metric.newBuilder().setName(("screenPageViews"))) - .addMetrics(Metric.newBuilder().setName("conversions")) - .build(); - - // Make the request. - RunRealtimeReportResponse response = analyticsData.runRealtimeReport(request); - // Prints the response using a method in RunRealtimeReportSample.java - RunRealtimeReportSample.printRunRealtimeReportResponse(response); - } - } -} -// [END analyticsdata_run_realtime_report_with_multiple_metrics] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportSample.java deleted file mode 100644 index 0dbb8c16..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportSample.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application demonstrating the creation -of a basic report. - -See -https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport -for more information. - -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.RunReportSample" - */ - -// [START analyticsdata_run_report] -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.DimensionHeader; -import com.google.analytics.data.v1beta.Metric; -import com.google.analytics.data.v1beta.MetricHeader; -import com.google.analytics.data.v1beta.Row; -import com.google.analytics.data.v1beta.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; - -public class RunReportSample { - - 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); - } - - // Runs a report of active users grouped by country. - static void sampleRunReport(String propertyId) throws Exception { - - // Using a default constructor instructs the client to use the credentials - // specified in GOOGLE_APPLICATION_CREDENTIALS environment variable. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDimensions(Dimension.newBuilder().setName("country")) - .addMetrics(Metric.newBuilder().setName("activeUsers")) - .addDateRanges( - DateRange.newBuilder().setStartDate("2020-09-01").setEndDate("2020-09-15")) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - printRunResponseResponse(response); - } - } - - // Prints results of a runReport call. - static void printRunResponseResponse(RunReportResponse response) { - // [START analyticsdata_print_run_report_response_header] - System.out.printf("%s rows received%n", response.getRowsList().size()); - - for (DimensionHeader header : response.getDimensionHeadersList()) { - System.out.printf("Dimension header name: %s%n", header.getName()); - } - - for (MetricHeader header : response.getMetricHeadersList()) { - System.out.printf("Metric header name: %s (%s)%n", header.getName(), header.getType()); - } - // [END analyticsdata_print_run_report_response_header] - - // [START analyticsdata_print_run_report_response_rows] - System.out.println("Report result:"); - for (Row row : response.getRowsList()) { - System.out.printf( - "%s, %s%n", row.getDimensionValues(0).getValue(), row.getMetricValues(0).getValue()); - } - // [END analyticsdata_print_run_report_response_rows] - } -} -// [END analyticsdata_run_report] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithAggregationsSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithAggregationsSample.java deleted file mode 100644 index 55d6a88d..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportWithAggregationsSample.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application demonstrating the usage of -metric aggregations in a report. - -See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.metric_aggregations -for more information. - -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.RunReportWithAggregationsSample" - */ - -// [START analyticsdata_run_report_with_aggregations] -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.MetricAggregation; -import com.google.analytics.data.v1beta.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; -import java.util.ArrayList; - -public class RunReportWithAggregationsSample { - - 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"; - sampleRunReportWithAggregations(propertyId); - } - - // Runs a report which includes total, maximum and minimum values for each metric. - static void sampleRunReportWithAggregations(String propertyId) throws Exception { - // Using a default constructor instructs the client to use the credentials - // specified in GOOGLE_APPLICATION_CREDENTIALS environment variable. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDimensions(Dimension.newBuilder().setName("country")) - .addMetrics(Metric.newBuilder().setName("sessions")) - .addDateRanges(DateRange.newBuilder().setStartDate("365daysAgo").setEndDate("today")) - .addAllMetricAggregations( - new ArrayList() { - { - add(MetricAggregation.TOTAL); - add(MetricAggregation.MAXIMUM); - add(MetricAggregation.MINIMUM); - } - }) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - RunReportSample.printRunResponseResponse(response); - } - } -} -// [END analyticsdata_run_report_with_aggregations] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithCohortsSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithCohortsSample.java deleted file mode 100644 index 510aab60..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportWithCohortsSample.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application demonstrating the usage of -cohort specification in a report. - -See -https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.cohort_spec -for more information. - -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.RunReportWithCohortsSample" - */ - -// [START analyticsdata_run_report_with_cohorts] -import com.google.analytics.data.v1beta.BetaAnalyticsDataClient; -import com.google.analytics.data.v1beta.Cohort; -import com.google.analytics.data.v1beta.CohortSpec; -import com.google.analytics.data.v1beta.CohortsRange; -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.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; - -public class RunReportWithCohortsSample { - - 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"; - sampleRunReportWithCohorts(propertyId); - } - - // Runs a report on a cohort of users whose first session happened on the - // same week. The number of active users and user retention rate is calculated - // for the cohort using WEEKLY granularity. - static void sampleRunReportWithCohorts(String propertyId) throws Exception { - // Using a default constructor instructs the client to use the credentials - // specified in GOOGLE_APPLICATION_CREDENTIALS environment variable. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDimensions(Dimension.newBuilder().setName("cohort")) - .addDimensions(Dimension.newBuilder().setName("cohortNthWeek")) - .addMetrics(Metric.newBuilder().setName("cohortActiveUsers")) - .addMetrics( - Metric.newBuilder() - .setName("cohortRetentionRate") - .setExpression("cohortActiveUsers/cohortTotalUsers")) - .setCohortSpec( - CohortSpec.newBuilder() - .addCohorts( - Cohort.newBuilder() - .setDimension("firstSessionDate") - .setName("cohort") - .setDateRange( - DateRange.newBuilder() - .setStartDate("2021-01-03") - .setEndDate("2021-01-09"))) - .setCohortsRange( - CohortsRange.newBuilder() - .setStartOffset(0) - .setEndOffset(4) - .setGranularity(CohortsRange.Granularity.WEEKLY))) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - RunReportSample.printRunResponseResponse(response); - } - } -} -// [END analyticsdata_run_report_with_cohorts] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithDateRangesSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithDateRangesSample.java deleted file mode 100644 index 42459294..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportWithDateRangesSample.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application demonstrating the usage of -date ranges in a report. - -See -https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.date_ranges -for more information. - -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.RunReportWithDateRangesSample" - */ - -// [START analyticsdata_run_report_with_date_ranges] - -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.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; - -public class RunReportWithDateRangesSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunReportWithDateRanges(propertyId); - } - - // Runs a report using two date ranges. - static void sampleRunReportWithDateRanges(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDateRanges( - DateRange.newBuilder().setStartDate("2019-08-01").setEndDate("2019-08-14")) - .addDateRanges( - DateRange.newBuilder().setStartDate("2020-08-01").setEndDate("2020-08-14")) - .addDimensions(Dimension.newBuilder().setName("platform")) - .addMetrics(Metric.newBuilder().setName("activeUsers")) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - // Prints the response using a method in RunReportSample.java - RunReportSample.printRunResponseResponse(response); - } - } -} -// [END analyticsdata_run_report_with_date_ranges] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSample.java deleted file mode 100644 index 76cdb45e..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSample.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application demonstrating the usage of -dimension and metric filters in a report. - -See -https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.dimension_filter -for more information. - -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.RunReportWithDimensionAndMetricFiltersSample" - */ - -// [START analyticsdata_run_report_with_dimension_and_metric_filters] - -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.Filter; -import com.google.analytics.data.v1beta.FilterExpression; -import com.google.analytics.data.v1beta.FilterExpressionList; -import com.google.analytics.data.v1beta.Metric; -import com.google.analytics.data.v1beta.NumericValue; -import com.google.analytics.data.v1beta.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; - -public class RunReportWithDimensionAndMetricFiltersSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunReportWithDimensionAndMetricFilters(propertyId); - } - - // Runs a report using both metric and dimension filters. A dimension filter limits the report to - // include only users who made an in-app purchase using Android platform. A metric filter - // specifies that only users with session counts larger than 1,000 should be included. - static void sampleRunReportWithDimensionAndMetricFilters(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - 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")) - .setDimensionFilter( - FilterExpression.newBuilder() - .setAndGroup( - FilterExpressionList.newBuilder() - .addExpressions( - FilterExpression.newBuilder() - .setFilter( - Filter.newBuilder() - .setFieldName("platform") - .setStringFilter( - Filter.StringFilter.newBuilder() - .setMatchType( - Filter.StringFilter.MatchType.EXACT) - .setValue("Android")))) - .addExpressions( - FilterExpression.newBuilder() - .setFilter( - Filter.newBuilder() - .setFieldName("eventName") - .setStringFilter( - Filter.StringFilter.newBuilder() - .setMatchType( - Filter.StringFilter.MatchType.EXACT) - .setValue("in_app_purchase")))))) - .setMetricFilter( - FilterExpression.newBuilder() - .setFilter( - Filter.newBuilder() - .setFieldName("sessions") - .setNumericFilter( - Filter.NumericFilter.newBuilder() - .setOperation(Filter.NumericFilter.Operation.GREATER_THAN) - .setValue(NumericValue.newBuilder().setInt64Value(1000))))) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - // Prints the response using a method in RunReportSample.java - RunReportSample.printRunResponseResponse(response); - } - } -} -// [END analyticsdata_run_report_with_dimension_and_metric_filters] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionExcludeFilterSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionExcludeFilterSample.java deleted file mode 100644 index 89999e60..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionExcludeFilterSample.java +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application demonstrating the usage of -dimension and metric filters in a report. - -See -https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.dimension_filter -for more information. - -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.RunReportWithDimensionExcludeFilterSample" - */ - -// [START analyticsdata_run_report_with_dimension_exclude_filter] - -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.Filter; -import com.google.analytics.data.v1beta.FilterExpression; -import com.google.analytics.data.v1beta.Metric; -import com.google.analytics.data.v1beta.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; - -public class RunReportWithDimensionExcludeFilterSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunReportWithDimensionExcludeFilter(propertyId); - } - - // Runs a report using a filter with `not_expression`. The dimension filter selects for when - // `pageTitle` is not `My Homepage`. - // This sample uses relative date range values. - // See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/DateRange - // for more information. - static void sampleRunReportWithDimensionExcludeFilter(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDimensions(Dimension.newBuilder().setName("pageTitle")) - .addMetrics(Metric.newBuilder().setName("sessions")) - .addDateRanges( - DateRange.newBuilder().setStartDate("7daysAgo").setEndDate("yesterday")) - .setDimensionFilter( - FilterExpression.newBuilder() - .setNotExpression( - FilterExpression.newBuilder() - .setFilter( - Filter.newBuilder() - .setFieldName("pageTitle") - .setStringFilter( - Filter.StringFilter.newBuilder() - .setValue("My Homepage"))))) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - // Prints the response using a method in RunReportSample.java - RunReportSample.printRunResponseResponse(response); - } - } -} -// [END analyticsdata_run_report_with_dimension_exclude_filter] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionFilterSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionFilterSample.java deleted file mode 100644 index 2e2ae79c..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionFilterSample.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.example.analytics; - -/* Google Analytics Data API sample application demonstrating the usage of -dimension and metric filters in a report. - -See -https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.dimension_filter -for more information. - -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.RunReportWithDimensionFilterSample" - */ - -// [START analyticsdata_run_report_with_dimension_filter] - -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.Filter; -import com.google.analytics.data.v1beta.FilterExpression; -import com.google.analytics.data.v1beta.Metric; -import com.google.analytics.data.v1beta.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; - -public class RunReportWithDimensionFilterSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunReportWithDimensionFilter(propertyId); - } - - // Runs a report using a dimension filter. The call returns a time series report of `eventCount` - // when `eventName` is `first_open` for each date. - // This sample uses relative date range values. - // See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/DateRange - // for more information. - static void sampleRunReportWithDimensionFilter(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDimensions(Dimension.newBuilder().setName("date")) - .addMetrics(Metric.newBuilder().setName("eventCount")) - .addDateRanges( - DateRange.newBuilder().setStartDate("7daysAgo").setEndDate("yesterday")) - .setDimensionFilter( - FilterExpression.newBuilder() - .setFilter( - Filter.newBuilder() - .setFieldName("eventName") - .setStringFilter( - Filter.StringFilter.newBuilder().setValue("first_open")))) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - // Prints the response using a method in RunReportSample.java - RunReportSample.printRunResponseResponse(response); - } - } -} -// [END analyticsdata_run_report_with_dimension_filter] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionInListFilterSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionInListFilterSample.java deleted file mode 100644 index 2d97e12a..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportWithDimensionInListFilterSample.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application demonstrating the usage of -dimension and metric filters in a report. - -See -https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.dimension_filter -for more information. - -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.RunReportWithDimensionInListFilterSample" - */ - -// [START analyticsdata_run_report_with_dimension_in_list_filter] - -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.Filter; -import com.google.analytics.data.v1beta.FilterExpression; -import com.google.analytics.data.v1beta.Metric; -import com.google.analytics.data.v1beta.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; -import java.util.ArrayList; - -public class RunReportWithDimensionInListFilterSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunReportWithDimensionInListFilter(propertyId); - } - - // Runs a report using a dimension filter with `in_list_filter` expression. The filter selects for - // when `eventName` is set to one of three event names specified in the query. - // This sample uses relative date range values. - // See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/DateRange - // for more information. - static void sampleRunReportWithDimensionInListFilter(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDimensions(Dimension.newBuilder().setName("eventName")) - .addMetrics(Metric.newBuilder().setName("sessions")) - .addDateRanges( - DateRange.newBuilder().setStartDate("7daysAgo").setEndDate("yesterday")) - .setDimensionFilter( - FilterExpression.newBuilder() - .setFilter( - Filter.newBuilder() - .setFieldName("eventName") - .setInListFilter( - Filter.InListFilter.newBuilder() - .addAllValues( - new ArrayList() { - { - add("purchase"); - add("in_app_purchase"); - add("app_store_subscription_renew"); - } - }) - .build()))) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - // Prints the response using a method in RunReportSample.java - RunReportSample.printRunResponseResponse(response); - } - } -} -// [END analyticsdata_run_report_with_dimension_in_list_filter] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionFiltersSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionFiltersSample.java deleted file mode 100644 index 65e969bf..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionFiltersSample.java +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application demonstrating the usage of -dimension and metric filters in a report. - -See -https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.dimension_filter -for more information. - -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.RunReportWithMultipleDimensionFiltersSample" - */ - -// [START analyticsdata_run_report_with_multiple_dimension_filters] - -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.Filter; -import com.google.analytics.data.v1beta.FilterExpression; -import com.google.analytics.data.v1beta.FilterExpressionList; -import com.google.analytics.data.v1beta.Metric; -import com.google.analytics.data.v1beta.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; - -public class RunReportWithMultipleDimensionFiltersSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunReportWithMultipleDimensionFilters(propertyId); - } - - // Runs a report using multiple dimension filters joined as `and_group` expression. The filter - // selects for when both `browser` is `Chrome` and `countryId` is `US`. - // This sample uses relative date range values. - // See https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/DateRange - // for more information. - static void sampleRunReportWithMultipleDimensionFilters(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDimensions(Dimension.newBuilder().setName("browser")) - .addMetrics(Metric.newBuilder().setName("activeUsers")) - .addDateRanges( - DateRange.newBuilder().setStartDate("7daysAgo").setEndDate("yesterday")) - .setDimensionFilter( - FilterExpression.newBuilder() - .setAndGroup( - FilterExpressionList.newBuilder() - .addExpressions( - FilterExpression.newBuilder() - .setFilter( - Filter.newBuilder() - .setFieldName("browser") - .setStringFilter( - Filter.StringFilter.newBuilder() - .setValue("Chrome")))) - .addExpressions( - FilterExpression.newBuilder() - .setFilter( - Filter.newBuilder() - .setFieldName("countryId") - .setStringFilter( - Filter.StringFilter.newBuilder() - .setValue("US")))))) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - // Prints the response using a method in RunReportSample.java - RunReportSample.printRunResponseResponse(response); - } - } -} -// [END analyticsdata_run_report_with_multiple_dimension_filters] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionsSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionsSample.java deleted file mode 100644 index 506bd55b..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleDimensionsSample.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application demonstrating the creation -of a basic report. - -See -https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport -for more information. - -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.RunReportWithMultipleDimensionsSample" - */ - -// [START analyticsdata_run_report_with_multiple_dimensions] - -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.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; - -public class RunReportWithMultipleDimensionsSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunReportWithMultipleDimensions(propertyId); - } - - // Runs a report of active users grouped by three dimensions. - static void sampleRunReportWithMultipleDimensions(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDimensions(Dimension.newBuilder().setName("country")) - .addDimensions(Dimension.newBuilder().setName("region")) - .addDimensions(Dimension.newBuilder().setName("city")) - .addMetrics(Metric.newBuilder().setName("activeUsers")) - .addDateRanges(DateRange.newBuilder().setStartDate("7daysAgo").setEndDate("today")) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - // Prints the response using a method in RunReportSample.java - RunReportSample.printRunResponseResponse(response); - } - } -} -// [END analyticsdata_run_report_with_multiple_dimensions] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleMetricsSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleMetricsSample.java deleted file mode 100644 index 20c8c6be..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportWithMultipleMetricsSample.java +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application demonstrating the creation -of a basic report. - -See -https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport -for more information. - -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.RunReportWithMultipleMetricsSample" - */ - -// [START analyticsdata_run_report_with_multiple_metrics] - -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.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; - -public class RunReportWithMultipleMetricsSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunReportWithMultipleMetrics(propertyId); - } - - // Runs a report of active users, new users and total revenue grouped by date dimension. - static void sampleRunReportWithMultipleMetrics(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDimensions(Dimension.newBuilder().setName("date")) - .addMetrics(Metric.newBuilder().setName("activeUsers")) - .addMetrics(Metric.newBuilder().setName("newUsers")) - .addMetrics(Metric.newBuilder().setName("totalRevenue")) - .addDateRanges(DateRange.newBuilder().setStartDate("7daysAgo").setEndDate("today")) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - // Prints the response using a method in RunReportSample.java - RunReportSample.printRunResponseResponse(response); - } - } -} -// [END analyticsdata_run_report_with_multiple_metrics] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithNamedDateRangesSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithNamedDateRangesSample.java deleted file mode 100644 index 9bdcce18..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportWithNamedDateRangesSample.java +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application demonstrating the creation -of a basic report. - -See -https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport -for more information. - -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.RunReportWithNamedDateRangesSample" - */ - -// [START analyticsdata_run_report_with_named_date_ranges] - -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.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; - -public class RunReportWithNamedDateRangesSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunReportWithNamedDateRanges(propertyId); - } - - // Runs a report using named date ranges. - static void sampleRunReportWithNamedDateRanges(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - - DateRange yearAgo = - DateRange.newBuilder() - .setStartDate("2020-01-01") - .setEndDate("2020-01-31") - .setName("year_ago") - .build(); - DateRange currentYear = - DateRange.newBuilder() - .setStartDate("2021-01-01") - .setEndDate("2021-01-31") - .setName("current_year") - .build(); - - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDateRanges(yearAgo) - .addDateRanges(currentYear) - .addDimensions(Dimension.newBuilder().setName("country")) - .addMetrics(Metric.newBuilder().setName("sessions")) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - // Prints the response using a method in RunReportSample.java - RunReportSample.printRunResponseResponse(response); - } - } -} -// [END analyticsdata_run_report_with_named_date_ranges] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithOrderingSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithOrderingSample.java deleted file mode 100644 index d1ec79c9..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportWithOrderingSample.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 application demonstrating the ordering of report rows. - -See -https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.order_bys -for more information. - -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.RunReportWithOrderingSample" - */ - -// [START analyticsdata_run_report_with_ordering] - -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.OrderBy; -import com.google.analytics.data.v1beta.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; - -public class RunReportWithOrderingSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunReportWithOrdering(propertyId); - } - - // Runs a report of active users grouped by three dimensions, ordered by the total revenue in - // descending order. - static void sampleRunReportWithOrdering(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDimensions(Dimension.newBuilder().setName("date")) - .addMetrics(Metric.newBuilder().setName("activeUsers")) - .addMetrics(Metric.newBuilder().setName("newUsers")) - .addMetrics(Metric.newBuilder().setName("totalRevenue")) - .addDateRanges(DateRange.newBuilder().setStartDate("7daysAgo").setEndDate("today")) - .addOrderBys( - OrderBy.newBuilder() - .setMetric(OrderBy.MetricOrderBy.newBuilder().setMetricName("totalRevenue")) - .setDesc(true)) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - // Prints the response using a method in RunReportSample.java - RunReportSample.printRunResponseResponse(response); - } - } -} -// [END analyticsdata_run_report_with_ordering] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithPaginationSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithPaginationSample.java deleted file mode 100644 index 3bd59726..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportWithPaginationSample.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 application demonstrating the use of pagination to retrieve -large result sets. - -See -https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.offset -for more information. - -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.RunReportWithPaginationSample" - */ - -// [START analyticsdata_run_report_with_pagination] - -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.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; - -public class RunReportWithPaginationSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunReportWithPagination(propertyId); - } - - // Runs a report several times, each time retrieving a portion of result using pagination. - static void sampleRunReportWithPagination(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - // [START analyticsdata_run_report_with_pagination_page1] - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDateRanges( - DateRange.newBuilder().setStartDate("365daysAgo").setEndDate("yesterday")) - .addDimensions(Dimension.newBuilder().setName("firstUserSource")) - .addDimensions(Dimension.newBuilder().setName("firstUserMedium")) - .addDimensions(Dimension.newBuilder().setName("firstUserCampaignName")) - .addMetrics(Metric.newBuilder().setName("sessions")) - .addMetrics(Metric.newBuilder().setName("conversions")) - .addMetrics(Metric.newBuilder().setName("totalRevenue")) - .setLimit(100000) - .setOffset(0) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - RunReportSample.printRunResponseResponse(response); - // [END analyticsdata_run_report_with_pagination_page1] - - // Run the same report with a different offset value to retrieve the second page of a - // response. - // [START analyticsdata_run_report_with_pagination_page2] - request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .addDateRanges( - DateRange.newBuilder().setStartDate("365daysAgo").setEndDate("yesterday")) - .addDimensions(Dimension.newBuilder().setName("firstUserSource")) - .addDimensions(Dimension.newBuilder().setName("firstUserMedium")) - .addDimensions(Dimension.newBuilder().setName("firstUserCampaignName")) - .addMetrics(Metric.newBuilder().setName("sessions")) - .addMetrics(Metric.newBuilder().setName("conversions")) - .addMetrics(Metric.newBuilder().setName("totalRevenue")) - .setLimit(100000) - .setOffset(100000) - .build(); - - // Make the request. - response = analyticsData.runReport(request); - // Prints the response using a method in RunReportSample.java - RunReportSample.printRunResponseResponse(response); - // [END analyticsdata_run_report_with_pagination_page2] - } - } -} -// [END analyticsdata_run_report_with_pagination] diff --git a/samples/snippets/src/main/java/com/example/analytics/RunReportWithPropertyQuotaSample.java b/samples/snippets/src/main/java/com/example/analytics/RunReportWithPropertyQuotaSample.java deleted file mode 100644 index 03d7f3d2..00000000 --- a/samples/snippets/src/main/java/com/example/analytics/RunReportWithPropertyQuotaSample.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.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 application demonstrating the usage of property quota metadata. - -See -https://developers.google.com/analytics/devguides/reporting/data/v1/rest/v1beta/properties/runReport#body.request_body.FIELDS.return_property_quota -for more information. - -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.RunReportWithPropertyQuotaSample" - */ - -// [START analyticsdata_run_report_with_property_quota] - -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.RunReportRequest; -import com.google.analytics.data.v1beta.RunReportResponse; - -public class RunReportWithPropertyQuotaSample { - - public static void main(String... args) throws Exception { - // TODO(developer): Replace with your Google Analytics 4 property ID before running the sample. - String propertyId = "YOUR-GA4-PROPERTY-ID"; - sampleRunReportWithPropertyQuota(propertyId); - } - - // Runs a report and prints property quota information. - static void sampleRunReportWithPropertyQuota(String propertyId) throws Exception { - // Initialize client that will be used to send requests. This client only needs to be created - // once, and can be reused for multiple requests. After completing all of your requests, call - // the "close" method on the client to safely clean up any remaining background resources. - try (BetaAnalyticsDataClient analyticsData = BetaAnalyticsDataClient.create()) { - RunReportRequest request = - RunReportRequest.newBuilder() - .setProperty("properties/" + propertyId) - .setReturnPropertyQuota(true) - .addDimensions(Dimension.newBuilder().setName("country")) - .addMetrics(Metric.newBuilder().setName("activeUsers")) - .addDateRanges(DateRange.newBuilder().setStartDate("7daysAgo").setEndDate("today")) - .build(); - - // Make the request. - RunReportResponse response = analyticsData.runReport(request); - - // [START analyticsdata_run_report_with_property_quota_print_response] - if (response.hasPropertyQuota()) { - System.out.printf( - "Tokens per day quota consumed: %d, remaining: %d.%n", - response.getPropertyQuota().getTokensPerDay().getConsumed(), - response.getPropertyQuota().getTokensPerDay().getRemaining()); - System.out.printf( - "Tokens per hour quota consumed: %d, remaining: %d.%n", - response.getPropertyQuota().getTokensPerHour().getConsumed(), - response.getPropertyQuota().getTokensPerHour().getRemaining()); - System.out.printf( - "Concurrent requests quota consumed: %d, remaining: %d.%n", - response.getPropertyQuota().getConcurrentRequests().getConsumed(), - response.getPropertyQuota().getConcurrentRequests().getRemaining()); - System.out.printf( - "Server errors per project per hour quota consumed: %d, remaining: %d.%n", - response.getPropertyQuota().getServerErrorsPerProjectPerHour().getConsumed(), - response.getPropertyQuota().getServerErrorsPerProjectPerHour().getRemaining()); - System.out.printf( - "Potentially thresholded requests per hour quota consumed: %d, remaining: %d.%n", - response.getPropertyQuota().getPotentiallyThresholdedRequestsPerHour().getConsumed(), - response.getPropertyQuota().getPotentiallyThresholdedRequestsPerHour().getRemaining()); - } - // [END analyticsdata_run_report_with_property_quota_print_response] - } - } -} -// [END analyticsdata_run_report_with_property_quota] diff --git a/samples/snippets/src/test/java/com/example/analytics/GetCommonMetadataSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/GetCommonMetadataSampleTest.java deleted file mode 100644 index 5acd05b6..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/GetCommonMetadataSampleTest.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the GetCommonMetadata sample. */ -@RunWith(JUnit4.class) -public class GetCommonMetadataSampleTest { - - private String runSample() 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. - GetCommonMetadataSample.sampleGetCommonMetadata(); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testGetCommonMetadata() throws Exception { - // Act - String out = runSample(); - - // Assert - assertThat(out).contains("Dimensions and metrics"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/GetMetadataByPropertyIdSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/GetMetadataByPropertyIdSampleTest.java deleted file mode 100644 index fb19f524..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/GetMetadataByPropertyIdSampleTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the GetMetadataByPropertyId sample. */ -@RunWith(JUnit4.class) -public class GetMetadataByPropertyIdSampleTest { - - 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. - GetMetadataByPropertyIdSample.sampleGetMetadataByPropertyId(ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testGetMetadataByPropertyId() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Dimensions and metrics"); - } -} 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/samples/snippets/src/test/java/com/example/analytics/RunBatchReportSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunBatchReportSampleTest.java deleted file mode 100644 index d029a05e..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunBatchReportSampleTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunBatchReport sample. */ -@RunWith(JUnit4.class) -public class RunBatchReportSampleTest { - - 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. - RunBatchReportSample.sampleRunBatchReport(ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunBatchReport() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Batch report result"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunPivotReportSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunPivotReportSampleTest.java deleted file mode 100644 index 6c422c7c..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunPivotReportSampleTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunPivotReport sample. */ -@RunWith(JUnit4.class) -public class RunPivotReportSampleTest { - - 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. - RunPivotReportSample.sampleRunPivotReport(ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunPivotReport() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportSampleTest.java deleted file mode 100644 index 0f6ff8b1..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportSampleTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunRealtimeReport sample. */ -@RunWith(JUnit4.class) -public class RunRealtimeReportSampleTest { - - 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. - RunRealtimeReportSample.sampleRunRealtimeReport(ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunRealtimeReport() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSampleTest.java deleted file mode 100644 index 1d392d4d..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportWithMultipleDimensionsSampleTest.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunRealtimeReportWithMultipleDimensions sample. */ -@RunWith(JUnit4.class) -public class RunRealtimeReportWithMultipleDimensionsSampleTest { - - 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. - RunRealtimeReportWithMultipleDimensionsSample.sampleRunRealtimeReportWithMultipleDimensions( - ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunRealtimeReportWithMultipleDimensions() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSampleTest.java deleted file mode 100644 index 00f362a4..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunRealtimeReportWithMultipleMetricsSampleTest.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunRealtimeReportWithMultipleMetrics sample. */ -@RunWith(JUnit4.class) -public class RunRealtimeReportWithMultipleMetricsSampleTest { - - 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. - RunRealtimeReportWithMultipleMetricsSample.sampleRunRealtimeReportWithMultipleMetrics( - ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunRealtimeReportWithMultipleMetrics() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportSampleTest.java deleted file mode 100644 index 48e3ca22..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunReportSampleTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the run report sample. */ -@RunWith(JUnit4.class) -public class RunReportSampleTest { - - 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. - RunReportSample.sampleRunReport(ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunReport() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithAggregationsSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithAggregationsSampleTest.java deleted file mode 100644 index 566dbbb8..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunReportWithAggregationsSampleTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunReportWithAggregations sample. */ -@RunWith(JUnit4.class) -public class RunReportWithAggregationsSampleTest { - - 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. - RunReportWithAggregationsSample.sampleRunReportWithAggregations(ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunReportWithAggregations() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithCohortsSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithCohortsSampleTest.java deleted file mode 100644 index c018d4c7..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunReportWithCohortsSampleTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunReportWithCohorts sample. */ -@RunWith(JUnit4.class) -public class RunReportWithCohortsSampleTest { - - 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. - RunReportWithCohortsSample.sampleRunReportWithCohorts(ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunReportWithCohorts() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithDateRangesSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithDateRangesSampleTest.java deleted file mode 100644 index bfb69a20..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunReportWithDateRangesSampleTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunReportWithDateRanges sample. */ -@RunWith(JUnit4.class) -public class RunReportWithDateRangesSampleTest { - - 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. - RunReportWithDateRangesSample.sampleRunReportWithDateRanges(ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunReportWithDateRanges() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSampleTest.java deleted file mode 100644 index afe83cfb..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionAndMetricFiltersSampleTest.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunReportWithDimensionAndMetricFilters sample. */ -@RunWith(JUnit4.class) -public class RunReportWithDimensionAndMetricFiltersSampleTest { - - 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. - RunReportWithDimensionAndMetricFiltersSample.sampleRunReportWithDimensionAndMetricFilters( - ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunReportDimensionAndMetricFilters() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionExcludeFilterSampleTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionExcludeFilterSampleTest.java deleted file mode 100644 index 9ee6dacf..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionExcludeFilterSampleTest.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunReportWithDimensionExcludeFilter sample. */ -@RunWith(JUnit4.class) -public class RunReportWithDimensionExcludeFilterSampleTest { - - 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. - RunReportWithDimensionExcludeFilterSample.sampleRunReportWithDimensionExcludeFilter( - ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunReportWithDimensionExcludeFilter() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionFilterTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionFilterTest.java deleted file mode 100644 index c8fb2ad3..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionFilterTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunReportWithDimensionFilter sample. */ -@RunWith(JUnit4.class) -public class RunReportWithDimensionFilterTest { - - 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. - RunReportWithDimensionFilterSample.sampleRunReportWithDimensionFilter(ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunReportWithDimensionFilter() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionInListFilterTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionInListFilterTest.java deleted file mode 100644 index 84d64aec..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunReportWithDimensionInListFilterTest.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunReportWithDimensionInListFilter sample. */ -@RunWith(JUnit4.class) -public class RunReportWithDimensionInListFilterTest { - - 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. - RunReportWithDimensionInListFilterSample.sampleRunReportWithDimensionInListFilter( - ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunReportWithDimensionInListFilter() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleDimensionFiltersTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleDimensionFiltersTest.java deleted file mode 100644 index 3f3e55b3..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleDimensionFiltersTest.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunReportWithMultipleDimensionFilters sample. */ -@RunWith(JUnit4.class) -public class RunReportWithMultipleDimensionFiltersTest { - - 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. - RunReportWithMultipleDimensionFiltersSample.sampleRunReportWithMultipleDimensionFilters( - ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunReportWithMultipleDimensionFilters() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleDimensionsTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleDimensionsTest.java deleted file mode 100644 index 84784104..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleDimensionsTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunReportWithMultipleDimensions sample. */ -@RunWith(JUnit4.class) -public class RunReportWithMultipleDimensionsTest { - - 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. - RunReportWithMultipleDimensionsSample.sampleRunReportWithMultipleDimensions(ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunReportWithMultipleDimensions() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleMetricsTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleMetricsTest.java deleted file mode 100644 index b2da9c39..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunReportWithMultipleMetricsTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunReportWithMultipleMetrics sample. */ -@RunWith(JUnit4.class) -public class RunReportWithMultipleMetricsTest { - - 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. - RunReportWithMultipleMetricsSample.sampleRunReportWithMultipleMetrics(ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunReportWithMultipleMetrics() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithNamedDateRangesTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithNamedDateRangesTest.java deleted file mode 100644 index 5a37e3a5..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunReportWithNamedDateRangesTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunReportWithNamedDateRanges sample. */ -@RunWith(JUnit4.class) -public class RunReportWithNamedDateRangesTest { - - 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. - RunReportWithNamedDateRangesSample.sampleRunReportWithNamedDateRanges(ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunReportWithNamedDateRanges() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithOrderingTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithOrderingTest.java deleted file mode 100644 index c64eb210..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunReportWithOrderingTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunReportWithOrdering sample. */ -@RunWith(JUnit4.class) -public class RunReportWithOrderingTest { - - 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. - RunReportWithOrderingSample.sampleRunReportWithOrdering(ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunReportWithOrdering() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithPaginationTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithPaginationTest.java deleted file mode 100644 index 7202313a..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunReportWithPaginationTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunReportWithPagination sample. */ -@RunWith(JUnit4.class) -public class RunReportWithPaginationTest { - - 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. - RunReportWithPaginationSample.sampleRunReportWithPagination(ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunReportWithPagination() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Report result:"); - } -} diff --git a/samples/snippets/src/test/java/com/example/analytics/RunReportWithPropertyQuotaTest.java b/samples/snippets/src/test/java/com/example/analytics/RunReportWithPropertyQuotaTest.java deleted file mode 100644 index 55e71287..00000000 --- a/samples/snippets/src/test/java/com/example/analytics/RunReportWithPropertyQuotaTest.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * 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 the RunReportWithPropertyQuota sample. */ -@RunWith(JUnit4.class) -public class RunReportWithPropertyQuotaTest { - - 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. - RunReportWithPropertyQuotaSample.sampleRunReportWithPropertyQuota(ga4PropertyId); - System.setOut(stdOut); - return bout.toString(); - } - - @Test - public void testRunReportWithPropertyQuota() throws Exception { - // Act - String out = runSample(ga4PropertyId); - - // Assert - assertThat(out).contains("Tokens per day quota consumed"); - } -} 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 7ccaaf35..00000000 --- a/versions.txt +++ /dev/null @@ -1,8 +0,0 @@ -# Format: -# module:released-version:current-version - -google-analytics-data:0.14.9:0.14.10-SNAPSHOT -grpc-google-analytics-data-v1beta:0.14.9:0.14.10-SNAPSHOT -proto-google-analytics-data-v1beta:0.14.9:0.14.10-SNAPSHOT -proto-google-analytics-data-v1alpha:0.14.9:0.14.10-SNAPSHOT -grpc-google-analytics-data-v1alpha:0.14.9:0.14.10-SNAPSHOT From 398fbbfd789493e59ce3d8cb56053ca149679451 Mon Sep 17 00:00:00 2001 From: Deepankar Dixit <90280028+ddixit14@users.noreply.github.com> Date: Wed, 5 Jul 2023 13:58:51 +0000 Subject: [PATCH 225/225] chore: Bringing back release-please.yml (#641) --- .github/release-please.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .github/release-please.yml diff --git a/.github/release-please.yml b/.github/release-please.yml new file mode 100644 index 00000000..7bf58076 --- /dev/null +++ b/.github/release-please.yml @@ -0,0 +1,8 @@ +bumpMinorPreMajor: true +handleGHRelease: true +releaseType: java-yoshi +branches: + - bumpMinorPreMajor: true + handleGHRelease: true + releaseType: java-yoshi + branch: java7